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: 

Select-Options error

P391792
Participant
0 Kudos

Hi,

I have copied SAP query generated program into Z Program

in this program I am adding the new field in selection screen but when I add selection text element it is giving errors and not getting activated.

program is working fine but selection text element it is not taking.

Please help me in this.

Thanks in advance.

Joseph

9 REPLIES 9

JozsefSzikszai
Active Contributor
0 Kudos

hi Joseph,

what is the error you get when you activate the selection text?

ec

0 Kudos

Hi,

I got the following information.

Text elements contain errors. Please correct them

Regards,

Joseph

0 Kudos

Please look at the SA Note .. 853826 .. this might help you ...

0 Kudos

Hi Joseph,

When you add a Input field which is typed with a data element ex: structure field

then there is no need to define the selection text for that Input filed. It will automatically take it from the Dictionary

ex: PARAMETERS pa_carr TYPE spfli-carrid.

Could please provide the entire CODE and give the steps that you are exactly following while defining the selection texts.

Thanks

Ravi

0 Kudos

Hi

select-options SP$00001 for VBAK-VBELN memory id AUN.

select-options SP$00002 for VBAP-POSNR memory id APO.

select-options SP$00003 for VBAP-MATNR memory id MAT.

select-options SP$00004 for VBAK-AUDAT.

select-options SP$00005 for VBAK-ERNAM.

select-options SP$00006 for VBAK-KUNNR memory id VAG.

select-options SP$00007 for VBAK-AUGRU.

select-options SP$00008 for MBEW-BWKEY memory id BWK.

select-options SP$00009 for VBAK-AUART memory id AAT.

select-options SPRODUCT for VBAP-PRODH . "Changes by Joseph

If u see in the last line I want to display as Product Hierarchy

so I am going for selection text element

0 Kudos

Hi,

I am following as usual method how we add it in the normal report I followed the same procedure in the report it did not give any errors but here it is not accepting

0 Kudos

Hi

In the 'Selection texts' give the field Name as SPRODUCT and give the field Text as Product Hierarchy and don't check the Dictionary check box.

Save and activate.

This's what the procedure that i've followed now.. I'm able active it with, without errors.

Note: Also make sure there is no problem with remaining Text elements like 'List Headers' and 'text symbols'. If any of the text elements have the problem then you can't active it.It'll give the same error message.

Thanks

Ravi

P391792
Participant
0 Kudos

Hi ALL,

I only resolved this issue most of the people given different resolutions but it could not solve this issue. Because it is SAP generated so we have to go to screen 1000 and change text and activate the screen as well as program .

this is procedure for SAP querris to add selection field.

If you have any querris contact me

Regards,

Joseph

0 Kudos

Hi All,

I found the correct solution for this problem.

Just we need to selection text screen-> utilities->adjust->give selection text again and save.

Problem will be solved.

Thanks.