WSRP_SELECT_REQUIREMENTS 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 WSRP_SELECT_REQUIREMENTS into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
WSRP
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'WSRP_SELECT_REQUIREMENTS' "Store Replenishment: Selection of All Determined Replenishment Reqs
* EXPORTING
* i_or_and = 'X' " wsrp_andorlink Filialnachschub: ODER-Verknüpfung bei der Materialauswahl
* i_decmara = ' ' " wsrp_maradata Bestimmung der allgemeinen Materilastammdaten
* i_cprog = " sycprog ABAP Program, Caller in External Procedures
* i_tcode = " sytcode ABAP Program, Current Transaction Code
TABLES
i_t_customers = " wsrp_customers Store Replenishment: Transfer Structure for Recipient
* i_r_matnr = " wsrp_rangesmatnr BAPI Selection Structure: Material Number
* i_r_matkl = " wsrp_rangesmatkl Selektionsstruktur: Warengruppe
e_t_wrplte = " wsrp_wrplte Store Replenishment: Worklist
* e_t_wrpe = " wrpe Replenishment: Error messages
EXCEPTIONS
ERROR = 1 " General Error
. " WSRP_SELECT_REQUIREMENTS
The ABAP code below is a full code listing to execute function module WSRP_SELECT_REQUIREMENTS 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).
| it_i_t_customers | TYPE STANDARD TABLE OF WSRP_CUSTOMERS,"TABLES PARAM |
| wa_i_t_customers | LIKE LINE OF it_i_t_customers , |
| it_i_r_matnr | TYPE STANDARD TABLE OF WSRP_RANGESMATNR,"TABLES PARAM |
| wa_i_r_matnr | LIKE LINE OF it_i_r_matnr , |
| it_i_r_matkl | TYPE STANDARD TABLE OF WSRP_RANGESMATKL,"TABLES PARAM |
| wa_i_r_matkl | LIKE LINE OF it_i_r_matkl , |
| it_e_t_wrplte | TYPE STANDARD TABLE OF WSRP_WRPLTE,"TABLES PARAM |
| wa_e_t_wrplte | LIKE LINE OF it_e_t_wrplte , |
| it_e_t_wrpe | TYPE STANDARD TABLE OF WRPE,"TABLES PARAM |
| wa_e_t_wrpe | LIKE LINE OF it_e_t_wrpe . |
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_i_or_and | TYPE WSRP_ANDORLINK , |
| it_i_t_customers | TYPE STANDARD TABLE OF WSRP_CUSTOMERS , |
| wa_i_t_customers | LIKE LINE OF it_i_t_customers, |
| ld_i_decmara | TYPE WSRP_MARADATA , |
| it_i_r_matnr | TYPE STANDARD TABLE OF WSRP_RANGESMATNR , |
| wa_i_r_matnr | LIKE LINE OF it_i_r_matnr, |
| ld_i_cprog | TYPE SYCPROG , |
| it_i_r_matkl | TYPE STANDARD TABLE OF WSRP_RANGESMATKL , |
| wa_i_r_matkl | LIKE LINE OF it_i_r_matkl, |
| ld_i_tcode | TYPE SYTCODE , |
| it_e_t_wrplte | TYPE STANDARD TABLE OF WSRP_WRPLTE , |
| wa_e_t_wrplte | LIKE LINE OF it_e_t_wrplte, |
| it_e_t_wrpe | TYPE STANDARD TABLE OF WRPE , |
| wa_e_t_wrpe | LIKE LINE OF it_e_t_wrpe. |
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 WSRP_SELECT_REQUIREMENTS or its description.
WSRP_SELECT_REQUIREMENTS - Store Replenishment: Selection of All Determined Replenishment Reqs WSRP_SELECT_CUSTOMERS - Store Replenishment: Selection of All Selected Customers WSRP_REQUIREMENTS_CALC - Store Replenishment: Calculate Replenishment Requirements WSRP_REGISTER_REPLENISHMENT - Store Replenishment: Register Replenishment Run WSRP_PROCUREMENT_SUBMIT - Store Replenishment: Call Store Order WSRP_OUTPUT_MINUTE_LIST_OR_LOG - SHow Log