Application Development and Automation 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: 
Read only

SREL_GET_NEXT_RELATIONS parameters

Former Member
0 Likes
1,639

Hi. I found a tutorial to IDOC modules. But I ca't discover which type are parameters.

REFRESH: t_roles.
* VBRK = Invoice
* LIKP = Delivery
* BUS2032 = Sales Order
* BUS2035 = Scheduling Agreement
* objkey - Application document number appended with line if applicable
t_object-objkey = itab_data-objky.
t_object-objtype = 'VBRK'.
CALL FUNCTION 'SREL_GET_NEXT_RELATIONS'
                 EXPORTING
                      object         = t_object <= TYPE???
                 TABLES
                      roles          = t_roles  <= TYPE???
                 EXCEPTIONS
                      internal_error = 1
                      no_logsys      = 2
                      OTHERS         = 3.
LOOP AT t_roles WHERE objtype = 'IDOC'.
  t_idoc_docnum = t_roles-objkey.
ENDLOOP.


*** Read the IDoc detail from the database
  CALL FUNCTION 'IDOC_READ_COMPLETELY'
       EXPORTING
            document_number         = p_docnum
       IMPORTING
            idoc_control            = s_edidc   <= TYPE??
       TABLES
            int_edidd               = itab_edidd <= TYPE?
       EXCEPTIONS
            document_not_exist      = 1
            document_number_invalid = 2
            OTHERS                  = 3.

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
985

Hi,

Use SE37--> and enter the function module name --> use where used list. you can find what kind of types has been used for these function modules

Hi. I found a tutorial to IDOC modules. But I ca't discover which type are parameters.

REFRESH: t_roles.
* VBRK = Invoice
* LIKP = Delivery
* BUS2032 = Sales Order
* BUS2035 = Scheduling Agreement
* objkey - Application document number appended with line if applicable
t_object-objkey = itab_data-objky.
t_object-objtype = 'VBRK'.
CALL FUNCTION 'SREL_GET_NEXT_RELATIONS'
                 EXPORTING
                      object         = t_object <= TYPE???
                 TABLES
                      roles          = t_roles  <= TYPE???
                 EXCEPTIONS
                      internal_error = 1
                      no_logsys      = 2
                      OTHERS         = 3.
LOOP AT t_roles WHERE objtype = 'IDOC'.
  t_idoc_docnum = t_roles-objkey.
ENDLOOP.


*** Read the IDoc detail from the database
  CALL FUNCTION 'IDOC_READ_COMPLETELY'
       EXPORTING
            document_number         = p_docnum
       IMPORTING
            idoc_control            = s_edidc   <= TYPE??
       TABLES
            int_edidd               = itab_edidd <= TYPE?
       EXCEPTIONS
            document_not_exist      = 1
            document_number_invalid = 2
            OTHERS                  = 3.

1 REPLY 1
Read only

former_member194669
Active Contributor
0 Likes
986

Hi,

Use SE37--> and enter the function module name --> use where used list. you can find what kind of types has been used for these function modules