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

dynamic component in WHERE-condition for LOOP AT ?

Former Member
0 Likes
1,662

i want to make

loop at itab where (dynamic field) > 0

how i can make it...

Edited by: Thomas Zloch on Mar 2, 2010 2:47 PM

1 ACCEPTED SOLUTION
Read only

rainer_hbenthal
Active Contributor
0 Likes
1,608

RTFOH:

Dynamic specification of a component through bracketed character-type data objects is not possible.

i want to make

loop at itab where (dynamic field) > 0

how i can make it...

Edited by: Thomas Zloch on Mar 2, 2010 2:47 PM

12 REPLIES 12
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,608

Is it possible ... I have tried it before.

Wait for good suggestions !!!

Read only

rainer_hbenthal
Active Contributor
0 Likes
1,609

RTFOH:

Dynamic specification of a component through bracketed character-type data objects is not possible.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,608

RTFOH ?? I dont get what this acronym stands for !!!

Rainer, please enlighten me

Read only

0 Likes
1,608

r ead t he f ... o nline h elp

similar to RTFM

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,608

Hope the mods find it as amusing

Cheers,

Suhas

Read only

0 Likes
1,608

I thought it's funny.

And the problem can maybe be solved by using a completely dynamic where-condition, not just a dynamic component.

http://help.sap.com/abapdocu_70/en/ABAPLOOP_AT_ITAB_COND.htm#!ABAP_ADDITION_4@4@

Thomas

P.S. meaningless subject enhanced, and please take the time to say hi and please when asking for help. Thanks.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,608

Hello Thomas,

I think this feature has been introduced in SAPNW7.0. Previous SAP release don't support dynamic tokens with LOOP AT ... WHERE clause.

Correct me if i am wrong.

Cheers,

Suhas

Read only

0 Likes
1,608

Dynamic WHERE clause for internal tables statements such as LOOP are only supported as of NW 7.02.

Regards,

Rich Heilman

Read only

0 Likes
1,608

Thanks for the information Rich

Keshav

Read only

0 Likes
1,608

Time to upgrade, folks

Read only

former_member770378
Active Participant
0 Likes
1,608

field symbols: <fs>.

assign (name of your field) to <fs>. "don't forget ()

loop at itab where <fs> 0.

...

Read only

0 Likes
1,608

Please try it once before posting.

I have tried this many times.

Blank Explanation doesnt help anybody.