Friday, February 20, 2009

Finding the Outbound IDOC number for an delivery

How to find an IDOC number for an delivery document

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.

2 comments:

  1. USE FM SREL_GET_NEXT_RELATIONS
    Object Type LIKP
    Object Key Delivery Number

    ReplyDelete
  2. 2009 post still works in 2017. Thank you!

    ReplyDelete