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: 

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

Former Member
0 Kudos

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>

2 REPLIES 2

Former Member
0 Kudos

Just to add...

Is there any other way of stopping the IDOC processing when a customer-defined action/requirement is not met in the idoc processing.

As all I need here is to FAIL the IDOC if a custome table is not updated.

Cheers

RK

0 Kudos

Any Idea Gurus