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

Condition Tables

Former Member
0 Likes
1,201

Hi

I have in my selection screen

CONDITION TYPE (T685-kschl) as Select-options (mandatory)

CONDITION TABLE (T682I-Kotabnr) as Select-options (mandatory)

PLTGROUP (Tvk8-kvtr8) as Select-options

BRANDCODE ( Tvm1-mvgr1) as Select-options

My requirement is that for given condition tables say A932,A982,A964,A966, A800, A808

and if PLT Group is given in input only condition tables having Technical field KATR8 are to be selected for further processing.. and so only A982 is only to be selected from the above tables for further processing.

Similarly if Brandcode is given in input only condition tables having Technical field ZZMVGR1 are to be selected for further processing.. and so only A801 is only to be selected from the above tables for further processing.

How do i go about that???

1 ACCEPTED SOLUTION
Read only

naimesh_patel
Active Contributor
0 Likes
804

You can check in the table DD03L with the Table name and field name.

Like:


SELECT TABNAME
INTO TABLE T_DD03L
FROM DD03L
WHERE TABNAME IN <Cond_tab>
AND FIELDNAME = 'KATR8'.

Regards,

Naimesh Patel

3 REPLIES 3
Read only

ThomasZloch
Active Contributor
0 Likes
804

call function DDIF_FIELDINFO_GET for each selected condition table and see if the fieldname appears in return table DFIES_TAB. If not, remove from further processing.

Thomas

Read only

0 Likes
804

Thanks all , i could make it..

Read only

naimesh_patel
Active Contributor
0 Likes
805

You can check in the table DD03L with the Table name and field name.

Like:


SELECT TABNAME
INTO TABLE T_DD03L
FROM DD03L
WHERE TABNAME IN <Cond_tab>
AND FIELDNAME = 'KATR8'.

Regards,

Naimesh Patel