Start of Content Area

Procedure documentation Including Customer-Specific Screens in Header Area Locate the document in its SAP Library structure

Use

This procedure is devoted to technical consultants at the customer’s site, who have both ABAP programming knowledge and are also familiar with warranty processing functionality and the customer’s business processes.

Procedure

Enhancing Standard Screen in Header Area with Customer-Specific Screen

The screen may be 2 lines without frame and one line with frame (maximum) and appears at the bottom of the standard screen in the header area.

The linking in of this additional screens takes place via customer exit WTY00001.

...

       1.      Call the display of the components for customer exit WTY00001 – subscreen in Warranty Claim Processing (header screen) – via transaction SMOD.

You see a list of the function modules used (EXIT_SAPLPVSUIWTY_001 and EXIT_SAPLPVSUIWTY_002) and the subscreens. Subscreens 0100 to 0109 of subscreen container 1500 in program SAPLXWTY are predefined but do not exist yet and are available for use as customer-specific subscreens.

       2.      Create a project for WTY00001 (transaction CMOD). All the SAP components you require are copied to this project.

       3.      Create a new screen of screen type Subscreen (transaction se51) in program SAPLXWTY. Use the Screen Painter to do this. The screen number must be between 0100 and 0109.

       4.      Double-click on function module EXIT_SAPLPVSUIWTY_001 in transaction CMOD and then on include ZXWTYU01 to create the screen. Continue in the same way with function module EXIT_SAPLPVSUIWTY_002 / include ZXWTYU02.

The function modules have the following tasks:

¡        EXIT_SAPLPVSUIWTY_001 transports the data from standard processing to the customer-specific function group XWTY of the customer-specific screen in the header area.

¡        EXIT_SAPLPVSUIWTY_002 transports the data from the customer-specific function group XWTY of the customer-specific screen in the header area back to standard processing.

       5.      Enhance your screen by adding fields from structure GS_PNWTYH_DYNPRO (transaction se51).

    6.      Assign the import parameters to the global variants or structures in include ZXWTYU01 (run through in PBO), for example GV_MODE = IV_MODE.

Fill the global structure of customer function group XWTY with data from import structure IS_PNWTYH of function module EXIT_SAPLPVSUIWTY_001.

The TOP include of function group XWTY has preconfigured global variables, structures and tables that you can use:

·        gs_pnwtyh_dynpro type wty_pnh_dynpro

·        gs_pnwtyh_dynpro type wty_pnV_dynpro

·        gs_pvwty_dynpro type wty_pv_dynpro

·        gt_pvwty_dynpro type table of wty_pv_dynpro

·        gv_mode type c

Caution

Do not use structure gs_pnwtyh type pnwtyh.

       7.      Return the data to the function group in include ZXWTYU02 (run through in PAI).

If changes have been made in the warranty claim:

¡        EV_ACTIV = 'X'.

¡        ES_PNWTYH_DYN = gs_pnwtyh_dynpro.

If only customer-specific fields are saved again:

¡        move-corresponding gs_pnwtyh_dynpro to ES_PNWTYH_CUST).

       8.      Program the PAI and PBO modules.

       9.      Activate your project (transaction CMOD).

   10.      Enter the new screen in Customizing (Customizing for Warranty Claim Processing under Define Warranty Claim Types).

Caution

If you have both a customer-specific screen in the header area and a customer-specific screen with header data on tab pages, you have to ensure that the data does not overwrite each other in the customer-specific function group XWTY.

Replacing Standard Screen in Header Area by Customer-Specific Screen

...

       1.      Perform steps 1 to 9 as described above.

       2.      Create a new implementation of BAdI WTY_DYNPRO_DYNAMIC, method SET_SCREEN (transaction se19) and enter the following parameters:

¡        CV_HEADER_SCREEN = '1500'.

¡        CV_HEADER_CUSTOMER = '<Number of own screen>'.

       3.      Activate the BAdI implementation.

Hiding Standard Screen in Header Area

...

       1.      Create a new implementation of BAdI WTY_DYNPRO_DYNAMIC, method SET_SCREEN (transaction se19) and enter the following parameter:

¡        CV_HEADER_SCREEN = '0049'.

       2.      Activate the BAdI implementation.

Hiding Individual Subscreens in Standard Screen in Header Area

...

       1.      Create a new implementation of BAdI WTY_DYNPRO_DYNAMIC, method SET_SCREEN (transaction se19) and enter the following parameters:

¡        CV_HEADER_SCREEN = '1500'.

¡        <Subscreen parameter> = '0049'.

       2.      Activate the BAdI implementation.

Note

BAdI WTY_DYNPRO_DYNAMIC is documented in the system.

 

End of Content Area