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: 

Error when Generating the Selection Screen?

Former Member
0 Kudos
2,281

Hi Guys,

When i am executing the program with this code .I am getting this type of Error

" Source code ZUSFICOR00013_MM_ACNT_COSTING Line 0

Error when generating the selection screen "1000" of report

"

I got this Error while activating my program.The code which i wrote is the below one.

SELECTION-SCREEN: BEGIN OF LINE.

Select-Options : S_MATNR for MBEW-MATNR ."MatchCode Object MAT1,

SELECTION-SCREEN COMMENT 2(10) TEXT-004 for field s_matnr.

SELECTION-SCREEN: END OF LINE.

Thanks,

Gopi.

3 REPLIES 3

Former Member
0 Kudos
98

Use like this :

SELECTION-SCREEN: BEGIN OF LINE.

<b>SELECTION-SCREEN COMMENT 2(10) TEXT-004 for field s_matnr.</b>

Select-Options : S_MATNR for MBEW-MATNR ."MatchCode Object MAT1,

SELECTION-SCREEN: END OF LINE.

Do not use after field of s_matnr ,use before.

Thanks

Seshu

0 Kudos
98

Hi Seshu,

While doing EPC for the Below code

SELECTION-SCREEN: BEGIN OF LINE.

SELECTION-SCREEN COMMENT 2(15) TEXT-004 for field s_matnr.

Select-Options : S_MATNR for MBEW-MATNR ."MatchCode Object MAT1,

SELECTION-SCREEN: END OF LINE.

I am getting an Warning like " Selection text or parameter for selection field S_MATNR is not maintained" How to coorect this one?

and also for the this Below Code

s_fieldcatalog-col_pos = 1.

s_fieldcatalog-fieldname = 'BWKEY'.

s_fieldcatalog-tabname = 'i_MBEW_out'.

s_fieldcatalog-seltext_l = 'Plant'.

append s_fieldcatalog to t_fieldcatalog.

clear s_fieldcatalog.

s_fieldcatalog-col_pos = 2.

s_fieldcatalog-fieldname = 'MATNR'.

s_fieldcatalog-tabname = 'i_MBEW_out'.

s_fieldcatalog-seltext_l = 'Material'.

append s_fieldcatalog to t_fieldcatalog.

clear s_fieldcatalog.

s_fieldcatalog-col_pos = 3.

s_fieldcatalog-fieldname = 'MAKTX'.

s_fieldcatalog-tabname = 'i_MBEW_out'.

s_fieldcatalog-seltext_l = 'Material Description'.

append s_fieldcatalog to t_fieldcatalog.

clear s_fieldcatalog.

I am getting EPC Error like " Char. strings w/o text elements will not be translated:

'Plant'"

Can u please tell me How to correct these type of EPC Error's.

Thanks,

Gopi.

Former Member
0 Kudos
98

When using select-options and parameters you do not normally need to put a comment text to provide the text for the field.

Just go to the menu option Goto>Text Elements>Selection Texts and enter the required text there. You also will then not need the begin of line or end of line statements. If you have not put this text in, that may be why you get the selection text not maintained error.

How you fix the message about text not translated depends on whether the system you are using is multi language or not. If not multi language and never will be, then you can simply supress the messages by putting a comment "EC NOTEXT at the end of each line.

If you have or may have multiple languages, double click on the text and this will give a pop-up asking if you want to create a text element. Say yes and let the system assign a text number etc. Repeat for all texts and then save and activate.

Andrew