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: 

Upload Basic Data Text for Materials

gaurav_nakhare
Explorer
0 Kudos

Hi,

I'm trying to upload Basic Data Text for Materials using FM SAVE_TEXT. Everything works fine except long text. It is not accepting more than 132 charactors. What logic should I use so that it will append the remaining text for the same material on the other line?

Please help !!!

Thanks.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello

Split text ( FM RKD_WORD_WRAP or others ) and append lines to structure LINES.

5 REPLIES 5

madhu_vadlamani
Active Contributor
0 Kudos

Dear Gaurav,

Hi .

Try to use the Fm CREATE_TEXT . I think this will fulfill your requirement .

Regards,

Madhu.

SuhaSaha
Advisor
Advisor
0 Kudos

If your text is longer than 132 characters, you have to wrap the text into multiple lines (FMs you should be using are FORMAT_TEXTLINES & RKD_WORD_WRAP).

Search in SDN for details on these FMs.

BR,

Suhas

PS: You can also explore uploading the material long texts using BAPI_MATERIAL_SAVEDATA.

0 Kudos

Hi Suhas,

I tried both things FM & BAPI. Both works fine.

Thanks.

Gaurav

Former Member
0 Kudos

Hello

Split text ( FM RKD_WORD_WRAP or others ) and append lines to structure LINES.

0 Kudos

Hi Dzed,

Used FM RKD_WORD_WRAP and its working now.

Thanks,

Gaurav