07-08-2011 8:24 AM
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
07-08-2011 8:42 AM
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
07-08-2011 8:54 AM
07-08-2011 9:13 AM
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
07-08-2011 9:22 AM
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
07-20-2011 5:06 AM