Issue in SYS_CONTEXT function
Dear Friends,
I have an issue in SYS_CONTEXT function. If I run the SYS_CONTEXT function SQL query in SQL PLUS and SQL Developer Tool, the values are showing differently in both the tools.
CASE 1: In SQL Developer Tool,
SQL> SELECT SYS_CONTEXT('USERENV','IP_ADDRESS') from dual;
SYS_CONTEXT('USERENV','IP_ADDRESS')
10.1.118.101
SQL> SELECT SYS_CONTEXT('USERENV','OS_USER') from dual;
SYS_CONTEXT('USERENV','OS_USER')
Administrator
CASE 2: In SQL * PLUS Tool,
SQL> SELECT SYS_CONTEXT('USERENV','IP_ADDRESS') from dual;
SYS_CONTEXT('USERENV','IP_ADDRESS')
192.168.12.164
SQL> SELECT SYS_CONTEXT('USERENV','OS_USER') from dual;
SYS_CONTEXT('USERENV','OS_USER')
Oracle
Important Details
OS Login User: Administrator
DB Connect User: Oracle
Server IP Address: 192.168.12.164
System IP Address: 10.1.118.101
SQL> select * from v$version;
BANNER
Oracle Database 10g Release 10.2.0.1.0 - 64bit Production
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for IBM/AIX RISC System/6000: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
I am using the same queries in both the tools, but the output is coming differently, Can you help me to solve the issue.
Thanks
IP_ADDRESS
IP address of the machine from which the client is connected. If the client and server are on the same machine and the connection uses IPv6 addressing, then ::1 is returned.
Similar Messages
-
Hi Friends
I am having performance issue for this function-module(HR_TIM_REPORT_ABSENCE_DATA) and one my client got over 8 thousend employees . This function-module taking forever to read the data. is there any other function-module to read the absences data IT2001 .
I did use like this .if i take out this F.M 'HR_TIM_REPORT_ABSENCE_DATA_INI' its not working other Function-module.please Suggest me .
call function 'HR_TIM_REPORT_ABSENCE_DATA_INI'
exporting "Publishing to global memory
option_string = option_s "string of sel org fields
trig_string = trig_s "string of req data
alemp_flag = sw_alemp "all employee req
infot_flag = space "split per IT neccessary
sel_modus = sw_apa
importing
org_num = fdpos_lines "number of sel org fields
tables
fieldtab = fdtab "all org fields
field_sel = fieldnametab_m. "sel org fields
To Read all infotypes from Absences type.
RP_READ_ALL_TIME_ITY PN-BEGDA PN-ENDDA.
central function unit to provide internal tables: abse orgs empl
call function 'HR_TIM_REPORT_ABSENCE_DATA'
exporting
pernr = pernr-pernr
begda = pn-begda
endda = pn-endda
IMPORTING
SUBRC = SUBRC_RTA
tables
absences = absences_01
org_fields = orgs
emp_fields = empl
REFTAB =
APLTAB =
awart_sel_p = awart_s[]
awart_sel_a = awart_s[]
abstp_sel = abstp_s[]
i0000 = p0000
i0001 = p0001
i0002 = p0002
i0007 = p0007
i2001 = p2001
i2002 = p2002
i2003 = p2003.
Thanks & Regards
Reddyguessing will not help you much, check with SE30 to get a better insight
SE30
The ABAP Runtime Trace (SE30) - Quick and Easy
what is the total time, what are the Top 10 in the hitlist.
Siegfried -
Issue with gui_download function module
Hi All,
I have an issue with gui_download function module that it is creating one extra line while downloading my internal table data into text file,which i donot want.i have searched for various threads but couldnot get the proper reply.Or please provide me some other Function Module which will not create one extra line.Please help.part 2
INCLUDE RPPPXD00.
DATA : BEGIN OF COMMON PART A.
INCLUDE RPPPXD10.
DATA : END OF COMMON PART.
INCLUDE PC2RXTW0.
INCLUDE RPC2RX00.
DATA : BEGIN OF COMMON PART B.
INCLUDE RPC2CD00.
DATA : END OF COMMON PART.
INCLUDE RPPPXM00.
INCLUDE RPCMGR00.
AT SELECTION-SCREEN OUTPUT.
CONCATENATE SY-DATUM2(6) SY-UZEIT0(4) INTO REF_NO.
LOOP AT SCREEN.
IF R1 = 'X'.
IF SCREEN-NAME = 'FLN' OR SCREEN-NAME = '%_FLN_%_APP_%-TEXT' OR
SCREEN-NAME = 'BTC' OR SCREEN-NAME = '%_BTC_%_APP_%-TEXT' OR
SCREEN-NAME = 'PY_DT' OR SCREEN-NAME = '%_PY_DT_%_APP_%-TEXT'"SOC BY ANKITA"
OR SCREEN-NAME = 'ORG_ID' OR SCREEN-NAME = '%_ORG_ID_%_APP_%-TEXT'
OR SCREEN-NAME = 'ORG_AC' OR SCREEN-NAME = '%_ORG_AC_%_APP_%-TEXT'
OR SCREEN-NAME = 'DEPT_CD' OR SCREEN-NAME = '%_DEPT_CD_%_APP_%-TEXT'
OR SCREEN-NAME = 'REF_NO' OR SCREEN-NAME = '%_REF_NO_%_APP_%-TEXT'
OR SCREEN-NAME = 'PRS_BNK' OR SCREEN-NAME = '%_PRS_BNK_%_APP_%-TEXT'
OR SCREEN-NAME = 'TRANS_TY' OR SCREEN-NAME = '%_TRANS_TY_%_APP_%-TEXT'
OR SCREEN-NAME = 'TRANS_ID' OR SCREEN-NAME = '%_TRANS_ID_%_APP_%-TEXT'
OR SCREEN-NAME = 'TRANS_RK' OR SCREEN-NAME = '%_TRANS_RK_%_APP_%-TEXT'."EOC BY ANKITA
SCREEN-ACTIVE = 0.
ENDIF.
ENDIF.
IF R2 = 'X'.
IF SCREEN-NAME = 'FLN' OR SCREEN-NAME = '%_FLN_%_APP_%-TEXT' OR
SCREEN-NAME = 'BTC' OR SCREEN-NAME = '%_BTC_%_APP_%-TEXT' OR
SCREEN-NAME = 'PREPBY' OR SCREEN-NAME = '%_PREPBY_%_APP_%-TEXT'
OR SCREEN-NAME = 'APROBY' OR SCREEN-NAME = '%_APROBY_%_APP_%-TEXT'
OR SCREEN-NAME = 'PY_DT' OR SCREEN-NAME = '%_PY_DT_%_APP_%-TEXT' "SOC BY ANKITA
OR SCREEN-NAME = 'ORG_ID' OR SCREEN-NAME = '%_ORG_ID_%_APP_%-TEXT'
OR SCREEN-NAME = 'ORG_AC' OR SCREEN-NAME = '%_ORG_AC_%_APP_%-TEXT'
OR SCREEN-NAME = 'DEPT_CD' OR SCREEN-NAME = '%_DEPT_CD_%_APP_%-TEXT'
OR SCREEN-NAME = 'REF_NO' OR SCREEN-NAME = '%_REF_NO_%_APP_%-TEXT'
OR SCREEN-NAME = 'PRS_BNK' OR SCREEN-NAME = '%_PRS_BNK_%_APP_%-TEXT'
OR SCREEN-NAME = 'TRANS_TY' OR SCREEN-NAME = '%_TRANS_TY_%_APP_%-TEXT'
OR SCREEN-NAME = 'TRANS_ID' OR SCREEN-NAME = '%_TRANS_ID_%_APP_%-TEXT'
OR SCREEN-NAME = 'TRANS_RK' OR SCREEN-NAME = '%_TRANS_RK_%_APP_%-TEXT'."EOC BY ANKITA
SCREEN-ACTIVE = 0.
ENDIF.
ENDIF.
IF R3 = 'X'.
IF SCREEN-NAME = 'PREPBY' OR SCREEN-NAME = '%_PREPBY_%_APP_%-TEXT'
OR SCREEN-NAME = 'APROBY' OR SCREEN-NAME = '%_APROBY_%_APP_%-TEXT'
OR SCREEN-NAME = 'PY_DT' OR SCREEN-NAME = '%_PY_DT_%_APP_%-TEXT' "SOC BY ANKITA
OR SCREEN-NAME = 'ORG_ID' OR SCREEN-NAME = '%_ORG_ID_%_APP_%-TEXT'
OR SCREEN-NAME = 'ORG_AC' OR SCREEN-NAME = '%_ORG_AC_%_APP_%-TEXT'
OR SCREEN-NAME = 'REF_NO' OR SCREEN-NAME = '%_REF_NO_%_APP_%-TEXT'
OR SCREEN-NAME = 'DEPT_CD' OR SCREEN-NAME = '%_DEPT_CD_%_APP_%-TEXT'
OR SCREEN-NAME = 'PRS_BNK' OR SCREEN-NAME = '%_PRS_BNK_%_APP_%-TEXT'
OR SCREEN-NAME = 'TRANS_TY' OR SCREEN-NAME = '%_TRANS_TY_%_APP_%-TEXT'
OR SCREEN-NAME = 'TRANS_ID' OR SCREEN-NAME = '%_TRANS_ID_%_APP_%-TEXT'
OR SCREEN-NAME = 'TRANS_RK' OR SCREEN-NAME = '%_TRANS_RK_%_APP_%-TEXT'."EOC BY ANKITA
SCREEN-ACTIVE = 0.
ENDIF.
ENDIF.
IF R4 = 'X'.
IF SCREEN-NAME = 'PREPBY' OR SCREEN-NAME = '%_PREPBY_%_APP_%-TEXT'"SOC BY ANKITA
OR SCREEN-NAME = 'APROBY' OR SCREEN-NAME = '%_APROBY_%_APP_%-TEXT'
OR SCREEN-NAME = 'BTC' OR SCREEN-NAME = '%_BTC_%_APP_%-TEXT'."EOC BY ANKITA
SCREEN-ACTIVE = 0.
ENDIF.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
START-OF-SELECTION.
SELECT SINGLE * FROM T549Q WHERE PERMO = '01'
AND PABRJ = PRD+0(4)
AND PABRP = PRD+4(2).
FR_DT = T549Q-BEGDA.
TO_DT = T549Q-ENDDA.
CONCATENATE FR_DT0(4) FR_DT4(2) INTO FR_P.
CONCATENATE TO_DT0(4) TO_DT4(2) INTO TO_P.
PN-PAPER = PRD.
PN-PERMO = '01'.
GET PERNR.
RP-PROVIDE-FROM-LAST P0003 SPACE PN-BEGDA PN-ENDDA.
RP_PROVIDE_FROM_LAST P0001 SPACE PN-BEGDA PN-ENDDA.
IF PNP-SW-FOUND EQ 1.
SN = SN + 1.
ITAB1-SNO = SN.
ITCC-SNO = SN.
ITAB1-ENO = PERNR-PERNR.
ITAB1-NAM = PERNR-ENAME.
ELSE.
REJECT.
ENDIF.
RP-INIT-BUFFER.
RP-SEL-CALC.
CALL FUNCTION 'RP_EVALUATION_PERIODS'
EXPORTING
LAST_CALCULATED_DAY = P0003-ABRDT
LAST_DAY_IN_PERIOD = TO_DT
RETROCALCULATED_DAY = RP-SEL-CALC-RRDAT
TABLES
DIR = RGDIR
EVP = EVP
EXCEPTIONS
RGDIR_EMPTY = 1
INTERNAL_ERROR = 2
OTHERS = 3.
DESCRIBE TABLE EVP LINES LIN.
IF LIN > 0.
LOOP AT EVP.
IF EVP-IAPER = TO_P AND EVP-PAPER = TO_P.
RX-KEY-PERNR = PERNR-PERNR.
UNPACK EVP-SEQNR TO RX-KEY-SEQNO.
RP-IMP-C2-TN.
READ TABLE BT INDEX 1.
READ TABLE WPBP INDEX 1.
READ TABLE TAX INDEX 1."CHANGES BY ANKITA
ITAB1-BAC = BT-BANKN.
ITAB1-BKEY = BT-BANKL .
ITAB1-DEP = WPBP-KOSTL.
ITAB1-BETRG = BT-BETRG."CHANGES BY ANKITA
ITAB1-TAXID = TAX-TAXID."CHANGES BY ANKITA
YEAR = VERSC-PAYDT+0(4) - 11.
MONTH = VERSC-PAYDT+4(2).
DAY = VERSC-PAYDT+6(2).
CONCATENATE YEAR MONTH DAY INTO ITAB1-PDT.
ITAB1-PDT = VERSC-PAYDT - 110000.
ITCC-DEP = WPBP-KOSTL.
LOOP AT RT WHERE LGART = '/559'.
ITAB1-BTFR = RT-BETRG.
ITCC-BTFR = RT-BETRG.
IF EVP-SRTZA = 'P'.
ITAB1-BTFR = ITAB1-BTFR - RT-BETRG.
ELSE.
ITAB1-BTFR = ITAB1-BTFR + RT-BETRG.
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
ENDIF.
APPEND: ITAB1, ITCC.
CLEAR: ITAB1, ITCC.
END-OF-SELECTION.
CONCATENATE 'Prepared By:' ` ` PREPBY INTO PREPBY.
CONCATENATE 'Approved By:' ` ` APROBY INTO APROBY.
IF R1 = 'X'.
FORMAT COLOR 2.
ULINE (127).
NEW-LINE.
WRITE: 2 'Sr No.', 10 'Emp Num', 27 'Name'.
WRITE: 57 'Department'.
WRITE: 72 ' Transfer Amount' RIGHT-JUSTIFIED.
WRITE: 92 'Bank Key', 107 'Bank AC. Number'.
WRITE:1 '|', 8 '|', 25 '|', 55 '|', 70 '|', 90 '|', 105 '|', 127 '|'.
NEW-LINE.
ULINE (127).
NEW-LINE.
FORMAT COLOR OFF.
LOOP AT ITAB1.
SN = SY-TABIX.
WRITE: 2 SN, 10 ITAB1-ENO, 27 ITAB1-NAM.
WRITE: 57 ITAB1-DEP.
WRITE: 72 ITAB1-BTFR.
WRITE: 92 ITAB1-BKEY, 107 ITAB1-BAC.
WRITE: 1 '|', 8 '|', 25 '|', 55 '|', 70 '|', 90 '|', 105 '|', 127 '|'.
ULINE (127).
NEW-LINE.
ENDLOOP.
SKIP 4.
ULINE 90(32).
NEW-LINE.
WRITE: 90 PREPBY.
SKIP 4.
ULINE 90(32).
NEW-LINE.
WRITE: 90 APROBY.
ENDIF.
IF R2 = 'X'.
LOOP AT ITCC.
COLLECT ITCC INTO ITCOL.
ENDLOOP.
FORMAT COLOR 2.
ULINE (44).
NEW-LINE.
WRITE:2 'Sr No.', 9 'Department'.
WRITE: 27 'Transfer Amount ' RIGHT-JUSTIFIED.
WRITE:1 '|', 8 '|', 25 '|', 44 '|'.
NEW-LINE.
ULINE (44).
NEW-LINE.
FORMAT COLOR OFF.
LOOP AT ITCOL.
SN = SY-TABIX.
WRITE: 2 SN, 9 ITCOL-DEP, 27 ITCOL-BTFR.
WRITE:1 '|', 8 '|', 25 '|', 44 '|'.
NEW-LINE.
ULINE (44).
NEW-LINE.
ENDLOOP.
ENDIF.
IF R3 = 'X'.
LOOP AT ITAB1.
CLEAR: ITTF, P3, P11, P13, P6, V_BAC.
LEN = STRLEN( ITAB1-BKEY ).
IF LEN < 3.
CONCATENATE ITAB1-BKEY '***' INTO P3.
ELSE.
LEN = LEN - 3.
LEN = 3.
P3 = ITAB1-BKEY+LEN(3).
ENDIF.
CLEAR LEN.
V_BAC = ITAB1-BAC.
REPLACE ALL OCCURRENCES OF '-' IN ITAB1-BAC WITH ''.
CONDENSE ITAB1-BAC NO-GAPS.
LEN = STRLEN( ITAB1-BAC )."if length of acc num > limit
IF LEN > 11.
IT_FAIL-EN = ITAB1-ENO.
IT_FAIL-BA = V_BAC.
APPEND IT_FAIL.
CLEAR: IT_FAIL.
CONTINUE.
ENDIF.
P11 = ITAB1-BAC.
CONCATENATE P11 '***********' INTO P11.
above step is for putting '' in place of unfilled chars of P11.
P13 = ITAB1-BTFR * 100.
P6 = ITAB1-PDT+2(6).
CONCATENATE ` ` P3 P11 BTC P13 P6 INTO STR.
ITTF-ROW = STR.
APPEND ITTF.
ENDLOOP.
IF ITTF[] IS NOT INITIAL.
CONCATENATE FLN SY-DATUM SY-UZEIT '.txt' INTO FILEPATH.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = FILEPATH
FILETYPE = 'ASC'
WRITE_FIELD_SEPARATOR = 'X'
TABLES
DATA_TAB = ITTF
OTHERS = 22
SKIP 2.
IF SY-SUBRC <> 0.
WRITE:/ 'Unable to Download file at ', FILEPATH.
ELSE.
WRITE:/ 'File with following data downloaded at ', FILEPATH.
NEW-LINE.
SKIP 2.
LOOP AT ITTF.
WRITE:/ ITTF.
ENDLOOP.
ENDIF.
ELSE.
WRITE 'No Data, no file was downloaded'.
ENDIF.
IF IT_FAIL[] IS NOT INITIAL.
SKIP 2.
FORMAT COLOR 2.
WRITE 'Acc. No. of following employees exceeded the length limit'.
WRITE:/ 'So their entry was not created in the file'.
SKIP 1.
WRITE : 'Employee Number', 20 'Bank Acc. No.'.
FORMAT COLOR OFF.
LOOP AT IT_FAIL.
NEW-LINE.
WRITE : IT_FAIL-EN, 20 IT_FAIL-BA.
ENDLOOP.
ENDIF.
ENDIF.
IF R4 = 'X'."CHANGES BY ANKITA
WRITE:/ 'ERROR LOG - BANK A/C NO. CONTAINS ALPHANUMERIC'.
WRITE:/ 'EMPID' COLOR COL_POSITIVE,12 '|',15 'Receiving Bank Code' COLOR COL_POSITIVE,
40 '|','Receiver A/C No' COLOR COL_POSITIVE.
PERFORM EXTRACT_DATA.
SKIP 2.
ENDIF."EOC
RP-READ-PAYROLL-DIR.
Edited by: ANKITA BHARDWAJ on Dec 9, 2009 10:36 AM -
Hi All,
Need some urgent help..
Iam facing some issue with the Function Module 'SKWF_FIND_BY_QUERY' in a BW ECC6.0 system.
As shown below, in the function module, the Table IT_PROPERTIES_RESULT gets populated with some values based on inputs like IT_CLASSES, IT_QUERY, and L.
This updation of IT_PROPERTIES_RESULT table is happening for some of the services sent through IT_QUERY and is not getting populated for some.
call function 'SKWF_FIND_BY_QUERY
exporting
CONNECTION_SPACE =
OBJ_TYPE = 'L'
PTYPE =
X_STRICT =
IMPORTING
ERROR =
tables
CLASSES = IT_CLASSES
QUERIES = IT_QUERY
RESULT_OBJECTS = IT_LOIO
PROPERTIES_REQUEST = PROPERTIES_RESULT = IT_PROPERTIES_RESULT.
The values are as follows:-
Values getting populated in IT_CLASSES BW_LO_TRAN Values getting populated in IT_QUERY 1) BW_QUERY, 2) /BIC/ZSERVICE
I would like to know whether any Standard Customizing BW transaction is present that is maintaining IT_PROPERTIES_RESULT table properties and fetching through this Function Module.
Also, suggest how this issue can be resolved
Thanks & Regards,
Shailesh nagarThanks Suhas. That definitely helped.
Also the following links helped.
http://help.sap.com/saphelp_nw70/helpdata/EN/86/1c8c3e94243446e10000000a114084/frameset.htm
/people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
Cheers,
Preethi -
Hi Guys:
I am experiencing some issue with DUPLIATE FUNCTION. What happen is that I have create some BUTTONS on the stage that was used througth out difference scence.....those buttons has same action that point page to particular scence. And this is when I found the DUPLICATE FUNCTION issue.
I found that I could get away by changing the name of the FUNCTION, but as I have quite a lots of those buttons so I really don't think this method is very pratical and organized. So does anyone have any better idea how this can be solved?
Many Thanks!Thanks so much, this did solve the problem. Studpid me that were trying to add same FUNCTION on each Scene that has the same button. Initially I thought it's more complex in AS3, but seems AS3 is actually trying to make thing easier and more praticler.
Not really good at previously AS, but decided to spend some time on learning AS3.0 now. Hope I could help people like me on the forum with question about AS3.0 soon. Just like the favor you did for me.
Many Thanks!! -
Oracle Discoverer integrate with SSO, SYS_CONTEXT function does not work?
Here is the summary of steps I have already completed:
1. Following the Discoverer configuration guide, I modified mod_osso.conf file.
2. So right now, when I typed
http:\\host: 7778\discoverer\plus, it will direct me to the single-sign-on page.
3. Then I login as "orcladmin" (a user in OID), and I will be direct to the standard Connection page.
4. And I already create a private connection using database user "EDW".
5. So when I click the private connection, I can run the workbook and see all the data. So far so good.
6. Now is the problem, since I am going to use VDP to restrict the data that SSO user can see. (for example, "orcladmin" can only see school1 data, but not school2 data) So I need to use some sort of function to return value "orcladmin" in the database so that I can use it to create security context and policy (for example, when "orcladmin" login, the SQL query discoverer generated will have a where clause school_id=1). And according to the configuration guide, if I run the following SQL, I should get back "orcladmin":
Select SYS_CONTEXT('USERENV', 'CLIENT_IDENTIFIER') from dual;
But instead, I got null. What is the problem? BTW, when I ran the above SQL, I login into the database as EDWPRD, who owns all the base tables that underlying all the workbooks.
Thank you in advance for your help!!
RenHi Ren
When you say that you are testing this in SQL presumably you are doing this in SQL Plus. If this is true then the answer you got back is correct because connections to SQL Plus do not use the App Server SSO login and so the CLIENT_IDENTIFIER attribute will always return NULL. Try switching this to OS_USER and you should see the user name from the operating system. Switching this to SESSION_USER will tell you the database user name, while switching it to TERMINAL will tell you the name of the machine that you are logged on, and so on.
For a full list of attribute values to SYS_CONTEXT take a look here:
http://www.psoug.org/reference/sys_context.html
To take advantage of any of this inside Discoverer you would have to register the PL/SQL SYS_CONTEXT function with Discoverer.
Hope this helps
Regards
Michael -
As FI consultant, What are critical issues with other Functional Consultant
Hai, Masters
Can you express about Critical issues with other functional consultant with exmples
Regards
Ramesh KHi Ramesh K,
I think the critical issue should be the definaition cross application should be consistency( Ex in FI, CO, MM or SD).
And the Main issue is the result updated from FI to other applications or from other applications to FI is correct or not!
With Best Regards,
Gladys Xing -
HI,
We are facing an issue in COPY function in IP. Few Time characteristics are not copying from Actual to plan cube. We have Three Actual cubes and one plan cube. We are using COPY function and changing Info provider , currency and version Characteristics.
We have tried with FOX code also but Time characteristics 0CALMONTH2, 0CALQUART1 are not getting copied, They are displaying as # but we have data in all the actual cubes. These chars in Multiprovider are mapped with all the infoprovider.
Kindly Provide your valuable inputs.
Thanks & RegardsHi Pratyush and Cornelia,
We are not using derivations.
Following is the sample data as it is stored in actual cube
0CAlMONTH = 1
0CALQUART1 = 1
0FISCPER = 2006001
0FISCPER3 = 1
0FISCVARNT = K4
0FISCYEAR = 2006
We have some planning sequences which get excuted through a portal based on a planning template. The planning sequences are failing as they are not getting the input parameters when we run them on portal. We ran the sequences individually through the modeller with the necessary input parameters. The actual cube data is read succesfully but the 2 time characteristic are showing # values.On trying to save the data in the plan cube we get this error "Access via Null object reference not possible.error key: RFC_ERROR_SYSTEM_FAILURE". Please suggest.
Thanks & Regards,
Saurav
Edited by: Saurav Chetry on Jun 6, 2011 4:10 PM -
How to get sys_context function
hi,
i m working on oracle 10g but i dont hav sys_context function on my sys user.
how can i hav it & from where.
can i create this kinda function on my oracle 9i ?
thxsi m working on oracle 10g but i dont hav sys_context function on my sys user.How do you know its not there?
Although this article is for Oracle 11g, but most of the attributes can also be used in Oracle 9i and 10g.
http://www.psoug.org/reference/sys_context.html
Execute the following command and paste the output on this thread.
SQL> select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod
PL/SQL Release 10.2.0.4.0 - Production
CORE 10.2.0.4.0 Production
TNS for 32-bit Windows: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
SQL> SELECT sys_context('USERENV', 'CURRENT_SCHEMA') FROM dual;
SYS_CONTEXT('USERENV','CURRENT_SCHEMA')
TEST
SQL> -
Query regarding sys_context function
Hello
I have created report with custom folder and parameters are passed using sys_context function. I have few queries regarding this.
1) How to see actual sql query executed by report. I can see from discover administorator - sql inspector. But it is not showing which is value passed for sys_context parameter. If want to see query with full parameter then what to do? I have also tried to look it from toad - session browser, there also it is not showing parameter value.
2) If anything special needed to manage sys_context variable. i.e i have executed report with parameter 1 = A and now next time executed with parameter 1 =b. Will it takes proper value, i mean sys_context parameter will be refreshed itself, or need to do somehting..
Please help me out.
Thanks in advanceHi,
How to see actual sql query executed by reportSYS_CONTEXT returns values from a namespace. Normally you create a local namespace and values in this namespace can only be retrieved by the session. So there is no way to see the values for a Discoverer session from Toad. Normally, one would create a Discoverer report that returns all the values in your namespace that you can use for debugging.
If anything special needed to manage sys_context variableNo, once you have set the context in the namespace using DBMS_SESSION.set_context then it is there for the rest of the session.
Rod West -
Having issue in Payroll function P0014 with Payment model in Info type 0014
Hi All,
I configured payment model for bi-weekly payroll area.
Payment model is configured in a way that deduction/payment only happen in first pay period of a month in IT0014.
Position 5 in table T549X payment in first pay period of 2011.. partial in Dec 2010 and in Jan 2011.
Position 6 in table T549X Pay period 2 --> should not be any deduction/payment
Position 7 in table T549X Payment in third pay period
Position 8 in table T549X Pay period --> should not be any deduction/payment
Position 9 in table T549X Payment in 5th pay period
I checked logic of payroll function P0014
In perform "chck_last_pay" which is specific to P0014 or W0014
In Pay period 1 function reads pay period which is greater than 1 in this case it is 2
LOOP AT T549z WHERE ( pabrp > $pabrp AND pabrj = $pabrj )
OR ( pabrj > $pabrj ). "#EC PORTABLE
period = $i549z-pabrp(2) + 4. Pay period 2 +4 = 6
In 6th position of table T549X PP02 exist ; there should not be any payment/deduction
ASSIGN COMPONENT period OF STRUCTURE t549x TO <period>.
so after exiting from this perform payroll function checks CRT there is no monthly payment so deduction happen .
However becasue of above loop and read statement in perform chck_last_pay there is no deduction/payment from PP03.
So I want to know how can I resolve this issue, any suggestion or idea.
ThanksHi Payment model is attached to premium wage type specific to company.
I only found difference.
If following values are not matched then system do not calculate deduction as it supposed to do.
T549R-ZEINH <> T54C2-ZEINH
If following 2 values are matched then deduction payment model works at it suppose to work.
in my case
In table T549R
For Bi weekly payroll area Period parameter (PERMO) is 04
and time unit (ZEINH) is also set to 04.
However in table T54C2
Cumulation type (CUMTY) is M
and its time unit is (ZEINH) is 01
In table T549W
Model is ZPBI
Date modifier is 00
Period parameter (PERMO) is 04
Cumulation type PPERM is M
any suggestion what should I do in this case.
Thanks, -
Issue in EP: Function module throwing an exception
Hi Guys,
I have an Issue in EP.....which is a replica of the production system i am working on. I have an excel file to upload. I am using the function module 'text_convert_xls_to_sap' . This is working in Production sytem.
But i am getting an Error" File cannot be processed ".
in portal environment of the same program.
The exception is in the Function Module 'text_convert_xls_to_sap' in the " PERFORM get_spreadsheet_interface USING g_con_excel....".
Here sy-subrc = 1.
Can anyone tell me what exactly is going wrong here?
Thanks,
San
PS:Helpful answers will be rewardedHi!
The file is closed when i access. The issue is elsewhere and it is not reading the file...
Thanks,
San -
Issue with Bookmark functionality (using java script) in WAD.
Hi,
I am working on a WAD report and instead of using the default bookmark functionality within WAD, i use a java code to get the bookmark url in a new window.
But the problem is the java code is not working consistently at all times.
Issue1: If i click on the bookmark button on the report for the first time, it will open up a new window with the bookmark link. But if i close that new bookmark url window and again click on the bookmark button, a new window is opened which displays the template corresponding to the bookmarkk generated earlier (the report in its executed form), instaed of the bookmark url.
Can anyone help me to correct this issue. At any time i click the bookmark button i want to get the bookmark url opened in the new window, instead of the template.
Issue2: The bookmark is not at all working at particular times. It will show error message at the bottom the page. What I am thinking is, this is because of the misalignment of the java code when you sava the WAD report. The java code is so sensitive that it gets realigned each time you save the WAD report. But sometimes even without making any changes also it is not working.
If anyone has any suggestion or inputs for solving these issues pleese help ASAP. The java code i used is given below.
function createBookmark()
var bwUrl="<SAP_BW_URL CMD='BOOKMARK'>";
child1=window.open(bwUrl,'win1','width=1,height=1,alwaysLowered=0');
window.focus();
//Ensure that BW completed generation of the bookmark url.
now = new Date();
startTime = now.getTime();
delayTime = 3000;
//Set timeout to 3 seconds
waitTime = startTime;
//check if the bookmark url is ready and timeout after the specified time (delayTime).
while (waitTime<(startTime+delayTime))
now = new Date();
waitTime = now.getTime();
//BW identifies a bookmark using BOOKMARK_ID. The presence of this string
//in the url is used to identify creation of the bookmark. If bookmark
//is created on the server, proceed to the next step.
if (child1.location.href.indexOf("BOOKMARK_ID") >0)
break;
bookmark_url = escape(child1.location.href);
bookmark_url = bookmark_url.replace(/%3A/g, ":");
bookmark_url = bookmark_url.replace(/%3F/g, "?");
bookmark_url = bookmark_url.replace(/%26/g, "&");
bookmark_url = bookmark_url.replace(/%3D/g, "=");
var base_url = window.location+"";
var base_index = base_url.indexOf("?");
base_index = base_index + 1;
var book_link = base_url.substring(0,base_index);
if (book_link.indexOf("sapdbi")!=-1)
book_link = "http://dep.xxx.com/sso/index.jsp?target=BW&";
if (book_link.indexOf("sapqbia1")!=-1)
book_link = "http://qep.xxx.com/sso/index.jsp?target=BW&";
if (book_link.indexOf("sapqbia2")!=-1)
book_link = "http://qep.xxx.com/sso/index.jsp?target=BW&";
if (book_link.indexOf("sappbia1")!=-1)
book_link = "https://portal.xxx.com/sso/index.jsp?target=BW&";
if (book_link.indexOf("sappbia2")!=-1)
book_link = "https://portal.xxx.com/sso/index.jsp?target=BW&";
if (book_link.indexOf("sapqbi")!=-1)
book_link = "http://qep.xxx.com/sso/index.jsp?target=BW&";
if (book_link.indexOf("sappbi")!=-1)
book_link = "https://portal.xxx.com/sso/index.jsp?target=BW&";
var book_index = bookmark_url.indexOf("?");
book_index = book_index + 1;
var book_length = bookmark_url.length;
var temp_link= bookmark_url.substring(book_index,book_length);
portal_bwUrl = book_link+temp_link;
child1.close();
// The below two lines are not necessary, it is left for reference.
// https://portal.xxx.com/sso/index.jsp?target=BW&SAP- //LANGUAGE=EN&language=EN&cmd=LDOC&TEMPLATE_ID=IPUWT_FRAME
bookmark_window=window.open("",'_blank','width=1000px,height=30px,status=0');
bookmark_window.moveTo(50,500);
var body_tag = '<body leftmargin=3 topmargin=3 bgcolor=#cad4e3 class=&SAPBEXTbsBdyEdg&>';
var body_text ='<p><font face=Arial size=2>
This bookmark can be copied and pasted to Internet Explorer-Favourites, mail or other documents:
</p>';
bookmark_window.document.write('<title name="SAP_BW_TITLE_!IID_171">Bookmark</title>',body_text, body_tag, portal_bwUrl, '</body>');
Thanks in Advance.Hi Danny
Thanks for the update
Hi Danny
Thanks for the update.
I can't find any code in the attachment.Its a Web Page.
Rightclick on webpage and View Source
Then i can find Code.
Still it is not working
Issues: Which object i have to replace with the URL in the code
Value = 'Weekly'
or
fun(WEEKLY REPORT)
and
when i paste that code in the XHTML tab of template and tried to save it,The scripted is changed
Please update how to proceed
Thanks -
Slicer Time Dimension Issue with Cube Functions
Hi,
Hoping someone can help me figure out right approach here.
Summary:
Using Excel 2013 connected to a SSAS cube as data source, and cube functions with slicers to create a dashboard.
Have following time dimension slicers; Fiscal Year, Fiscal Quarter, Fiscal Month, Fiscal Week & Date, that are used to slice data based on user selection, along
with a sales measure.
Below is example of Slicer name and CubeMember function for each:
Slicer_Fiscal_Year:
=CUBEMEMBER("Cube","[Date].[Fiscal Year].&[2015]")
Slicer_Fiscal_Quarter:
=CUBEMEMBER("Cube","[Date].[Fiscal Quarter].[All]")
Slicer_Fiscal_Month:
=CUBEMEMBER("Cube","[Date].[Fiscal Month].&[201408]")
Slicer_Fiscal_Week:
=CUBEMEMBER("Cube","[Date].[Fiscal Week].&[201509]")
Slicer_Date:
=CUBEMEMBER("Cube","[Date].[Date].[All]")
Problem:
What I am trying to do is to build a table with cube functions that takes the lowest grain of the slicer time dimension selected, shows the current member, plus
the prior 7 so I can have an 8 period trending view table that I will build a chart from. In the above example that would mean that it would look at Slicer_Fiscal_Week since that is lowest grain that has an attribute other than All, and then show me the prior
7 periods. In this case 201509 means Week 9, so I would want to show in table Week 9 back to Week 2. But if Slicer_Fiscal_Week was set to All, along with Slicer_Date, then Fiscal Month would be lowest grain, so I would want to show Fiscal Months from August
(201408) back to January 2014. I know how to use CubeRankedMember to pull the value from what is selected in the slicer, the problem is figuring out how to pass the lowest grain time dimension so that I can use lag or some other MDX function to get the previous
periods.
Any help on this would be greatly appreciated.
<object height="1" id="plugin0" style=";z-index:1000;" type="application/x-dgnria" width="1"><param name="tabId" value="{28593A5C-70C0-4593-9764-80C76B51795C}"
/></object>Hello,
Thank you for your question.
I am trying to involve someone familiar with this topic to further look at this issue.
George Zhao
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs. -
IPod nano 7G issues with shuffle function
Dear all,
I just bought a 7G iPod nano. Altogether it's great but I have a couple of issues I would like to comment with you:
1. I sometimes use the "shake to shuffle" function, but when I go and turn it OFF, the shuffle function still remains (although not in the "shake" mode), and I must turn it off manually by tapping on the screen while a song is playing, and de-selecting it. Does this happen to you?
2. When I pair the iPod nano 7G to my car through bluetooth, after listening to any album up until the end, it then suddenly pauses, then starts playing again but in a shuffle mode, without me having done or touched anything. So after the end of any album, it just turns on the shuffle mode automatically. My car stereo system is a 2012 Mercedes Benz Audio 20 system, which has both A2DP and AVRCP profiles. Has anyone experienced something similar?
It's sounded like fun to listen to the iPod wirelessly in the car, but I must say that the bluetooth functionalities are so limited (play, stop, next track, last track) that it quicly becomes quite boring. I wish it had all the browsing controls like when you plug it in...Any comments?
Thanks a lot in advance for you help with these issues,
CCCPim having the same problem. I drive a 203 c class with audio 20 and for some reason the media interface wont sync with my ipod. The bluetooth works fine but when i try to plug it via the media interface cables, it only charges....
Maybe you are looking for
-
How can I delete an album that had hundreds of wrong songs dumped into it?
When I was new to mac I messed up my music library when I tried to get my albums (all music really) into iTunes. Now I have some albums with hundereds of songs. I cant seem to get them off my system without deleting all the music on my system. How
-
A questions about /usr/include/sys/select.h header file
good day! i hope i can get some help about this and i would be very grateful if my question will be answered. i have a question regarding the select.h header file that we include in our programs when we use the select(3C) function. * Select uses bit
-
Showing universal work list when user clicks a button in webdynpro java
Hi, I am developing webdynpro java application, when user clicks a button i want to display Universal worklist in the portal, if user is logged in then it directly shows in portal otherwise it should asks for username and password. Thanks, Madhu
-
Hi, I am working on BI7. I have problem that I cannot open BI7 BEx Analyser, however I can open 3.X Analyser. On clickin for BI7 Analyser It say that 'Critical programm erroe occured, The programm needs to close, Please refer to the trace for further
-
Why can't I get my 3Gs to pair with my iMac?
I've been trying to get my 3Gs running 4.3.5 to pair with my late 2009 iMac running Snow Leopard over Bluetooth and they keep fighting each other and won't pair up. I don't ask for much, I'd just like to use my mac as a handsfree device when I'm hom