You are on page 1of 8

Shift Planning Technical document

In shift planning, we have created a custom program. From that program called the standard program (PP61), to view the planning screen. 1. Calling the PP61 with skipping the initial screen.
move 'SAPFH5AH' to bdc-program. move '1000' to bdc-dynpro. move 'X' to bdc-dynbegin. append bdc. clear bdc. move 'PDPLA-ORGEH' to bdc-fnam. move orgeh_id to bdc-fval. append bdc. clear bdc. move 'PDPLA-VON_DATE' to bdc-fnam. move begda to bdc-fval. append bdc.clear bdc. move 'PDPLA-BIS_DATE' to bdc-fnam. move endda to bdc-fval. append bdc.clear bdc. move 'PDPLA-BUTT_FLEX' to bdc-fnam. move 'X' to bdc-fval. append bdc.clear bdc. move 'BDC_OKCODE' to bdc-fnam. move '=OVER_VIEW' to bdc-fval. append bdc. clear bdc.

call transaction 'PP61'

using bdc

update 'S' mode 'E' .

Hear =OVER_VIEW is the function code and this allows to enter in to planning screen. So here we call the tcode by passing the screen fields along with the values to skip the screen directly(Just like BDC). 2. Did the changes in the standard program using the Implicit enhancement. Steps to implement the implicit enhancement. Find out the coding part where you want to make chanes. Then click on the enhance button.

Then go to Edit>>Enhancement operations>>Show Implicit Enhancement Options

We can see lines with double quotes at starting and ending of the Form as .

Right click on the double quotes line and go to Enhancement Implementation>>Create

Click on the Declaration button

If already enhancement implementations exist, it shows as below. Click on the Create button.

Enter the enhancement implementation name and short text. Then click on enter button.

Then it will create a enhancement implementation to write the code.

3. Sending the values from custom program to standard program. Values sent from custom program to standard program by using Export and Import parameters.

4. Hiding the fields and buttons in the standard screen. 4.1. Application toolbar buttons has been disabled and hided by using the SET PF-STATUS Statement.
data: begin of zsicht_tab occurs 2, fcode like sy-ucomm, end of zsicht_tab. clear : zsicht_tab. refresh : zsicht_tab. zsicht_tab-fcode = append zsicht_tab. zsicht_tab-fcode = append zsicht_tab. zsicht_tab-fcode = append zsicht_tab. zsicht_tab-fcode = append zsicht_tab. zsicht_tab-fcode = append zsicht_tab. zsicht_tab-fcode = append zsicht_tab. zsicht_tab-fcode = append zsicht_tab. zsicht_tab-fcode = append zsicht_tab. zsicht_tab-fcode = append zsicht_tab. zsicht_tab-fcode = append zsicht_tab. zsicht_tab-fcode = append zsicht_tab. zsicht_tab-fcode = append zsicht_tab. zsicht_tab-fcode = append zsicht_tab. zsicht_tab-fcode = append zsicht_tab. zsicht_tab-fcode = append zsicht_tab. 'DIAS'. 'SIMU'. 'TIME'. 'ASSA'. 'ACTU'. 'DAYP'. 'LFT_DSCR'. 'LFT_ESCR'. 'LFT_SSCR'. 'ASS_ERR'. 'ARBPL_VIEW'. 'TELE'. 'RT_DSCR'. 'RT_ESCR'. 'RT_SSCR'.

set pf-status 'SOLL_GRID' excluding zsicht_tab.

4.2. Fields and selection screen buttons has been disabled and hided by modifying the SCREEN internal table using LOOP statement.

5. Created a Modal dialog box to display the Delegated data. Create a screen.

Select Modal dialog box radio button in the attributes tab.

Then click on layout button.

Here create a table control with required fields and click on Flow logic button.

Write the code in PBO and PAI.

Calling the screen in the program.


call screen '0100' starting at 1 30 ending at 106 38.

The values define the Height, Width and Position of the screen.

You might also like