SAP Function Modules

WLB3_SELECT_PURCHASE_REQ SAP Function module







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

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


Pattern for FM WLB3_SELECT_PURCHASE_REQ - WLB3 SELECT PURCHASE REQ





CALL FUNCTION 'WLB3_SELECT_PURCHASE_REQ' "
  TABLES
    t_eban_lifnr =              " wvlbt_t_s_ekko_lifnr
    t_eban_werks =              " wvlbt_t_s_ekpo_werks
    t_eban =                    " eban
    t_eban_ekorg =              " wvlbt_t_s_ekko_ekorg
*   t_eban_bsart =              " wvlbt_t_s_eban_bsart
    .  "  WLB3_SELECT_PURCHASE_REQ

ABAP code example for Function Module WLB3_SELECT_PURCHASE_REQ





The ABAP code below is a full code listing to execute function module WLB3_SELECT_PURCHASE_REQ 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_t_eban_lifnr  TYPE STANDARD TABLE OF WVLBT_T_S_EKKO_LIFNR,"TABLES PARAM
wa_t_eban_lifnr  LIKE LINE OF it_t_eban_lifnr ,
it_t_eban_werks  TYPE STANDARD TABLE OF WVLBT_T_S_EKPO_WERKS,"TABLES PARAM
wa_t_eban_werks  LIKE LINE OF it_t_eban_werks ,
it_t_eban  TYPE STANDARD TABLE OF EBAN,"TABLES PARAM
wa_t_eban  LIKE LINE OF it_t_eban ,
it_t_eban_ekorg  TYPE STANDARD TABLE OF WVLBT_T_S_EKKO_EKORG,"TABLES PARAM
wa_t_eban_ekorg  LIKE LINE OF it_t_eban_ekorg ,
it_t_eban_bsart  TYPE STANDARD TABLE OF WVLBT_T_S_EBAN_BSART,"TABLES PARAM
wa_t_eban_bsart  LIKE LINE OF it_t_eban_bsart .


"populate fields of struture and append to itab
append wa_t_eban_lifnr to it_t_eban_lifnr.

"populate fields of struture and append to itab
append wa_t_eban_werks to it_t_eban_werks.

"populate fields of struture and append to itab
append wa_t_eban to it_t_eban.

"populate fields of struture and append to itab
append wa_t_eban_ekorg to it_t_eban_ekorg.

"populate fields of struture and append to itab
append wa_t_eban_bsart to it_t_eban_bsart. . CALL FUNCTION 'WLB3_SELECT_PURCHASE_REQ' TABLES t_eban_lifnr = it_t_eban_lifnr t_eban_werks = it_t_eban_werks t_eban = it_t_eban t_eban_ekorg = it_t_eban_ekorg * t_eban_bsart = it_t_eban_bsart . " WLB3_SELECT_PURCHASE_REQ
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:
it_t_eban_lifnr  TYPE STANDARD TABLE OF WVLBT_T_S_EKKO_LIFNR ,
wa_t_eban_lifnr  LIKE LINE OF it_t_eban_lifnr,
it_t_eban_werks  TYPE STANDARD TABLE OF WVLBT_T_S_EKPO_WERKS ,
wa_t_eban_werks  LIKE LINE OF it_t_eban_werks,
it_t_eban  TYPE STANDARD TABLE OF EBAN ,
wa_t_eban  LIKE LINE OF it_t_eban,
it_t_eban_ekorg  TYPE STANDARD TABLE OF WVLBT_T_S_EKKO_EKORG ,
wa_t_eban_ekorg  LIKE LINE OF it_t_eban_ekorg,
it_t_eban_bsart  TYPE STANDARD TABLE OF WVLBT_T_S_EBAN_BSART ,
wa_t_eban_bsart  LIKE LINE OF it_t_eban_bsart.


"populate fields of struture and append to itab
append wa_t_eban_lifnr to it_t_eban_lifnr.

"populate fields of struture and append to itab
append wa_t_eban_werks to it_t_eban_werks.

"populate fields of struture and append to itab
append wa_t_eban to it_t_eban.

"populate fields of struture and append to itab
append wa_t_eban_ekorg to it_t_eban_ekorg.

"populate fields of struture and append to itab
append wa_t_eban_bsart to it_t_eban_bsart.

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