SAP Function Modules

WAUF_DETERMINE_GENERATION_DATE SAP Function module







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

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


Pattern for FM WAUF_DETERMINE_GENERATION_DATE - WAUF DETERMINE GENERATION DATE





CALL FUNCTION 'WAUF_DETERMINE_GENERATION_DATE' "
  EXPORTING
*   fbi_called_by_alloc_generation = ' '  " rw00a-aktsw
    fbi_material =              " aupo-matnr    Material
    fbi_fiwrk =                 " aufi-fiwrk    Plant
    fbi_filnr =                 " aufi-filnr    Customer Number
    fbi_vzwrk =                 " aufi-vzwrk
    fbi_plifz =                 " aufi-plifz    Planned Delivery Time
    fbi_webaz =                 " aufi-webaz    GR Processing Time
    fbi_wedat =                 " aulw-wedat    Planned Delivery Date
    fbi_header_po_gen_date =    " auko-fbdat
    fbi_header_wo_gen_date =    " auko-fudat
    fbi_header_dl_gen_date =    " auko-fldat
*   fbi_plant_fod_gen_date =    " aufi-bedat
*   fbi_plant_dp_po_gen_date =   " aulw-bedat
*   fbi_plant_dp_wo_gen_date =   " aulw-umdat
*   fbi_plant_dp_dl_gen_date =   " aulw-ledat
    fbi_t621 =                  " t621
*   fbi_no_message = ' '        " rw00a-aktsw
  IMPORTING
    fbo_po_gen_date =           " aulw-bedat
    fbo_wo_gen_date =           " aulw-umdat
    fbo_dl_gen_date =           " aulw-ledat
    fbo_wedat_neu =             " aulw-wedat
  EXCEPTIONS
    DETERMINATION_GEN_DATE_FAILED = 1  "
    .  "  WAUF_DETERMINE_GENERATION_DATE

ABAP code example for Function Module WAUF_DETERMINE_GENERATION_DATE





The ABAP code below is a full code listing to execute function module WAUF_DETERMINE_GENERATION_DATE 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:
ld_fbo_po_gen_date  TYPE AULW-BEDAT ,
ld_fbo_wo_gen_date  TYPE AULW-UMDAT ,
ld_fbo_dl_gen_date  TYPE AULW-LEDAT ,
ld_fbo_wedat_neu  TYPE AULW-WEDAT .


DATA(ld_fbi_called_by_alloc_generation) = some text here

SELECT single MATNR
FROM AUPO
INTO @DATA(ld_fbi_material).


SELECT single FIWRK
FROM AUFI
INTO @DATA(ld_fbi_fiwrk).


SELECT single FILNR
FROM AUFI
INTO @DATA(ld_fbi_filnr).


SELECT single VZWRK
FROM AUFI
INTO @DATA(ld_fbi_vzwrk).


SELECT single PLIFZ
FROM AUFI
INTO @DATA(ld_fbi_plifz).


SELECT single WEBAZ
FROM AUFI
INTO @DATA(ld_fbi_webaz).


SELECT single WEDAT
FROM AULW
INTO @DATA(ld_fbi_wedat).


SELECT single FBDAT
FROM AUKO
INTO @DATA(ld_fbi_header_po_gen_date).


SELECT single FUDAT
FROM AUKO
INTO @DATA(ld_fbi_header_wo_gen_date).


SELECT single FLDAT
FROM AUKO
INTO @DATA(ld_fbi_header_dl_gen_date).


SELECT single BEDAT
FROM AUFI
INTO @DATA(ld_fbi_plant_fod_gen_date).


SELECT single BEDAT
FROM AULW
INTO @DATA(ld_fbi_plant_dp_po_gen_date).


SELECT single UMDAT
FROM AULW
INTO @DATA(ld_fbi_plant_dp_wo_gen_date).


SELECT single LEDAT
FROM AULW
INTO @DATA(ld_fbi_plant_dp_dl_gen_date).

DATA(ld_fbi_t621) = 'Check type of data required'.

