SAP Function Modules

OIJ_EL_DOCG_REVERSE_STO SAP Function module - Reverse Stock Transfer Order (STO)







OIJ_EL_DOCG_REVERSE_STO is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name OIJ_EL_DOCG_REVERSE_STO into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: OIJ_EL_DOCG
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM OIJ_EL_DOCG_REVERSE_STO - OIJ EL DOCG REVERSE STO





CALL FUNCTION 'OIJ_EL_DOCG_REVERSE_STO' "Reverse Stock Transfer Order (STO)
  EXPORTING
    i_ticket_header =           " oij_el_ticket_h  Universal ticket table
    i_ticket_item =             " oij_el_ticket_i  Universal ticket item table
    i_oijnomh =                 " oijnomh       OIL-TSW: Nomination header table
    i_oijnomi =                 " oijnomi       OIL-TSW: Nomination item
    i_oijimport =               " roij_el_import  TSW: Parameter imported to CIP functions
    i_oib_a04 =                 " oib_a04       Default values for quantity conversion
  TABLES
    t_err_log =                 " oij_el_error_log_str  OIL-TSW: Error log for ticketing process
    t_auom =                    " oij_el_ticket_uom_str  Universal ticket additional units of measure structure
    t_qci_result =              " oij_el_qci_result  TSW: additional units of measure calculated by QCI
    t_reversal_docs =           " roijrevdoc    OIL-TSW: Structure for reversal tickets
    t_tkt_i_o2 =                " oij_el_tkt_i_o2  Appendix: TSW Ticket item - Additional Quantities
* CHANGING
*   ct_ticket_header_evt =      " oijte_t       Ticket Events Table Type
*   ct_ticket_header_evt_txt =   " oij_txt      TSW: table type to roij_txt
*   ct_ticket_item_evt =        " oijte_t       Ticket Events Table Type
*   ct_ticket_item_evt_txt =    " oij_txt       TSW: table type to roij_txt
*   ct_ticket_header_evt_pv =   " oijte_t       Ticket Events Table Type
*   ct_ticket_header_evt_txt_pv =   " oij_txt   TSW: table type to roij_txt
*   ct_ticket_item_evt_pv =     " oijte_t       Ticket Events Table Type
*   ct_ticket_item_evt_txt_pv =   " oij_txt     TSW: table type to roij_txt
  EXCEPTIONS
    NO_DOCUMENT_GENERATED = 1   "
    .  "  OIJ_EL_DOCG_REVERSE_STO

ABAP code example for Function Module OIJ_EL_DOCG_REVERSE_STO





The ABAP code below is a full code listing to execute function module OIJ_EL_DOCG_REVERSE_STO including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
it_t_err_log  TYPE STANDARD TABLE OF OIJ_EL_ERROR_LOG_STR,"TABLES PARAM
wa_t_err_log  LIKE LINE OF it_t_err_log ,
it_t_auom  TYPE STANDARD TABLE OF OIJ_EL_TICKET_UOM_STR,"TABLES PARAM
wa_t_auom  LIKE LINE OF it_t_auom ,
it_t_qci_result  TYPE STANDARD TABLE OF OIJ_EL_QCI_RESULT,"TABLES PARAM
wa_t_qci_result  LIKE LINE OF it_t_qci_result ,
it_t_reversal_docs  TYPE STANDARD TABLE OF ROIJREVDOC,"TABLES PARAM
wa_t_reversal_docs  LIKE LINE OF it_t_reversal_docs ,
it_t_tkt_i_o2  TYPE STANDARD TABLE OF OIJ_EL_TKT_I_O2,"TABLES PARAM
wa_t_tkt_i_o2  LIKE LINE OF it_t_tkt_i_o2 .

DATA(ld_ct_ticket_header_evt) = 'Check type of data required'.
DATA(ld_ct_ticket_header_evt_txt) = 'Check type of data required'.
DATA(ld_ct_ticket_item_evt) = 'Check type of data required'.
DATA(ld_ct_ticket_item_evt_txt) = 'Check type of data required'.
DATA(ld_ct_ticket_header_evt_pv) = 'Check type of data required'.
DATA(ld_ct_ticket_header_evt_txt_pv) = 'Check type of data required'.
DATA(ld_ct_ticket_item_evt_pv) = 'Check type of data required'.
DATA(ld_ct_ticket_item_evt_txt_pv) = 'Check type of data required'.
DATA(ld_i_ticket_header) = 'Check type of data required'.
DATA(ld_i_ticket_item) = 'Check type of data required'.
DATA(ld_i_oijnomh) = 'Check type of data required'.
DATA(ld_i_oijnomi) = 'Check type of data required'.
DATA(ld_i_oijimport) = 'Check type of data required'.
DATA(ld_i_oib_a04) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_err_log to it_t_err_log.

