SAP Function Modules

SRS_PDC_GR_DATA_PREP SAP Function module - Retail Store: MDE Goods Receipt: Download







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

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


Pattern for FM SRS_PDC_GR_DATA_PREP - SRS PDC GR DATA PREP





CALL FUNCTION 'SRS_PDC_GR_DATA_PREP' "Retail Store: MDE Goods Receipt: Download
  EXPORTING
*   parallel =                  " bdfields-parallel  Indicator: Parallel processing yes/no
*   max_prozess =               " srs_pdc_help-srs_anzpp  Maximum number of parallel tasks
*   servergrp =                 " wpstruc-servergrp  Name of Logon/Server Group for Parallel Processing
*   date1 =                     " srs_wedat     Goods Receipt Date
*   date2 =                     " srs_wedat     Goods Receipt Date
*   purorder =                  " srs_document  Reference Document Type
*   matdoc =                    " srs_document  Reference Document Type
*   delivery =                  " srs_document  Reference Document Type
*   handunit =                  " srs_document  Reference Document Type
*   ref_doc_no =                " xblnr         Reference Document Number
    i_exit_pdc_gr_out =         " if_ex_srs_pdc_gr_outbound  BAdI Interface IF_EX_SRS_PDC_GM_OUTBOUND
    badi_imp_activ =            " char1         BAdI activ
  TABLES
    p_t_plant =                 " srs_pdc_plant  Formatted Plants
    return =                    " bapiret2      Return Parameter(s)
    .  "  SRS_PDC_GR_DATA_PREP

ABAP code example for Function Module SRS_PDC_GR_DATA_PREP





The ABAP code below is a full code listing to execute function module SRS_PDC_GR_DATA_PREP 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_p_t_plant  TYPE STANDARD TABLE OF SRS_PDC_PLANT,"TABLES PARAM
wa_p_t_plant  LIKE LINE OF it_p_t_plant ,
it_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_return  LIKE LINE OF it_return .


DATA(ld_parallel) = some text here

DATA(ld_max_prozess) = 123

DATA(ld_servergrp) = some text here
DATA(ld_date1) = 'Check type of data required'.
DATA(ld_date2) = 'Check type of data required'.
DATA(ld_purorder) = 'Check type of data required'.
DATA(ld_matdoc) = 'Check type of data required'.
DATA(ld_delivery) = 'Check type of data required'.
DATA(ld_handunit) = 'Check type of data required'.
DATA(ld_ref_doc_no) = 'Check type of data required'.
DATA(ld_i_exit_pdc_gr_out) = 'Check type of data required'.
DATA(ld_badi_imp_activ) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_p_t_plant to it_p_t_plant.

"populate fields of struture and append to itab
append wa_return to it_return. . CALL FUNCTION 'SRS_PDC_GR_DATA_PREP' EXPORTING * parallel = ld_parallel * max_prozess = ld_max_prozess * servergrp = ld_servergrp * date1 = ld_date1 * date2 = ld_date2 * purorder = ld_purorder * matdoc = ld_matdoc * delivery = ld_delivery * handunit = ld_handunit * ref_doc_no = ld_ref_doc_no i_exit_pdc_gr_out = ld_i_exit_pdc_gr_out badi_imp_activ = ld_badi_imp_activ TABLES p_t_plant = it_p_t_plant return = it_return . " SRS_PDC_GR_DATA_PREP
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_parallel  TYPE BDFIELDS-PARALLEL ,
it_p_t_plant  TYPE STANDARD TABLE OF SRS_PDC_PLANT ,
wa_p_t_plant  LIKE LINE OF it_p_t_plant,
ld_max_prozess  TYPE SRS_PDC_HELP-SRS_ANZPP ,
it_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_return  LIKE LINE OF it_return,
ld_servergrp  TYPE WPSTRUC-SERVERGRP ,
ld_date1  TYPE SRS_WEDAT ,
ld_date2  TYPE SRS_WEDAT ,
ld_purorder  TYPE SRS_DOCUMENT ,
ld_matdoc  TYPE SRS_DOCUMENT ,
ld_delivery  TYPE SRS_DOCUMENT ,
ld_handunit  TYPE SRS_DOCUMENT ,
ld_ref_doc_no  TYPE XBLNR ,
ld_i_exit_pdc_gr_out  TYPE IF_EX_SRS_PDC_GR_OUTBOUND ,
ld_badi_imp_activ  TYPE CHAR1 .


ld_parallel = some text here

"populate fields of struture and append to itab
append wa_p_t_plant to it_p_t_plant.

ld_max_prozess = 123

"populate fields of struture and append to itab
append wa_return to it_return.

ld_servergrp = some text here
ld_date1 = 'Check type of data required'.
ld_date2 = 'Check type of data required'.
ld_purorder = 'Check type of data required'.
ld_matdoc = 'Check type of data required'.
ld_delivery = 'Check type of data required'.
ld_handunit = 'Check type of data required'.
ld_ref_doc_no = 'Check type of data required'.
ld_i_exit_pdc_gr_out = 'Check type of data required'.
ld_badi_imp_activ = '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 SRS_PDC_GR_DATA_PREP or its description.