DATA(ld_fbi_no_message) = some text here . CALL FUNCTION 'WAUF_DETERMINE_GENERATION_DATE' EXPORTING * fbi_called_by_alloc_generation = ld_fbi_called_by_alloc_generation fbi_material = ld_fbi_material fbi_fiwrk = ld_fbi_fiwrk fbi_filnr = ld_fbi_filnr fbi_vzwrk = ld_fbi_vzwrk fbi_plifz = ld_fbi_plifz fbi_webaz = ld_fbi_webaz fbi_wedat = ld_fbi_wedat fbi_header_po_gen_date = ld_fbi_header_po_gen_date fbi_header_wo_gen_date = ld_fbi_header_wo_gen_date fbi_header_dl_gen_date = ld_fbi_header_dl_gen_date * fbi_plant_fod_gen_date = ld_fbi_plant_fod_gen_date * fbi_plant_dp_po_gen_date = ld_fbi_plant_dp_po_gen_date * fbi_plant_dp_wo_gen_date = ld_fbi_plant_dp_wo_gen_date * fbi_plant_dp_dl_gen_date = ld_fbi_plant_dp_dl_gen_date fbi_t621 = ld_fbi_t621 * fbi_no_message = ld_fbi_no_message IMPORTING fbo_po_gen_date = ld_fbo_po_gen_date fbo_wo_gen_date = ld_fbo_wo_gen_date fbo_dl_gen_date = ld_fbo_dl_gen_date fbo_wedat_neu = ld_fbo_wedat_neu EXCEPTIONS DETERMINATION_GEN_DATE_FAILED = 1 . " WAUF_DETERMINE_GENERATION_DATE
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_fbo_po_gen_date  TYPE AULW-BEDAT ,
ld_fbi_called_by_alloc_generation  TYPE RW00A-AKTSW ,
ld_fbo_wo_gen_date  TYPE AULW-UMDAT ,
ld_fbi_material  TYPE AUPO-MATNR ,
ld_fbo_dl_gen_date  TYPE AULW-LEDAT ,
ld_fbi_fiwrk  TYPE AUFI-FIWRK ,
ld_fbo_wedat_neu  TYPE AULW-WEDAT ,
ld_fbi_filnr  TYPE AUFI-FILNR ,
ld_fbi_vzwrk  TYPE AUFI-VZWRK ,
ld_fbi_plifz  TYPE AUFI-PLIFZ ,
ld_fbi_webaz  TYPE AUFI-WEBAZ ,
ld_fbi_wedat  TYPE AULW-WEDAT ,
ld_fbi_header_po_gen_date  TYPE AUKO-FBDAT ,
ld_fbi_header_wo_gen_date  TYPE AUKO-FUDAT ,
ld_fbi_header_dl_gen_date  TYPE AUKO-FLDAT ,
ld_fbi_plant_fod_gen_date  TYPE AUFI-BEDAT ,
ld_fbi_plant_dp_po_gen_date  TYPE AULW-BEDAT ,
ld_fbi_plant_dp_wo_gen_date  TYPE AULW-UMDAT ,
ld_fbi_plant_dp_dl_gen_date  TYPE AULW-LEDAT ,
ld_fbi_t621  TYPE T621 ,
ld_fbi_no_message  TYPE RW00A-AKTSW .


ld_fbi_called_by_alloc_generation = some text here

SELECT single MATNR
FROM AUPO
INTO ld_fbi_material.


SELECT single FIWRK
FROM AUFI
INTO ld_fbi_fiwrk.


SELECT single FILNR
FROM AUFI
INTO ld_fbi_filnr.


SELECT single VZWRK
FROM AUFI
INTO ld_fbi_vzwrk.


SELECT single PLIFZ
FROM AUFI
INTO ld_fbi_plifz.


SELECT single WEBAZ
FROM AUFI
INTO ld_fbi_webaz.


SELECT single WEDAT
FROM AULW
INTO ld_fbi_wedat.


SELECT single FBDAT
FROM AUKO
INTO ld_fbi_header_po_gen_date.


SELECT single FUDAT
FROM AUKO
INTO ld_fbi_header_wo_gen_date.


SELECT single FLDAT
FROM AUKO
INTO ld_fbi_header_dl_gen_date.


SELECT single BEDAT
FROM AUFI
INTO ld_fbi_plant_fod_gen_date.


SELECT single BEDAT
FROM AULW
INTO ld_fbi_plant_dp_po_gen_date.


SELECT single UMDAT
FROM AULW
INTO ld_fbi_plant_dp_wo_gen_date.


SELECT single LEDAT
FROM AULW
INTO ld_fbi_plant_dp_dl_gen_date.

ld_fbi_t621 = 'Check type of data required'.

ld_fbi_no_message = 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 WAUF_DETERMINE_GENERATION_DATE or its description.