cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_PO_CHANGE add service

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

please check the note 420332.

If you want to add a new service line please use a dummy packno in the structures POITEM ,POSERVICES, POSRVACCESSVALUES. A dummy packno means that it does not have any entries in the tables ESLL and ESLH yet. The best solution would be to choose a packno which is a very low number which is not occupied in esll and eslh.

If you add a new service line please fill in first the father line into POSERVICES and add also the service line (2 entries), like it was described in note 420332, part 3.7

Regards,

Edit

Former Member
0 Kudos

Thanks a lot Edit !

We solve the problem

Thanks a lot! !

Answers (0)