SAP Function Modules

FRE_PO_GI_WORKLIST_READ SAP Function module - Read Database Table FRE_PO_GI_WL







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

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


Pattern for FM FRE_PO_GI_WORKLIST_READ - FRE PO GI WORKLIST READ





CALL FUNCTION 'FRE_PO_GI_WORKLIST_READ' "Read Database Table FRE_PO_GI_WL
* EXPORTING
*   irt_ebeln =                 " fre_ebeln_rtty  Purchasing Document Number Range
*   ip_gi_date =                " sy-datum      Current Date of Application Server
  IMPORTING
    et_po_gi_worklist =         " fre_po_gi_worklist_tty  Table Type for Table FRE_PO_GI_WL
  EXCEPTIONS
    NO_DATA = 1                 "
    WRONG_CALL = 2              "
    .  "  FRE_PO_GI_WORKLIST_READ

ABAP code example for Function Module FRE_PO_GI_WORKLIST_READ





The ABAP code below is a full code listing to execute function module FRE_PO_GI_WORKLIST_READ 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_et_po_gi_worklist  TYPE FRE_PO_GI_WORKLIST_TTY .

DATA(ld_irt_ebeln) = 'Check type of data required'.
DATA(ld_ip_gi_date) = '20210129'. . CALL FUNCTION 'FRE_PO_GI_WORKLIST_READ' * EXPORTING * irt_ebeln = ld_irt_ebeln * ip_gi_date = ld_ip_gi_date IMPORTING et_po_gi_worklist = ld_et_po_gi_worklist EXCEPTIONS NO_DATA = 1 WRONG_CALL = 2 . " FRE_PO_GI_WORKLIST_READ
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "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_et_po_gi_worklist  TYPE FRE_PO_GI_WORKLIST_TTY ,
ld_irt_ebeln  TYPE FRE_EBELN_RTTY ,
ld_ip_gi_date  TYPE SY-DATUM .

ld_irt_ebeln = '20210129'.
ld_ip_gi_date = '20210129'.

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