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

Where is the error???

Former Member
0 Likes
1,516

Hello,

In the program I am writing now, I have the following 2 lines of code:

PARAMETERS: P_SUFFIX TYPE FILEEXTERN LOWER CASE.

SELECTION-SCREEN COMMENT 22(12) TEXT-003 FOR FIELD P_SUFFIX.

And when I use Direct Processing, an error message pops up:

Generattion errors in program

Source Code: ?????????????????????????????????

Error when generating the selection screen "1000" of report

And when I commented out the second line in the code segement, everything seem to be fine.

May I know what is the problem of that line? Thanks!

Regards,

Anyi

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,476

Hi,

PARAMETERS: P_SUFFIX TYPE FILEEXTERN LOWER CASE.

SELECTION-SCREEN COMMENT 22(12) TEXT-003 FOR FIELD P_SUFFIX.

why u r giving comment for P_SUFFIX.

Actually PARAMETRS P_SUFFIX is creating the Input filed for File name.

This statement "SELECTION-SCREEN COMMENT" overright the P-SUFFIX. thats what the problem is coming.

So pls change the order:

SELECTION-SCREEN COMMENT 22(12) TEXT-003.

PARAMETERS: P_SUFFIX TYPE FILEEXTERN LOWER CASE.

Hope this will help you.

- Selvapandian Arunachalam

Hello,

In the program I am writing now, I have the following 2 lines of code:

PARAMETERS: P_SUFFIX TYPE FILEEXTERN LOWER CASE.

SELECTION-SCREEN COMMENT 22(12) TEXT-003 FOR FIELD P_SUFFIX.

And when I use Direct Processing, an error message pops up:

Generattion errors in program

Source Code: ?????????????????????????????????

Error when generating the selection screen "1000" of report

And when I commented out the second line in the code segement, everything seem to be fine.

May I know what is the problem of that line? Thanks!

Regards,

Anyi

12 REPLIES 12
Read only

Former Member
0 Likes
1,476

hi Zhu,

try this way out

<b>SELECTION-SCREEN COMMENT 22(12) TEXT-003.</b>

for detalis check this link out

http://help.sap.com/saphelp_erp2005/helpdata/en/52/670cdf439b11d1896f0000e8322d00/frameset.htm

Reward if it helps,

Regards,

Santosh

Read only

0 Likes
1,476

err....it did not seem to work...I still got the same problem, but thanks a lot anyways.

Read only

0 Likes
1,476

try this code.

selection-screen begin of line.

SELECTION-SCREEN COMMENT TEXT-003.

PARAMETERS: P_SUFFIX TYPE FILEEXTERN LOWER CASE.

selection-screen End of line.

or

PARAMETERS: P_SUFFIX TYPE FILEEXTERN LOWER CASE.

after that GOto->Text elements->Selection text.

then u assign the Cooment for P_SUFFIX.

then activate. then u will get comment.

Read only

0 Likes
1,476

If you want to use this comment as your field label, and you want them in the same line. You can do this.





SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 22(12) TEXT-001 FOR FIELD P_SUFFIX.
PARAMETERS: P_SUFFIX TYPE FILEEXTERN LOWER CASE.
SELECTION-SCREEN END OF LINE.

Regards,

Rich Heilman

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,476

I think that you may need to wrap that statement within a SELECTION-SCREEN BEGIN OF LINE statement.

Regards,

Rich Heilman

Read only

0 Likes
1,476

Check this.



selection-screen begin of line.
selection-screen comment (25) text-005.
selection-screen position 33.
parameters: p_pln as checkbox default ' '.
selection-screen end of line.

REgards,

Rich Heilman

Read only

Former Member
0 Likes
1,476

Hi,

It seems that you havent done

SELECTION-SCREEN BEGIN OF SCREEN <scrn> AS SUBSCREEN

PARAMETERS: P_SUFFIX TYPE FILEEXTERN LOWER CASE.

SELECTION-SCREEN END OF SCREEN <scrn>.

Best regards,

Prashant

Read only

Former Member
0 Likes
1,476

Try this,

SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME.

SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS: P_SUFFIX TYPE FILEEXTERN LOWER CASE.

SELECTION-SCREEN COMMENT 22(12) TEXT-003 FOR FIELD P_SUFFIX.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN END OF BLOCK B1 WITH FRAME.

Please do reward if it helps you.

Regards,Felipe Cunha [FpdC]

Message was edited by: Felipe Cunha

Message was edited by: Felipe Cunha

Read only

Former Member
0 Likes
1,477

Hi,

PARAMETERS: P_SUFFIX TYPE FILEEXTERN LOWER CASE.

SELECTION-SCREEN COMMENT 22(12) TEXT-003 FOR FIELD P_SUFFIX.

why u r giving comment for P_SUFFIX.

Actually PARAMETRS P_SUFFIX is creating the Input filed for File name.

This statement "SELECTION-SCREEN COMMENT" overright the P-SUFFIX. thats what the problem is coming.

So pls change the order:

SELECTION-SCREEN COMMENT 22(12) TEXT-003.

PARAMETERS: P_SUFFIX TYPE FILEEXTERN LOWER CASE.

Hope this will help you.

- Selvapandian Arunachalam

Read only

Former Member
0 Likes
1,476

Thanks for all the quick response, but the problem is not with begin of line and end of line though, I did add them and I am pretty sure it did not fix the problem because I got the same error message...but still guys, thanks a lot for helping me out!

Anyi

Read only

Manohar2u
Active Contributor
0 Likes
1,476

We need to swap the statements

SELECTION-SCREEN COMMENT 22(12) TEXT-003 FOR FIELD P_SUFFIX.

PARAMETERS: P_SUFFIX TYPE FILEEXTERN LOWER CASE.

Not sure why...but this works

Regds

Manohar

Read only

Former Member
0 Likes
1,476

Thanks a lot guys, this problem is resolved by swapping the order of statements.

Anyi