2015 Dec 22 8:32 PM
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 ?
2015 Dec 23 5:29 AM
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
2015 Dec 22 9:42 PM
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
2015 Dec 23 12:40 PM
2015 Dec 23 5:29 AM
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
2015 Dec 23 12:38 PM