SAP Function Modules

WMOD_FASHION_ALLOCATION SAP Function module







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

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


Pattern for FM WMOD_FASHION_ALLOCATION - WMOD FASHION ALLOCATION





CALL FUNCTION 'WMOD_FASHION_ALLOCATION' "
  EXPORTING
    im_aupo =                   " rw01a
*   working_level = ' '         "
  TABLES
    im_ex_auko =                " rw00a
    im_ex_aupo =                " rw01a
    im_ex_aufg =                " rw03a
    im_ex_aufi =                " rw04a
    .  "  WMOD_FASHION_ALLOCATION

ABAP code example for Function Module WMOD_FASHION_ALLOCATION





The ABAP code below is a full code listing to execute function module WMOD_FASHION_ALLOCATION 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_im_ex_auko  TYPE STANDARD TABLE OF RW00A,"TABLES PARAM
wa_im_ex_auko  LIKE LINE OF it_im_ex_auko ,
it_im_ex_aupo  TYPE STANDARD TABLE OF RW01A,"TABLES PARAM
wa_im_ex_aupo  LIKE LINE OF it_im_ex_aupo ,
it_im_ex_aufg  TYPE STANDARD TABLE OF RW03A,"TABLES PARAM
wa_im_ex_aufg  LIKE LINE OF it_im_ex_aufg ,
it_im_ex_aufi  TYPE STANDARD TABLE OF RW04A,"TABLES PARAM
wa_im_ex_aufi  LIKE LINE OF it_im_ex_aufi .

DATA(ld_im_aupo) = 'Check type of data required'.
DATA(ld_working_level) = 'some text here'.

"populate fields of struture and append to itab
append wa_im_ex_auko to it_im_ex_auko.

"populate fields of struture and append to itab
append wa_im_ex_aupo to it_im_ex_aupo.

"populate fields of struture and append to itab
append wa_im_ex_aufg to it_im_ex_aufg.

"populate fields of struture and append to itab
append wa_im_ex_aufi to it_im_ex_aufi. . CALL FUNCTION 'WMOD_FASHION_ALLOCATION' EXPORTING im_aupo = ld_im_aupo * working_level = ld_working_level TABLES im_ex_auko = it_im_ex_auko im_ex_aupo = it_im_ex_aupo im_ex_aufg = it_im_ex_aufg im_ex_aufi = it_im_ex_aufi . " WMOD_FASHION_ALLOCATION
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_im_aupo  TYPE RW01A ,
it_im_ex_auko  TYPE STANDARD TABLE OF RW00A ,
wa_im_ex_auko  LIKE LINE OF it_im_ex_auko,
ld_working_level  TYPE STRING ,
it_im_ex_aupo  TYPE STANDARD TABLE OF RW01A ,
wa_im_ex_aupo  LIKE LINE OF it_im_ex_aupo,
it_im_ex_aufg  TYPE STANDARD TABLE OF RW03A ,
wa_im_ex_aufg  LIKE LINE OF it_im_ex_aufg,
it_im_ex_aufi  TYPE STANDARD TABLE OF RW04A ,
wa_im_ex_aufi  LIKE LINE OF it_im_ex_aufi.

ld_im_aupo = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_im_ex_auko to it_im_ex_auko.
ld_working_level = 'some text here'.

"populate fields of struture and append to itab
append wa_im_ex_aupo to it_im_ex_aupo.

"populate fields of struture and append to itab
append wa_im_ex_aufg to it_im_ex_aufg.

"populate fields of struture and append to itab
append wa_im_ex_aufi to it_im_ex_aufi.

SAP Documentation for FM WMOD_FASHION_ALLOCATION


This FM is called from standard allocation tables. It is transferred to the allocaton table item entry for the generic material. This entry ...See here for full SAP fm documentation

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