SAP Function Modules

ASSORTMENT_CHECK_RACKJOBBER SAP Function module







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

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


Pattern for FM ASSORTMENT_CHECK_RACKJOBBER - ASSORTMENT CHECK RACKJOBBER





CALL FUNCTION 'ASSORTMENT_CHECK_RACKJOBBER' "
  EXPORTING
    matnr =                     " mara-matnr    Material Number
*   asort =                     " wrs1-asort
*   datab = SY-DATUM            " wlk1-datab    Search from
*   datbi = '99991231'          " wlk1-datbi
    stypb =                     " wsoh-stypb
    lifnr =                     " lfa1-lifnr
*   msgtp = 'E'                 " wtdy-typ01
*   wsoh =                      " wsoh
  EXCEPTIONS
    ALWAYS_ASSIGNED = 1         "
    .  "  ASSORTMENT_CHECK_RACKJOBBER

ABAP code example for Function Module ASSORTMENT_CHECK_RACKJOBBER





The ABAP code below is a full code listing to execute function module ASSORTMENT_CHECK_RACKJOBBER 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).

 

SELECT single MATNR
FROM MARA
INTO @DATA(ld_matnr).


SELECT single ASORT
FROM WRS1
INTO @DATA(ld_asort).


SELECT single DATAB
FROM WLK1
INTO @DATA(ld_datab).


SELECT single DATBI
FROM WLK1
INTO @DATA(ld_datbi).


SELECT single STYPB
FROM WSOH
INTO @DATA(ld_stypb).


SELECT single LIFNR
FROM LFA1
INTO @DATA(ld_lifnr).


DATA(ld_msgtp) = some text here
DATA(ld_wsoh) = 'Check type of data required'. . CALL FUNCTION 'ASSORTMENT_CHECK_RACKJOBBER' EXPORTING matnr = ld_matnr * asort = ld_asort * datab = ld_datab * datbi = ld_datbi stypb = ld_stypb lifnr = ld_lifnr * msgtp = ld_msgtp * wsoh = ld_wsoh EXCEPTIONS ALWAYS_ASSIGNED = 1 . " ASSORTMENT_CHECK_RACKJOBBER
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_matnr  TYPE MARA-MATNR ,
ld_asort  TYPE WRS1-ASORT ,
ld_datab  TYPE WLK1-DATAB ,
ld_datbi  TYPE WLK1-DATBI ,
ld_stypb  TYPE WSOH-STYPB ,
ld_lifnr  TYPE LFA1-LIFNR ,
ld_msgtp  TYPE WTDY-TYP01 ,
ld_wsoh  TYPE WSOH .


SELECT single MATNR
FROM MARA
INTO ld_matnr.


SELECT single ASORT
FROM WRS1
INTO ld_asort.


SELECT single DATAB
FROM WLK1
INTO ld_datab.


SELECT single DATBI
FROM WLK1
INTO ld_datbi.


SELECT single STYPB
FROM WSOH
INTO ld_stypb.


SELECT single LIFNR
FROM LFA1
INTO ld_lifnr.


ld_msgtp = some text here
ld_wsoh = '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 ASSORTMENT_CHECK_RACKJOBBER or its description.