USR05 table - used in include MV50AFZ1
Hi All!
I have to allow the Post Goods Issue for one user and one specific plant. To do this:
1. I created one parameter ID which value is the Plant where the user have to be authorized to post goods.
2. I created two roles; the first has the authorization only for activity display for movement type in all Plants, the second has the authorization for activity create and change for movement type 601 in the same Plant as the parameter value created and set in SU01.
3. In the MV50AFZ1 include i writed the code:
TABLES : nast , usr05 .
DATA zparva TYPE XUVALUE.
DATA duplicate TYPE char1 .
CLEAR duplicate.
CLEAR zparva.
SELECT * INTO nast FROM nast UP TO 1 ROWS
WHERE objky = xlikp-vbeln
AND vstat = '1'
AND kappl = 'V2'
AND kschl = 'LD00'
AND aktiv = space.
ENDSELECT.
IF sy-subrc = 0.
duplicate = 'X'.
ENDIF.
SELECT SINGLE parva FROM usr05 INTO zparva
WHERE bname = sy-uname
AND parid = 'ZIG'.
IF xlikp-lfart = 'LF' OR xlikp-lfart = 'LR' .
IF sy-tcode NE 'VL01N'.
CASE zparva.
WHEN 'MM10'.
IF duplicate = 'X' AND xlips-werks NE zparva.
MESSAGE E228 .
ENDIF.
WHEN OTHERS.
IF xlips-werks NE zparva.
MESSAGE E228 .
ENDIF.
ENDCASE.
ENDIF.
ELSEIF xlikp-lfart = 'NL' .
IF xvbuk-wbstk NE 'C' AND sy-tcode NE 'VL01N'.
IF sy-tcode EQ 'VL02N'.
CASE zparva.
WHEN 'MM10'.
IF duplicate = 'X' AND xlips-werks NE zparva.
MESSAGE E228 .
ENDIF.
WHEN OTHERS.
IF xlips-werks NE zparva.
MESSAGE E228 .
ENDIF.
ENDCASE.
ENDIF. ENDIF. ENDIF.
Now, I have one problem: when I select the value for the parameter ID ZIG....it is not selected any value.
Could you help me?
If you have a better solution for the business request which i tried to solve, please tell me.
Thanks allot.
Florina C
Hi Florina,
Are you sure that with combination of Bname and Parid you have an entry in usr05? Are you giving BNAME same as the SY-UNAME of the include program.
And also a trial instead of using single why dont you use select stament into variable if you are sure that for particular only one entry exists.
Reagrds,
Kiran I
Similar Messages
-
How to delete the data in a table using function
hi all,
i need to delete the data in a table using four parameters in a function,
the parameters are passed through shell script.
How to write the function
Thanks>
But the only thing is that such function cannot be used in SQL.
>
Perhaps you weren't including the use of autonomous transactions?
CREATE OR REPLACE FUNCTION remove_emp (employee_id NUMBER) RETURN NUMBER AS
PRAGMA AUTONOMOUS_TRANSACTION;
tot_emps NUMBER;
BEGIN
SELECT COUNT(*) INTO TOT_EMPS FROM EMP3;
DELETE FROM emp3
WHERE empno = employee_id;
COMMIT;
tot_emps := tot_emps - 1;
RETURN TOT_EMPS;
END;
SQL> SELECT REMOVE_EMP(7499) FROM DUAL;
REMOVE_EMP(7499)
12
SQL> SELECT REMOVE_EMP(7521) FROM DUAL;
REMOVE_EMP(7521)
11
SQL> SELECT REMOVE_EMP(7566) FROM DUAL;
REMOVE_EMP(7566)
10
SQL> -
Error while creating the DWH tables using DAC
Hi,
I am getting error while creating the DWH tables using DAC. I have created a ODBC DSN using merant driver with DAC repository DB credentials and the test connection is successful. And while creating the tables i gave the olap dw credentials and the DSN name which i created earlier. But it throws the error as below:
Please find the below mentioned error message
=====================================
STD OUTPUT
=====================================
CREATING SIEBEL DATABASE OBJECTS
F:\DAC\bifoundation\dac\UTILITIES\BIN\DDLIMP /I N /s N /u infdomain /p ******* /c DB_DAC /G "SSE_ROLE" /f F:\DAC\bifoundation\dac/conf/sqlgen/ctl-file/oracle_bi_dw.ctl /b "" /K "" /X "" /W N
Error while importing Siebel database schema.
=====================================
ERROR OUTPUT
=====================================
Siebel Enterprise Applications ODBC DDL Import Utility, Version 7.7 [18030] ENU
Copyright (c) 2001 Siebel Systems, Inc. All rights reserved.
This software is the property of Siebel Systems, Inc., 2207 Bridgepointe Parkway,
San Mateo, CA 94404.
User agrees that any use of this software is governed by: (1) the applicable
user limitations and other terms and conditions of the license agreement which
has been entered into with Siebel Systems or its authorized distributors; and
(2) the proprietary and restricted rights notices included in this software.
WARNING: THIS COMPUTER PROGRAM IS PROTECTED BY U.S. AND INTERNATIONAL LAW.
UNAUTHORIZED REPRODUCTION, DISTRIBUTION OR USE OF THIS PROGRAM, OR ANY PORTION
OF IT, MAY RESULT IN SEVERE CIVIL AND CRIMINAL PENALTIES, AND WILL BE
PROSECUTED TO THE MAXIMUM EXTENT POSSIBLE UNDER THE LAW.
If you have received this software in error, please notify Siebel Systems
immediately at (650) 295-5000.
F:\DAC\bifoundation\dac\UTILITIES\BIN\DDLIMP /I N /s N /u infdomain /p ***** /c DB_DAC /G SSE_ROLE /f F:\DAC\bifoundation\dac/conf/sqlgen/ctl-file/oracle_bi_dw.ctl /b /K /X /W N
Connecting to the database...
28000: [DataDirect][ODBC Oracle driver][Oracle]ORA-01017: invalid username/password; logon denied
Unable to connect to the database...
any help is appreciated.
Thanks,
RMThe fact that you are getting an "ORA-01017: invalid username/password; logon denied" message indicates that you are at least talking to the database.
The log shows that username "infdomain" is being used. Can you double check the username and password you have in DAC in a SQL*Plus/SQL Developer session?
Please mark if useful/helpful,
Andy. -
Updation of Custom Fields in AFRU table Using Customerexit
Hi all,
I added two fields in CO11n Tcode using SCREEN EXIT - CONFPP07 and iam trying to update these two fields in AFRU table
using CONFPP05. But iam unable to update these two field .
see this code in CONFPP05
LOOP AT afrud_tab.
afrud_tab-zzshift = wa_afrud-zzshift1 .
afrud_tab-zzoperator = wa_afrud-zzoperator1 .
MODIFY afrud_tab.
ENDLOOP.
Plz help me regarding this..Thanks for reply
Ya i added two fields in confpp07 .
see the code :
*& Include ZXCOFTOP
tables : afrud.
DATA : WA_AFRUD TYPE AFRUD,
IT_AFRUD TYPE TABLE OF AFRUD.
Include ZXCOFU24
MOVE afrud-zzshift1 TO wa_afrud-zzshift1.
MOVE afrud-zzoperator1 TO wa_afrud-zzoperator1.
Even though it is not updating . except these two fields.
Regards,
Srinivas -
In a server proxy how can I use a INCLUDE STRUCTURE?
Hi people!!, how can I put an internal table with an INCLUDE statement in a server proxy in abap. If I put the next code the system present me this error: Within classes and interfaces, you can only use "TYPE" to refer to ABAP , Dictionary types, not "LIKE" or "STRUCTURE".
The problem is that I need the STRUCTURE to make a APPEND.
Thanks for the help.
DATA: BEGIN OF bdc_tab .
INCLUDE STRUCTURE bdcdata.
DATA: END OF bdc_tab.Hi Carlos,
Yes. It mainly accepts TYPE statements.
You can use this as:
DATA: BDC_LINE type bdcdata.
DATA: BDC_TAB type table of bdcdata.
When you want to use,
Fill the BDC_LINE.
Then:
Append BDC_LINE to BDC_TAB.
Or:
Loop at BDC_TAB into BDC_LINE.
Cheers,
Bhanu -
How to update a custom field of MARC table using BAPI_MATERIAL_SAVEREPLICA
Hi,
I want to update a custom field (Appended field) of MARC table using BAPI_MATERIAL_SAVEREPLICA. Please help me in this issue. I cannot use BAPI_MATERIAL_SAVEDATA as this updated the MARC table record by record. I have to update bulk records at a time.
Thanks
Rahul.Hi,
Use the Documentation given for struture in BAPI docuemntation...
For loading data into custom fields of MARC use the structure - BAPI_TE_MARC.
First, structures BAPI_TE_<NAME> (<NAME> = MARA, MARC, MARD, MBEW, MLGN, MLGT, MVKE, MARM, MAKT) and the appropriate check structures BAPI_TE_<NAME> (<NAME> = MARAX, for example) have to be extended by the customer to include the required fields. The structures that are delivered as standard only contain the relevant key fields. When new fields are added to this structure, you should ensure that a field has the same name as the field in the database table. Furthermore, the fields in the structures BAPI_TE_<NAME> can only be CHARACTER fields. Data element BAPIUPDATE is to be used for the fields in the check structure (exception to this: key fields.)
Parameters EXTENSIONIN and EXTENSIONINX are used for transferring data to the method. Field STRUCTURE contains the name of the structure (for example, BAPI_TE_MARA or BAPI_TE_MARAX). This names is used to identify the work area (for example, WA_BAPI_TE_MARA or WA_BAPI_TE_MARAX) to which the data is transferred. The remaining fields in parameters EXTENSIONIN or EXTENSIONINX contain data for the key fields (for example, the material number) and the data for customer-specific fields. The number of characters reserved in both parameters for the contents of the customer-specific fields must match the number of characters for the relevant field in the work area. If the number of required characters is less, the remaining characters are left blank. Only when all characters have been filled can the contact for an additional field be transferred. Bear in mind that only data for which an appropriate indicator has been set in the work area can be updated to the database.
Regards,
Bhargava -
How to transfer data in change log table of dso to z-table using abap code
Hi can you please explain me how to transfer data in change log table of dso to z-table using abap code ,with out using Function module concept
PROGRAM NAME: ZBW_DELTA_TO_GSTAR **
report ZBW_DELTA_TO_GSTAR no standard page heading
line-size 120
line-count 75
message-id ZBW_MSG_CLS.
tables: ZGIV_DLTA_EBV_BB,
ZGIV_DLTA_EM2_BL,
ZGIV_DLTA_EM2_BK.
Selection Screen Definitions
SELECTION-SCREEN: BEGIN OF BLOCK INNER WITH FRAME TITLE TEXT-001.
SELECTION-SCREEN: SKIP 1.
PARAMETERS: EBVBB RADIOBUTTON GROUP ROLL,
EM2BL RADIOBUTTON GROUP ROLL,
EM2BK RADIOBUTTON GROUP ROLL.
SELECTION-SCREEN: END OF BLOCK INNER.
Data: WS_UPDATE_FLAG Type C,
UCounter(9) Type N,
ICounter(9) Type N.
DATA: T_ZGIV_DLTA_EBV_BB Type Standard Table of ZGIV_DLTA_EBV_BB,
s_ZGIV_DLTA_EBV_BB LIKE line of T_ZGIV_DLTA_EBV_BB.
DATA: T_ZGIV_DLTA_EM2_BK Type Standard Table of ZGIV_DLTA_EM2_BK,
s_ZGIV_DLTA_EM2_BK LIKE line of T_ZGIV_DLTA_EM2_BK.
DATA: T_ZGIV_DLTA_EM2_BL Type Standard Table of ZGIV_DLTA_EM2_BL,
s_ZGIV_DLTA_EM2_BL LIKE line of T_ZGIV_DLTA_EM2_BL.
Standard Internal Tables - Describe usage.
data: begin of i_AEPSD_O0140 occurs 0.
include structure /BIC/AEPSD_O0140.
data: end of i_AEPSD_O0140.
data: begin of i_AEPSD_O0240 occurs 0.
include structure /BIC/AEPSD_O0240.
data: end of i_AEPSD_O0240.
data: begin of i_AEPSD_O0340 occurs 0.
include structure /BIC/AEPSD_O0340.
data: end of i_AEPSD_O0340.
data: begin of i_GIV_DLTA_EBV_BB occurs 0.
include structure ZGIV_DLTA_EBV_BB.
data: end of i_GIV_DLTA_EBV_BB.
data: begin of i_GIV_DLTA_EM2_BK occurs 0.
include structure ZGIV_DLTA_EM2_BK.
data: end of i_GIV_DLTA_EM2_BK.
data: begin of i_GIV_DLTA_EM2_BL occurs 0.
include structure ZGIV_DLTA_EM2_BL.
data: end of i_GIV_DLTA_EM2_BL.
Miscellaneous Program Variables and Constants.
TOP-OF-PAGE
top-of-page.
START-OF-SELECTION
start-of-selection.
Clear: i_GIV_DLTA_EBV_BB,
i_GIV_DLTA_EM2_BK,
i_GIV_DLTA_EM2_BL,
UCounter, ICounter.
IF EBVBB = 'X'.
PERFORM 100_EXTRACT_EBV_BB_DELTA_RECS.
ELSEIF EM2BK = 'X'.
PERFORM 100_EXTRACT_EM2_BK_DELTA_RECS.
ELSE.
PERFORM 100_EXTRACT_EM2_BL_DELTA_RECS.
ENDIF.
FORM 100_EXTRACT_EBV_BB_DELTA_RECS
FORM 100_EXTRACT_EBV_BB_DELTA_RECS.
Refresh: i_AEPSD_O0140,
i_GIV_DLTA_EBV_BB.
Clear: UCounter, ICounter, s_ZGIV_DLTA_EBV_BB .
Select * From /BIC/AEPSD_O0140
Into TABLE i_AEPSD_O0140.
IF SY-Subrc = 0.
LOOP AT i_AEPSD_O0140.
MOVE-CORRESPONDING i_AEPSD_O0140 TO s_ZGIV_DLTA_EBV_BB.
MOVE SY-DATUM to s_ZGIV_DLTA_EBV_BB-create_dt.
INSERT ZGIV_DLTA_EBV_BB FROM s_ZGIV_DLTA_EBV_BB.
IF SY-Subrc = 0.
ICounter = ICounter + 1.
ELSE.
UPDATE ZGIV_DLTA_EBV_BB FROM s_ZGIV_DLTA_EBV_BB.
IF SY-Subrc = 0.
UCounter = UCounter + 1.
ELSE.
Message E067 with SY-DATUM ' ' SY-UZEIT ' '.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
ENDFORM. "100_EXTRACT_EBV_BB_DELTA_RECS
FORM 100_EXTRACT_EM2_BK_DELTA_RECS
FORM 100_EXTRACT_EM2_BK_DELTA_RECS.
Refresh: i_AEPSD_O0240,
i_GIV_DLTA_EM2_BK.
Clear: UCounter, ICounter, s_ZGIV_DLTA_EM2_BK .
Select * From /BIC/AEPSD_O0240
Into TABLE i_AEPSD_O0240.
IF SY-Subrc = 0.
LOOP AT i_AEPSD_O0240.
MOVE-CORRESPONDING i_AEPSD_O0240 TO s_ZGIV_DLTA_EM2_BK.
MOVE SY-DATUM to s_ZGIV_DLTA_EM2_BK-create_dt.
INSERT ZGIV_DLTA_EM2_BK FROM s_ZGIV_DLTA_EM2_BK.
IF SY-Subrc = 0.
ICounter = ICounter + 1.
ELSE.
UPDATE ZGIV_DLTA_EM2_BK FROM s_ZGIV_DLTA_EM2_BK.
IF SY-Subrc = 0.
UCounter = UCounter + 1.
ELSE.
Message E067 with SY-DATUM ' ' SY-UZEIT ' '.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
ENDFORM. "100_EXTRACT_EM2_BK_DELTA_RECS
FORM 100_EXTRACT_EM2_BL_DELTA_RECS
FORM 100_EXTRACT_EM2_BL_DELTA_RECS.
Refresh: i_AEPSD_O0340,
i_GIV_DLTA_EM2_BL.
Clear: UCounter, ICounter, s_ZGIV_DLTA_EM2_BL .
Select * From /BIC/AEPSD_O0340
Into TABLE i_AEPSD_O0340.
IF SY-Subrc = 0.
LOOP AT i_AEPSD_O0340.
MOVE-CORRESPONDING i_AEPSD_O0340 TO s_ZGIV_DLTA_EM2_BL.
MOVE SY-DATUM to s_ZGIV_DLTA_EM2_BL-create_dt.
INSERT ZGIV_DLTA_EM2_BL FROM s_ZGIV_DLTA_EM2_BL.
IF SY-Subrc = 0.
ICounter = ICounter + 1.
ELSE.
UPDATE ZGIV_DLTA_EM2_BL FROM s_ZGIV_DLTA_EM2_BL.
IF SY-Subrc = 0.
UCounter = UCounter + 1.
ELSE.
Message E067 with SY-DATUM ' ' SY-UZEIT ' '.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
ENDFORM. "100_EXTRACT_EM2_BL_DELTA_RECS
END-OF-SELECTION
end-of-selection.
perform D1000_REPORT_DATA.
D1000_REPORT_DATA
form D1000_REPORT_DATA.
*Display the title of the program
write: /25 SY-TITLE.
skip.
Diaplay the details of the user and time
write: /1 'Executed by', 15 SY-UNAME, 30 'Date',
38 SY-DATUM, 53 'Time', 60 SY-UZEIT.
skip 2.
write: / 'Delta Records have been extracted ',
/ 'Updates : ', UCounter,
/ 'Inserts : ', ICounter.
skip.
skip 3.
write: /20 'End of the report'.
endform. "D1000_REPORT_DATA
chgeck it out this also may hep you -
Is there any way to an index that can be used to include the "OR condition "?
Hello I have some questions.
The test was conducted in the following procedure .
create table test
c1 varchar2(10),
c2 varchar2(10),
primary key(c1)
create index test_idx1 on test(c2);
Command> explain select * from test where c1 = 'AAAAAAAAAA' or c2 = 'AAAAAAAAAA';
Query Optimizer Plan:
STEP: 1
LEVEL: 1
OPERATION: RowLkRangeScan
TBLNAME: TEST
IXNAME: TEST
INDEXED CONDITION: <NULL>
NOT INDEXED: TEST.C2 = 'AAAAAAAAAA' OR TEST.C1 = 'AAAAAAAAAA'
Command>
Command> explain select * from test where c1 = 'AAAAAAAAAA' and c2 = 'AAAAAAAAAA'
Query Optimizer Plan:
STEP: 1
LEVEL: 1
OPERATION: RowLkRangeScan
TBLNAME: TEST
IXNAME: TEST
INDEXED CONDITION: TEST.C1 = 'AAAAAAAAAA'
NOT INDEXED: TEST.C2 = 'AAAAAAAAAA'
Command>
By including the "OR condition " in this test does not use the index.
Is there any way to an index that can be used to include the "OR condition "?
Thanks.
GooGyum.A database cannot in general use indexes in this way for an 'or' involving two different columns. However, for this specific example one can easily rewrite the query using 'UNION' to use the relevant indexes while still giving the same (correct) result:
Command> explain select * from test t1 where t1.c1 = 'AAAAAAAAAA' union select * from test t2 where t2.c2 = 'AAAAAAAAAA';
Query Optimizer Plan:
STEP: 1
LEVEL: 1
OPERATION: RowLkRangeScan
TBLNAME: TEST
IXNAME: TEST
INDEXED CONDITION: T1.C1 = 'AAAAAAAAAA'
NOT INDEXED: <NULL>
STEP: 2
LEVEL: 2
OPERATION: RowLkRangeScan
TBLNAME: TEST
IXNAME: TEST_IDX2
INDEXED CONDITION: T2.C2 = 'AAAAAAAAAA'
NOT INDEXED: <NULL>
STEP: 3
LEVEL: 1
OPERATION: OrderBy
TBLNAME: <NULL>
IXNAME: <NULL>
INDEXED CONDITION: <NULL>
NOT INDEXED: <NULL>
STEP: 4
LEVEL: 2
OPERATION: UnionMergeSort
TBLNAME: <NULL>
IXNAME: <NULL>
INDEXED CONDITION: <NULL>
NOT INDEXED: <NULL>
Maybe you can apply a similar trick? If you know there is no possibility of duplicate rows then you can further optimise this (in terms of performance) by using UNION ALL.
Chris -
How to update old records of LIPS used user exit MV50AFZ1
To All Experts,
I have used User Exit MV50AFZ1 and in this user exit i updated the fields
USEREXIT_MOVE_FIELD_TO_LIPS.
LIPS-ETENR = VBEP-ETENR.
Its working fine for new VL0N1 t-code, but what about old recods of LIPS table ?
How to update old records ? Pl. guide me.
YusufHi Yusuf,
See SAP Note 415716 - User exits in delivery processing, it explain how these userexits work and cautions that you must have.
Regards
Eduardo -
How to use ABAP include in SLT parameter
Hi Frzz,
Could some one guide me how to use ABAP include in SLT parameter to perform calculations.
Best Regards,
Krishna.Hi,
We can have ABAP includes within SLT advanced replicaiton settings.
Go to IUUC_REPL_CONTENT select the applicable schema configuration name.click on "Select Configuration" button.
you could see all the tables that are in replication.
select the required table and then click on "edit settings for selected tables".
in the next screen select "IUUC_***_RUL_MAP" tab . here we hve the option to insert line of code or abap include as per the requriement.
please refer the techincal manual of SLT as well for more detailed information on advanced replicaitons within SLT.
Thank you.
Shishupal -
Using JSP include function + collapse/expand table
(1) I've got a page A (A.jsp) and a page B (B.jsp) which includes 3 files : the header (head.html) and the side panel of icons (icons.jsp) are the same files for both A.jsp and B.jsp
but the 3rd file containing the contents, are different for A and B
(2) icons.jsp
This is what the side panel of icons is suppose to do. E.g. click on icon1, its submenu will appear and the 3rd file is suppose to link to e.g. A.jsp
When click on icon2, icon1's submenu will collapse and icon2's submenu will expand and the 3rd file is suppose to link to B.jsp
The expand/collapse function is written in javascript
(3) Problem : e.g. when i click on icon1, its submenu wont remain expanded, when it changes to another page, icon1's submenu will collapse back, even though the other page includes the icons.jsp too.
Hence, i've decided to pass a parameter using JSP to achieve the desired effect. as a result, i include the icons file like this
<%@ include file="icons.jsp?item=icon1" %>, but the icons.jsp file isnt included into the page at all.
Is the above include file method possible? And is it possible to use JSP to achieve the effect i've stated?
Thanxsounds more like a html problem.
Do you have a target with the <a href> of your icons? Sounds like the icon page is being refreshed as well.
<html>
<frameset .....>
<frame src=header.jsp name=head>
<frameset name=bottom>
<frame src=icons.jsp name=navigate>
<frame src=dummy.jsp name=content>
</frameset>
</frameset>
try <img src=niceIcon1.gif> -
Moving internal table to another internal table using ASSIGN statement.
Hi,
We have a requirement to move an internal table form one program(SAPMV60A) to the internal table of the include(RV61B9xx) using the following statement.
[ xvbrp is a internal table in SAPMV60A. ]
ASSIGN ('(SAPMV60A)xvbrp') TO <ls_xvbrp>.
We tried all the combinations for declaring <ls_xvbrp> as table.
It is going to dump in our system,
" Type conflict with ASSIGN in program "SAPLV61B ".".
Your efforts will be rewarded with points.
Thanks in Advance,
Warm Regards,
BaburajHi
If you declare your field-symbols as table you should use []
FIELD-SYMBOLS: <ls_xvbrp> TYPE TABLE.
ASSIGN ('(SAPMV60A)xvbrp[]') TO <ls_xvbrp>.
else
FIELD-SYMBOLS: <ls_xvbrp> TYPE ANY.
ASSIGN ('(SAPMV60A)xvbrp') TO <ls_xvbrp>.
But I believe in this case you'll assign the header line of xvbrp.
Max -
Create temp table using EXECUTE IMMEDIATE
Is there any performance issue in creating globally temp table
using EXECUTE IMMEDIATE or creating globally temp table from
SQL PLUS.
Any response will be greatly appreciated.
nullAnish,
Creating tables is likely to be an expensive operation.
Performance issues can only be considered in comparison to
alternatives.
Alternatives include: PLSQL tables, cursors and/or recoding so
that tmp tables are not required. (One of our consultants reckons
that sqlserver temp tables are usually used to get around
limitations in sqlserver, ie slightly more complicated sql
statements could be used instead of simpler sql and temporary
tables).
I would think creating the temp table once during sqlplus would
be cheaper than creating and deleting it repeatedly at run time.
Note that EXECUTE IMMEDIATE may do an implicit commit (dbms_sql
certainly does). This may be got over my using the PRAGMA
AUTONOMOUS_TRANSACTION; direction which places a
procedure/function in a seperate transaction.
Turloch
P.S. We have some difficulty in getting information back from the
field/customer sites. If you have questions and answers that are
likely to be useful to other Oracle Migration Workbench
users, and migrators in general, please send them in for possible
inclusion in our Frequently Asked Question list.
Oracle Migration Workbench Team
Anish (guest) wrote:
: Is there any performance issue in creating globally temp table
: using EXECUTE IMMEDIATE or creating globally temp table from
: SQL PLUS.
: Any response will be greatly appreciated.
Oracle Technology Network
http://technet.oracle.com
null -
Query on populating existing table using denormalized data
Hi All,
struck in a bad situation :(
Please see if you can assist..
Scenario:
I have data in a flat file which needs to be imported to oracle.. I am doing it using external table.. working fine..
the data is like:
cust1~currency1(e.g USD)~interest(e.g. 10)~2009
cust2~currency2~interest~year
cust1~INR~interest~2009
i need to populate 2 tables using this:
tab1(cert_id,custno, currency)
tab2(cert_id, interest, currency) .. cert_id is a foreign key referring to tab1
cert_id is a existing sequence which i am using
Now the issue is if i directly load data in these two tables by fetching through a cursor..
it creates two rows in tab1 with different certificate ids for a particular year which is incorrect..
it should be one tax certificate per customer per year..
Can anyone please just provide a hint or something.. (data volume is aroun 100,000)
please let me know if you are unable to understand the scenario....No four digit Oracle version was included: too much work.
No platform was included: too much work
The erroneous code was not included: too much work
The request consists basically of 1 line: It does't work. pls suggest.
Yet another request, where the requestor wants maximum help with no effort on his side.
How can anyone understand this 'scenario'?
We are not in a chat room, your webcam is not switched on, and no one is looking over your shoulder.
Sybrand Bakker
Senior Oracle DBA -
What are all the tables used for this report ? please reply
hai
i have practcing reports,
so any one give me the name of the tables used for the below report
<b>Created report for invoice details, shipping details and partner function.</b>
thanks in advance.
by
ashokHi Ashok,
I am sending you the code which will display tables present in SAP with the description and jump to datadic or SE16 by selecting plus F2 or F8.
REPORT ZZBGS044 MESSAGE-ID Z1 LINE-COUNT 65 LINE-SIZE 132
NO STANDARD PAGE HEADING.
Description: This program list all tables in regards to the *
selection criteria. *
Customizing: You need not to make any customizing to use this program*
Change of You only have to check that tables, functions and *
release: includes till exists. Bedst just to check and run the *
program. *
Programmer: Benny G. Sørensen *
Date: July 1995 *
SAP R/3 2.2F *
Corrections----
Date Userid Correction *
xx-xx-xxxx xxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx *
TABLES: DD02V "SAP tables view
DATA: BEGIN OF DYNTAB OCCURS 2000.
INCLUDE STRUCTURE BDCDATA.
DATA: END OF DYNTAB.
DATA: BEGIN OF TABLES OCCURS 100.
INCLUDE STRUCTURE DD02V.
DATA: END OF TABLES.
DATA: L TYPE I,
REPL(30) TYPE C VALUE '????????????????????????????'.
FIELD-SYMBOLS:
PARAMETERS:
TABLE(30) TYPE C,
TITLE(74) TYPE C LOWER CASE DEFAULT ' ',
DOWNLOAD(1) TYPE C DEFAULT ' ',
FILENAME(65) TYPE C DEFAULT 'c:SAPDOC?',
EXCEPT(30) TYPE C DEFAULT ' '.
START-OF-SELECTION.
IF TABLE = ''.
TABLE = '*' .
ENDIF.
IF TITLE = ''.
TITLE = '*' .
ENDIF.
TRANSLATE TABLE USING '*%'.
TRANSLATE TITLE USING '*%'.
CONDENSE EXCEPT NO-GAPS.
L = STRLEN( EXCEPT ).
IF L > 0.
ASSIGN REPL(L) TO
ENDIF.
SELECT * FROM DD02V INTO TABLES
WHERE DDLANGUAGE = SY-LANGU
AND TABNAME LIKE TABLE
AND DDTEXT LIKE TITLE.
HIDE DD02V-TABNAME.
IF EXCEPT NE ''.
REPLACE EXCEPT LENGTH L WITH
INTO TABLES-TABNAME.
ENDIF.
TRANSLATE TABLE USING '% '.
CONDENSE TABLE NO-GAPS.
IF TABLES-TABNAME CS TABLE.
WRITE:/ TABLES-TABNAME, ' ', TABLES-DDTEXT.
APPEND TABLES.
ENDIF.
ENDSELECT.
IF DOWNLOAD NE ''.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
FILENAME = FILENAME
FILETYPE = 'WK1' "ASC, WK1, DBF, DAT, bin
TABLES
DATA_TAB = TABLES.
ENDIF.
AT LINE-SELECTION.
SET PARAMETER ID 'DOB' FIELD SY-LISEL(30) .
CALL TRANSACTION 'SE12' AND SKIP FIRST SCREEN.
AT PF8.
CHECK SY-LISEL <>
SET PARAMETER ID 'DTB' FIELD SY-LISEL(10) .
REFRESH DYNTAB.
PERFORM DYNPRO USING:
'X' 'SAPMSTAZ' '0100' "Selection screen
,' ' 'DD02V-TABNAME' SY-LISEL(10).
CALL TRANSACTION 'SE16' USING DYNTAB MODE 'A' .
FORM DYNPRO USING DYNBEGIN NAME VALUE.
IF DYNBEGIN = 'X'.
CLEAR DYNTAB.
MOVE : NAME TO DYNTAB-PROGRAM,
VALUE TO DYNTAB-DYNPRO,
DYNBEGIN TO DYNTAB-DYNBEGIN.
APPEND DYNTAB.
ELSE.
CLEAR DYNTAB.
MOVE: NAME TO DYNTAB-FNAM,
VALUE TO DYNTAB-FVAL.
APPEND DYNTAB.
ENDIF.
ENDFORM.
Regards,
Azaz Ali.
Maybe you are looking for
-
i need to know how to edit a drawing - basically remove the arrows and text but at the same time match the background of the existing pic. then re add new text. how do i erase the arrows and text and arrows but match current background of pic. step b
-
How automatically insert date when exit from Edit Item?
Hi all Example: Sales - A/R -> A/R Invoice when you input any symbol in field "due date" and will press tab beside you is automatically inserted current date. in system exist standart function transformations in date or not? thank & hallo from moscow
-
Urgent!!!!! Inserting data in table control of infotype.
Hi Experts, I want to insert data in custom infotype.I am using FM HR_INFOTYPE_OPERATION for this purpose.But custom infotype contains a table control. Table control of infotype has 20 rows containing fields name01 , addr01 upto name20 , addr20. How
-
DW won't highlight properly in design view
When working in design view I can't get photos to highlight or divs to activate quickly. It's taking me twice as long to work because in order to get the elements active my work around is to put it in inspect mode then select element, take it back ou
-
After installing iTunes update 11.1.4, I find I cannot sync wirelessly with my iPad Air. I connected OK with a USB cable and checked that I had wireless syncing switched on my iMac which is running OS X 10.9.1. Anyone else haviing similar issues?