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
561

hi all,

I have a problem with te BAPI_PO_Change. I was trying modified the purchaseOrder but the bapi isn't updating the data. The message is " data haven´t been updated" . I am trying modify next data.

Payment Terms

Payment in days %

Payment in days %

Payment in days net

thanks!!!

Code,

t_bapi_poheader-pmnttrms = str_2000-zterm.

t_bapi_poheader-dscnt1_to = str_2000-zbd1t.

t_bapi_poheader-dscnt2_to = str_2000-zbd2t.

t_bapi_poheader-dscnt3_to = str_2000-zbd3t.

t_bapi_poheader-dsct_pct1 = str_2000-zbd1p.

t_bapi_poheader-dsct_pct2 = str_2000-zbd2p.

MODIFY t_bapi_poheader.

t_bapi_poheaderx-po_number = 'X'.

t_bapi_poheaderx-pmnttrms = 'X'.

t_bapi_poheaderx-dscnt1_to = 'X'.

t_bapi_poheaderx-dscnt2_to = 'X'.

t_bapi_poheaderx-dscnt3_to = 'X'.

t_bapi_poheaderx-dsct_pct1 = 'X'.

t_bapi_poheaderx-dsct_pct2 = 'X'.

APPEND t_bapi_poheaderx.

ENDLOOP.

CALL FUNCTION 'BAPI_PO_CHANGE'

EXPORTING

purchaseorder = str_1000-ebeln

poheader = t_bapi_poheader

poheaderx = t_bapi_poheaderx

TABLES

return = t_return.

somebody could tell me how to modify those conditions? please!!!

regards.

marisol.

HI,

Use bapi_transaction_commit after the bapi call.

thanks

mahesh

3 REPLIES 3
Read only

Former Member
0 Likes
512

HI,

Use bapi_transaction_commit after the bapi call.

thanks

mahesh

Read only

0 Likes
512

i am using COMMIT WORK AND WAIT but the data isn´t modified.

Read only

Former Member
0 Likes
512

Is that the only message you see in RETURN? Also you are setting "t_bapi_poheaderx-po_number = 'X'." but you not actually passing the value to t_bapi_poheader-po_number.

Also make sure that "str_1000-ebeln" is in internal format (with leading zeros) before you call the BAPI and fill the tables.