How to find out if a structure already exists in DDIC
Hi all,
I want to find out if a structure or table type already exists in the DDIC. I intend to use the DDIF_TABL_GET function module and catch the exception raised but I am not sure if this 'illegal input' exception is only raised if a structure does not exist in DDIC. Is it the right way or is there a function module or static class method which can return me this info stg. like DDIC_OBJECT_EXISTS or not . I have the same problem for the table types too, but I think the solution must be similar...
Kind Regards,
Sükrü Ilker Birakoglu
Hi all,
Thank you for your answers. I also found an alternative way for solving the problem. If you call the function module DDIF_TABL_GET with the state parameter set to 'M' (get the object regardless of its state(active, new)), the export parameter GOTSTATE shows us if the object in DDIC exists or not(if this parameter is space, then the object does not exist).
Kind Regards,
Sükrü Ilker Birakoglu
Similar Messages
-
How to find out the path of already existing directory?
I need to get the exact path of 'FCO_DIR' directory. Could you please help me out with this.
Is there any table name or a quey that I can run to get this information?
Below is the code that I am using :
Code:
l_input_dir CONSTANT VARCHAR2 (30) := 'FCO_DIR';
l_input_file CONSTANT VARCHAR2 (30) := abc_ca_upd.dat';
fhandle := UTL_FILE.fopen (l_input_dir, l_input_file, 'r');
Thanks in Advanvce !!900811 wrote:
I tried running this query in production. I am getting error message ORA-00942: table or view does not exist
Does this require DBA privileges ?As mentioned before, this should not require "DBA privileges", whatever that means, but it requires rights to query the view (think least privileges principle).
Did you try querying ALL_DIRECTORIES instead? (or USER_ equivlent)
In dev environment, I am getting the correct results.What is the output from ALL_DIRECTORIES in dev? -
How to find out that particular structure is used in which tables
Hello Friends,
Most of the times through techinal information we come to know the table name for a particular field.And in se16 when i give that table name than system says its structure and not the table.So in se11 when i give that structure name in database table field, its shows all the field in that structure, but not the data stored in that field.
So my question is how to find out that particular structure is used in which tables,so that i can view data stored in that structure?
Thanking you guys in advance.
Regards,
JitendraDear,
When you click on the technical information it will give the structure name and field, double click on the structure and it will take you the display structure screen, there you will have the where-used List icon (Ctrl + Shift + F3) at the top , click on that and it will show the options, select Database tables and execute, it will give the tables related to the structure, you can explore the list of tables and find where your required field is stored in them.
Thanks & Regards,
Vijaya Bhaskar A -
How to find out, if a dynamic genereated structure already exists in DDIC?
Good morning developers,
can you help me with that above mentioned problem?
I'm about to write a report which manages to change tablecontrol(s) to alvgrids.
My current problem is, that i read all fields of a tablecontrol and generate its <b>structure</b> dynamically ( temporary just during runtime of the report, not stored yet ).
Now I have to know, if this generated structure already exists in the DDIC, or not.
If not, i have to create a type of my generated structure and store it in the DDiC.
I know that there s a FM called <b>"COMPARE_STRUCTURE_DATA"</b>.
But i think i have to know the name of the existing structure in DDiC.
Is there also a way for a recursive search in ddic?
If not: when i read the fields of my tablecontrol from the DDiC, i read from ddic-table D021S. In its field "FNAM" it contains for example SFLIGHT-carrid ( <table><column> ).
I could split 'FNAM' into table and column. How do i search for the structuretype of a table?
Thx for your replys, post points waiting
Regards
BastiHello Bastian
All dynpro fields (including table controls) are either based on DDIC structures of program variables. Thus, the following coding will return you the required answer.
*& Report ZUS_SDN_RTTI_IS_DDICTYPE
REPORT zus_sdn_rtti_is_ddictype.
TYPE-POOLS: abap.
TYPES: BEGIN OF ty_s_line.
TYPES: field(3) TYPE n.
TYPES: flag(1) TYPE c.
" INCLUDE TYPE knb1.
TYPES: END OF ty_s_line.
TYPES: ty_t_line TYPE STANDARD TABLE OF ty_s_line
WITH DEFAULT KEY.
DATA:
gs_line TYPE ty_s_line,
gs_knb1 TYPE knb1,
go_tabdescr TYPE REF TO cl_abap_tabledescr,
go_strucdescr TYPE REF TO cl_abap_structdescr.
START-OF-SELECTION.
go_strucdescr ?= cl_abap_tabledescr=>describe_by_data( gs_line ).
IF ( go_strucdescr->is_ddic_type( ) = abap_true ).
WRITE: / 'gs_line is a DDIC type'.
ELSE.
WRITE: / 'gs_line is not a DDIC type'.
ENDIF.
SKIP.
go_strucdescr ?= cl_abap_tabledescr=>describe_by_data( gs_knb1 ).
IF ( go_strucdescr->is_ddic_type( ) = abap_true ).
WRITE: / 'gs_knb1 is a DDIC type'.
ELSE.
WRITE: / 'gs_knb1 is not a DDIC type'.
ENDIF.
END-OF-SELECTION.
However, if a dynpro field is based on a type defined within the program the situation may be more complex if the type includes DDIC structures (as shown above). But I am sure you will master this obstacle.
Regards
Uwe -
How to find out the DPI of an existing PDF doc?
When I print a doc/web page with a pdf printer driver then I can adjust the DPI for the print.
Ok. But how does this work the other way?
When I have a pdf doc and want to find out the DPI with which it is printed ?
How can I find out this value?
MatthiasPDFs do not have a dpi. Only individual raster graphics in a pdf have a
resolution. In a single pdf there can be several different raster and
vector graphic objects.
The Acrobat application doesn't control the dpi that a printer uses to
rasterize a printed pdf file. That is done by the printer driver---most
often an OS function. The dpi uses to print a pdf has nothing to do with
the pdf specification.
Mike -
How to find out who is owner of existing workspace?
Hello, I would like to create Workspace. But this WS name is already exist. Can I find out who is owner of this WS?
Thank you,
TomasTomas,
You can't find out who has the name, it would compromise the security of the system - you will have to pick another name I'm afraid.
Phil -
How to find out more info about an existing fault
Hi there,
The whole village of Luib on Skye has been cut off because the main road was being resurfaced and the machine digging up the tarmac ripped up and mangled the main phone cable on 30th March. (Not the road menders' fault, but BT's because they never buried the cable properly. In fact, they didn't bury it at all, just hid it in the verge.)
I have logged the fault on my line and can get a standard amount of info using the online fault tracker. The thing is that all that's available is a standard message saying the phone is expected to be fixed in 3 working days. We (the villagers) don't think this is likely: It's happened before and BT need to order up a supply of the thick cable AND arrange traffic lights etc. We fear it's more likely to be a couple of weeks at best.
How can we find out more useful information? I tried phoning BT and pressing various buttons, just got the standard fault info, then was asked if I wanted to continue. When I pressed 2 for "yes" a voice said "Thank you for calling BT - Goodbye." That wasn't the sort of continuation I wanted!
I have to say that we are heartily sick of the poor treatment we get here on Skye. BT seem to think that because we in a remote place we are not a priority. But consider this: Luib has both private houses and businesses, including mine, that need a phone service and broadband, credit card faciilities etc. and WE DO NOT HAVE ANY MOBILE PHONE SIGNAL. This means we are totally cut off. What if there is a medical emergency?
OK: Rant over. But can anyone suggest how I might escalate this and/or find out some solid information. If it turns out there's a wait of a couple of weeks is there any way of putting pressure on to speed things up?
Many thanks.I take it you've tried this - http://community.bt.com/t5/Phones/How-do-I-track-an-existing-fault/td-p/6
Not sure if contacting the mods would help you further than the faults team could.
Check your exchange or major service outagesIf someone has given a helpful answer, please click on their Ratings star on the left-hand side. *** -
How to find out the list of field exists for a particular transaction
Hi all,
Can u please help me find out the list of field exits available for a particular Tcode?
Is it similar to User exit or . . . . ?
Thanks,
C.Selvaraj
SAP-QMCreate a program and add this code to find user exit
tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
tables : tstct.
data : jtab like tadir occurs 0 with header line.
data : field1(30).
data : v_devclass like tadir-devclass.
parameters : p_tcode like tstc-tcode obligatory.
select single * from tstc where tcode eq p_tcode.
if sy-subrc eq 0.
select single * from tadir where pgmid = 'R3TR'
and object = 'PROG'
and obj_name = tstc-pgmna.
move : tadir-devclass to v_devclass.
if sy-subrc ne 0.
select single * from trdir where name = tstc-pgmna.
if trdir-subc eq 'F'.
select single * from tfdir where pname = tstc-pgmna.
select single * from enlfdir where funcname =
tfdir-funcname.
select single * from tadir where pgmid = 'R3TR'
and object = 'FUGR'
and obj_name eq enlfdir-area.
move : tadir-devclass to v_devclass.
endif.
endif.
select * from tadir into table jtab
where pgmid = 'R3TR'
and object = 'SMOD'
and devclass = v_devclass.
select single * from tstct where sprsl eq sy-langu and
tcode eq p_tcode.
format color col_positive intensified off.
write:/(19) 'Transaction Code - ', "#EC NOTEXT
20(20) p_tcode,
45(50) tstct-ttext.
skip.
if not jtab[] is initial.
write:/(95) sy-uline.
format color col_heading intensified on.
write:/1 sy-vline,
2 'Exit Name', "#EC NOTEXT
21 sy-vline ,
22 'Description', "#EC NOTEXT
95 sy-vline.
write:/(95) sy-uline.
loop at jtab.
select single * from modsapt
where sprsl = sy-langu and
name = jtab-obj_name.
format color col_normal intensified off.
write:/1 sy-vline,
2 jtab-obj_name hotspot on,
21 sy-vline ,
22 modsapt-modtext,
95 sy-vline.
endloop.
write:/(95) sy-uline.
describe table jtab.
skip.
format color col_total intensified on.
write:/ 'No of Exits:' , sy-tfill. "#EC NOTEXT
else.
format color col_negative intensified on.
write:/(95) 'No User Exit exists'. "#EC NOTEXT
endif.
else.
format color col_negative intensified on.
write:/(95) 'Transaction Code Does Not Exist'. "#EC NOTEXT
endif.
at line-selection.
get cursor field field1.
check field1(4) eq 'JTAB'.
set parameter id 'MON' field sy-lisel+1(10).
call transaction 'SMOD' and skip first screen.
Rewards if useful........................
Minal -
How to find out the RFC in an existing BOP
Hello
Is there a way to find out what RFC is used by an existing BOP?Okay, i found the table it's apparently stored in: /IWFND/D_BOPR
But i would still like to know if there is a "normal" way to manage them. -
How to find out structure of internal table?
Hi
is there any way how to find out name of structure upon which internal
table was created?
i got internal table passed to function module by any table
type. There can be different types of table passed in. Inside of
module a need to find out the structure of table.
I've found a tricky way how to find this information using following
command 'DESCRIBE FIELD dobj INTO td.', but its probably not a correct
way because using this command is not recommended in application
programs.
Is there any function module, or something i can use for getting this information?
ThanksThanks very much
This has solved my problem:
DATA descr_ref TYPE ref to cl_abap_typedescr.
DATA tabname TYPE string.
descr_ref = cl_abap_typedescr=>describe_by_data( itab ).
tabname = descr_ref->absolute_name. -
How to find out name of table for a structure.
hello all,
I want to find out name of table for a structure ADDR1_DATA. can anybody pls tell me how to find out it?
Thanks,
AshuHi Ashu,
You write the structure name in se11
after selecting the database table radio button
click on the where used list button in the application tool bar.
You will find the table name if it is used else where.
Check out the website at:
http://sap-idoc2edi-consulting.com/
Read the blog at:
http://blogs.ittoolbox.com/sap/ehadzipetros
Regards,
Jagadish -
How to find out the tables from extract structures
Hi All,
As I know my data sources are 2lis_04_p_matnr,2lis_04_p_comp,2lis_04_p_arbpl.
How to find out the tables concerned with the fields in the extract structure.
ThanksPl check this link:
http://help.sap.com/saphelp_nw2004s/helpdata/en/29/79eb3cad744026e10000000a11405a/frameset.htm
OR navigate to: help.sap.com - netweaver - bi content - supply chain - look for your application area and the extractor and you will see the source tables and fields.
Ravi Thothadri -
How to find out the structure stored field value in a standard program
Hi Gurus,
Please suggest me how to find out the structure field stores the value in which table.
Exanple : i have a strutured field in T.code cj31 is BPDY-WERT1 and it is stotring value 10,000,000.00. know i need to find out in which table this value is storing .
Please suggest me its urgent.
Thanks in Adavance!!!
Points will be rewarded.......
Regards,
Kranthihi,
Go to transaction ST05,Click activate trace with filter,Give the transactio name as cj31,Go to the transaction and navigate to the place where the particular field is present, then again go to st05 ,Deactivate the trace and display the trace.
Now u can see how the data is fetched ,U can even go to display mode of the same transaction cj33
Thanks
San -
How to find out if disk drive is faulty already?
How to find out if disk drive is faulty already?
Hi Sükrü
You can read the table E071 with the object id and get the transport request number. Use this transport request and read the table E070, the field "TRSTATUS" will give the status whether the object is locked or released.
Hope this helps !
Regards
Ranganath
PS : Reward points if found useful ! -
How to find out if a user has a deferred task
In my WF, I will add a deferred task to a user. If that user already has a deferred task then i want to skip it. How do we find out if a user already has a deferred task? Thanks
This should help you
<notnull>
<ref>view.accounts[Lighthouse].properties.tasks[taskname]</ref>
</notnull>
Maybe you are looking for
-
I have some issues with the Shell UI language of Office 2013 via App-V 5.0 (SP2). The Shell UI language is German, I want it in English. Package was created using the latest ODT version (Office Deployment Tool for Click-to-Run, 2/25/2014). 1. setup.e
-
Calendar Functionality for a date field in HTML of a ITS service
Hi I am working with SRM EBP module we want to add date help(with calendar function) to existign date fields in Shopping cart and PO screens . I found some HTML and Javascripts in SYSTEM and BBPGLOBAL services (named as calendar)but not sure which on
-
Can no longer preview background audio accurately, efficiently in Captivate 7
I'm currently using Captivate 7.0.1.237 on a Mac running OS X Yosemite 10.10.1. As far as I know, Captivate has never allowed for Background audio previews to work anywhere but in (Preview > Project) and (Preview > web [or] HTML5). Those aren't ideal
-
Hi all, I am new the the forum but I guess its time time to recognise my defeat and send out a distress signal: Mayday Mayday Mayday... INTRO My original HDD (Hitachi 7,200 rpm IDE) crashed a few days ago so I repaced it with a WD 160GB drive (5,400
-
HT201263 Ipod is disabled and the normal method wont work
I started the prosess like it said on the website on how to restore it. To hold down the middle busson intill the connect to Itunes picyure came up. Then plug it in and press restore. It was downloading the updates then its stopped and said that I co