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: 

Text not appearing in new line while using BAPI_MATERIAL_SAVEDATA

abhishekindapure
Explorer
0 Kudos

I'm trying to pass the long text through the bapi 'BAPI_MATERIAL_SAVEDATA ' using a table of the structure 'BAPI_MLTX'.

It has three records in it but after executing it all three texts are coming in one line. How to make them appear in a new line?

1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor

Usually you have 2 fields in the text parameter, one named TDFORMAT (2 characters) and one named TDLINE (72 or 132 characters). EDIT: from this answer (question "BAPI_MATERIAL_SAVEDATA & table bapi_mltx"), the fields seem to be named FORMAT_COL and TEXT_LINE.

In TDFORMAT, try with * to start a new paragraph.

It doesn't work everywhere though. Let's see your feedback.

The SAP Library indicates all possible values (it's named ITF format, or SAPScript paragraph format).

3 REPLIES 3

Sandra_Rossi
Active Contributor

Usually you have 2 fields in the text parameter, one named TDFORMAT (2 characters) and one named TDLINE (72 or 132 characters). EDIT: from this answer (question "BAPI_MATERIAL_SAVEDATA & table bapi_mltx"), the fields seem to be named FORMAT_COL and TEXT_LINE.

In TDFORMAT, try with * to start a new paragraph.

It doesn't work everywhere though. Let's see your feedback.

The SAP Library indicates all possible values (it's named ITF format, or SAPScript paragraph format).

Sorry for late reply, but you are right. This solved my problem. Thank you

raymond_giuseppi
Active Contributor