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: 
Read only

BAPI_PO_CHANGE

Former Member
0 Likes
1,134

I want to update the PO ITEM TEXT Fields Data ,Fields given below

PO Item Details --> Texts

Item Text

Info Record PO Text

Material PO text

Delivery text

Info record note

Customer freight acct # note

i want BAPI code for updating above fields data

but for above fields we don't have fields in BAPI_PO_CHANGE ,

for those 6 fields we have onlt one field TLINE , how i can update those field

plz help me

Moderator message : Not enough re-search before posting, discussion locked.

Message was edited by: Vinod Kumar

I want to update the PO ITEM TEXT Fields Data ,Fields given below

PO Item Details --> Texts

Item Text

Info Record PO Text

Material PO text

Delivery text

Info record note

Customer freight acct # note

i want BAPI code for updating above fields data

but for above fields we don't have fields in BAPI_PO_CHANGE ,

for those 6 fields we have onlt one field TLINE , how i can update those field

plz help me

Moderator message : Not enough re-search before posting, discussion locked.

Message was edited by: Vinod Kumar

4 REPLIES 4
Read only

Former Member
0 Likes
1,031

In the BAPI_PO_CHANGE you have TABLES param   potextitem   to change texts .

Priya

Read only

0 Likes
1,031

hi priya ,

i passed the POTEXTITEM data also but it is updating the data base , ple see above code once

Read only

0 Likes
1,031

Your potextitem should be similar to that, When I tried from se37 it worked.

Priya

Read only

Former Member
0 Likes
1,031

Hi Vishnu,

Below sample code may help you!!!

      ls_potextitem-po_item   = lv_index *10. ---> Line item number (ex: 00010)

     ls_potextitem-TEXT_ID  = 'F04'.

    lv_po_item_text = 'Delivery Text'.

     ls_potextitem-text_form = '*'.

     ls_potextitem-TEXT_LINE  =     lv_po_item_text.

     APPEND ls_potextitem to lt_potextitem. 

write the above code for all other texts and append them to LT_POTEXTITEM. and pass the LT_POTEXTITEM to BAPI_PO_CHANGE. you will be able to save the text.

Thank You.

Shyam