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: 

selection screen problem in module pool

Former Member
0 Kudos

Hi friends,

I am working on module pool programming, I need to put select screen on the screen of the module pool porgramming. I used Input/Output field to do that and activated. But I am getting message invalid field format (screen error) can any one tell me why I am not able to run the seletion screen when I am using input/output field, also please let me know how to solve this problem.

Regards,

Line

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Line,

The field which you want display on screen how you have defined in top-include of program..?? or r u refering directly to Standard table.

If the field in say of type INT4 & in Layout Editor (Screen Painter) if you change the type of field, this error will appear.

Make sure that you have not changed the properties of field in screen layout.!!

Regards

Sushil

4 REPLIES 4

Former Member
0 Kudos

define selection screen like this in your program

SELECTION-SCREEN BEGIN OF SCREEN 500 AS WINDOW.

SELECTION-SCREEN BEGIN OF BLOCK sel2

WITH FRAME TITLE tit2.

PARAMETERS: airpfr TYPE spfli-airpfrom,

airpto TYPE spfli-airpto.

SELECTION-SCREEN END OF BLOCK sel2.

SELECTION-SCREEN END OF SCREEN 500.

and call it using this statement

CALL SELECTION-SCREEN 500 STARTING AT 10 10.

Reward points if useful, get back in case of query...

Cheers!!!

Former Member
0 Kudos

Hello,

Think that this is useful for u/

SELECTION-SCREEN - Defining selection screens

Variants:

1a. SELECTION-SCREEN BEGIN OF SCREEN scr.

1b. SELECTION-SCREEN END OF SCREEN scr.

2. SELECTION-SCREEN BEGIN OF SCREEN scr AS SUBSCREEN.

Effect

Defines a selection screen with the number scr. scr may be up to 4 digits.

SELECTION-SCREEN BEGIN OF SCREEN scr.

Additions:

(zu SELECTION-SCREEN BEGIN OF SCREEN scr) 1. ... TITLE title

2. ... AS WINDOW

Notes

In reports (type 1 programs), a selection screen with number 1000 is created automatically when you use the SELECT-OPTIONS, PARAMETERS and SELECTION-SCREEN statments. This selection screen appears when you SUBMIT the report.

In any type of program (apart from subroutine pools - type S), you can define further selection screens using SELECT-OPTIONS, PARAMETERS and SELECTION-SCREEN. You enclose these statements between the SELECTION-SCREEN BEGIN OF SCREEN and SELECTION-SCREEN END OF SCREEN statements.

You call these screens using the CALL SELECTION-SCREEN statement.

Screen number 1000 is not allowed (reserved for standard selection screen).

When you generate the program, all user-defined selection screens are also generated.

Within a report (type 1 program), all SELECT-OPTIONS, PARAMETERS and SELECTION-SCREEN statements outside a SELECTION-SCREEN BEGIN/END OF SCREEN block form part of selection screen 100 (standard selection screen)

Regards,

LIJO JOHN.

Former Member
0 Kudos

Hi Line,

The field which you want display on screen how you have defined in top-include of program..?? or r u refering directly to Standard table.

If the field in say of type INT4 & in Layout Editor (Screen Painter) if you change the type of field, this error will appear.

Make sure that you have not changed the properties of field in screen layout.!!

Regards

Sushil

Former Member
0 Kudos

hi turbin

Even iam working on module pool programming...let me clear ur doubt...

selection-screen : begin of screen 0100.

selection-screen : begin of block blk1 with frame title text-001.

parameters : p_matnr like mara-matnr obligatory,

p_werks like marc-werks obligatory.

select-options : s_erdat like mara-erdat.

selection-screen : end of block blk1.

selection-screen : end of screen 0100.

REWARD IF USEFUL....!!