Provide Input Parameters when called only from a TCODE
Hi Experts,
I have a requirement where in we need to provide a input parameters for a report when it is triggered from a TCODE.
When this program is executed in SE38, the input parameters should not be available. The report takes a default value which is
defined in the program.
We need use the same program when called using the TCODE, as well as from SE38.
Looking for a early response.
Thanks in advance.
Regards,
Kumar.
>
saravanau wrote:
> The program willl be scheduled everyday which will take the default date.
In case of Background processing SELECTION-SCREEN will not be displayed so you don't have to worry about it.
For retriving data for a particular date i need to provide user input screen. This will be done through ZTCODE.
You would schedule the job on a daily basis in SM36 & for individual dates you'll access the report via the T-Code. So where does SE38 come into the picture?
@Marcin: If SY-BATCH = 'X', i don't think SELECTION-SCREEN will be available
BR,
SUhas
Similar Messages
-
Unique problem, can get calls only from Airtel and...
Hi Friends, I have a unique problem here and some input on the same.
I can receive incomming calls only from Airtel and no other service providers. I do not know why. I cannot even recieve calls from landline and also cannot get other providers SMSes.
Please help me out in this regard.
I am using Nokia E72 handsetYou may want to check your firewall settings. Go to options-security-firewall. Check to see if it is enabled and the scroll down to exceptions and see if any of those are selected.
-
I am receiving this error message when trying to export pictures: 'Unable to Export": An internal error has occured: Win32 API error 2 ( "The system cannot find the file specified.") when calling ShellExecuteExW from AgWorkspace.shellExecute.// I have a HP ENVY Phoenix, fully loaded, 1 1/2 years old.
Nevermind I fixed it. Thank you.
-
Can't create DeliveryBean when call bpel from jsp
Can't create DeliveryBean when call bpel from jsp
/*** code ********************************/
Properties props = new java.util.Properties();
java.net.URL url = ClassLoader.getSystemResource("context.properties");
props.load(url.openStream());
Locator locator = new Locator(domain, "bpel", props);
IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME);
NormalizedMessage nm = new NormalizedMessage();
String convId = GUIDGenerator.generateGUID();
nm.setProperty(NormalizedMessage.CONVERSATION_ID, convId);
nm.addPart("payload", xml);
NormalizedMessage res = deliveryService.request(processID,operationName, nm);
/*** code ********************************/
This code works well in java , but when I use it in jsp on tomcat server,
the following exception ocured:
Can not create "ejb/collaxa/system/DeliveryBean" bean; exception reported is: "javax.naming.NameNotFoundException: Name ejb is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:768) at org.apache.naming.NamingContext.lookup(NamingContext.java:151) at org.apache.naming.SelectorContext.lookup(SelectorContext.java:136) at javax.naming.InitialContext.lookup(InitialContext.java:351) at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:279) at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250) at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:83) at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:53) at workflow.bpel.BpelProcessHelper.invokeSyncBpel(BpelProcessHelper.java:54) at
Will anyone to tell me where "ejb/collaxa/system/DeliveryBean" bean is?
Which jar file is this class in ?
Thanksdid you try including bpel/lib/orabpel.jar & bpel/system/server/j2ee/ob_ejb_engine.jar in your tomcat classpath.
-
PLS HELP - Column value missing when calling procedure from Oracle OLEDB provider
When calling procedure 'sp_a(?,?,?)' from SQL_PLUS and using
DBMS.OUTPUT to print the result
It returns a result set as
C0, C1, C2
But When I call the same procedure 'sp_a(?,?,?)' with same
parameter value from MS VB6,
It returns the a result set as
C0, Null,C2
The 2nd value became Null.
Any ideas?
Please Help.See http://oracle.ittoolbox.com/groups/technical-functional/oracle-apps-l/forms-personalization-execute-a-procedure-1778674
-
Problem with IN OUT parameters whiloe calling procedure from Form 6i
Hi
Could some help please? I have the following scenario.
I am calling a stored procedure from form 6i by pressing a button on the form. Procedure has two IN OUT parameters, and I am passing these two IN OUT parameters and have declared them the way they are declared passed to the procedure. But I get an error when calling that procedure with these IN OUT parameters. the procedure works fine if parameters are IN only. The error says:
PLS:00363: Expression '1' cannot be used as an assigment target.
NO matter I pass some value or leave it blank, I get the same error message persistenetly.
Please help.
Thanksmake sure you are calling your procedure with variables as parameters,
i.e.
l_v1 := 1 ;
l_v2 := 'hello world' ;
your_proc(l_v1, l_v2)
not
your_proc(1,'hello world') -
ORA-02074 when calling proc from VB
Anyone have any idea why a stored procedure that sets a savepoint will fail with
[Oracle][ODBC][Ora]ORA-02074: cannot ROLLBACK in a distributed transaction
ORA-02074: cannot SET SAVEPOINT in a distributed transaction
ORA-06512: at "PIPS_ADMIN.PKG_ACAS_COMMON", line 1098
ORA-06512: at line 1
when called from Visual Basic via an ADO connection through ODBC BUT
will succeed when called from SQL*Plus or TOAD or other tool.
Any ideas appreciated.
MikeThe change was only made to a local variable in a function that was called from the original function that got the parameters from the java client.
I changed it from localtimestamp to systimestamp and it works fine.
Do i have to make any settings about the time zone in the jdbc thin client ? -
ORA-01804 when calling function from java client
Hi All,
we changed a PL/SQL-function that is called from a java client from using sysdate to localtimestamp. The function works fine in TOAD, but when called from the java client ist throws an ora-01804: failure to initialize timezone information.
Any suggestions?
AlexanderThe change was only made to a local variable in a function that was called from the original function that got the parameters from the java client.
I changed it from localtimestamp to systimestamp and it works fine.
Do i have to make any settings about the time zone in the jdbc thin client ? -
Input Parameters to call PLSQL
Hello all.
I need to call a PLSQL procedure, using ADF BC. No problem to create the AppModule and call the procedure using a button and a text box in my page (the text box is for a String input parameter). What I need is to use the value from an input text box from a VO as my input parameter. What is the best way to accomplish this?
What I have done so far:
1) Created a managed bean, copying the value from text_a (from the VO) to text_b. Text_b is the input text field. But I need to render both text_a and text_b to accomplish this. What is the best practice in this case?
I am using JDeveloper 11.1.2.1
Thanks in advanceI assume, you have created a method in AMImpl that takes the input parameters & that are passed to store procedure.
1) Create a binding for the inputText component in the managed bean.
2) Have an actionlistener method for the button in the managed bean. In that method, get handle to the methodAction as operationBinding & set the required parameters and call execute method on the operation binding.
Thanks,
Navaneeth -
XML Deserialization Error when calling WebService from WebDynrpo
Hi all,
when calling a WebService-method from my WebDynpro-application, I get the following error message:
"Deserializing fails. Nested message: XML Deserialization Error. Can not create instance of class [com.karmann.ApplMan.dto.SoftwareKomponenteDTO] when deserializing XML type [urn:com.karmann.ApplMan.dto][SoftwareKomponenteDTO].."
SoftwareKomponenteDTO is a class that I have implemented. It implements Serializable and overwrites the methods "equals()" and "hashcode()". It contains members of types long, String and java.sql.Date.
The method I call needs an argument of type SoftwareKomponenteDTO. Other methods which return something of type SoftwareKomponenteDTO do not make any problems.
The same error message appears when I test the WebService-method in the WebService-navigator. So I assume that the problem is not the way I call the method from WebDynpro.
Thanks for help,
ChristophThanks for this hint, Amar. But this points directly to my next problem: How can I set this parameter. I know how to set flat parameters (e.g. of type long, boolean, etc.). But how can I set a parameter of a complex type?
For example I can call
wdContext.currentSaveElement().setIdFather(long id)
in order to set the parameter idFather of type long for the WebService-method save(). But there is no method
wdContext.currentSaveElement().setIdFather(SoftwareKomponenteDTO aKomp)
Could you please help me on more time?
Kind regards,
Christoph -
An error when calling DAQmx from TestStand
Hi,
I get very mystic error when calling DAQmx Create Channel (Digital input) and DAQmx Read (Digital Bool 1Line 1Point) vis. Difficulty is that it does not occur every time. It is random. Any ideas what might cause this error? I uninstalled Traditional DAQ drives because they are not in use but it does not help.
Please, see attachment.
BR,
Jick
Attachments:
daqerror.PNG 80 KBHere is some additional information. See attachments.
I can not get that error using MAX or looping it only. There is something else outside which causes the error. It can not be Traditional DAQ because I uninstalled it. These vis are running in a loop during the test in the batchmodel.
BR,
Jick
Attachments:
daqerror2.PNG 33 KB
daqerror3.PNG 15 KB -
Hide UserID, Password, and Report Path when call Report from Report
Hi,
I have been able to call Report from Report using the hyperlink.
I put these code in my Field on the Report caller.
function F_3FormatTrigger return boolean is
temp varchar2(2000);
begin
temp := 'http://<computer_name>:8889/reports/rwservlet?';
temp := temp || 'server=repsrv' || '&' ||
'report=C:\MyReport\rep_detail.jsp' || '&' ||
'userid=scott/tiger@orcl' || '&' ||
'desformat=htmlcss' || '&' ||
'destype=cache' || '&' ||
'P_1=' || :ItemID || '&' ||
'P_2=' || :ItemName;
SRW.Set_Hyperlink(temp);
return (TRUE);
end;The hyperlink showed, and I can see the rep_detail.jsp showed in the same browser after I clicked the hyperlink.
The problem is, the hyperlink has to include the reports path and also userid and password.
If I did not put the userid and password, it will showed in another browse that
"The report has uncompiled PL/SQL"
How can I hide those userid, password, and the reports path?
BTW, Is there anyway to show the report callee in different page (precisely, open another IE) from the report caller?
Any help would be grateful.
Many thanks,
BuntoroHi,
Thanks for the answers.
Yet, I am still doubt about using cgicmd.dat.
I have looked around in this forum saying that it is not secure to use cgicmd.dat. Because all report request does not use authentication (the client can directly open report without login).
In Form, I can use the On-Logon to do the Oracle Form login (to do logon to the database), and then I use my own custom user login to restrict the menu for each user.
I do this since I want to restrict the user,
i.e user A can only view the sales form as well as sales report,
user B can only view the purchasing form as well as purchasing report.
Well, I am not so fond about the SSO itself.
It comes to my mind, since I don't have to re-login (to the database) each time I call another form (login database is only once at the first Form, On-Logon). It also goes to when calling the report caller.
What is RAD?
How can we use it?
Is OID = Oracle Internet Directory?
If true, maybe, I won't use it since I don't understand about it also.
Why we don't have to specify the userid and password when Form calls Report1 (using Run_Report_Object and Web.Show_Document())?
But we have to specify the userid and password when Report1 calls Report2.
Any help is appreciated.
Many thanks,
Buntoro -
Possible thread issues when calling java from C++/Delphi/C#
Hi,
We have a java API for one of our applications. This API has wrapper API's in C++, Delphi and C#. There are two main top level classes in te API - Client and Receiver. Both haave a receive() method.
We used to ship JRE1.3 with the API installation - this was needed to suport the user applications. Recently we haev moved to java 1.4 as the least suported version.
We have two ways of using the java API in our wrapper API's.
Method one, we instantiate the client, and call client.receive(). There are no threads etc involved here. This is working fine.
In the second method, we set a callback on the client, which starts a thread (in C++/Delphi or C#) which calls receiver.receive() and tries to get the message. This is failing.
It fails at a line which simply says "DocumentBuilderFactory.newInstance()".
This call has already been made when connecting the client and it is successful because we can see the client connected.
Whether we do client.receive() or receiver.receive() in a thread, the code passes through this line.But is throwing the exception only when we come to it through a thread.
Any ideas on what I need to watch out for when calling methods on a JVM from a thread in C++/Delphi or C#?
Thanks
Hari
PS: I know we are using some really old versions, but thats needed and out of my control.Hi,
I managed to solve this - finally!
This is what was the cause in our case - should apply to all situations though.
We had the Xerces classes packaged in a custom jar file along with other XML stuff we have. And this mega-jar was on the class path.
We were running everything on Java 1.3 and it worked fine.
But Java 1.4 wrecked all havoc.
So here is what I did:
1. I tried explicitly doing Class.forName() with the name of the Xerces class that was not found. I did this at the same point in the code where the exception was being thrown.
2. The class was successfully loaded indicating that it was on the class path somewhere.
3. Java 1.4 made some changes in terms of class loaders - so suspecting that, I tried printing out the System and the Context class loaders at the point where the exception was being thrown - the system class loader was a valid object, but context class loader was null
4. We have another point in the code base where the exact same lines were used, and these are getting successfully executed even in the multi threaded situation - this is the start up sequence.
5. I printed the two class loaders at this point - they are both valid objects, no nulls.
With this, I narrowed down the scope and was convinced that the class loaders are the cause.
A search on Google and after looking the the source code for Xerces, we realized that the Xerces API uses the Context Class Loader to resolve and load the DocumentFactoryImpl class - this change is from Java 1.4 onwards.
In our case, the JNI AttachCurrentThread method called from C++/C# and Delphi was attaching the thread to the JVM, but each time the context class loader was null.
We could not find anything on how we could make the method to put a non null context classloader.
So, we changed all our JNI interfaces to do the following
//attach the current thred
jvm->AttachCurrentThread(...)
//now get the system class loader and set it as the context class loader on the current thread
//get things from the Thread class
jclass thread = get the thread class
jmethod currentThread = get the static method currentThread()
jobject thread_object = get the current thread object into this
jmethod setContextClassLoader = get the setContextClassLoader() method on the thread
//get the SystemClassLoader
jclass clsLoader = get the class for ClassLoader
jmethodid getSysClsLoader = get the method ID for the getSystemClassLoader() method
jobect sysClsLoader = get the system class loader by calling the above method
//set the context class loader on the thread by calling set context class loader with the sys class loader as the argumentUnfortunately I don't have the code with me right now,otherwise would have shared the same. -
Getting rep-3002 when calling report from form on web
i am getting rep-3002 when i call report from a form on web environment. Report is in character mode. It is coming proper if i change it to bitmap. but my requirement is of character mode. pl. give some solution.
Hello,
If you are running in WinNT/2000 environment, the NT/2000 user which runs the Report Server service must have a printer defined. In the control panel, look at the properties for the Report Server to see what user it runs as. Log in as that user and make sure a default printer is defined.
Regards,
The Oracle Reports Team --skw -
Getting FRM-41029 when calling report from form
Hi
I have following procedure to run the report but its running fine but giving error FRM-41029 when calling the report from the form.
runrep('MATREP,'REPSER','PDF','F:\rec\RepEnt.RDF');
Repid := FIND_REPORT_OBJECT(repobj);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE, RUNTIME);
set_report_object_property(repid, REPORT_SERVER, repserv);
set_report_object_property(repid, REPORT_COMM_MODE, SYNCHRONOUS);
set_report_object_property(repid, REPORT_DESTYPE,'file');
set_report_object_property(repid, REPORT_DESFORMAT,repfor);
set_report_object_property(repid, REPORT_FILENAME,repfile);
rgds
soumyahi
try something like this.
PROCEDURE sarah ( p_report_name varchar2, vParamValue number ) is
l_param_list paramlist;
l_rep_id report_object;
l_rep_job varchar2(100);
l_rep_status varchar(100);
BEGIN
l_param_list := Get_parameter_List('tmp');
IF NOT Id_Null(l_param_list ) THEN
Destroy_parameter_List( l_param_list );
END IF;
l_param_list := Create_parameter_List('tmp');
add_parameter(l_param_list ,'p_num',text_parameter,to_char( vParamValue ));
l_rep_id := FIND_REPORT_OBJECT( p_report_name );
if
id_null ( l_rep_id )
then
msg ( 'There is no Report ' || p_report_name || ' in form ' || name_in ( 'system.current_form' ) );
raise form_trigger_failure;
end if;
SET_REPORT_OBJECT_PROPERTY(l_rep_id, REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(l_rep_id, REPORT_DESTYPE,cache);
SET_REPORT_OBJECT_PROPERTY(l_rep_id, REPORT_DESFORMAT,'PDF');
SET_REPORT_OBJECT_PROPERTY(l_rep_id, REPORT_OTHER, 'paramform=no');
l_rep_job := RUN_REPORT_OBJECT( l_rep_id, l_param_list );
l_rep_status := REPORT_OBJECT_STATUS( l_rep_job );
WHILE l_rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
l_rep_status := report_object_status( l_rep_job );
END LOOP;
WEB.SHOW_DOCUMENT('http://sarah:8889/reports/rwservlet/getjobid'||substr(l_rep_job,instr(l_rep_job,'_',-1)+1) || '?server=repserver', '_blank');
END; then u may call the procedure something like this.
when-button-pressed trigger.
begin
sarah ('REPORT6', :block.item );
end;sarah
Edited by: S@R@h on Nov 30, 2009 9:39 PM
Maybe you are looking for
-
I used the VIEW tab at the top left to change my View to "Full Screen". Now I cannot access the VIEW tab to change it back. How do I change it back so that that Menu will show at the top of my screen??
-
Improve Triggering Time for outbound IDOCs
Hi, We have a requirement where in we have to transfer some material master data from Production system to a Testing system. We schedule a background job for BD10 in the Production system which generates IDOCs for the material data. Similarly, afte
-
Plz requesting kindly for screen shots of intercompany and third party sale
Hi btothers, Am into new project where we have intercompany sales and third party sales ,can any one plz send me with step by step screen shots to my mail id [email protected] Thanks & regards, srinivas
-
I am having two minor difficulties with my 3GS. Despite the fact that all my email messages have "sent" properly, my mail program still acts like it is trying to send a message, but can't. Whenever I open my mail, it tries to "send" - and I get a mes
-
Received Runtime error R6034 while updating Itunes. Unintalled and installed; rebooted and error box came on. Using windows XP. What wlse can I do?