Get the current request id
Hi,
I want to call the other concurrent program and which parameter include request id of THIS concurrent program.
I use the After-Report Trigger to submit the other concurrent, but how can i to get the request id of current request???
Thanks in advance,
best regard,
Zhxiang
Dear All,
I got the solution from from Ittoolbox.
It need three step to get the info... share with you all..
1. create a user define variable P_CONC_REQUEST_ID in NUMBER format
2. in Before-Report Trigger : call srw.user_exit( 'FND SRWINIT' );
3. in After-Report Trigger : call srw.user_exit( 'FND SRWEXIT' );
Then we can get the request id info from :P_CONC_REQUEST_ID
Cheers,
Zhxiang
Similar Messages
-
How to get the current request id in a running request?
How to get the current request id in a running request?
Thanks.Did you notice that there's a whole section on this forum dedicated to this topic, called E-Business Suite?
C. -
In SQL Loader based Concurrent Program, how to get the current request id
Hi All,
I am trying the following control file.
OPTIONS ( SKIP = 1 , ERRORS = 0 )
LOAD DATA
INFILE *
REPLACE INTO TABLE XXPA_ASSET_TRANS_INTERFACE
FIELDS TERMINATED by ',' OPTIONALLY ENCLOSED BY'"'
TRAILING NULLCOLS
Project_Number
,Asset_Name
,Location_Country Constant USA
,request_id CHAR "fnd_global.conc_request_id"
in request id column I am getting -1 ...
Please lt me know how can i get the current request id in the request_id field.
ThanksHi
To my knowledge, this can't be achieved with SQL*Loader concurrent programs. Depending on what You are using the request id, the options provided may be useful.
I had a similar issue, requiring the use of user_id and login_id for who columns, and the solution applied was:
- Define a template for the control file, with place holders for the additional info:
user_id constant "x_user_id"
- Create a shell to receive the additional info as parameters, and use sed to change the template file to generate the control file, using the parameter to replace placeholders.
Create a request set to launch the shell concurrent program and then the sql loader program, whose control file now has the additional information required.
Caution when more than one middle tier node is used. -
I need to get the current assignee for a given request using SOA's java api
I'm developing a spring app that interfaces with Oracle SOA suite and executes the actions such as approving requests using the api. I need to get the current assignee for each SOA Task this is dispalyed in the OIM console so it is getting it from somewhere. I tried getApprovers in the ITaskService api but this returns an empty list
I have checked it once again and there indeed are links for ALUI components for Solaris on SPARC at edelivery.oracle.com. (Officially ALUI supports Solaris on SPARC only)
If you have looked at Solaris x86, then you must not have found them. Please make sure that you are selecting the righ platform. Also, make sure that you click on the Aqualogic media pack so as to get the lists of the components included in it. (Point to Note: You need to go to the next level)
For whichever component you are not able to find, try looking for it in the Metalink (My Oracle Support) if you have a support contract. -
How to Get the Current Workitem id at runtime
Hi All,
I have a scenario, where request pending with a user who has already resigned the organization. The requirement is that we need to provide a report
of the request and with whom it is pending with along with the workitem id with a forward push button.
So that if the user identifies that a request is pending with someone he can click the record and press for the forward button and a pop-up to be showed where he can enter the userid to whom he needs to forward it.
In this scenario can anyone tell me how to get the current workitem id at run time and to save it to a custom table.
I tried with method before workitem execution, but here i am not getting the current workitem id.
Can you please suggest a good solution for this.
Thanks and Regards,
BalajiKarri,
I think i can explain you with an example.
Here is my Scenario.
A user has raised a Gate pass and it went to all approval's and got approved and the material is also sent out from the plant. Lets take the date as 1.1.2013 (A Warehouse person have done the checking and sent out of the plant).
On 1.3.2013 some of the material has been returned and a material inward request has been raised and now the warehouse person has to do a inward checking and to sent it back for the initiator for the approval, but the warehouse person has resigned the organization on 1.2.2013, now the workitem is pending with the warehouse person who has already resigned.
My scenario is once the material inward request is created and before the workitem is delivered to the warehouse person i need to get the workitem id and to store the workitem some where.
So that in future if any warehouse dept head wants to forward the workitem which are lying in the person inbox who has already resigned he can do it via a report using this workitem id.
So, can anyone help how to get the dialog workitem id before the workitem creation or execution. I tried with "method before workitem execution" but my break point is not triggering at this point.
Thanks and Regards,
Balaji -
How to get the current location text in JTextPane
hi
i want to get the current location text in JTextPane ...iam useing
caretPos = jtpMain.getCaretPosition();
iam geting the current Locations at the same time i want to read the entery current line
i used like this
StartPos=jtpMain.getText();
but iam geting entry data in JTextPane ... how can get current Locatin data ...
pls help meIf I understood your request, what you would like to do is to be able to retrieve Start and End Positions of a given line (a line and NOT the whole content of the JTextPane).
JTextPane is a graphical component that is bound to a logical document. Documents are structured in elements. What defines an element is up to you to decide if you extend your own document but elements are by default paragraphs (runs of text ended by a carriage return '\n' character). So, I think that what you want to do is to retrieve the Start and End positions of the
paragraph over which the caret is currently positionned. Then I think you have got to do the following :
int intStartPos;
int intEndPos;
int intCaretPos;
javax.swing.text.StyledDocument docStyledDoc;
javax.wing.text.Element eleParagraph;
intCaretPos = jtpMain.getCaretPosition( );
//Get a reference to the default styled document bound to the JTextPane component
docStyledDoc = jtpMain.getStyledDocument( );
//Get the paragraph element from the document over which the caret is positionned
eleParagraph = docStyledDoc.getParagraphElement(intCaretPos);
//Get paragraph's offsets
intStartPos = eleParagraph.getStartOffset( );
intEndPos = eleParagraph.getEndOffset( );
hi
i want to get the current location text in JTextPane
...iam useing
caretPos = jtpMain.getCaretPosition();
iam geting the current Locations at the same time i
want to read the entery current line
i used like this
StartPos=jtpMain.getText();
but iam geting entry data in JTextPane ... how can
get current Locatin data ...
pls help me -
How can I get the current user an resource context in a portal JSPDynPag
How can I get the current user (com.sapportals.portal.security.usermanagement.IUser?)an the resource context in a portal component (JSPDynPage)?
Thanks.Hi Jon,
Here is the code to get the current user and resource context in your JSPDynPage:
IPortalComponentRequest currentRequest = (IPortalComponentRequest)pageContext.getAttribute(javax.servlet.jsp.PageContext.REQUEST);
com.sapportals.portal.security.usermanagement.IUser contextUser = (com.sapportals.portal.security.usermanagement.IUser) currentRequest.getUser().getUser();
ResourceContext resourceContext = new ResourceContext(contextUser);
Greetings,
Praveen Gudapati
p.s. points are always welcome for helpful answers -
Get the current session in a Session Bean?
Hi,
I know how to get the current session from a Servlet, you use request.getSession().
However I need access to the current session from a Session Bean. As far as I know, only Servlets have a request object, so I can't use request.getSession()
Any ideas on how to access the session from a Session Bean?
Thanks!Hi,
I managed to get around the problem by using a JSP to
pass a session object to a method in my session bean.
ThanksJust be aware that the serialized Session object can be a huge stream to remotely pass to your bean...
Kexkey -
Getting the current row in a datatable
Hi,
I am using datatable. How do I get the current row in the datatable
and use it for my processing in the JSP page
or I want to just output that value with out using any jsf tags.
Examples
<h:dataTable styleClass="dataTable" id="table1" border="0" value="#{myTrainingHandler.myMediaTraining}" var="dataIt">
<h:column id="column1">
<f:facet name="header">
<h:outputText styleClass="outputText" value="Course Name"id="text1"></h:outputText>
</f:facet>
<!---------------------------------------------- how do I get the value of #{dataIt.name} and use it in the JSP way
Reason: I just want to output the value. If I am using h:outputText then it inserts <span>... </span>
or, I want to transfer that value to another another attribute in the session or something like that.
---------------------!>
<h:outputText styleClass="outputText" id="text2" value="#{dataIt.name}"></h:outputText>
</h:column>
</h:dataTable>
-AswathIt looks like good idea!Unfortunately this is just workaround. Indeed your
suggestion is real JSF-feeling solution but due to the
bug (or rather pure design of RI implementation???) it
is dangerous.
I had some doubt about is it bug or my incompetence.
Unfortunately this seems is really bug.
Hope this problem will be solved in the next releases.from blueprints catalog:
Component bindings (e.g. <h:inputText binding="#{MyBean.lastNameComponent}" />) should always be stored in request scope since their value is no longer valid after a request has been processed anyway. The component tree is reconstituted during each incoming request, changing the physical instances these component bindings will point to.
as you see there is really problem in using session backing bean with component binding
so that means idea with parameter looks better now because we don't need to use table binding.
Or probably we can define some kind of pattern like couple of beans with request scope and session scope.
for example:
Catalog - session scope
CatalogView - request scope
Catalog will keep session data and CatalogView will provide some presentation logic (including some stricly visual oriented data) and access to business methods of Catalog class.
I will send you example by e-mail (on friday) if you not mind.
>
Thank you for your suggestion!
Probably I will use your idea in my application.
By the way I'm from Kiev also.Hello from Kiev :-)
I have one suggestion.
I'm working on JSF form that suppose to add, editand
delete records from table.
Also I wanna to use scrolling by page and sorting.
I'm trying to make this form somehow clean and
universal as much as possible.Seems I have same tasks for now.Great! I will send some code soon.
And maybe we can discuss every aspect how to do good JSF based application including config oriented information and utilities classes.
-how do you work with tables without primary keyI dont' have tables without primary key :)
-how do you make pagination by universal wayWe need just make good component for that.
We already started in this direction. -
Hello Weblogic Gurus
I need to write a script to monitor how many beans are requested using a script.
Basically I need to collect the same information given by the console at the page application_name> Servers> server_name> Execute Threads -> current request
Using the command line:
java -cp $CP weblogic.Admin -url $ADMIN_URL –userconfigfile /opt/apps/WL_domain/admin/config.properties -userkeyfile key.properties GET -pretty -type ExecuteQueueRuntime –mbean "itrc:Location=adminserver,Name=weblogic.kernel.Default,ServerRuntime=adminserver,Type=ExecuteQueueRuntime"
I get the result:
MBeanName: "itrc:Location=adminserver,Name=weblogic.kernel.Default,ServerRuntime=adminserver,Type=ExecuteQueueRuntime"
CachingDisabled: true
ExecuteThreadCurrentIdleCount: 25
ExecuteThreadTotalCount: 25
ExecuteThreads: [Lweblogic.management.runtime.ExecuteThread;@cbf9bd
Name: weblogic.kernel.Default
ObjectName: weblogic.kernel.Default
Parent: adminserver
PendingRequestCurrentCount: 0
PendingRequestOldestTime: 1148320918503
Registered: false
ServicedRequestTotalCount: 2139
Type: ExecuteQueueRuntime
But it is not good enough, I need to drill down and find the “current request†and which bean is currently requested.
Thanks a lot for your help
MauroHi,
This may be a IDOC/Transact RFC error .
tRFC Error - status running Yellow for long time (Transact RFC will be enabled in Status tab in RSMO).
Step 1: Goto Details, Status get the IDoc number,and go to BD87 in R/3,place the cursor in the RED IDoc entroes in tRFC
queue thats under outbound processing and click on display the IDOC which is on the menu bar.
Step 2: In the next screen click on Display tRFC calls (will take you to SM58 particular TRFC call)
place the cursor on the particular Transaction ID and go to EDIT in the menu bar --> press 'Execute LUW'
(Display tRFC calls (will take you to SM58 particular TRFC call) ---> select the TrasnID ---> EDIT ---> Execute LUW)
Rather than going to SM58 and executing LUW directly it is safer to go through BD87 giving the IDOC name as it will take you
to the particular TRFC request for that Idoc.
OR
Go into the JOB Overview of the Load there you should be able to find the Data Package ID.
(For this in RSMO Screen> Environment> there is a option for Job overview.)
This Data Package TID is Transaction ID in SM58.
OR
SM58 > Give * / user name or background (Aleremote) user name and execute.It will show you all the pending TRFC with
Transaction ID.
In the Status Text column you can see two status
Transation Recorded and Transaction Executing
Don't disturb, if the status is second one Transaction Executing. If the status is first one (Transation Recorded) manually
execute the "Execute LUWs"
OR
Directly go to SM58 > Give * / user name or background (Aleremote) user name and execute. It will show TRFCs to be executed
for that user. Find the particular TRFC (SM37 > Req name > TID from data packet with sysfail).select the TrasnID (SM58) --->
EDIT ---> Execute LUW
thanks,
JituK -
With the following piece of code, I am able to get the current date in bpe forms, but not when I put it in any of the forms logged in using end user(not even in end user menu).
<Field name='request.submitDate'>
<Display class='Label'>
<Property name='value'>
<invoke name='dateToString' class='com.waveset.util.Util'>
<ref>java.util.Date</ref>
</invoke>
</Property>
</Display>
</Field>
The following error is getting displayed in the end user menu form.
XPRESS exception:
Can't call method dateToString on class com.waveset.util.Util ==> java.lang.NullPointerException: -------can anyone please help me out
or can anyone suggest a way for getting the current date
Regards
Gajendra NagapurkarThe <ref> tag is used to refer to the value of some variable. The value of the variable java.util.Date in your example is NULL, because it doesn't exist!
If you remove that argument from your <invoke>, the call resolves to the method com.waveset.util.Util.dateToString() and will return something like "20050810 11:00:21". -
hi,
i am working on webcenter space application.i need to pass current space name to bean.how can i get the current space name??
Regards
Vinay KumarNo, that will not compile. You probably need to do:
SpacesContext sc = SpacesContext.getCurrentInstance();
String spaceName = sc.getCurrentSpaceName();
Beware that the doc says "Return the SpacesContext instance for the request that is being processed by the current thread, if any."
So the SpacesContext might be null.
Jaap -
How to get the current filename and & or path
How can I get the current path or filename?
I didn't really find any answers in the net. this.path or app.path were suggested but I couldn't get it to work.
Thanks in advance for your answer!
Livecycle Designer ES 8.2.1.3144.1.471865Hi,
event.target.path.toString(); will give the full path including the filename.
event.target.documentFileName.toString(); will give the filename only.
Good luck,
Niall -
How to get the current path of my application in java ?
how to get the current path of my application in java ?
thanksTo get the path where your application has been installed you have to do the following:
have a class called "what_ever" in the folder.
then you do a litte:
String path=
what_ever.class.getRessource("what_ever.class").toString()
That get you a string like:
file:/C:/Program Files/Cool_program/what_ever.class
Then you process the result a little to remove anything you don't want:
path=path.substring(path.indexOf('/')+1),path.lastIndexOf('/'))
//Might be a little error here but you should find out //quickly if it's the case
And here you go, you have a nice
C:/Program Files/Cool_program
which is the path to your application.
Hooray -
Oracle 11i release 2 error "Unable to get the current group"
Hi oracle gurus,
I have been trying to install oracle 11g rel 2 on HPUX 11.31 and i am getting the following error
# more installActions2010-01-06_10-27-37AM.log
oracle.install.ivw.db.driver.DBInstaller
-scratchPath
/u01/tmp/OraInstall2010-01-06_10-27-37AM
-sourceLoc
/u01/install/database/install/../stage/products.xml
-sourceType
network
-timestamp
2010-01-06_10-27-37AM
INFO: Loading data from: jar:file:/u01/tmp/OraInstall2010-01-06_10-27-37AM/ext/jlib/installcommons_1.0.0b.jar!/oracle/install/driver/oui/resource/ConfigComma
ndMappings.xml
INFO: Loading beanstore from jar:file:/u01/tmp/OraInstall2010-01-06_10-27-37AM/ext/jlib/installcommons_1.0.0b.jar!/oracle/install/driver/oui/resource/ConfigC
ommandMappings.xml
INFO: Restoring class oracle.install.driver.oui.ConfigCmdMappings from jar:file:/u01/tmp/OraInstall2010-01-06_10-27-37AM/ext/jlib/installcommons_1.0.0b.jar!/
oracle/install/driver/oui/resource/ConfigCommandMappings.xml
SEVERE: [FATAL] An internal error occurred within cluster verification framework
Unable to get the current group.
Refer associated stacktrace #oracle.install.commons.util.exception.DefaultErrorAdvisor:11
INFO: Advice is ABORT
SEVERE: Unconditional Exit
INFO: Adding ExitStatus FAILURE to the exit status set
INFO: Finding the most appropriate exit status for the current application
INFO: Exit Status is -1
INFO: Shutdown Oracle Database 11g Release 2 Installer
$
>>
# more oraInstall2010-01-06_10-27-37AM.err
---# Begin Stacktrace #---------------------------
ID: oracle.install.commons.util.exception.DefaultErrorAdvisor:11
oracle.cluster.verification.VerificationException: An internal error occurred within cluster verification framework
Unable to get the current group
at oracle.cluster.verification.ClusterVerification.<init>(ClusterVerification.java:200)
at oracle.cluster.verification.ClusterVerification.getInstance(ClusterVerification.java:294)
at oracle.install.driver.oui.OUISetupDriver.load(OUISetupDriver.java:407)
at oracle.install.ivw.db.driver.DBSetupDriver.load(DBSetupDriver.java:161)
at oracle.install.commons.base.driver.common.Installer.run(Installer.java:216)
at oracle.install.ivw.db.driver.DBInstaller.run(DBInstaller.java:126)
at oracle.install.commons.util.Application.startup(Application.java:869)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:164)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:181)
at oracle.install.commons.base.driver.common.Installer.startup(Installer.java:265)
at oracle.install.ivw.db.driver.DBInstaller.startup(DBInstaller.java:114)
at oracle.install.ivw.db.driver.DBInstaller.main(DBInstaller.java:132)
---# End Stacktrace #-----------------------------
<<
$ uname -a
HP-UX rx2600 B.11.31 U ia64 <XXXXXXXX> unlimited-user license
# swlist | grep -i oe
HP-Caliper-PERF C.11.31.04 HP Caliper OE Bundle
HP-WDB-DEBUGGER C.11.31.04 HP DEBUGGER OE Bundle
HPUX11i-DC-OE B.11.31.0903 HP-UX Data Center Operating Environment
# swlist | grep -i qpk
QPKBASE B.11.31.0903.334a Base Quality Pack Bundle for HP-UX 11i v3, March 2009
# swlist -l product | grep -i c++
ACXX C.06.20 HP C/aC++ Compiler
C-ANSI-C C.06.20 HP C/aC++ Compiler
PHSS_37501 1.0 aC++ Runtime (IA: A.06.16, PA: A.03.76)
PHSS_39824 1.0 HP C/aC++ Compiler (A.06.23)
i start the installation as oracle and my group and user id is
$ id
uid=109(oracle) gid=102(oinstall) groups=101(dba),104(asmdba)
Please let me know what else do i need, we might have to use the hardware for testing another application so i am limited in terms of time constraints
any help is much appreciated, Thank you!!
Regards,
Dasjith
Edited by: user10247524 on Jan 6, 2010 7:52 AMHi Stig Sundqvist
Where can i find MOS Doc 983713.1 ??You have to login https://support.oracle.com/CSP/ui/flash.html and you have to CSI account. This site is oracle site for tech. documents for can rise SR etc.. for more details please check
What is CSI:
Re: Installing Oracle Database 10.2.0.4
And how do i do to fix this problem ????Login metalink then find upper note and follow document
Hope it helps
Regard
Helios
Maybe you are looking for
-
MacPro 3,1 & 10.6.8 & 5770 & LED Display Not Working
So from what I have read, 10.6.8 on my MacPro and the 5770 should work with this LED display, but I can't get it to even blip. I've disconnected my other monitors, I've reset the PRAM but no love at all. The display works instantly when I plug the mi
-
Problem On Sun Netra 210 Network
Hi All, Why does my sun netra 210 cannot passed the network packet over HP Procurve 3500yl Core Switch? But, no problem occured when i use Cisco Catalyst Core Switch. Is there any incompability between Sun and Hp Procurve, or i need to install new pa
-
Satellite Pro T110 - speaker volume problem
How do I increase the volume of the speakers in my T110? Ive read other forums that suggest thats just the way it is but that cant be right - its impossible to hear on max. My partner has a Toshiba NB300 (much smaller) but the speaker volume is much
-
Hi All, How to read the second value of a context supressing the first one: for eg: <N1>1,2<N1> <N2>3,4<N2> output will be 2 and 4.Please give your inputs not able to do with graphical? Regards, Nkumar
-
Problemas con la previsualización de videos en Adobe Premiere Pro CS6
Hola, tengo Adobe Premiere CS6 instalado en Windows 8. Parece que funciona bien hasta que importo un vídeo en formato AVI (ya que el formato MTS no lo reproduce con audio). En ese momento, el programa va lento, se bloquea, no responde...es imposible