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

Update versions using bapi_po_change

Former Member
0 Likes
1,650

Hi All,

I want to update versions at the PO Header level using bapi_po_change. I am passing data to the structure VERSIONS at the header level but its not getting updated.

wa_versions-post_date = sy-datum.

wa_versions-completed = 'X'.

wa_versions-description = 'Testing'.

wa_versions-reason = '0001'.

wa_versions-req_by = 'User'.

CALL FUNCTION 'BAPI_PO_CHANGE'

EXPORTING

purchaseorder = lv_vebln

versions = ls_versions

IMPORTING

expheader = wa_header

exppoexpimpheader = wa_export

TABLES

return = it_preturn

poitem = it_pitem

poitemx = it_pitemx

poaccount = it_paccount

poaccountx = it_paccountx

polimits = it_plimits

poservices = it_pservice

posrvaccessvalues = it_psrvalue.

Am i missing any thing..please help ..

Regards,

Karthick.

4 REPLIES 4
Read only

Former Member
0 Likes
1,175

Hi Karthik,

CALL FUNCTION 'BAPI_PO_CHANGE'

EXPORTING

purchaseorder = lv_vebln

versions = ls_versions----


>have you passed your workarea versions to ls_versions.

IMPORTING

expheader = wa_header

exppoexpimpheader = wa_export

TABLES

return = it_preturn

poitem = it_pitem

poitemx = it_pitemx

poaccount = it_paccount

poaccountx = it_paccountx

polimits = it_plimits

poservices = it_pservice

posrvaccessvalues = it_psrvalue.

Read only

0 Likes
1,175

yea i have passed..even thn its nt working..

Read only

0 Likes
1,175

hi,

i think you need to do a commit work after the BAPI call

call function BAPI_TRANSACTION_COMMIT

Regards,

Himanshu

Read only

0 Likes
1,175

i am doing commit..