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

Selection screen generation problem

Former Member
0 Likes
1,509

HI EXPERTS,

I had 3 parametres in one line(row) in a selection screen .I wanted to add another field int that line.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN: COMMENT (6) text-s01.

PARAMETERS p_route TYPE zfrmr-route.

SELECTION-SCREEN: COMMENT 18(8) text-s02.

PARAMETERS p_carr TYPE lfa1-lifnr.

SELECTION-SCREEN: COMMENT 30(11) text-s03.

PARAMETERS p_licsn TYPE char20.

**********sambaran****************

SELECTION-SCREEN: COMMENT 55(8) text-s21.

PARAMETERS p_agent TYPE lfa1-lifnr.

**********sambaran************

after adding it as shown in code. its showing syntactically correct but when I am trying to activate it I am getting ther error

"generation error in program

sourcecode: zprog line 0

Error when generating the selection screen "1000" of report "zprog"

Regards,

Sambaran

1 ACCEPTED SOLUTION
Read only

faisalatsap
Active Contributor
0 Likes
1,315

Hi,

Test the following Code, i did some change it is working now.

SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN: COMMENT (6) text-s01.
PARAMETERS p_route TYPE zfrmr-route.
SELECTION-SCREEN: COMMENT 20(8) text-s02.
PARAMETERS p_carr TYPE lfa1-lifnr.
SELECTION-SCREEN: COMMENT 40(11) text-s03.
PARAMETERS p_licsn TYPE char20.

***********sambaran*****************
SELECTION-SCREEN: COMMENT 80(8) text-s21.
PARAMETERS p_agent TYPE lfa1-lifnr.
***********sambaran*************
SELECTION-SCREEN END OF LINE.

Please Reply if any problem,

Best Regards,

Faisal

10 REPLIES 10
Read only

Former Member
0 Likes
1,315

Hi,

Total length of selection screen should not excedd 72.

try like this:

SELECTION-SCREEN: COMMENT 55(6) text-s21.

PARAMETERS p_agent TYPE lfa1-lifnr.

Kiran

Read only

Former Member
0 Likes
1,315

WHere is End of line. if it is there try commenting one from the above 3 and try.

Read only

Former Member
0 Likes
1,315

Also this could be due to over lapping check

SELECTION-SCREEN: COMMENT 18(8) text-s02. and length of fields

Read only

Former Member
0 Likes
1,315

Hello,

your new comment to the new parameter begins in col 55 - but parameter 3 (comment) begins in col 30 with length 11 followed by a char20 field. That doesn't fit.

If you want to see details in such an error case, you could use report RSDBGENA - that one show, which elements on the selection-screen cause the error.

Regards Wolfgang

Read only

faisalatsap
Active Contributor
0 Likes
1,316

Hi,

Test the following Code, i did some change it is working now.

SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN: COMMENT (6) text-s01.
PARAMETERS p_route TYPE zfrmr-route.
SELECTION-SCREEN: COMMENT 20(8) text-s02.
PARAMETERS p_carr TYPE lfa1-lifnr.
SELECTION-SCREEN: COMMENT 40(11) text-s03.
PARAMETERS p_licsn TYPE char20.

***********sambaran*****************
SELECTION-SCREEN: COMMENT 80(8) text-s21.
PARAMETERS p_agent TYPE lfa1-lifnr.
***********sambaran*************
SELECTION-SCREEN END OF LINE.

Please Reply if any problem,

Best Regards,

Faisal

Read only

0 Likes
1,315

Hi Faisal,

After implementing yours one I am getting the error "The specified offset "80" is too large (maximum: 75). "

Regards,

Sambaran

Read only

0 Likes
1,315

Hi,

If you are using selection-screen block than change the following.

***********sambaran*****************
SELECTION-SCREEN: COMMENT 75(8) text-s21. " Change 80 to 75 in this line.
PARAMETERS p_agent TYPE lfa1-lifnr.
***********sambaran*************

Hope will work now please reply if still any problem,

Best Regards,

Faisal

Read only

0 Likes
1,315

YES FAISAL..IT'S DONE.

Read only

former_member203501
Active Contributor
0 Likes
1,315

hi there is a problem in the length setting on the selection screen..

i just changed this ....

SELECTION-SCREEN: COMMENT 40 (11) text-s03.

it is working fine now...

please count the chars while displaying on the selection screen....the problem is due to the over writing of the texts on the selection screen

and one more thing we cannot use more than 79 chars in a line.

Read only

Former Member
0 Likes
1,315

--