on 12-07-2004 2:57 PM
Hai
I want to check wether there are fields WWRET; WWREV, WWCUC WWGCN in the table CE1XXXX where (XXXX is Operating concern populated in the selection.)
Thanks in advance
Oli
Hi Oli,
These fields are CHARS (Merkmale) of your Operating Concern. If you go to transaction KEA0 you could check these fields in the structure of you Operating Concern. If your Operating Concern is active an generated you could see these fields in the table CE1XXXX. Use transaction SE11.
Best regards
Vladimir Golovtchiner
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oliver,
1. ) table TKEFE hold the chars of an operating concern.
2.) Read ddic info (table dd03l)
3) try assign component 'WWRET' of structure
where structure represents ce1xxxx.
One of the approach should fulfill your needs.
Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Christian and Vladimir,
I want to check programatically with ABAP.....could you please help me.
I want to check wether there are fields WWRET; WWREV, WWCUC WWGCN in the table CE1XXXX (where XXXX is Operating concern will be populated in the selection selection screen.)
And The field should have
Techn. Field Type min. Field Length
WWRET CHAR 2
WWREV CHAR 4
WWCUC CHAR 3
WWGCN CHAR 10
Thanks in advance
Oli
As Christian mentioned code a select statement to DDIC table DD03L with the table name and field name. After the select check for SY-SUBRC. If SY-SUBRC is 0 field exist in the table else does not exists.
Sample:
Select Single * from DD03L
Where TABNAME = <tablename>
and FIELDNAME = <fieldname>.
if sy-subrc eq 0.
Write: 'Field Exists'.
else.
Write: 'Field does not Exists'.
endif.
Thanks,
Shashi Reddy
Oliver,
here quick & dirty
you would have to concatenate l_tabname.
data: gref_data type ref to data.
data: g_tabname type dd02l-tabname value 'CE10100'.
field-symbols: <g_struct> type any,
<g_field> type any.
create data gref_data type (g_tabname).
assign gref_data->* to <g_struct>.
assign component 'WWRET' of structure <g_struct> to <G_field>.
if sy-subrc is initial.
WWRET is component of structure
else.
it is not part of the structure.
endif.
Christian
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.