cancel
Showing results for 
Search instead for 
Did you mean: 

Select-options How to assign Default value as "Not equal to something"

Former Member
0 Kudos

My req. is to asssign default value for a select-option as <> "DS1" . I am able to give default value as DS1 But dont know how to give "<> DS1" . Please help me

Thanking u in advance ..

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

INITIALIZATION.

s_lifnr-low = '0001'.

s_lifnr-high = '0002'.

s_LIFNR-sign = 'I'.

s_lifnr-option = 'NE'.

append s_lifnr.

Regards,

Subramanian V.

P.S. - Raja, still mode = BSP ??? 😛

Message was edited by: Subramanian Venkateswaran

athavanraja
Active Contributor
0 Kudos

Hi Subramanian V.,

Sorry i didnt get you.

Regards

Raja

Former Member
0 Kudos

OnInitialisation ??

Never mind. a bad joke.

Message was edited by: Subramanian Venkateswaran

athavanraja
Active Contributor
0 Kudos

Oh yeah. I am basically an ABAPER and been doing these web related stuffs recently. I often make mistakes like in ABAP i use " instead of ' , etc.

Raja

Former Member
0 Kudos

But if i put that coding, the report is taking more time to genererate the o/p. I have put it before the first select statement . Still its taking time . Why ? any idea .. Pls explain ..

Thanking you ..

athavanraja
Active Contributor
0 Kudos

> But if i put that coding, the report is taking more

> time to genererate the o/p. <b>I have put it before the

> first select statement .</b> Still its taking time . Why

> ? any idea .. Pls explain ..

>

> Thanking you ..

I dont understand.

Did you put it in initialization event?

Regards

Raja

Former Member
0 Kudos

actually, I got the solution .. Anyway Thank you for replying..

Former Member
0 Kudos

Hi Narayanan,

Can you please post the solution and mark this pposting as Closed, as the solution has been cracked

Reg.

PSK

Former Member
0 Kudos

Actually i had put the following code in

start-of-selection.

INITIALIZATION.

s_lifnr-low = '0001'.

s_lifnr-high = '0002'.

s_LIFNR-sign = 'I'.

s_lifnr-option = 'NE'.

append s_lifnr.

I moved the same and put it before start-of-selection.

Then it was working fine ..

Thank u for spending time with me to solve the problem.

Answers (1)

Answers (1)

athavanraja
Active Contributor
0 Kudos

In your OnInitialization event fill up the range table of the selectoption.

For e.g if your select-option is BUKRS.

move: 'I' to bukrs-sign ,

'NE' to bukrs-option ,

<defualt value> to bukrs-low .

append bukrs.

Hope this helps.

REgards

Raja