FILENAME as variable for SID in S_DATASET
Hi Friends,
I am looking for keeping FILENAME as a variable for S_DATASET but it do not seems to be working for me correctly.
I think i tried many combinations.. like <SID> or <SYSID> but it do not work as expected.
I need to use this for a path : /usr/sap/<SID>/work and i wan to keep it as a variable so that same role works fine in all test/dev & Prod.
can you please suggest me something.
thanks
ashish
Hello Ashish,
the usage of variables in authoriaztion values is not supported. (except the '*')
The Kernel does not verify any variables. It is also not planned
for future releases to have this in standard.
Attention:
the documentation of the object s_dataset says for 'FILENAME':
quote
File name: Name of the operating system file. Here, you can restrict the
accessible files.
unquote
Nothing else.
Don't mix it up with the documentation of the underlying Data element
FILEEXTERN.... (where variables are mentioned....)
b.rgds, Bernhard
Similar Messages
-
Change the environment variables for sid adm failed
Hi Experts,
I have installed ECC HA on AIX/ORACLE
now i want to change the environment variables for the qr1adm user at the standby node
i tried to change the /home/qr1adm/.profile with command
vi /home/qr1adm/.profile it is changed and i saved this changes.
now I login with qr1adm user and i executed this command
env |more
it comes with the old values
i don't know why?
and if i oppened the .profile file i'm finding the new values
So could you please tell me how can i change the environment variable for qr1adm user
Thanks
Sherif
Edited by: Sherif Eid on Jan 23, 2008 9:08 AMThanks Sridhar ,
which hostname?
for example i have
.dbenv_R3QASsvc.csh
.sapenv_KFGKWERPR303.csh
i want to tell you that R3QASsvc is the virtual hostname
and KFGKWERPR303 is the name of the primary node A
and the phiscal host name of node B is KFGKWERPR307
so which one should i change it?
thanks
Sherif
Edited by: Sherif Eid on Jan 23, 2008 11:59 AM -
How can I use variable for a package filename and target file inODIFileMove
I want to use a variable for paths so that when I migrate from Dev to QA to Prod I don't have to do a lot of editing.
Specifically, I want a variable to be the first part of the path for the filename (\\sundev1\fnd1-hypd1) and join this with the rest (\update\log\*.log or specific filename) using several different objects like the ODIFileMove, ODI OS Command, OS Command, etc.
Thank you!Hi,
you could set up a database table holding processing parameters (i.e. Column1 - ParamName, Column2 - ParamValue).
One row could then be ParamName = FilePath, ParamValue = \\<server>\folder\
So, the refreshing query (attached to a logical schema) would be something like SELECT ParamValue FROM <your table> WHERE ParamName ='FilePath'
Then, create a variable which can refresh from the database and in the package, drop the variable onto the flow and set it's type to 'Refresh Variable' in the properties.
Hope this helps.
geeo -
Text Frame Options. Room for Side Heads added without warning
Hi -
I just got asked this and have no clue how to help. Anyone know what this is?
Every now and then, my Frame file will –apparently on its own – reset most of its text frames into having room for side heads. Makes for lots of bad labels on graphics – everything’s suddenly offset and scrolling off the bottom.
This will happen suddenly. It will usually be only one or two chapters in a book, but if I ignore it has been known spread like the black death throughout the book.
The only solution I’ve found so far has been to revert to a backup or touch each text frame individually. Setting properties for two at a time messes up location on the page.HI -
Here's what I heard back.
I believe it’s for everything except main text flow, including headers&footers on master pages, and special elements on unused master pages.
It appears to be spontaneous, but I can’t guarantee that.
I don’t use MIFs, and I’m pretty sure no one else does.
Yes to formatting imports , because we frequently change variables in one chapter and copy them back to the rest (esp date doc was last edited – not same as print date per our regulatory agency.) Likewise conditional text. We know not to copy from a file into itself in a book, although it has happened and we do exchange manuals between revisions at times. -
Using a variable for the "format" parameter for disk/directory name
In the interest of maintainability, I'm trying to use an environment variable in the format parameter. I've found that RMAN is able to interpret the $ORACLE_HOME and $ORACLE_BASE variables, but others give the error:
RMAN-03006: non-retryable error occurred during execution of command: backup
RMAN-07004: unhandled exception during command execution on channel t1
RMAN-10035: exception raised in RPC: ORA-07217: sltln: environment variable cannot be evaluated.
RMAN-10031: ORA-19583 occurred during call to DBMS_BACKUP_RESTORE.BACKUPPIECECREATE
Is there any more specific documentation about what variables are supported within RMAN? (I've found nothing in the manuals beyond the excerpt I included below.) Does anyone know if the "port-specific directory" mentioned in the excerpt below
can be modified/customized?
Thanks....
format 'format_string'
specifies the filename to use for the backup piece. Any name that is legal as a sequential filename on the platform is allowed, provided that each backup piece has a unique name. If backing up to disk, then any legal disk filename is allowed, provided it is unique. If you do not specify the format parameter, RMAN stores the backup pieces in a port-specific directory ($ORACLE_HOME/dbs on UNIX).i have used a different directory other then port-specific one and i am able to backup .
format '/disk2/app/oracle/test/%d_%s_%t' , i have given full path names instead of substitution variables. i am not sure how
they(variables) will work though in rman. -
SQL LOADER / INFILE filename as variable in .ctl file
I stumbled over several threads in the OTN-forums regarding this problem, but neither was it finaly solved nor did I find a FAQ that answered my question. Soooo:
We get several datafiles from several sources and process them via SQL Loader and store 'em in the DB.
This is done via a CHRON job and a PERL skript, for all datafiles in a specific directory.
We need the information which file on which date generated the data INSIDE the DB as well.
So I want to store the filename || SYSDATE combination as well.
I know, I could parse the .ctl file and replace a key-string with the actual filename and so have it in the input.
But this seems a bit dirty to me. Isn't there some way, i.e. a keyword or variable for the infile-filename within the SQLLoader that I can access in the .ctl file? Something like:
INTO TABLE processed_files
FIELDS TERMINATED BY ';'
WHEN LOWER(LTRIM(RTRIM(hdr_ftr))) = 'ftr' -- FOOTER??
(hdr_ftr VARCHAR2(100),
source INFILE||' on '||TO_CHAR(SYSDATE, 'MM/DD/YYYY'),
realm VARCHAR2(100),
version VARCHAR2(20)
I would be greatfull if you?d share your wisdom with me. ;-))
OliverI passed this quite similar to 'Ask Tom' and got the advice to put the .ctl's content as a string variable into a Shell skript.
This shell skript (which had to be written anyway to loop over the datafiles an subsequently call the sqlldr) should then replace the INFILE parameter and the CONSTANTs for the filenames and generate a 'temporarry' .ctl before calling sqlldr!
That's it, no better and safer way! -
Variables for E2E Summary View (SSR Workload)
Hi there,
I have installed the Solution Manager Diagnostics and the Diagnostics Agent on the Solution Manager.
If I choose the Solution Manager and open the Workload Analysis there are no informations. When I go to the "Workload Summary" there appears "Variables for E2E Summary View (SSR Workload) ". If I delete "E2E SID Variable" and click on "Execute", I can see the informations. But when I open the tab "Workload Summary" again, I have to delete the E2E SID Variable again. How can I save this change?
Thanks and best regards,
AndreasHi Andreas,
I've checked the SAP Note and it's not the solution, because we have implement Support Package 24 for Solution Manager
In the EFWK-Administration I can't see any errors .. Yes it's an alternative to do the setup again, but then I have done it for three times on this system
I always believe that the solution manager should make things easier ...
Thanks and best regards,
Andreas -
How to create a custom variable for a Label?
i need my label to store a string variable in it, do you know i can create a custom variable for it.
i mean for example if it's name is "StoredString" i can access it in my code by "label1.StoredString" just like "Label1.text" or something like that.Thanks for pvdg42's help.
Hi soorena12,
Based on your issue, I suggest you can try the pvdg42's suggestion check your issue in your side.
If it still could not help you solve this issue, I suggest you can tell me which kind of application you create the label in the VS IDE?
What language you use to create for your application?
If you have any update message about your issue, please tell us.
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to Create a selection variable for Fiscal period/year range
How to Create a selection variable for Fiscal period/year range. The idea is to filter the query results using a fiscal period/year range user input rather than a full fiscal year input.
Hi Priya,
Open the query in a query designer -> in the left hand side you would find the fiscal year period under the time dimension -> right click -> create variable -> create the variable.
The better option would be use any of the SAP provided variable. You would find them under the Fiscal year period in the left hand side in the query designer.
Bye
Dinesh -
How do I create an automator variable for a path that includes a date?
I like to use Image Capture to scan documents into a hierarchy of folders under my ~/Documents directory that are organized by year and document type. For example, I have
~/Documents/archives/2011
/Misc
/Utilities
and
~/Documents/archives/2012
/Misc
/Utilities
for archiving miscellaneous docs and utilities bills. Now, switching folders in Image Capture is annoying so I want to use the Automator support built into that app to direct the scanned images to ~/Documents/archives/<Current Year>/Misc or ~/Documents/archives/<Current Year>/Utilities. I was able to do this with separate Automator workflows, each with a hard-coded path to the destination folder. For example,
What I would like to do is use an Automator variable to dynamically determine ~/Documents/archives/<Current Year>/Misc. I see variables for Home, Documents, and Current Year. However, when I try to create a new path variable it only lets me choose a full path to a Finder folder. How do I combine Documents and Current Year variables with the "archives" and "Misc" folder names to create a new path variable?Well now, you went and made me learn something today. In the Variables Library, under Utilities, is a variable named AppleScript. You can put a small script into this that evaluates to your path, for example:
((((path to documents folder) as text) & "archives:" & (year of (current date)) as text) & ":Utilities") as alias
If the script evaluates to a proper path, it can be used wherever any other path can - you can experiment by looking at the results of a Get Value of Variable action. -
Need a Syatem variable for Executing the report by RFC.
Hi Experts,
Need a Syatem variable for Executing the report by RFC.
what i mean to say is,i can execure the report directly ...then no issues.
But if i execute the Report by RFC ,then i should put a condition with system variable...
Please suggest me ,how can put a condition when i am executing the report through RFC.
Thanks
BabuHello Friend,
what I understood that you want to put some extra condition if that report is getting called from RFC...
you can use the system variable SY-CPROG....it will hold the value of the report when it is geeting executing directly...
but when it is getting executed therough RFC...it will hold that RFC name...
Thanks
Krish -
How to use one Bex Variable for two purposes in one query?
Hi,
I want to prompt for a UOM in a query. Then I want to use that one UOM variable to do 2 tasks in the query:
1. Perform a UOM conversion on one restricted key figure (no filtering)
2. Filter in a second restricted key figure (no conversion)
How would I use a variable (or two?) to do this? I do not want to have 2 UOM prompts.
Thanks!
GreggOh, it all seems so easy now! Hindsight 20-20...
Solution was to create a new input ready variable for Unit.
1. Restrict the key figures which need restricting using new variable
2. For conversions, in BI backend us T-code RSUOM and create new conversion type associated with new variable. Then for each key figure needing conversion, set the conversion parameter to use the new conversion type.
Between both 1 & 2 above, the same variable is used & thus prompted only once.
Solution works perfectly.... as it should. Hope this helps someone else! -
How to substitute a bind variable for a IN condition?
Dynamically I am setting the WHERE condition for one of my blocks using SET_BLOCK_PROPERTY Built in. The condition that I am attaching has two IN conditons..
For Eg.,
contracts_tbl.status_col IN ('NEW', 'OLD', 'EXPIRED', 'OPEN')
AND contracts_tbl.id_col IN (1, 2, 3, 4)
The number of choices in the IN condition will vary depending upon the user choice in my screen. Because of this the parsed SQL state is could not be shared and multiple of these are getting created in shared pool. To avoid this I would like to use bind variables.
There are two ways I am trying to do this..
1. Generating one bind variable for each value. i.e.,
contracts_tbl.status_cod IN (:global.var1, :global.var2,
:global.var3)
Now this could result it memory error if no. of choices exceeds the avilable memory. Also its a tedious task to purge the variables after querying the block. Also because of multiple IN conditions, the chances of different set of selections are possible and then again sharing will be minimal.
2. The second method is to set the one bind variable for each IN condition. i.e.,
:GLOBAL.Var1 := '( 'NEW', 'OLD', 'EXPIRED', 'OPEN' )';
:GLOBAL.Var2 := '(1, 2, 3)';
contracts_tbl.status_col IN :GLOBAL.Var1
AND contracts_tbl.id_col IN :GLOBAL.Var2
In this case, forms is not querying as the IN condition takes the global variable value as one string and the query returns no rows though there are plenty available for each status. Also any NUMBER type condtions erroring out as the , and ( are invalid numerals.
Q: Is there anyway you can make this work? or Is there any other better method to substitute bind variables in place to avoid creating new set of statements for each query in the shared pool?
Your suggestions and pointers are higly appreciated. Please respond immediately as this is a P1.
Thanks,
-- Raam.2. The second method is to set the one bind variable for each >>IN condition. i.e.,
:GLOBAL.Var1 := '( 'NEW', 'OLD', 'EXPIRED', 'OPEN' )';
:GLOBAL.Var2 := '(1, 2, 3)';
contracts_tbl.status_col IN :GLOBAL.Var1
AND contracts_tbl.id_col IN :GLOBAL.Var2 This method should work - not sure if you put exact syntax in or not but your first assignment would cause a problem as everywhere you want one ' mark you would have to put two so that it does not close your quoted string
Try the following syntax:
:GLOBAL.Var1 := '( ''NEW'', ''OLD'', ''EXPIRED'', ''OPEN'' )';
:GLOBAL.Var2 := '(1, 2, 3)';
SET_BLOCK_PROPERTY('blk name',
default_where,
'contracts_tbl.status_col IN ' || :GLOBAL.Var1
|| ' AND contracts_tbl.id_col IN ' ||
:GLOBAL.Var2);
Hope this helps,
Candace Stover
Forms Product Management -
Variables for calendar year/month
Hi All,
My requirement is to create a headcount report which has to display the number of employees for different time period. ´
1) When user chooses calender day then the report should display total number of employees on that time period(01.01.2005)-(10.01.2009).
2) If user chooses calyear /month then he should see the report for each calyear/month (like 01.2005 , 02.2005,02,2005....)in the columns.
I tried dropping calyear/month in column and i got the result for my second scenario (like 01.2005 , 02.2005,02,2005....)
But when the user chooses the calday it still shows the report by calmonth (bcoz of calyear/month in the column).
I also tried text variable for calyear/moth(replacement path method) but i have the restriction in the interval (from date or to date - i have to choose one by default) so it shows only either date in the columns .
The two variables. 1) Calender Day (Interval,Optional)) 2) Calender Year /Month (Interval,Optional)
I got four restricted key figure to restrict number of employees by business.
Eg :
When Cal Day is choosed then the report will be :(01.01.2005 -10.01.2009)
(01.01.2005 - 10.01.2009)
Country Sales Finance
India 20 30
Denmark 30 50
When Calyear / Month is choosed then the report will be : (01.2005 - 02-2005) :
01.2005 02.2005
Country Sales Finance Sales Finance
India 24 70 70 45
Denmark 36 60 56 30
Regards
A.Vasister
Edited by: vasister a on Oct 9, 2009 11:10 AMHello,
This cannot be achived dynamically.
I think the two ways you can work out is creating two different reports one to include daywise and the other to include montwise structure.
Otherwise you can keep calday in free char and ask user to swap calmonth with calday as per requirement.
Else you have to create a workbook report and make use of VB macros to calculate report dynamically which is a very complex approach.
Regards,
Shashank -
How do I check the Oracle enviornment variables for a connection?
I am using Oracle JDBC 10.2.0.4 and trying to output the Oracle enviornment variables for a connection.
I am trying to determine if the values output from sqlplus from the following two SQL select statements are different in the connection object:
SELECT * from NLS_SESSION_PARAMETERS order by 1;
NLS_CALENDAR GREGORIAN
NLS_COMP BINARY
NLS_CURRENCY $
NLS_DATE_FORMAT MM/DD/YYYY HH24:MI:SS
NLS_DATE_LANGUAGE AMERICAN
NLS_DUAL_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_LANGUAGE AMERICAN
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
NLS_NUMERIC_CHARACTERS .,
NLS_SORT BINARY
NLS_TERRITORY AMERICA
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
NLS_TIME_FORMAT HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
SELECT sys_context('userenv','language') from dual;
AMERICAN_AMERICA.WE8ISO8859P1
Is there a way to do this in the API or do I just need to run the SQL statements in a Class and output the values to a log?
Thanks,
--ToddSo try it.
Create a connection with no settings.
Alter all of the (session only)
Query again and see.
Either the query will return the altered values or it won't.
Maybe you are looking for
-
How to delete when file in use by the finder?
I have two files in my trash which won't delete. I get the error that they are being used by another program. Holding down option, using secure empty trash, using the terminal method of deleting the trash.. none of them work. So I did the terminal co
-
hi there, i've just finish our schools year book (voluntarily) and it has 155 pages incl. front/backcover. This file has 1800 links a lot of photos and a few reports. everytime i go to save as PDF it freezers on page 66. i need the book printed in hi
-
Problems accessing parameters, files - problems in general.
I've been posting my problems to comp.lang.java.programmer but Google Groups is exceedingly slow to update and I've been stuck on this for nearly two whole days: I am developing what will be a series of web utilities for our company and our client's
-
Install program elsewhere?
Hey, I bought Motion 5. I have already downloaded it onto 3 of my computers and don't want to use up all five downloads just yet. I will be using a friends computer in a week or so. Can I copy Motion 5 to an SD card and drop it into his applications
-
CIAC-CPSC Portal Session cookie problem on weblogic
Hi all, I´m currently working on a CIAC project with some development made by a partner, the thing is they are using a cookie generated by the application server called "Cognoscookie", with that they use the session ID to run some queries from a port