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: 

Generating Document Number for IDOC tracking

Former Member
0 Kudos
1,212

Hello Experts,

I have a requirement wherein an Inbound IDOC creates a customer master record in ECC, corresponding to that customer ,we need to create a vendor in the system ( through another IDOC , generated programmatically ).

For Vendor creation ,I coded in the exit :EXIT_SAPLVV02_001 of Include ZXVSVU02 which is called after customer is successfully posted.

After filling in the control and the data record , I called the FM: IDOC_INPUT_CREDITOR to create the vendor.

The problem is , I am not able to generate the DOCNUM for Vendor IDOC, so the Vendor IDOC cannot be tracked, is there a way of

generating DOCNUM for internal IDOCS so that we can track the IDOC generated internally ?

1 ACCEPTED SOLUTION

karthikeyan_p3
Contributor
0 Kudos
319

Hi Bharathvaj,

IDOC_INPUT_* function module will not generate IDOC numbers. It just processes using the data records which you have passed to the interface parameters.

If you could debug WE19, it first generates the IDOC using the FM IDOC_INBOUND_WRITE_TO_DB and then process it.

If you need IDOC number to be generated, then you could use FM IDOC_INBOUND_WRITE_TO_DB and then process the created IDOC using IDOC_START_INBOUND. Refer the sample report RFEBKAT3.

Thanks,

Karthikeyan

4 REPLIES 4

former_member194152
Contributor
0 Kudos
319

Hi,

In a similar kind of requirement, I have to create customer master record in case one idoc processed successfully, but for tracking purpose I used control data field EDIDC-SNDLAD, and this will keep sender information and I am sending idoc intrnally to the system, so while preparing idoc data I filled this field with uniquely identifiable value and later tracked from EDIDC table after querying with proper search string.

Hope this will help.

Thanks and Regards,

Gagan Choudha

0 Kudos
319

Thanks Gagan,

Your input was valuable

karthikeyan_p3
Contributor
0 Kudos
320

Hi Bharathvaj,

IDOC_INPUT_* function module will not generate IDOC numbers. It just processes using the data records which you have passed to the interface parameters.

If you could debug WE19, it first generates the IDOC using the FM IDOC_INBOUND_WRITE_TO_DB and then process it.

If you need IDOC number to be generated, then you could use FM IDOC_INBOUND_WRITE_TO_DB and then process the created IDOC using IDOC_START_INBOUND. Refer the sample report RFEBKAT3.

Thanks,

Karthikeyan

0 Kudos
319

Thanks Karthikeyan,

I tested the approach and it works fine