09-03-2009 7:59 AM
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.
09-03-2009 8:06 AM
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.
09-03-2009 8:27 AM
09-03-2009 8:38 AM
hi,
i think you need to do a commit work after the BAPI call
call function BAPI_TRANSACTION_COMMIT
Regards,
Himanshu
09-03-2009 9:00 AM