SAP Function Modules

OIA_EXG_ASSIGNMENT_USR_EXIT_TD SAP Function module - Exchange assignment for bulk shipment via user exit







OIA_EXG_ASSIGNMENT_USR_EXIT_TD 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 OIA_EXG_ASSIGNMENT_USR_EXIT_TD into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: OIAL
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM OIA_EXG_ASSIGNMENT_USR_EXIT_TD - OIA EXG ASSIGNMENT USR EXIT TD





CALL FUNCTION 'OIA_EXG_ASSIGNMENT_USR_EXIT_TD' "Exchange assignment for bulk shipment via user exit
  EXPORTING
    i_usr_exit =                " oigs-exgass
  TABLES
    i_xoia12 =                  " oia_xoia12
    i_xoia06 =                  " oia06
    i_yoia12 =                  " oia_xoia12
    i_yoia06 =                  " oia06
    i_oia_shdata =              " oia_shdata
*   i_oigsii_j =                " roigsii_j     TD Shipment delivery items
*   i_oigsih_w =                " roigsih_w     TD Shipment reservation headers
    .  "  OIA_EXG_ASSIGNMENT_USR_EXIT_TD

ABAP code example for Function Module OIA_EXG_ASSIGNMENT_USR_EXIT_TD





The ABAP code below is a full code listing to execute function module OIA_EXG_ASSIGNMENT_USR_EXIT_TD 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_i_xoia12  TYPE STANDARD TABLE OF OIA_XOIA12,"TABLES PARAM
wa_i_xoia12  LIKE LINE OF it_i_xoia12 ,
it_i_xoia06  TYPE STANDARD TABLE OF OIA06,"TABLES PARAM
wa_i_xoia06  LIKE LINE OF it_i_xoia06 ,
it_i_yoia12  TYPE STANDARD TABLE OF OIA_XOIA12,"TABLES PARAM
wa_i_yoia12  LIKE LINE OF it_i_yoia12 ,
it_i_yoia06  TYPE STANDARD TABLE OF OIA06,"TABLES PARAM
wa_i_yoia06  LIKE LINE OF it_i_yoia06 ,
it_i_oia_shdata  TYPE STANDARD TABLE OF OIA_SHDATA,"TABLES PARAM
wa_i_oia_shdata  LIKE LINE OF it_i_oia_shdata ,
it_i_oigsii_j  TYPE STANDARD TABLE OF ROIGSII_J,"TABLES PARAM
wa_i_oigsii_j  LIKE LINE OF it_i_oigsii_j ,
it_i_oigsih_w  TYPE STANDARD TABLE OF ROIGSIH_W,"TABLES PARAM
wa_i_oigsih_w  LIKE LINE OF it_i_oigsih_w .


SELECT single EXGASS
FROM OIGS
INTO @DATA(ld_i_usr_exit).


"populate fields of struture and append to itab
append wa_i_xoia12 to it_i_xoia12.

"populate fields of struture and append to itab
append wa_i_xoia06 to it_i_xoia06.

"populate fields of struture and append to itab
append wa_i_yoia12 to it_i_yoia12.

"populate fields of struture and append to itab
append wa_i_yoia06 to it_i_yoia06.

"populate fields of struture and append to itab
append wa_i_oia_shdata to it_i_oia_shdata.

"populate fields of struture and append to itab
append wa_i_oigsii_j to it_i_oigsii_j.

"populate fields of struture and append to itab
append wa_i_oigsih_w to it_i_oigsih_w. . CALL FUNCTION 'OIA_EXG_ASSIGNMENT_USR_EXIT_TD' EXPORTING i_usr_exit = ld_i_usr_exit TABLES i_xoia12 = it_i_xoia12 i_xoia06 = it_i_xoia06 i_yoia12 = it_i_yoia12 i_yoia06 = it_i_yoia06 i_oia_shdata = it_i_oia_shdata * i_oigsii_j = it_i_oigsii_j * i_oigsih_w = it_i_oigsih_w . " OIA_EXG_ASSIGNMENT_USR_EXIT_TD
IF SY-SUBRC EQ 0. "All OK 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_i_usr_exit  TYPE OIGS-EXGASS ,
it_i_xoia12  TYPE STANDARD TABLE OF OIA_XOIA12 ,
wa_i_xoia12  LIKE LINE OF it_i_xoia12,
it_i_xoia06  TYPE STANDARD TABLE OF OIA06 ,
wa_i_xoia06  LIKE LINE OF it_i_xoia06,
it_i_yoia12  TYPE STANDARD TABLE OF OIA_XOIA12 ,
wa_i_yoia12  LIKE LINE OF it_i_yoia12,
it_i_yoia06  TYPE STANDARD TABLE OF OIA06 ,
wa_i_yoia06  LIKE LINE OF it_i_yoia06,
it_i_oia_shdata  TYPE STANDARD TABLE OF OIA_SHDATA ,
wa_i_oia_shdata  LIKE LINE OF it_i_oia_shdata,
it_i_oigsii_j  TYPE STANDARD TABLE OF ROIGSII_J ,
wa_i_oigsii_j  LIKE LINE OF it_i_oigsii_j,
it_i_oigsih_w  TYPE STANDARD TABLE OF ROIGSIH_W ,
wa_i_oigsih_w  LIKE LINE OF it_i_oigsih_w.


SELECT single EXGASS
FROM OIGS
INTO ld_i_usr_exit.


"populate fields of struture and append to itab
append wa_i_xoia12 to it_i_xoia12.

"populate fields of struture and append to itab
append wa_i_xoia06 to it_i_xoia06.

"populate fields of struture and append to itab
append wa_i_yoia12 to it_i_yoia12.

"populate fields of struture and append to itab
append wa_i_yoia06 to it_i_yoia06.

"populate fields of struture and append to itab
append wa_i_oia_shdata to it_i_oia_shdata.

"populate fields of struture and append to itab
append wa_i_oigsii_j to it_i_oigsii_j.

"populate fields of struture and append to itab
append wa_i_oigsih_w to it_i_oigsih_w.

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 OIA_EXG_ASSIGNMENT_USR_EXIT_TD or its description.