"populate fields of struture and append to itab
append wa_t_auom to it_t_auom.

"populate fields of struture and append to itab
append wa_t_qci_result to it_t_qci_result.

"populate fields of struture and append to itab
append wa_t_reversal_docs to it_t_reversal_docs.

"populate fields of struture and append to itab
append wa_t_tkt_i_o2 to it_t_tkt_i_o2. . CALL FUNCTION 'OIJ_EL_DOCG_REVERSE_STO' EXPORTING i_ticket_header = ld_i_ticket_header i_ticket_item = ld_i_ticket_item i_oijnomh = ld_i_oijnomh i_oijnomi = ld_i_oijnomi i_oijimport = ld_i_oijimport i_oib_a04 = ld_i_oib_a04 TABLES t_err_log = it_t_err_log t_auom = it_t_auom t_qci_result = it_t_qci_result t_reversal_docs = it_t_reversal_docs t_tkt_i_o2 = it_t_tkt_i_o2 * CHANGING * ct_ticket_header_evt = ld_ct_ticket_header_evt * ct_ticket_header_evt_txt = ld_ct_ticket_header_evt_txt * ct_ticket_item_evt = ld_ct_ticket_item_evt * ct_ticket_item_evt_txt = ld_ct_ticket_item_evt_txt * ct_ticket_header_evt_pv = ld_ct_ticket_header_evt_pv * ct_ticket_header_evt_txt_pv = ld_ct_ticket_header_evt_txt_pv * ct_ticket_item_evt_pv = ld_ct_ticket_item_evt_pv * ct_ticket_item_evt_txt_pv = ld_ct_ticket_item_evt_txt_pv EXCEPTIONS NO_DOCUMENT_GENERATED = 1 . " OIJ_EL_DOCG_REVERSE_STO
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_ct_ticket_header_evt  TYPE OIJTE_T ,
ld_i_ticket_header  TYPE OIJ_EL_TICKET_H ,
it_t_err_log  TYPE STANDARD TABLE OF OIJ_EL_ERROR_LOG_STR ,
wa_t_err_log  LIKE LINE OF it_t_err_log,
ld_ct_ticket_header_evt_txt  TYPE OIJ_TXT ,
ld_i_ticket_item  TYPE OIJ_EL_TICKET_I ,
it_t_auom  TYPE STANDARD TABLE OF OIJ_EL_TICKET_UOM_STR ,
wa_t_auom  LIKE LINE OF it_t_auom,
ld_ct_ticket_item_evt  TYPE OIJTE_T ,
ld_i_oijnomh  TYPE OIJNOMH ,
it_t_qci_result  TYPE STANDARD TABLE OF OIJ_EL_QCI_RESULT ,
wa_t_qci_result  LIKE LINE OF it_t_qci_result,
ld_ct_ticket_item_evt_txt  TYPE OIJ_TXT ,
ld_i_oijnomi  TYPE OIJNOMI ,
it_t_reversal_docs  TYPE STANDARD TABLE OF ROIJREVDOC ,
wa_t_reversal_docs  LIKE LINE OF it_t_reversal_docs,
ld_ct_ticket_header_evt_pv  TYPE OIJTE_T ,
ld_i_oijimport  TYPE ROIJ_EL_IMPORT ,
it_t_tkt_i_o2  TYPE STANDARD TABLE OF OIJ_EL_TKT_I_O2 ,
wa_t_tkt_i_o2  LIKE LINE OF it_t_tkt_i_o2,
ld_ct_ticket_header_evt_txt_pv  TYPE OIJ_TXT ,
ld_i_oib_a04  TYPE OIB_A04 ,
ld_ct_ticket_item_evt_pv  TYPE OIJTE_T ,
ld_ct_ticket_item_evt_txt_pv  TYPE OIJ_TXT .

ld_ct_ticket_header_evt = 'Check type of data required'.
ld_i_ticket_header = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_err_log to it_t_err_log.
ld_ct_ticket_header_evt_txt = 'Check type of data required'.
ld_i_ticket_item = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_auom to it_t_auom.
ld_ct_ticket_item_evt = 'Check type of data required'.
ld_i_oijnomh = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_qci_result to it_t_qci_result.
ld_ct_ticket_item_evt_txt = 'Check type of data required'.
ld_i_oijnomi = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_reversal_docs to it_t_reversal_docs.
ld_ct_ticket_header_evt_pv = 'Check type of data required'.
ld_i_oijimport = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_tkt_i_o2 to it_t_tkt_i_o2.
ld_ct_ticket_header_evt_txt_pv = 'Check type of data required'.
ld_i_oib_a04 = 'Check type of data required'.
ld_ct_ticket_item_evt_pv = 'Check type of data required'.
ld_ct_ticket_item_evt_txt_pv = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name OIJ_EL_DOCG_REVERSE_STO or its description.