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

SAP Query and selection screen fields

Former Member
0 Likes
541

Hi,

I am currently modifying a Query. I have added a new selection field. The fieldname for this selection field has been autogenerated within the query and I have pasted a bit in here:

SELECT-OPTIONS SP$00015 FOR ZERROR_FLG LOWER CASE.

SELECT-OPTIONS SP$00022 FOR KNA1-ERDAT.

SELECT-OPTIONS SP$00023 FOR KNA1-ERNAM.

SELECT-OPTIONS SP$00027 FOR ZLOEVM LOWER CASE.

SELECT-OPTIONS SP$00030 FOR ZPARTNERNO

NO INTERVALS NO-EXTENSION.

I relation to this select -option, I want to execute a few lines of code that only is executed if the user has filled in a value in teh ZPARTNERNO field. However, no matter if I use the field name ZPARTNERNO or SP$00030 it has no effect.

Any good ideas ?

4 REPLIES 4
Read only

Former Member
0 Likes
505

If I am understanding correctly,

are you using:

if not SP$00030 is initial.

endif.

Warren

Read only

0 Likes
505

Yes, that was the most obvious, but it did not work.

Peter

Read only

Former Member
0 Likes
505

HI,

In the AT SELECTIOn-SCREEN event, you can write the code

IF not <b>SP$00030[]</b> is initial.

write the code which you want to execute before the output

ENDIF.

if you want in START-OF-SELECTION>

IF not <b>SP$00030[]</b> is initial.

write the code which you want to execute before the output

ENDIF

Regards

Sudheer

Read only

0 Likes
505

Hi,

I just tried that and it says that SP$00030 is unknown and not declared in the DATA section etc...

/Peter