Skip to Content

Purpose


The document explains how to load notes in to business partner. The loading is done using a report program. Also there was some requirement to do string operations with the notes from the source system.

Capture.PNG

Capture.PNG

Steps


  1. The source notepad file should contain the Business partner number and note that is to be added.
  2. I am using  FM gui_upload for that.

     Capture.PNG

3.From internal table , now we have the BP number and long text  that is to be loaded. Fill the tables lt_lines as shown below.

          Capture.PNG

4.Or you can give lwa_lines-tdformat = ” for better result.

5.To run the program ib background , we need to use open dataset.

6.We can use the function ‘CONV_TEXTSTRING_TO_ITF’ for formatting the notes.

(The standard field tdline will truncate the note on 123, if we do not use conv_textstring_to_itf )

     Capture.PNG

also,

     Capture.PNG

7.Call function Save_text , for populating the text.

     Capture.PNG

8.Call the BAPI  for saving the text. (Even savemode_direct parameter in save_text fm can fulfill the rquirement)

          Capture.PNG

To report this post you need to login first.

5 Comments

You must be Logged on to comment or reply to a post.

Leave a Reply