‎2007 Jun 15 4:36 PM
Hello Experts,
I have developed a custom built function module , Similar to IDOC_INPUT_DELVRY , these function module will do delivery creation,
delivery change and subsequent PGI , there can be several reason for PGI couldn't have happen or delivery change couldn't have happen , Standard function module
allow you to reprocess the IDOC , but if they reprocess the IDOC which is asscoiated to my custom built function module then it will impact the entire delivery . How standard function module take care of reprocessing
Sanju
‎2007 Jun 15 4:40 PM
‎2007 Jun 15 4:42 PM
Use BD87 to reprocess the IDoc.
WE19 To resend the Idoc with new idoc number...
‎2007 Jun 15 4:42 PM
Hi,
You can use standard program RBDINPUT to reprocess the inbound IDoc.
Regards,
Ferry Lianto
‎2007 Jun 15 4:52 PM
I think i didn't explain my question properly
1) You process the IDOC , Delivery got created and PGI failed , so if you are
using standard function module like 'IDOC_INPUT_DELVRY' then you can process the IDOC , how standard function module make sure that once you
reprocess the IDOC , code written for delivery creation should not be executed
as delivery has already been created and just code to do PGI should happen
Sanju
‎2007 Jun 16 12:31 AM
Hi sanju,
the incoming IDoc will have a delivery (or order) number from the originating system. This should be stored in a reference field of the dlivery created.
If an IDoc is being procesessed, the first thing to do is to find out if a delivery for this reference already exists. If so, the standard would initiate a delivery change, comparing the incoming with existing data. If everything is fine now, the Good Issue may proceed.
Regards,
Clemens
‎2007 Jun 16 1:26 AM
In standard function module, the commit will not happen until the IDoc status is ok (outside the function module). So you will have to make sure that you create a error status record in the same way standard function module does to ensure that the entire IDoc is processed or none of it.
‎2007 Jun 16 1:26 AM
In standard function module, the commit will not happen until the IDoc status is ok (outside the function module). So you will have to make sure that you create a error status record in the same way standard function module does to ensure that the entire IDoc is processed or none of it.
‎2007 Jun 15 11:53 PM
Hi,
If the Idocs failes with status 51 , we can use programe RBDMANI2 to reprocessing the Idoc.
Regards,
Chandra