Skip to Content
0
Former Member
Jul 01, 2009 at 12:20 AM

BAPI_PO_CHANGE add service

1115 Views

Hi Gurus

I am having issues with BAPI_PO_CHANGE, I am trying to modify a PO to add a new line service. I applied the SAP note 909768 and the requisites for it, but I am still having problems.

The BAPI through the message that the PO is changed, but if I checked the PO in the transaction ME23N it has not changed at all.

Steps to Reproduce

In the transaction SE37.

Function module: BAPI_PO_CHANGE, press F8.

In the Test data directory choose: Data record number 9 , Date: 30.06.2009, Time: 15:48:36 Short Text: CZ6.

Import Parameters

PURCHASE ORDER: 2000000272

Tables

POITEM - PO_ITEM: 00001

POITEM - PCKG_NO: 0000002845

POITEMX - PO_ITEM: 00001

POITEMX u2013 PO:ITEMX: X

POITEMX - PCKG_NO: X

POSERVICES - PCKG_NO: 0000002845

POSERVICES - LINE_NO: 0000000010

POSERVICES - SUBPCKG_NO: 0000000002

POSERVICES u2013 SERVICE: 106000

POSERVICES u2013 QUANTITY: 10.000

POSERVICES u2013 BASE_UOM: 007

POSERVICES u2013 UOM_ISO: C/U

POSERVICES u2013 PRICE_UNIT: 1

POSERVICES u2013 GR_PRICE: 100.0000

POSERVICES u2013 MATL_GROUP :10902

I execute and in the Table POSERVICES Result does not appear the new line service, but the system message is PO changed (06 023).

I have also tried with BAPI_TRANSACTION_COMMIT but the PO doesn't add the new service.

Can you help me with this issue please or give me an example how to fill the BAPI.

Thanks a lot