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

URJENT

Former Member
0 Likes
923

Hi All,

1. in Read statement how to use lower and higher condition ?

"S_MATNR " IN SELECTION SCREEN MATERIAL CONTAIN VALUE RANGE.

I want to check the value range in read statement .

eg: READ TABLE T_COMPAS INTO W_COMPAS WITH KEY MATNR = S_MATNR-LOW S_MATNR-HIGH.

It is showing error message.

Thanking you.

Hi All,

1. in Read statement how to use lower and higher condition ?

"S_MATNR " IN SELECTION SCREEN MATERIAL CONTAIN VALUE RANGE.

I want to check the value range in read statement .

eg: READ TABLE T_COMPAS INTO W_COMPAS WITH KEY MATNR = S_MATNR-LOW S_MATNR-HIGH.

It is showing error message.

Thanking you.

7 REPLIES 7
Read only

JozsefSzikszai
Active Contributor
0 Likes
892

You are asking the same question 4th time!!! I know that half of the answers were rubbish (however there were good answers as well), but...

CAN YOU JUST STOP?

Read only

Former Member
0 Likes
892

Post the question for one time.... Don't repeat the same question for entire SDN....

Use the loop with where condition and get the valid records..., being S_MATNR is an select-option you may get the multiple records. If you want only one record with in that range then put one EXIT with in that loop-endloop.

Edited by: Ravi Kumar on Jul 11, 2008 9:19 AM

Read only

Former Member
0 Likes
892

Hi,

Try this-

Read table t_mara into fs_mara with key matnr = s_matnr.

Regards,

Sujit

Read only

Former Member
0 Likes
892

What u r doing man............

U have posted this question 4 thimes..........

Just check ur previous question i think u will get ur answer if not then reply to any thread.....

Thanks,

Read only

naveen_inuganti2
Active Contributor
0 Likes
892

Hi.....

Subhasha....

This is really very unfair yaar...

You can come back with ur reply with iin the same Question...

sorry... But Dont repeat like this...

You know so many qustions will moves back with this....

and..,

May I know What is the problem with following Answer!!!!!?????

Your Reading more than one entries into internal table ...

Then...,

Change your code like this....

>loop at itab into wa where matnr = s_matnr-low and matnr = s_matnr-high.

>

>(Use those Entries)

>

>Endloop.

and proceed..,

Thanks,

Naveen

Read only

0 Likes
892

Hi,

as sujit said you can try with this code.

select-options: s_matnr like mara-matnr.

initialization.

s_matnr-sign = 'I'.

s_matnr-option = 'BT'.

s_matnr-low = 'low number'.

s_matnr-high = 'high number'.

append s_matnr.

read table T_COMPAS into W_COMPAS with key matnr in s_matnr.

regards.

sriram.

Read only

JanStallkamp
Advisor
Advisor
0 Likes
892

Hi.

Don't repeat your question in several threads. Don't use meaningless subjects. Don't claim your question being urgent (btw: ur_g_ent) others don't feel the need to answer it urgent.

Read our rules of engagement! Users continuously breaking this rules will lose their account. I will lock this thread, most other copies have been deleted.

Best regards,

Jan Stallkamp