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: 

Problem in saving Text in update mode. Text not getting saved in multiple lines.

gopalkrishna_baliga
Participant
0 Kudos
267

Hi Experts,

   I have item texts for my Delivery Note.

   I am updating a item text and for this I use below method.

   IF i_lines IS NOT INITIAL.

             CALL METHOD me->save_text

               EXPORTING

                 header = x_theader

                 lines  = i_lines.

                 update = 'X'.

   ENDIF.

   I_lines have 2 entries

   Row  tdformat    tdline

   1        *              Unit_Qty 10

    2       *              Total_Qty 20

   When I see the updated text in my Delivery note, it is saved as a single line.

   Unit_Qty 10 Total_Qty 20

   I am expecting  it to be saved in 2 lines

   Unit_Qty 10

   Total_Qty 20

   What am I doing wrong here?

   How to save the same in 2 different lines?

Please help !

Thanks

Gopal

1 REPLY 1

Former Member
0 Kudos
106

Hi GopalKrishna,

Minor adjustment in your code , instead of "*" in tdformat use "/" .

So your internal table will be :

Row  tdformat    tdline

   1        /              Unit_Qty 10

    2       /              Total_Qty 20

Tested with dummy program it's working.Hope will help you out.Share points 🙂

Regards,

Pranav