SAP Function Modules

OIA_EXG_ASSIGNMENT_CHECKS SAP Function module - Check exchange assignment







OIA_EXG_ASSIGNMENT_CHECKS 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_CHECKS 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_CHECKS - OIA EXG ASSIGNMENT CHECKS





CALL FUNCTION 'OIA_EXG_ASSIGNMENT_CHECKS' "Check exchange assignment
  EXPORTING
    i_clear_errlog =            "
    i_maint_mode =              "
    i_check_gr_location =       "
    i_fcode =                   "
    i_xlips =                   " lipsvb
    i_likp =                    " likp
*   i_rush_order = ' '          "
  TABLES
    i_xoia11 =                  " oia_xoia11
    i_xoia06 =                  " oia06
  EXCEPTIONS
    ASSIGNED_DELIVERY_QTY_DIFF = 1  "
    REFRESH_ASSIGNMENT = 2      "
    MISSING_BATCH_NO = 3        "
    MISSING_STORAGE_LOCATION = 4  "
    ASSIGNMENT_IS_GOODS_RECEIPT = 5  "
    .  "  OIA_EXG_ASSIGNMENT_CHECKS

ABAP code example for Function Module OIA_EXG_ASSIGNMENT_CHECKS





The ABAP code below is a full code listing to execute function module OIA_EXG_ASSIGNMENT_CHECKS 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_xoia11  TYPE STANDARD TABLE OF OIA_XOIA11,"TABLES PARAM
wa_i_xoia11  LIKE LINE OF it_i_xoia11 ,
it_i_xoia06  TYPE STANDARD TABLE OF OIA06,"TABLES PARAM
wa_i_xoia06  LIKE LINE OF it_i_xoia06 .

DATA(ld_i_clear_errlog) = 'some text here'.
DATA(ld_i_maint_mode) = 'some text here'.
DATA(ld_i_check_gr_location) = 'some text here'.
DATA(ld_i_fcode) = 'some text here'.
DATA(ld_i_xlips) = 'Check type of data required'.
DATA(ld_i_likp) = 'Check type of data required'.
DATA(ld_i_rush_order) = 'some text here'.

"populate fields of struture and append to itab
append wa_i_xoia11 to it_i_xoia11.

"populate fields of struture and append to itab
append wa_i_xoia06 to it_i_xoia06. . CALL FUNCTION 'OIA_EXG_ASSIGNMENT_CHECKS' EXPORTING i_clear_errlog = ld_i_clear_errlog i_maint_mode = ld_i_maint_mode i_check_gr_location = ld_i_check_gr_location i_fcode = ld_i_fcode i_xlips = ld_i_xlips i_likp = ld_i_likp * i_rush_order = ld_i_rush_order TABLES i_xoia11 = it_i_xoia11 i_xoia06 = it_i_xoia06 EXCEPTIONS ASSIGNED_DELIVERY_QTY_DIFF = 1 REFRESH_ASSIGNMENT = 2 MISSING_BATCH_NO = 3 MISSING_STORAGE_LOCATION = 4 ASSIGNMENT_IS_GOODS_RECEIPT = 5 . " OIA_EXG_ASSIGNMENT_CHECKS
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "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_i_clear_errlog  TYPE STRING ,
it_i_xoia11  TYPE STANDARD TABLE OF OIA_XOIA11 ,
wa_i_xoia11  LIKE LINE OF it_i_xoia11,
ld_i_maint_mode  TYPE STRING ,
it_i_xoia06  TYPE STANDARD TABLE OF OIA06 ,
wa_i_xoia06  LIKE LINE OF it_i_xoia06,
ld_i_check_gr_location  TYPE STRING ,
ld_i_fcode  TYPE STRING ,
ld_i_xlips  TYPE LIPSVB ,
ld_i_likp  TYPE LIKP ,
ld_i_rush_order  TYPE STRING .

ld_i_clear_errlog = 'some text here'.

"populate fields of struture and append to itab
append wa_i_xoia11 to it_i_xoia11.
ld_i_maint_mode = 'some text here'.

"populate fields of struture and append to itab
append wa_i_xoia06 to it_i_xoia06.
ld_i_check_gr_location = 'some text here'.
ld_i_fcode = 'some text here'.
ld_i_xlips = 'Check type of data required'.
ld_i_likp = 'Check type of data required'.
ld_i_rush_order = 'some text here'.

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