cancel
Showing results for 
Search instead for 
Did you mean: 

Update internal note text field through a program

Former Member
0 Kudos

hi

we are on srm version 4 and in ecs scenarios

we are trying to upload SC and Purchase Orders and we want to update the vendor text field and the internal text field directly through program .

Do we have a function module to write the internal notes programmatically

thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Which is the FM you are using to create the SC?

BR,

Disha.

Former Member
0 Kudos

Hi

can anyone reply this one.

Former Member
0 Kudos

Please use the below FMs:

Shopping Cart:

BBP_PD_SC_CREATE

BBP_PD_SC_UPDATE

PO:

BBP_PD_PO_CREATE

BBP_PD_PO_UPDATE

The long text needs to be populated into the table I_LONGTEXT.

Sample Code:


  CONSTANTS: lc_tdid     TYPE tdid     VALUE 'CHT1',
             lc_tdformat TYPE tdformat VALUE '/'.

  DATA: ls_longtext TYPE bbp_pds_longtext.

  ls_longtext-guid     = p_ls_item-guid.
  ls_longtext-tdid     = lc_tdid.
  ls_longtext-tdspras  = sy-langu.
  ls_longtext-counter  = 1.
  ls_longtext-tdformat = lc_tdformat.
  ls_longtext-tdline   = gs_scp_sc_data-job_address.
  APPEND ls_longtext TO gt_longtext.

.
.
.
.

* Function call to create a Shop Cart
  CALL FUNCTION 'BBP_PD_SC_CREATE'
    EXPORTING
      i_park     = gc_yes
      i_header   = gs_header
    IMPORTING
      e_header   = ls_header
    TABLES
      i_item     = gt_item
      i_account  = gt_account
      i_partner  = gt_partner
      i_longtext = gt_longtext
      i_orgdata  = gt_orgdata
      i_tax      = gt_tax_code
      e_messages = lt_messages.

Regards

Kathirvel

Former Member
0 Kudos

Hi

We have 2 text ids vendor text and internal note text

how do we find out the text ids and in which tables this are stored.

thanks

Former Member
0 Kudos

You can find them all here in SPRO,

Path:

SAP Implementation Guide ->Supplier Relationship Management ->Cross-Application Basic Settings -> Text Schema -> Define Text Schema

Select PO or SC and double "Texts for schema". You will get them.

Table for all text id is TTXID.

Regards

Kathirvel

Former Member
0 Kudos

Hi,

You can first use FM "READ_TEXT" to read the value of the texts and then the UPDATE FM's mentioned by Karthivel.

BR,

Disha.

Do reward points for useful answers.

Former Member
0 Kudos

Hi,

You can also see the diff text ids defined for SC with their descriptions in the table BBPC_TEXT_ID_T.

Just enter 'SC' in the selection criteria for the field "TEXT_SCHEME_ID" and you will get a list of Text ID's defined for SC.

BR,

Disha.