Application Development and Automation 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: 
Read only

sub screens

Former Member
0 Likes
718

hello all,

i am getting an error " include bloack not defined, not specified or spelt incorrectly". can some one plz tell me why i got this? i have written this

PROCESS BEFORE OUTPUT.

CALL SUBSCREEN: 'SUB' INCLUDING 'Y_RK_SUB_SCREENS' '0110'.

MODULE STATUS_0100.

PROCESS AFTER INPUT.

MODULE USER_COMMAND_0100.

<b>and

PROGRAM Y_RK_SUB_SCREENS </b> .

TABLES : KNA1.

DATA : BEGIN OF ITAB OCCURS 0,

NAME1 LIKE KNA1-NAME1,

LAND1 LIKE KNA1-LAND1,

END OF ITAB.

&----


*& Module USER_COMMAND_0100 INPUT

&----


  • text

----


MODULE USER_COMMAND_0100 INPUT.

CASE SY-UCOMM.

WHEN 'DISP'.

SELECT NAME1 LAND1 FROM KNA1 INTO ITAB WHERE KUNNR = KNA1-KUNNR.

APPEND ITAB.

ENDSELECT.

WHEN 'EXIT'.

LEAVE PROGRAM.

ENDCASE.

ENDMODULE. " USER_COMMAND_0100 INPUT

&----


*& Module STATUS_0100 OUTPUT

&----


  • text

----


MODULE STATUS_0100 OUTPUT.

  • SET PF-STATUS 'xxxxxxxx'.

  • SET TITLEBAR 'xxx'.

ENDMODULE. " STATUS_0100 OUTPUT

&----


*& Module STATUS_0110 OUTPUT

&----


  • text

----


MODULE STATUS_0110 OUTPUT.

  • SET PF-STATUS 'xxxxxxxx'.

  • SET TITLEBAR 'xxx'.

MOVE-CORRESPONDING ITAB TO KNA1.

thanks & regrds

seenu

Message was edited by:

seenu sap

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
690

Hi,

In your program,just try writing

CALL SCREEN 0100.

regards,

pankaj singh

6 REPLIES 6
Read only

Former Member
0 Likes
691

Hi,

In your program,just try writing

CALL SCREEN 0100.

regards,

pankaj singh

Read only

Former Member
0 Likes
690

Hi Seenu, Please check the name of the subscreen which u had defined in layout.

Please give the name of the subscreen as SUB.

Regards,

Swaroop

Read only

Former Member
0 Likes
690

Hi,

check this..

CALL SUBSCREEN sub_scr1 INCLUDING 'ZKP1_MATERIAL_MAINTAINANCE' '9003'.

<b>Sub_scr1</b> is your subscreen name, <b>ZKP1_MATERIAL_MAINTAINANCE</b> is your program name and <b>'9003</b>' is your screen number.

Reward if usefull...

Read only

Former Member
0 Likes
690

U should not pass the program name & screen number directly use system fields.

PROCESS BEFORE OUTPUT.

  • MODULE STATUS_2000.

CALL SUBSCREEN SUB INCLUDING SY-REPID DNR.

*

PROCESS AFTER INPUT.

CALL SUBSCREEN SUB.

MODULE USER_COMMAND_2000.

<b>Main program.</b>

DATA : DNR TYPE SY-DYNNR.

DNR = '2100'.

Here ur error may be in yr programname or screen number

& u didnt call the subscreen in PAI.

Ur program name will be assigned automatically from the system field.

Check ur subscreen name also.

Read only

0 Likes
690

the sub screen is not being called. iam still in need of help

thanks & regards,

seenu

Read only

Former Member
0 Likes
690

Hi.

In PBO event delete single codes of SUB(only sub).

and PAI write one more statement

CALL SUBSCREEN SUB.