Ansicht
Dokumentation

PK_CCY_SELECTION - BAdI: Defining User-Specific Select. Screens f. Maintaining Control Cycles

PK_CCY_SELECTION - BAdI: Defining User-Specific Select. Screens f. Maintaining Control Cycles

Fill RESBD Structure from EBP Component Structure   General Data in Customer Master  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the KANBAN (PP-KAB) component.

Using this BAdI, you can replace the selection screen in the initial screen of transaction PKMC or the selection screen for the Enhanced Control Cycle Selection with a selection screen of your own.

You are recommended to create your own function group in which your own screens are defined and where the selection data can be saved (see example: Function group MPK_EXAMPLE).

If you do not define any user-specific selection screens the system uses the standard selection screens.

First create an implementation of the Business Add-In. PK_CCY_SELECTION an.

Selection Screen on Initial Screen

If you want to replace the small selection screen on the initial screen of transaction PKMC with a selection screen of your own, you first have to define a user-specific screen as a subscreen (see function group: MPK_EXAMPLE, Dynpro: 0100). If you want to use the enhanced control cycle selection, you have to create a pushbutton on your screen which triggers the function code ESEL (regardless of whether or not you have defined your own selection screen for the enhanced control cycle selection).

In the flow logic of the screen make sure that you are going to be able to access the selection data later by saving this data in the global variables of the function group, for example. Selection data can be transferred to the enhanced control cycle selection via SET/GET parameters.

In your implementation for the Business Add-In PK_CCY_SELECTION

in the Subscreens tab page, enter the program name and screen number of your screen.

Enhanced Control Cycle Selection

If you want to replace the selection screen of the enhanced control cycle selection, implement the BAdI method CALL_DETAILED_SELECTION. First define a selection screen (see include LMPK_EXAMPLETOP, Screen 0200). You also have the option of copying the standard selection screen (Include LMPK_CCY_UIS10, Screen 1103) and adjusting it to suit your requirements. In the BAdI method CALL_DETAILED_SELECTION, access your selection screen and create your selection data so that you can access it from the BAdI method SELECT_CONTROL_CYCLES. Provide the export parameter of the BAdI method CALL_DETAILED_SELECTION (see example coding).

Export Parameters:

  • ACTIVE
    If you want to access your own selection screen, you must set the parameter ACTIVE (ACTIVE = 'X'). This parameter prevents the standard selection screen of the enhanced control cycle selection from being accessed.
  • SELECT_CONTROL_CYCLES
    Set this parameter (SELECT_CONTROL_CYCLES = 'X'), if the control cycle selection is then to be executed. The selection should usually only be executed if the "Execute" pushbutton (SY-UCOMM = 'GETD') on the selection screen is chosen

Selection data can be adopted using SET/GET parameters.

Control Cycle Selection

Implement the BAdI method SELECT_CONTROL_CYCLES. According to your selection data, select the data records from the database tables PVBE (supply areas) and PKHD (control cycles) . Transfer the data records to the interface parameters PVBEX and PKHDX of the BAdI method SELECT_CONTROL_CYCLES (see example coding).






SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 4290 Date: 20240523 Time: 184504     sap01-206 ( 81 ms )