‎2009 Mar 31 8:41 AM
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
‎2009 Mar 31 8:59 AM
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
‎2009 Mar 31 8:50 AM
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
‎2009 Mar 31 8:52 AM
WHere is End of line. if it is there try commenting one from the above 3 and try.
‎2009 Mar 31 8:53 AM
Also this could be due to over lapping check
SELECTION-SCREEN: COMMENT 18(8) text-s02. and length of fields
‎2009 Mar 31 8:55 AM
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
‎2009 Mar 31 8:59 AM
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
‎2009 Mar 31 9:42 AM
Hi Faisal,
After implementing yours one I am getting the error "The specified offset "80" is too large (maximum: 75). "
Regards,
Sambaran
‎2009 Mar 31 10:33 AM
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
‎2009 Mar 31 11:20 AM
‎2009 Mar 31 9:50 AM
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.
‎2009 Mar 31 11:03 AM