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: 

Enhance Bapi BAPI_GOODSMVT_CREATE

Former Member
0 Kudos

Hi ,

I have a requierement to Enhance the standard function module IDOC_INPUT_MBGMCR to perform update to Ztable and to Perform validation to prevent duplicated record (this will handle in PI or need validation to be built within the function module) .

I know the process how to enhance badi steps but i am not getting where should i put the code for update the Ztable.

BAPI (Function module u2019BAPI_IDOC_INPUT1) which call subsequent FMs (u2018IDOC_INPUT_MBGMCRu2019 > u2018BAPI_GOODSMVT_CREATEu2019), further investigation is required if above standard function module BAPI_GOODSMVT_CREATE can be used and facilitate update the Z-table where BAPI_GOODSMVT_CREATE is successfull.

Then at which point i have to update the table.

Moderator message: please choose more descriptive subject lines for your posts.

Edited by: Thomas Zloch on Jul 8, 2011 9:31 AM

Edited by: shilpi agarwal on Jul 8, 2011 9:37 AM

5 REPLIES 5

Former Member
0 Kudos

Hi Shilpi,

If you are on ECC 6.0, then you can use the implicit enhancement that is available at the end of the FM - IDOC_INPUT_MBGMCR to update the Z Table, based on the result of BAPI_GOODSMVT_CREATE.

Regards,

Chen

0 Kudos

Hi,

how we know it is successfully posted.

0 Kudos

Shilpi,

You can use either the RETURN tables parameter or better use IDOC_STATUS-STATUS this will be set to "51" if there was an error or set to "53" if the BAPI was successful.

Regards,

Chen

Former Member
0 Kudos

I have replied to your question in [Enhance BADI|;. Have you tried to use the enhancement section/points available in BAPI_GOODSMVT_CREATE (after the subroutine call to MB_POST_GOODS_MOVEMENT). Read the records in RETURN table after the sub-routine call to check whether the document is successfully posted.

Regards, Vinod

Former Member
0 Kudos

done