Predefined variable for background
Hi,
Is there any predefined variable to indicate whether the job is executed in backgorund or foreground ?
Bye
Hi
SY-BATCH
SY-BATCH = 'X' -----> Background
SY-BATCH = SPACE -----> Foreground
Max
Similar Messages
-
Predefined variable for offset
HI,
Can anyone provide me any system variable which will provide me the current offset of line from top of page (either in cms or in line count).
ByeHi,
Use SY-LISEL,
it holds the current line contents of the field
SY-CUCOL-- which gives the offset value of the current column..
SY-LILLI - which gives the current line
Regards
kiran
Edited by: Kiran Saka on Feb 9, 2009 1:52 PM -
Use a variable for the integer in Fmt offset modifier
I'm trying to pluck values out of a long array of comma separated string
values.
I'm doing this within a loop and would like to use the loop interation to
point to the starting point in the array.
Here's what I have working so far:
Fmt (scratch,"%s<%s[i0t44]",transmitBuf);
Works great.
Now if I go in and change i0 to i3 then my modifier doesn't start looking
for a comma "," until after the 3rd character. Still working great. However....
If I try to use an integer called "loop" instead of the literal offset
value it blows up:
Fmt (scratch,"%s<%s[iloopt44]",transmitBuf);
Is there a way that I can use a variable for the integer portion of the
offset modifer?
Thanks All!Hi Roberto
Thank you. I actually need to use a symbolic value for the interger section of the modifer vs. the specifier.
So, in my example:
Fmt (scratch,"%s<%s[i0t44]",transmitBuf);
I want to make the following substitution (Assume z=0)
Fmt (scratch,"%s<%s[izt44]",transmitBuf);
Some background...
I'm looking to loop index through a long CSV string array (transmitBuf) that looks like this:
1,PEEP,7,6,,,21,20,
So on my first loop when I use the following:
Fmt (scratch,"%s<%s[i0t44]",transmitBuf);
scratch = "1"
... Perfect. I now do a string length of scratch (which equals 1)
and add 1 to it, I'm ready for my next loop which would
literally read like this:
Fmt (scratch,"%s<%s[i2t44]",transmitBuf);
However, I want to put this inside a loop, so I would like to
increment a variable (++z) and use the following:
Fmt (scratch,"%s<%s[izt44]",transmitBuf); ---- Ka-Boom!
So it's the use of the variable in the modifer that blows up
the Fmt command.
appreciate any thoughts...
Thanks
Mark -
How to set enviroment variables for Inso Filter
Hi everyone,
I want to convert word documents to html using CTX_DOC.Filter.According to the documentation,I know I neednot set the 'Inso Filter'in the preference when creating index,but I must set enviroment variables for Inso Filter.
I found the following instructions for it in the 8.1.5 documentation,but I can't understand it well.Is there anyone can tell me how to set enviroments variables for Inso Filter on Windows2000 Server?(My DB version is 8.1.7EE)
Environment Variable Locations
All environment variables related to Inso filtering must made visible to interMedia Text. Set these variables in the following locations:
listener.ora file. This makes the environment variables visible to the extproc PL/SQL process.
The operating system shell from where ctxsrv server is started. This makes the environment variables visible to the ctxsrv process, which does background DML.
Any suggestions are apreciated
Reemon
nullNSAPI plugins are normally configured using parameters specified in magnus.conf and/or obj.conf. What plugin requires you set an environment variable?
-
The request could not be submitted for background processing.
Post Author: Chriss
CA Forum: Administration
It's an BOE XI SR2, on Win2k3 server, with a print cluster with two print spools, handling 3000+ printers. I discovered this error to be intermittent and only on one of the spools. It turned out that the only common factor was an HP4250 print driver. I backed all the 4250s down to 4200 drivers and the intermitent error ("Error in File. The request could not be submitted for background processing.") went from about 100 a day to zero. The other spool had a different version of the HP4250 driver and would on rare occassion cause this error, "Error in File ... Page header or footer longer than a page." but never the background processing error.
For reference, when I got this error in XI R1, this was the solution for 'the error with one name and many causes':The error "The request could not be submitted for background processing" can be related to a corrupt or wrong versioned crpe32.dll in the Crystal bin folder. Renaming to crpe32.dll_bak and using the repair command in the the "Add/Remove Programs" tool in the "Control Panel" will reinstall the correct dll. Then restart the Crystal services.Post Author: krishna.moorthi
CA Forum: Administration
For Crystal reports :
Error : "The request could not be submitted for background processing"
I think,this was not related to a corrupt or wrong versioned crpe32.dll.
but the below mentioned is one of the reason for getting this error.
I got the error when the main report(crystalreports10) having more than 2 subreports not assigned proper tables for the subreports.
Example: (this code raise the abone mentioned error.)
rpt.SetDataSource(Exdataset);
rpt.Subreports["subreportname1"].SetDataSource(Exdataset); // Exdatatset.Tables[1]
rpt.Subreports["subreportname2"].SetDataSource(Exdataset);// Exdatatset.Tables[2] -
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. -
Job failure ( report RFFDKU00 scheduled for background job)
Hi Experts,
When iam scheduling the report RFFDKU00 for background job. Job is getting cancelled with status "ABAP/4 processor: DBIF_RSQL_SQL_ERROR" . when iam obesrving this job it is going to dump at this select query
" select ausbk belnr gjahr bzkey buzei
033370 from vbsegs into table t_vbsegsfields
033380 where bukrs in r_bukrs
033390 and not ( fdlev = space
033400 and fdgrp = space
033410 and fdtag = init_date
033420 and fdwbt = 0 )
033430 and not saknr in r_cm_sk "
Can anyone helpme to deal with this issues ,
thanks in advance,
Kranthinote 167301 might help.
-
Crystal Reports VS 2008 "The request could not be submitted for background processing"
Hi,
I am going to try to explain this issue the best I can. Please let me know if you need any other information or have any ideas as I have exhausted my resources. We have an ASP.NET application that has highly formatted crystal reports in them that the users can export as PDFs. All reports export without a problem when the application is run off of our desktops. The reports use a sql server authenticated user, executing stored procedures, and each subreport is linked by the main parameter. We are using Visual Studio 2008 version 3.5 SP1 with Crystal Reports Basic for Visual Studio 2008 on Windows 7 Enterprise SP1. We have designed the reports in Crystal Reports XI Release 2 (11.5.12.1838) and imported them into the ASP.NET application. When trying to export the reports as PDFs from the development or production servers, we get the error message below for some, not all, reports:
System.Runtime.InteropServices.COMException (0x800002AD): Error in File C:\Windows\TEMP\KeyAccountProfile {9FA5C095-77A2-425D-AC6B-8BB66B435336}.rpt: The request could not be submitted for background processing. at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext) at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
We have cleared the temp directory on the servers before exporting and are still receiving the error. We have installed Crystal Reports Basic Runtime for Visual Studio (10.5.2.0) on both servers. I have identified the underlying issue to one stored procedure/subreport that is causing the report to fail. The weird thing is, when we change the connection to point to development, the stored procedure/subreport runs fine for the report that generates an error when run from production, and the data is the exact same. I have tried rebuilding the subreport but the error still appears even though it runs fine for other reports.
I have been through the document below, and othe similar issues in the forums, but still have not found a resolution. I was trying to use the "modules" application put since this is an ASP.NET application I am unsure of which executable I should be looking at.
http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/50a6f5e8-8164-2b10-7ca4-b5089df76b33?QuickLink=index&overridelayout=true&36837934524320
Thanks in advance for your assistance,
Brad Hood
06-26-14
OK.. I did some more investigating on this today. I have found out when I move the sub report that generates the error under another sub report, the sub report in question runs without issue. But when I try and move the sub report that produces the error above any other sub report, the error still generates. Can this get any weirder.... FYI.. there is a total of ten sub reports on this report.Hi Brad
I'm not sure that Modules would show us anything in this case, so let's try a few other things:
1) Make sure you are using SP 1 for Crystal Reports Basic Runtime for Visual Studio:
Crystal Reports for VS 2005 and VS 2008 Updates & Runtime Downloads
2) Seeing as this works on dev, this may be some db inconsistency so enabling the report option "Verify on 1st Print" will be a good idea.
3) Double check the database client and make sure the same client is used on dev and deployed systems. Actually I take back my Modules negative as this is where it may prove useful. Once you have the Modules logs, look at who is loading the crpe32.dll, then look at that process and see the client dlls.
4) Check the printer driver; see if there are any updates. Try a different printer driver.
Ten subreports is not too bad, though not that good either as you are loading the report engine with at minimum 11 simultaneous reports (each subreport is considered to be a report). If a subreport is in a details section and the details section returns a 100 records, you are running 100 + 1 reports. This may lead to memory issues, which may lead to the error.
If I was a betting man, I'd put most of my money on the printer driver (based on your last addition to your post). What ever money I had left would go to some database issue (be it actual data or client related).
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter -
Function module for background jobs email
hi abaper's
i hace to create a function module for background jobs this function module have to send an email automatically when a background job is assigned or processed in background.
thnks n regards
pardeep kumarhi dear
open this site
https://weblogs.sdn.sap.com/pub/wlg/781. [original link is broken] [original link is broken] [original link is broken]
<removed by moderator>
Edited by: Mike Pokraka on Aug 8, 2008 12:48 PM -
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 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 -
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 share a iP library?
I have an iP library that is located in the "user>adminitrator>pictures" folder. and I want a 2nd user, say "user 2" to be able to access and add or remove pictures from the same ipLibrary. I tried to move the iplibrary that was in the user>adminitra
-
Setting RecordSelectionFormula to multiple subreports is not working.
Hello, I have an application vb.net Vs2005 winform an Crystal Report for .NET. I have a report whith 3 subreports : i want to specify RecordSelectionFormula for the 3 subreport but it work only for one (the last have set) : Part of my code : Dim do
-
ERROR ORA-01034 : ORACLE not available
HELLO FRIENDS, i m new for oracle. I newly install Oracle 8i on my windows Xp computer. after restarting PC when i login on sql plus using scott/tiger it gives me a error message : ORA-01034 : ORACLE not available. then my friend tell me the followin
-
PS Elements 3.0 won't start up
I'm running OS 10.4 on my Mac, PS Elements 3.0 used to work fine but for some reason, it won't start up. When I click on the icon in my dock it starts to open but then it stops and I get the error message that the application unexpectedly quit. I've
-
Hi all, I have been following the tutorial, but unable to deploy. [wldeploy] java.lang.ClassNotFoundException: weblogic.logging.log4j.Log4jLoggin gHelper. I've checked the log4j.jar, it is there is lib dir. Please advise what is happening and how to