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

at selection screen

Former Member
0 Likes
759

Hi all..

in the Alv report on the selection screen,i have given one fields for which only entries greater/above 100 $ should be displayed.Although while making variant i am givng the field value as 100,but it is not able to relate this value as a value in USD.kindly let me know what is to be made changes as a part of validating this field on the selction.

thnks in adv

8 REPLIES 8
Read only

Former Member
0 Likes
732

Post u r code which u have written at at selection-screen ....

regareds

Sas

Read only

MarcinPciak
Active Contributor
0 Likes
732

PARAMETERS: field type p decimals 2.

AT SELECTION-SCREEN.

IF field le '100.00'.
  MESSAGE 'Only amounts greater that 100 are permitted' TYPE 'E'.
ENDIF.

It will prompt an error message each time user enters amount less or equal to 100, hence will not allow to go further in the program.

I hope it will help you

M.

Read only

0 Likes
732

i am sorry if i am unable to pass on the correct idea.

the requireemtn is like.

i have certain fields on the slection screen,one of those is coming from eban-preis.Now on the selection if i am inputting 100,it should only display the conversions above 100 $ only.

there are conversions which are in other currency also but i am displaying the conversions in dollars only.

So,my question is....i wish to add a code,may be before the display of the final alv for which only the converted value above 100$ should be displayed.

hope i explained properly.

Read only

0 Likes
732

Hi,

try like this

data : v_value(20) type c.

concatenate <selection screen field> '$' into v_value.

condende : v_value.

if the final internal table is it_final.

delete it_final where <give the field> LE V_value.

Regards,

Nagaraj

Read only

0 Likes
732

Hi Tanisha

Suppose you declared a parameter p_preis.

So first you select all the values of preis as per your need and then you delete from the internal table like this.

Delete i_table where preis le p_preis.

hope it will solve the problem.

Regards

Neha

Read only

Former Member
0 Likes
732

i havent written at selection screen till now.

the slection scren parameter is eban-preis.

now i want to put eban-preis > 100$ in the logic,for this condition only,it should give the display and not lesser than that.

please help.

Read only

former_member404244
Active Contributor
0 Likes
732

Hi,

Try like this...

at selection screen on field <give selection field name>.

if <selectionfieldname> GT '100$'.

ELSE.

THROW ERROR MESSAGE.

endif.

Regards,

Nagaraj

Read only

Former Member
0 Likes
732

USE :

AT SELECTION-SCREEN ON S_QTY.

IF NOT S_QTY IS INITIAL.

IF S_QTY LE 100

MESSAGE.

ENDIF.

ENDIF.