Table for all table names.
Hi everybody,
I would like to know if there is any table which is maintaining all the table names in SAP as fields.
Any code reg this is helpfull.
Thanks.
Regards.
KS
Message was edited by:
Sanjeev k
Hi,
Please try FM DDIF_FIELDINFO_GET to get all fields based on table name.
DATA: BEGIN OF I_DFIES OCCURS 0.
INCLUDE STRUCTURE DFIES.
DATA: END OF I_DFIES.
CALL FUNCTION 'DDIF_FIELDINFO_GET'
EXPORTING
TABNAME = 'MARA'
TABLES
DFIES_TAB = I_DFIES
EXCEPTIONS
NOT_FOUND = 1
INTERNAL_ERROR = 2
OTHERS = 3.
Regards,
Ferry Lianto
Similar Messages
-
SQL Query for all Function Name attached to Responsibility
I have a requiremnet where in the data needs to be fetched giving all details of User Name, Responsibility Name, Function_user_name at responsibility level.
For e.g when a user logs in ORacle application and gets in to a responsibility and uses short cut key (Cntrl + L), the application lists out all the form functions, i need those form funtion for all users at responsibility level.
follwoing is the SQL i developed but its not listing the form function when we use (cntrl + L).
SELECT fur.user_name, fur.description, fur.responsibility_name,
mnu.user_function_name, mnu.function_name --, mnu.TYPE, mnu.PARAMETERS
FROM (
SELECT /*+ ordered use_nl(ffft) */
DISTINCT fm.menu_id, ffft.user_function_name, fff.function_name,
fff.TYPE, fff.PARAMETERS
FROM (select distinct menu_id
from apps.fnd_responsibility_tl frt,
applsys.fnd_responsibility fr
where 1=1
and frt.responsibility_id = fr.responsibility_id
and frt.application_id = fr.application_id
and frt.responsibility_name = 'SLCHR Admin Asst' ) frm,
apps.fnd_menus fm,
apps.fnd_form_functions fff,
apps.fnd_form_functions_tl ffft
WHERE 1 = 1
--AND fm.menu_id IN (1004979, 1009084)
AND frm.menu_id = fm.menu_id
AND fff.function_id = ffft.function_id
AND fm.menu_id IN (SELECT me.menu_id
FROM apps.fnd_menu_entries me
START WITH me.function_id = fff.function_id
CONNECT BY PRIOR me.menu_id = me.sub_menu_id)
) mnu,
(SELECT fusr.user_name, fusr.description, frv.responsibility_name, frv.menu_id
FROM apps.fnd_responsibility_vl frv,
apps.fnd_user_resp_groups_direct frg,
apps.fnd_user fusr
WHERE 1 = 1
--and fusr.user_name = 'JLEWIS03'
AND frv.responsibility_name = 'SLCHR Admin Asst'
AND frv.end_date IS NULL
AND fusr.user_id = frg.user_id
AND fusr.end_date IS NULL
AND frv.responsibility_id = frg.responsibility_id
) fur
WHERE 1 = 1
AND fur.menu_id = mnu.menu_id
Please helpPlease see these docs.
Checking Functions Associated with a User Menu or a Responsibility [ID 948512.1]
HOW TO GENERATE MENU TREE FOR A MENU ATTACHED TO A RESPONSIBILITY IN ORACLE APPLICATIONS 11i ? [ID 312014.1]
Thanks,
Hussein -
IPhoto 11, Black Thumbnail for all Faces
In iPhoto, when I go to Faces there is a black thumbnail for all faces. If I double click to go to the actual fotos of one of the faces (names), the thumbnails are also black, if I double click the actual individual foto then you can see the actual foto. I have reinstalled iPhoto but it still shows onlt Black thumbnails for all faces (names).
Please help.haarrrrummmm... don't know why I'm not able to edit my own posts, but there you go...
Rebuilding is only rebuilding if you get a dialog box showing 4 options. If you don't see this, then you may not have options and cmd keys depressed correctly (long enough etc) at startup of iPhoto.
You should see a dialog box presenting four choices:
repair permissions,
repair thumbnails
repair database
rebuild database
(Doing this from my head so the order may be a bit different)
Anyhow, start with repairing permissions, then thumbnails.
Repairing thumbnails will take time, especially on bigger libraries. Allow the machine to finish the task.
Repairing and rebuilding database are the big guns here. Make backups before letting these loose.
Hoot -
Table Name or Function Module to find out all the Screens & Subscreens for
Hello Experts,
Table Name or Function Module to find out all the Screens & Subscreens for all T-Codes
Helpful Answer will b rewarded
Arif ShaikHi Balaji,
But TSTC only Gives the Program Name , T-Code and Screen but not all the Subscreen details
Any other which U know -
Extract schema/metadata - names for all tables and attributes
Hi, I am quite new to Oracle DB (only been doing dev mostly with sqlserver before). Is there a way to extract schema (names for all tables and attributes) for 10g and 11g in application code (either java or .net) or pl/sql?
Thank you,
-TonyThere are built in views that start with DBA_, ALL_, and USER_. All means all the user can see, user means all the user has, and dba means everything, which generally means the same as the others plus an owner. So you can desc user_tables to see what-all that view has, then select columns from the view with ordinary sql. See the doc set for all the views available, interesting ones are ...views, ...objects, ...tab_cols and so forth.
There are also built in procedures for getting metadata, google for details.
Many tools have easy GUI's for this too. EM has ways on the administration screen to get to various objects, and then you can show the ddl. Maybe sqldeveloper has something too. -
Import tables using same file name for all tables
hi,
We are using oracle 11.2.0.3.0, we have taken export of multiple tables in schema, unfortunately in exp command we have mention same file name for all the tables, now it has created one file for all export but the size of that file shows that all the tables included in it , when we try to import the tables only last table mention in export command is imported for other tables it hangs, example of code show below.
Is there any way to import the remaining tables.
exp system file =exp05042013.dmp tables=gr.table1
exp system file =exp05042013.dmp tables=gr.table2
exp system file =exp05042013.dmp tables=gr.table3Hi,
You can use as :
exp username@database tables=table1,table2 file=tabledata.dmpDid you have any RMAN full backup?
Why you are not recover crash database?
Mahir -
Tables name for Customer Payment Report
hiiiiiiiiii
can anyone tell us the tables name for the report customer payment receive..?
Thanks & Regards
Rekha sharmaHi Rekha
when you pass following entry
Bank dr
to Customer
All header data like co code currecy ref , period etc goes to BKPF,
line item - Bank Dr ( its a GL entry ) goes to BSIS
line item- Customer Cr ( its a AR entry ) goes to BSID or BSAD depends it is cleared or still open
Also both the line items goes to BSEG
Hope this helps.
Regds
Rajiv -
Table name for opening and closing stock
Hi gurus,
i want table name for opening and closing stock . How to calculate this opening and closing stock in report.
Murali.Murali,
Check out in OINM, which maintains all the details of the stock transactions..
Hope it might help you..
Regards
Gattu -
How to look for the Table Name
Hi Friends,
Sometimes we need to download the table for the desired information if the same is not available from a particular report. How to look for the table name? Is there a report or a particular feild, where we can find the name of the particular table?
Thanks for the assistance.
RegardsHi Friend,
If you want to see the structures then go to SE11. Sometimes it happens that you cannot find the table names but only fields. In such case, if you want to find the Table names which is not available, then go to SE90.
Abap Dictionary > Fields > Table Fields.
Now Enter the Field name in Right Hand Side of the screen then Execute. You will see the all tables by which that Fields are used.
Regards,
Jigar -
Field and table names requested for BAPI_INCOMINGINVOICE_CREATE
Hi all,
The following data is being hardcoded in BAPI_INCOMINGINVOICE_CREATE functional module for testing the functioning of this bapi. Now kindly suggest me how to make this BAPI useful for all PO's. the following data is being passed into BAPI for generation of invoice. Kindly provide technical names along with table names for the following fields.
HEADERDATA
INVOICE_IND X
DOC_TYPE RE
DOC_DATE 24.07.2007
PSTNG_DATE 24.07.2007
REF_DOC_NO 5000000940
COMP_CODE ACW
CURRENCY INR
GROSS_AMOUNT 33,750.0000
CALC_TAX_IND X
BLINE_DATE 24.07.2007
iTEM DATA
INVOICE_DOC_ITEM 000001
PO_NUMBER 10070100
PO_ITEM 00001
TAX_CODE V0
ITEM_AMOUNT 33,750.0000
SHEET_NO 1000002022
ITEM_TEXT SDFDS
SHEET_ITEM 0000000001
Thanx in advance.
KrishnaHi I have taken particular PO and Executed the code. It is generating the Invoice Document No. Now it want to remove all the Hardcoding. Code i have used is as follows. How do i remove the hardcoding ?? send meif sample code is available???
Internal table declaration *
DATA: gt_headerdata TYPE STANDARD TABLE OF bapi_incinv_create_header
INITIAL SIZE 0,
gt_itemdata TYPE STANDARD TABLE OF bapi_incinv_create_item
INITIAL SIZE 0,
gt_accountingdata TYPE STANDARD TABLE OF bapi_incinv_create_account
INITIAL SIZE 0,
gt_return TYPE STANDARD TABLE OF bapiret2
INITIAL SIZE 0.
DATA: gs_headerdata LIKE bapi_incinv_create_header.
DATA: gs_itemdata LIKE bapi_incinv_create_item.
DATA: gs_accountingdata TYPE bapi_incinv_create_account.
DATA: gs_return TYPE bapiret2.
DATA: l_date TYPE sy-datum.
l_date = sy-datum - 15.
Error flag *
DATA: l_errflag(1) TYPE c.
Build Invoice header
Document Type (Invoice)
gs_headerdata-invoice_ind = 'X'.
gs_headerdata-doc_type = 51.
Document Date
gs_headerdata-doc_date = l_date.
Posting Date
gs_headerdata-pstng_date = l_date.
Reference Document No
gs_headerdata-ref_doc_no = 323348.
gs_headerdata-gross_amount = 31.
Currency
gs_headerdata-currency = 'USD'.
Company Code
gs_headerdata-comp_code = 'D3'.
Baseline Date
gs_headerdata-bline_date = l_date.
**Tax Indicator
*gs_headerdata-calc_tax_ind = 'X'.
Build order item(s) - Only 1 is used in this example
Document Item
gs_itemdata-invoice_doc_item = 000001.
Purchase Order Number
gs_itemdata-po_number = 3700000011.
Purchase Order Item
gs_itemdata-po_item = 00010.
Quantity
gs_itemdata-quantity = 31.
gs_itemdata-po_unit = 'Z00'.
Item Amount
gs_itemdata-item_amount = 31.
gs_itemdata-tax_code = 'O0'.
gs_itemdata-taxjurcode = '0100000000'.
APPEND gs_itemdata TO gt_itemdata.
Document Item
*gs_itemdata-invoice_doc_item = '00002'.
Purchase Order Number
*gs_itemdata-po_number = '4700000158'.
Purchase Order Item
*gs_itemdata-po_item ='00020' .
Quantity
*gs_itemdata-quantity = '5'.
*gs_itemdata-po_unit = 'Z00'.
Item Amount
*gs_itemdata-item_amount = '5'.
*gs_itemdata-tax_code = 'O0'.
*gs_itemdata-taxjurcode = '0100000000'.
*APPEND gs_itemdata TO gt_itemdata.
Accounting Data
***gs_accountingdata-costcenter = 'DUMMY CCTR'.
*gs_accountingdata-invoice_doc_item = '00001'.
*gs_accountingdata-xunpl = 'X'.
*gs_accountingdata-tax_code = 'O0'.
*gs_accountingdata-taxjurcode = '0100000000'.
*gs_accountingdata-ITEM_AMOUNT = 100.
*gs_accountingdata-gl_account = '0003805101'.
*APPEND gs_accountingdata TO gt_accountingdata.
*CLEAR :gs_accountingdata.
*Call the BAPI to Create the Return Order
data: gv_INVOICE type BAPI_INCINV_FLD-INV_DOC_NO,
gv_YEAR type BAPI_INCINV_FLD-FISC_YEAR.
CALL FUNCTION 'BAPI_INCOMINGINVOICE_CREATE'
EXPORTING
headerdata = gs_headerdata
IMPORTING
INVOICEDOCNUMBER = gv_INVOICE
FISCALYEAR = gv_YEAR
TABLES
return = gt_return
itemdata = gt_itemdata.
accountingdata = gt_accountingdata.
PERFORM error.
Check and write Return table
FORM error.
LEAVE TO LIST-PROCESSING.
CLEAR l_errflag.
LOOP AT gt_return INTO gs_return.
WRITE: / gs_return-type, gs_return-message(200).
IF gs_return-type = 'E'.
l_errflag = 'X'.
ENDIF.
ENDLOOP.
PERFORM commit.
ENDFORM. " ERROR INPUT
No errors - Commit
FORM commit.
IF l_errflag IS INITIAL.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ENDIF.
ENDFORM. " COMMIT INPUT
Thanks in advance
Krishnasri -
How to use bind variable value for table name in select statement.
Hi everyone,
I am having tough time to use value of bind variable for table name in select statement. I tried &p37_table_name. ,
:p37_table_name or v('p37_table_name) but none worked.
Following is the sql for interactive report:
select * from v('p37_table_name') where key_loc = :P37_KEY_LOC and
to_char(inspection_dte,'mm/dd/yyyy') = :P37_INSP_DT AND :p37_column_name is not null ;
I am setting value of p37_table_name in previous page which is atm_state_day_insp.
Following is error msg:
"Query cannot be parsed, please check the syntax of your query. (ORA-00933: SQL command not properly ended) "
Any help would be higly appreciated.
RajInterestingly enough I always had the same impression that you had to use a function to do this but found out from someone else that all you need to do is change the radio button from Use Query-Specific Column Names and Validate Query to Use Generic Column Names (parse query at runtime only). Apex will substitute your bind variable for you at run-time (something you can't normally do in pl/sql without using dynamic sql)
-
Can substitution strings be used for table name references?
Hi,
I was wondering if it's possible to use substituion strings for table names in SQL queries. This would allow for me to edit all references to a table at one location. For instance, if a table name or dblink changed, I could edit the substitution string or application item to ensure all the queries reference the new table.
For example:
select * from &table1.
table1 would be the substitution string for the actual table name
I know this is possible if I used a pl/sql function returning a query, but I would much rather use a substition string in a SQL query.
Thanks in advance.
Briani think not
because how create the fields of * in this case
in the other because all is dynamic, i think that you obtain only an error -
Is there a way to view all the table names in a certain schema?
Is there a way to view all the table names in a certain schema?
SELECT table_name FROM user_tablesThat won't do much good given this piece of information:
i am trying to finish a lab for school but i don't know what tables are in my
professor's schema. The appropriate solution is
SELECT table_name
FROM all_tables
WHERE owner = 'PROFESSOR_YAFFLE'
/This will show the names of the tables which Prof. Yaffle has granted to us.
Cheers, APC -
Using a Variable for Table Name with a cursor
Hello All
Is it possible to use a Parameter passed to a procedure as the table name
in a cursor selection statment. I thought the below would work but I get
a error. Does anyone have any ideas?? The Error is listed below to.
Here's the code I just complied
CREATE OR REPLACE PROCEDURE Dup_Add(NEWQATABLE IN VARCHAR2) IS
CURSOR c1 IS SELECT MUNI,PROV FROM NEWQATABLE GROUP BY MUNI, PROV;
c1rec c1%ROWTYPE;
BEGIN
OPEN c1;
LOOP
FETCH c1 INTO c1rec;
EXIT WHEN c1%NOTFOUND;
DBMS_OUTPUT.PUT_LINE(c1rec.MUNI);
END LOOP;
CLOSE c1;
END;
Here is the errors
LINE/COL ERROR
3/8 PLS-00341: declaration of cursor 'C1' is incomplete or malformed
3/15 PL/SQL: SQL Statement ignored
3/38 PLS-00201: identifier 'NEWQATABLE' must be declared
5/7 PL/SQL: Item ignored
10/3 PL/SQL: SQL Statement ignored
10/17 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
12/3 PL/SQL: Statement ignored
12/24 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
LINE/COL ERROR
Thanks
PeterIf you are going to have a table name or a column name as a parameter, then you have to open the cursor dynamically. The following example uses Native Dynamic SQL (NDS) to open a ref cursor dynamically. I also eliminated the group by clause, since it is intended for use with aggregate functions and you weren't using an aggregate function. Also notice that there are some other differences in terms of defining variables and fetching and so forth.
SQL> CREATE TABLE test_table
2 AS
3 SELECT deptno AS muni,
4 dname AS prov
5 FROM dept
6 /
Table created.
SQL> CREATE OR REPLACE PROCEDURE Dup_Add
2 (newqatable IN VARCHAR2)
3 IS
4 TYPE cursor_type IS REF CURSOR;
5 c1 cursor_type;
6 c1muni NUMBER;
7 c1prov VARCHAR2 (20);
8 BEGIN
9 OPEN c1 FOR 'SELECT muni, prov FROM ' || newqatable;
10 LOOP
11 FETCH c1 INTO c1muni, c1prov;
12 EXIT WHEN c1%NOTFOUND;
13 DBMS_OUTPUT.PUT_LINE (c1muni || ' ' || c1prov);
14 END LOOP;
15 CLOSE c1;
16 END;
17 /
Procedure created.
SQL> SHOW ERRORS
No errors.
SQL> SET SERVEROUTPUT ON
SQL> EXECUTE dup_add ('test_table')
10 ACCOUNTING
20 RESEARCH
30 SALES
40 OPERATIONS
PL/SQL procedure successfully completed. -
How to find table name for the fields from Standard Extractor in CRM system
How to find table name of fields from the standard extractor in CRM system ?
e.g. We use LBWE TCode in R/3 system to find table name for the field from Extractor VCSCL(e.g.).
Likewise is there any way to find table name for the fields from Standard extractor like 0CRM_LEAD_I.Hi ,
Please find the link below for understanding BW CRM analysis.
http://help.sap.com/bp_biv135/html/bw.htm
activate the CRM DSs by scenario:
1) Activate the application component hierarchy (tcode RSA9). Changes made to the application component hierarchy in the CRM system can be transferred to the BW using the "Edit Application Component Hierarchy" (SBIW - Postprocessing of DataSources).
SAP Note 434886 must be implemented in CRM 3.0 before the application component hierarchy is activated.
2) Activate the Business Content DataSources (tcode RSA5).
Select/enter the application component and choose Execute (F8).
To compare the shipped and active versions, choose the 'Select Delta' pushbutton. If there is no active version of the DataSource, it is selected automatically.
To activate the shipped version, choose the 'Transfer DataSources' pushbutton.
3) Management of the versions of the BW-Adapter metadata (tcode BWA5). All DataSources are displayed that are managed by the BW Adapter.
As in transaction RSA5 (Service API Metadata Activation), the 'Select Delta' function can be used to select the inactive DataSources or compare shipped and active versions.
You can also go directly to the screen for maintaining DataSources that are managed by the BW Adapter.
The 'Compare Version' function makes a detailed comparison of the shipped and active versions.
All BW-Adapter metadata is considered when versions are compared:
Header information (Table SMOXHEAD)
Mapping information (Table SMOXRELP)
Global selection conditions (Table SMOXGSEL)
Attribute key fields (Table SMOXAFLD)
Hope this helps.
Regards,
csm reddy
Maybe you are looking for
-
ITunes can't save changes in Windows 7 64-bit
I've got the latest version of iTunes (9.1.11.1) running on Windows 7 Enterprise 64bit edition. Since I installed it and imported all my music and old database files (to preserve my playlists) I keep getting an error message that iTunes can't save th
-
How can i get my facetime to work?
Hello?
-
Importing photos into multiple libraries
I have multiple users on the same mac, and was hoping there was a way to import photos and have them be added to all users' iphoto libraries. I know there are ways to share one library among many users, but I want all the users to be able to have sep
-
Hi Experts, I am trying to create entity using below approach. Here is the code I am using data: lv_bol_core TYPE REF TO cl_crm_bol_core, lv_call_list_factory TYPE REF TO cl_crm_bol_entity_factory, lr_call
-
Could not connect to a site which doesnt exist anymore (SCCM 2012)
Hi, I am running my SCCM in a hyper-V virtual environment and I could no longer connect to a site (for eg. abc.def.com) when I start my Configuration Manager Console . Firstly, when I previously configured SCCM during the installation proce