Skip to Content
Author's profile photo Former Member

Adding notes, long texts to the Business partner UI

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

Assigned tags

      5 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo shiva sahu
      shiva sahu

      Thanks for Sharing valuable document.

      Keep up posting 🙂

      Regards,

      Shiva Sahu

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      Thanks Shiva

      Author's profile photo Former Member
      Former Member

      Hi Nivedhitha,

      Good Document..

      Thanks,

      Gurunath

      Author's profile photo Former Member
      Former Member

      thanks nivendhi

      Author's profile photo Former Member
      Former Member

      hi Nivedhitha,

      Nivedhitha,

      i dont have words to say how good it is