Skip to Content
0
Former Member
Jul 31, 2006 at 12:48 PM

Any BADI with IDOC(Vendor mst) control parameters????

32 Views

Hi All,

I wish to know if there is any BADi called during IDOC processing(OILCRE04-Vendor Master) and has the IDOC control parameters in its methods.

[b<u>]Scenario</u></b>

I use IDOC OILCRE04(vendor Msster).

It has a Z-segment for updating a Z-table.

I use BADi 'VENDOR_ADD_DATA_BI' which is called when above IDOC type is triggered for processing the Z segment.

Since Data in Z-Table has to be in sync with Vendor Master data, I want to stop IDOC processing if Z Table data is not processed .

So if the z-table update fails,I plan to change the IDOC status to '51' so that it does not proceed further.

I plan to use FM 'IDOC_STATUS_WRITE_TO_DATABASE' to change the IDOC status, but I need the IDOC NUMBER before that.

To get the IDOC number, I am looking for a BADi which passes the IDOC control parameters.

Appreciate, If you gurus could let me know of the BADi or any alternate way of stopping IDOC processing when my Z-Table update fails.

Thanks and Regards

RK<u></u>