Hi Marco
With any grid in the Material master (and most other objects) that don't have a position or insert new line button, you have two options
(1) use GUI scripting - Indexed If statements will help you position to a specific line, and Indexed Loops will position you to the first empty line. For descriptions in multiple languages, use the language code as the index field.
(2) use a BAPI. For material master, you can use: BAPI_MATERIAL_SAVEDATA It will allow you to add, update or delete languages, alternate units of measure, etc., easily. Am attaching an example, in case you have not seen Direct before - it does an update. There is also a delete flag in the language table, if you need to delete descriptions.
There is online training available, with a link from the community site. If you don't have an account, you can open a support ticket to request one.
Hope this helps,
Sigrid
------------------------------
Sigrid Kok
pse | Winshuttle North America
------------------------------
Original Message:
Sent: 11-28-2019 09:24
From: Marco Silva
Subject: Material Additional Data » Descriptions
Hi,
I need to make a Winshuttle script to add an PT descriotion into a material.
i use MM02, then I select Basic Data and on top I click on Additional Data. Then in Descriptions tab I want to add or update the PT dexfription of the material.
I'm ok to delete if exists and then add.
Any suggestion of how to do this?
------------------------------
Regards,
Marco Silva
------------------------------