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: 

BAPI enhancement

Former Member
0 Kudos

Hello Expertise,

I need to write some code in BAPI_GOODSMVT_CREATE.

Actually I want to update CDPOS/CDHDR in this BAPI.

Can anyone please guide me how I can add this code.

I have code ready,but I don't know where and how I can add it.

Thank you very much

Regards

BIswarup

4 REPLIES 4

brad_bohn
Active Contributor
0 Kudos

Sorry, but your requirement does not make sense - what fields do you want to track? You should not update CDHDR/CDPOS directly. These table updates are controlled by generated functions from change document objects (txn SCDO).

Former Member
0 Kudos

There is no combination of EINKBELEG and EKBE in the table TCDOB, so I need to write code.

brad_bohn
Active Contributor
0 Kudos

There is no combination of EINKBELEG and EKBE in the table TCDOB, so I need to write code.

It still does not make sense - EKBE tracks invoice and goods receipts against PO's but these do not directly affect the PO object itself other than for 'completion' purposes.. The PO history display should be enough within the PO itself. What changes are you trying to display - changes for the respective documents?

Former Member
0 Kudos

Hi

BAPI_GOODSMVT_CREATE is for post goods movements on following transactions:

MB01, MB31, MB1A, MB1B, MB1C, MB11, MB04.

Tables CDHDR, CDPOS are for changed documents rejestration ...

Daniel.