Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_MATERIAL_SAVEDATA - FIELD TEXT

Former Member
0 Kudos


Hello,

Someone please can tell me how to fill the field in square red showed in this image?,

Using a BAPI.

thank you so much

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

You have the use the function module below and need to pass the long text parameters!

( identify the text header in the transaction )

Bapi structure

longtext-format_col  = l_e1mtxlm-tdformat.
ls_longtext
-text_line   = l_e1mtxlm-tdline.
append longtext to lt_longtext.




*   Create and Change Material Master Data
call function 'BAPI_MATERIAL_SAVEDATA'
exporting
headdata           
= ls_headdata
importing
return              = ls_return
tables
materiallongtext   
= lt_longtext.

4 REPLIES 4

Former Member
0 Kudos

Hi,

You have the use the function module below and need to pass the long text parameters!

( identify the text header in the transaction )

Bapi structure

longtext-format_col  = l_e1mtxlm-tdformat.
ls_longtext
-text_line   = l_e1mtxlm-tdline.
append longtext to lt_longtext.




*   Create and Change Material Master Data
call function 'BAPI_MATERIAL_SAVEDATA'
exporting
headdata           
= ls_headdata
importing
return              = ls_return
tables
materiallongtext   
= lt_longtext.

0 Kudos


Hi,

Thanks for the answer, How Can I identify the text header? where I can find ti?

Thank you

0 Kudos

Hi,

Please find the information on below screen shots!

- Click on highlighted color ( after delete button - below left corner)

go to menu bar - Header ( find the details of texts )

nabheetscn
Active Contributor
0 Kudos

Either you can do as Kiran suggested or use SAVE_TEXT for the same