This blogs show you how to find the outbound IDOC number which is created from a delivery document.
In order to achieve this we have to use two tables SRRELROLES and IDOCREL.
- Enter the delivery number in the objectkey OBJKEY field and 'LIKP' in the objecttype OBJTYP field of the table SRRELROLES. Get its related SRRELROLES-ROLEID value.
- Now pass the value of SRRELROLES-ROLEID to the field ROLE_A of the table IDOCREL and get the IDOCREL-ROLE_B value.
- Go back to SRRELROLES table and enter the IDOCREL-ROLE_B value in the SRRELROLES-ROLEID. The object key OBJKEY value of this line is nothing but the IDOC number of the delivery document.
USE FM SREL_GET_NEXT_RELATIONS
ReplyDeleteObject Type LIKP
Object Key Delivery Number
2009 post still works in 2017. Thank you!
ReplyDelete