2007 Dec 03 2:03 PM
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.
2007 Dec 03 2:14 PM
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
a®
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.
2007 Dec 03 2:14 PM
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
a®
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |