Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Screen Parameters in include

Former Member
0 Kudos

Hi Dear All:

    I write a report with PNP. In the main report I add some includes such as z_data, z_screen, z_form. Each of these include container data declaration, screen parameters,forms. The codes are:

REPORT  zxxxxx.

INCLUDE zxxxxx_data.
INCLUDE zxxxxx_form.
INCLUDE zxxxxx_screen.

*---------------------------------------------------------------------*
INITIALIZATION.
*---------------------------------------------------------------------*
  PERFORM initalize_paramteters.

*---------------------------------------------------------------------*
START-OF-SELECTION.
*---------------------------------------------------------------------*
GET pernr.
  PERFORM fill_eeinfo.           " USING so_inum.

*---------------------------------------------------------------------*
END-OF-SELECTION.
*---------------------------------------------------------------------*
  PERFORM print_retroinfo.

In the include zxxxxx_screen. I put the codes:

SELECTION-SCREEN BEGIN OF BLOCK fr2 WITH FRAME TITLE text-fr2.

  PARAMETERS: c_ztp AS CHECKBOX.
SELECTION-SCREEN END OF BLOCK fr2.

But in the include zxxxxx_form. when I use c_ztp. SAP give the error that c_ztp does not exist!  As you know parameters are components of a selection screen that are assigned a global elementary data object in the ABAP program. Can anyone tell me why. Thank you so much.

1 ACCEPTED SOLUTION

former_member184569
Active Contributor
0 Kudos

Make sure you activated all the includes.

3 REPLIES 3

former_member184569
Active Contributor
0 Kudos

Make sure you activated all the includes.

0 Kudos

yep thank you for your reply first. I activate all the programs together, it give me the error.

0 Kudos

Hi zxxxxx_form after the include zxxxxx_screen. Thank you all the same.