Professional Documents
Culture Documents
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.
using bdc
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.
We can see lines with double quotes at starting and ending of the Form as .
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.
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'.
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.
Here create a table control with required fields and click on Flow logic button.
The values define the Height, Width and Position of the screen.