×

[PR]この広告は3ヶ月以上更新がないため表示されています。
ホームページを更新後24時間以内に表示されなくなります。




Sapass

 Simplify SAP R/3 development with Excel VBA/VB RFC  
Home> UserExit>MCP20001



Index

MCP20001

Planning: User Exits
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.


Function/Program:
  • EXIT_SAPMMCP6_001: User Exit for Reading External Data in Planning

02-Oct-2005