Application Development 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: 

Update versions using bapi_po_change

Former Member
0 Kudos

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

former_member585865
Contributor
0 Kudos

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.

0 Kudos

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

0 Kudos

hi,

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

call function BAPI_TRANSACTION_COMMIT

Regards,

Himanshu

0 Kudos

i am doing commit..