Ansicht
Dokumentation
MCP20001 - User exit to read external data for planning table
Vendor Master (General Section) rdisp/max_wprun_time - Maximum work process run timeThis documentation is copyright by SAP AG.
The interface of the function module looks like this:
- IMPORTING
- VALUE(ISSOUR) LIKE RMCP2-SSOUR
- VALUE(IVRSIO) LIKE RMCP2-VRSIO
- VALUE(ISKEY)
- VALUE(IPERIV) LIKE RMCP2-PERIV
- VALUE(IPERKZ) LIKE RMCP2-SPPER
- VALUE(IFNAME) LIKE MCP6_LI-FELDH
- VALUE(IPLOBJ) LIKE MCP6_LI-KRIT1
- VALUE(I_T445A) LIKE T445A STRUCTURE T445A
- VALUE(I_T445P) LIKE T445P STRUCTURE T445P
- TABLES
- ICOLS STRUCTURE PGCOLS
- WERTE STRUCTURE VESOP.
Use this function module to read external data into the planning table for all columns of a specified line, and to hold this data temporarily in the internal table 'Werte'.
The input parameters are:
- version
- characteristic string
- planning object number
- period unit
- key figure assigned to this line
- information from the Customizing tables T445a and T445p
Table 'icols' describes the layout of the lines in the planning type.
Example
The value of field "Gross weight" is read from the material master into the planning type. This planning type is based on information structure S004.
This sample coding is valid only for info structure S004. For another information structure you require another "When" statement. In particular, the line "xmatnr = iskey+36(18)." will look different for different information structures.
Sample Coding
- *--------------------------------------------------------------------*
- * INCLUDE ZXSOPU01
- *--------------------------------------------------------------------*
- case 1_t445a-gstru.
- when 'S004'.
- tables: mara
- data: xmatnr like mara-matnr.
- xmatnr = iskey+36(18).
- select single * from mara where matnr = xmatnr.
- if sy-subrc ne 0. exit. endif.
- loop at icols.
- werte-c = icols-column.
- werte-v = mara-brgew.
- append werte.
- endloop.
- * when 's###'.
- endcase.
General Data in Customer Master RFUMSV00 - Advance Return for Tax on Sales/Purchases
This documentation is copyright by SAP AG.
Length: 3042 Date: 20240426 Time: 182029 sap01-206 ( 32 ms )