Skip to Content
author's profile photo
Former Member

BAPI_PO_CHANGE add service

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    author's profile photo
    Former Member
    Posted on Jul 01, 2009 at 02:14 PM

    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

    Add comment
    10|10000 characters needed characters exceeded