SAP Function Modules

SD_SHIPMENTS_PRECHECK_CHNG SAP Function module







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

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


Pattern for FM SD_SHIPMENTS_PRECHECK_CHNG - SD SHIPMENTS PRECHECK CHNG





CALL FUNCTION 'SD_SHIPMENTS_PRECHECK_CHNG' "
  TABLES
    c_xvttk =                   " vttkvb
    i_yvttk =                   " vttkvb
    i_xvttp =                   " vttpvb
    i_yvttp =                   " vttpvb
*   i_xvbpa =                   " vbpavb
*   i_yvbpa =                   " vbpavb
    i_xvtts =                   " vttsvb
    i_yvtts =                   " vttsvb
    i_xvtsp =                   " vtspvb
    i_yvtsp =                   " vtspvb
  EXCEPTIONS
    NO_CHANGE = 1               "               No Changes
    .  "  SD_SHIPMENTS_PRECHECK_CHNG

ABAP code example for Function Module SD_SHIPMENTS_PRECHECK_CHNG





The ABAP code below is a full code listing to execute function module SD_SHIPMENTS_PRECHECK_CHNG 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_c_xvttk  TYPE STANDARD TABLE OF VTTKVB,"TABLES PARAM
wa_c_xvttk  LIKE LINE OF it_c_xvttk ,
it_i_yvttk  TYPE STANDARD TABLE OF VTTKVB,"TABLES PARAM
wa_i_yvttk  LIKE LINE OF it_i_yvttk ,
it_i_xvttp  TYPE STANDARD TABLE OF VTTPVB,"TABLES PARAM
wa_i_xvttp  LIKE LINE OF it_i_xvttp ,
it_i_yvttp  TYPE STANDARD TABLE OF VTTPVB,"TABLES PARAM
wa_i_yvttp  LIKE LINE OF it_i_yvttp ,
it_i_xvbpa  TYPE STANDARD TABLE OF VBPAVB,"TABLES PARAM
wa_i_xvbpa  LIKE LINE OF it_i_xvbpa ,
it_i_yvbpa  TYPE STANDARD TABLE OF VBPAVB,"TABLES PARAM
wa_i_yvbpa  LIKE LINE OF it_i_yvbpa ,
it_i_xvtts  TYPE STANDARD TABLE OF VTTSVB,"TABLES PARAM
wa_i_xvtts  LIKE LINE OF it_i_xvtts ,
it_i_yvtts  TYPE STANDARD TABLE OF VTTSVB,"TABLES PARAM
wa_i_yvtts  LIKE LINE OF it_i_yvtts ,
it_i_xvtsp  TYPE STANDARD TABLE OF VTSPVB,"TABLES PARAM
wa_i_xvtsp  LIKE LINE OF it_i_xvtsp ,
it_i_yvtsp  TYPE STANDARD TABLE OF VTSPVB,"TABLES PARAM
wa_i_yvtsp  LIKE LINE OF it_i_yvtsp .


"populate fields of struture and append to itab
append wa_c_xvttk to it_c_xvttk.

"populate fields of struture and append to itab
append wa_i_yvttk to it_i_yvttk.

"populate fields of struture and append to itab
append wa_i_xvttp to it_i_xvttp.

"populate fields of struture and append to itab
append wa_i_yvttp to it_i_yvttp.

"populate fields of struture and append to itab
append wa_i_xvbpa to it_i_xvbpa.

"populate fields of struture and append to itab
append wa_i_yvbpa to it_i_yvbpa.

"populate fields of struture and append to itab
append wa_i_xvtts to it_i_xvtts.

"populate fields of struture and append to itab
append wa_i_yvtts to it_i_yvtts.

"populate fields of struture and append to itab
append wa_i_xvtsp to it_i_xvtsp.

"populate fields of struture and append to itab
append wa_i_yvtsp to it_i_yvtsp. . CALL FUNCTION 'SD_SHIPMENTS_PRECHECK_CHNG' TABLES c_xvttk = it_c_xvttk i_yvttk = it_i_yvttk i_xvttp = it_i_xvttp i_yvttp = it_i_yvttp * i_xvbpa = it_i_xvbpa * i_yvbpa = it_i_yvbpa i_xvtts = it_i_xvtts i_yvtts = it_i_yvtts i_xvtsp = it_i_xvtsp i_yvtsp = it_i_yvtsp EXCEPTIONS NO_CHANGE = 1 . " SD_SHIPMENTS_PRECHECK_CHNG
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:
it_c_xvttk  TYPE STANDARD TABLE OF VTTKVB ,
wa_c_xvttk  LIKE LINE OF it_c_xvttk,
it_i_yvttk  TYPE STANDARD TABLE OF VTTKVB ,
wa_i_yvttk  LIKE LINE OF it_i_yvttk,
it_i_xvttp  TYPE STANDARD TABLE OF VTTPVB ,
wa_i_xvttp  LIKE LINE OF it_i_xvttp,
it_i_yvttp  TYPE STANDARD TABLE OF VTTPVB ,
wa_i_yvttp  LIKE LINE OF it_i_yvttp,
it_i_xvbpa  TYPE STANDARD TABLE OF VBPAVB ,
wa_i_xvbpa  LIKE LINE OF it_i_xvbpa,
it_i_yvbpa  TYPE STANDARD TABLE OF VBPAVB ,
wa_i_yvbpa  LIKE LINE OF it_i_yvbpa,
it_i_xvtts  TYPE STANDARD TABLE OF VTTSVB ,
wa_i_xvtts  LIKE LINE OF it_i_xvtts,
it_i_yvtts  TYPE STANDARD TABLE OF VTTSVB ,
wa_i_yvtts  LIKE LINE OF it_i_yvtts,
it_i_xvtsp  TYPE STANDARD TABLE OF VTSPVB ,
wa_i_xvtsp  LIKE LINE OF it_i_xvtsp,
it_i_yvtsp  TYPE STANDARD TABLE OF VTSPVB ,
wa_i_yvtsp  LIKE LINE OF it_i_yvtsp.


"populate fields of struture and append to itab
append wa_c_xvttk to it_c_xvttk.

"populate fields of struture and append to itab
append wa_i_yvttk to it_i_yvttk.

"populate fields of struture and append to itab
append wa_i_xvttp to it_i_xvttp.

"populate fields of struture and append to itab
append wa_i_yvttp to it_i_yvttp.

"populate fields of struture and append to itab
append wa_i_xvbpa to it_i_xvbpa.

"populate fields of struture and append to itab
append wa_i_yvbpa to it_i_yvbpa.

"populate fields of struture and append to itab
append wa_i_xvtts to it_i_xvtts.

"populate fields of struture and append to itab
append wa_i_yvtts to it_i_yvtts.

"populate fields of struture and append to itab
append wa_i_xvtsp to it_i_xvtsp.

"populate fields of struture and append to itab
append wa_i_yvtsp to it_i_yvtsp.

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