×

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




Sapass

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



Index

MCP20012

Planning: User Exits
This user exit enables you to disconnect functions.

They are switched to inactive in the menu.

Interface: (See SE37 for references) Meaning:

IMPORTING

I_T445P - Planning type information

I_T445A - Customizing settings of info structure

I_PARAM_ID - ParameterID (see example from exit *11)

I_FLG_KEYFIG_FORMAT - Flag: key figure view ( 'X' / ' ' )

TABLES

T_CHARACTERISTIC_VALUES -Current characteristic values

T_EXCLUDE_TAB - Exclude table to be filled

Example:

*----------------------------------------------------------------------*

* INCLUDE ZXSOPU12

*----------------------------------------------------------------------*

* ranges of the selection (naming convention is very important!!)

RANGES: sl_0001 FOR s001-KUNAG,

sl_0002 FOR s001-VKORG,

sl_0003 FOR s001-VTWEG,

sl_0004 FOR s001-SPART,

sl_0005 FOR s001-MATNR.

* check the planning type or info structure (i_t445a-gstru)

CHECK i_t445p-sctyp = 'Z_S001'.

* get the selection - criteria:

IMPORT sl_0001

sl_0002

sl_0003

sl_0004

sl_0005

FROM MEMORY ID i_param_id.

* is the characteristic value interesting

READ TABLE t_characteristic_values with key FIELDNAME = 'MATNR'

...

* check the USER -name

case sy-uname.

when 'XXXXXXX'.

* exclude the function 'Disaggregate line':

T_EXCLUDE_TAB = 'DIMA'.


Function/Program:
  • EXIT_SAPMMCP6_012: User Exit for Excluding Function Codes

02-Oct-2005