‎2010 Aug 18 12:03 PM
Hi Experts,
While creating material master i need to upload Basic Data Long text into material master.
For this iam using a BDC.How we can get this long text into sap systen and how we will update in material master.
‎2010 Aug 18 12:15 PM
See the Function modules containing TEXT in the name, particularly in function group STXD. Essentially, you will construct an internal table in the proper format (TLINE) in your program for each material, along a structure of type THEAD, and call function module SAVE_TEXT, if it is a new material. If updating, one does read_text, modifies the text obtained, deletes the existing text and the does SAVE_TEXT using the modified data in the internal table, as I recall. I would suggest doing the text processing after you have successful update/create of the material.
‎2010 Aug 18 12:15 PM
See the Function modules containing TEXT in the name, particularly in function group STXD. Essentially, you will construct an internal table in the proper format (TLINE) in your program for each material, along a structure of type THEAD, and call function module SAVE_TEXT, if it is a new material. If updating, one does read_text, modifies the text obtained, deletes the existing text and the does SAVE_TEXT using the modified data in the internal table, as I recall. I would suggest doing the text processing after you have successful update/create of the material.
‎2010 Aug 18 12:21 PM
Not sure why you are using the BDC approach to upload MM data
You should use the BAPI 'BAPI_MATERIAL_SAVEDATA'. Anyways back to your question on how to maintain Basic Data Longtext into MM check this thread:
‎2010 Aug 18 12:21 PM
Hi,
you can use the below function module instead of Save_text..
BAPI_MATERIAL_SAVEDATA.
in the above function module
headdata-material = matnr.
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
headdata = headdata "contains materail number
IMPORTING
return = return
TABLES
MATERIALLONGTEXT = t_longtext "pass long text here
returnmessages = returnmessages.
Prabhudas
‎2010 Aug 18 12:44 PM
Hi Thanks for all your replies
Here my requirement is i have to create material based upon the flat file and needs to update the long text.
Edited by: vinay raj on Aug 18, 2010 1:46 PM
‎2010 Aug 20 6:09 AM