Application Development and Automation 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: 
Read only

BAPI_MATERIAL_SAVEDATA - FIELD TEXT

Former Member
0 Likes
2,546


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
Read only

Former Member
0 Likes
1,966

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.

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
Read only

Former Member
0 Likes
1,967

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.

Read only

0 Likes
1,966


Hi,

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

Thank you

Read only

0 Likes
1,966

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 )

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,966

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