SAP Function Modules

WAUF_DETERMINE_DELIV_PHASE_DC SAP Function module







WAUF_DETERMINE_DELIV_PHASE_DC 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_DELIV_PHASE_DC 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_DELIV_PHASE_DC - WAUF DETERMINE DELIV PHASE DC





CALL FUNCTION 'WAUF_DETERMINE_DELIV_PHASE_DC' "
  EXPORTING
    fbi_t621 =                  " t621          Item Categories for Allocation Tables
    fbi_auko =                  " rw00a         Structure of Allocation Table Header
    fbi_aupo =                  " rw01a         Structure of Allocation Table Item
    fbi_auvz =                  " rw11a         Entry/output fields DC
*   fbi_no_i_msg = ' '          " char1         Single-Character Indicator
*   fbi_nur_1_termin_zulassen = SPACE  " char1
  TABLES
    fbt_auvw_default =          " rw13a         Entry/input fields Delivery phases DC
    fbt_auvw_current =          " rw13a         Entry/input fields Delivery phases DC
  EXCEPTIONS
    FBE_NO_DEFAULT_DATE_AVAILABLE = 1  "
    .  "  WAUF_DETERMINE_DELIV_PHASE_DC

ABAP code example for Function Module WAUF_DETERMINE_DELIV_PHASE_DC





The ABAP code below is a full code listing to execute function module WAUF_DETERMINE_DELIV_PHASE_DC 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_fbt_auvw_default  TYPE STANDARD TABLE OF RW13A,"TABLES PARAM
wa_fbt_auvw_default  LIKE LINE OF it_fbt_auvw_default ,
it_fbt_auvw_current  TYPE STANDARD TABLE OF RW13A,"TABLES PARAM
wa_fbt_auvw_current  LIKE LINE OF it_fbt_auvw_current .

DATA(ld_fbi_t621) = 'Check type of data required'.
DATA(ld_fbi_auko) = 'Check type of data required'.
DATA(ld_fbi_aupo) = 'Check type of data required'.
DATA(ld_fbi_auvz) = 'Check type of data required'.
DATA(ld_fbi_no_i_msg) = 'Check type of data required'.
DATA(ld_fbi_nur_1_termin_zulassen) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_fbt_auvw_default to it_fbt_auvw_default.

"populate fields of struture and append to itab
append wa_fbt_auvw_current to it_fbt_auvw_current. . CALL FUNCTION 'WAUF_DETERMINE_DELIV_PHASE_DC' EXPORTING fbi_t621 = ld_fbi_t621 fbi_auko = ld_fbi_auko fbi_aupo = ld_fbi_aupo fbi_auvz = ld_fbi_auvz * fbi_no_i_msg = ld_fbi_no_i_msg * fbi_nur_1_termin_zulassen = ld_fbi_nur_1_termin_zulassen TABLES fbt_auvw_default = it_fbt_auvw_default fbt_auvw_current = it_fbt_auvw_current EXCEPTIONS FBE_NO_DEFAULT_DATE_AVAILABLE = 1 . " WAUF_DETERMINE_DELIV_PHASE_DC
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_fbi_t621  TYPE T621 ,
it_fbt_auvw_default  TYPE STANDARD TABLE OF RW13A ,
wa_fbt_auvw_default  LIKE LINE OF it_fbt_auvw_default,
ld_fbi_auko  TYPE RW00A ,
it_fbt_auvw_current  TYPE STANDARD TABLE OF RW13A ,
wa_fbt_auvw_current  LIKE LINE OF it_fbt_auvw_current,
ld_fbi_aupo  TYPE RW01A ,
ld_fbi_auvz  TYPE RW11A ,
ld_fbi_no_i_msg  TYPE CHAR1 ,
ld_fbi_nur_1_termin_zulassen  TYPE CHAR1 .

ld_fbi_t621 = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_fbt_auvw_default to it_fbt_auvw_default.
ld_fbi_auko = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_fbt_auvw_current to it_fbt_auvw_current.
ld_fbi_aupo = 'Check type of data required'.
ld_fbi_auvz = 'Check type of data required'.
ld_fbi_no_i_msg = 'Check type of data required'.
ld_fbi_nur_1_termin_zulassen = '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 WAUF_DETERMINE_DELIV_PHASE_DC or its description.