Application Development and Automation 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: 
Read only

BAPI enhancement

Former Member
0 Likes
624

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
Read only

brad_bohn
Active Contributor
0 Likes
570

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).

Read only

Former Member
0 Likes
570

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

Read only

brad_bohn
Active Contributor
0 Likes
570

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?

Read only

Former Member
0 Likes
570

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.