Call abap commands from oracle enviorment
Hello experts,
i have quite no experience with SAP but i have this problem:
in oracle db we have datas which are in variables to one ABAP function. And we need call this func with this parameters. From our SAP experts i get information that our SAP support Bussines Connector. I think that BC is some server component which allows comunicate me with sap via xml. And my questioin is how connect to sap using this BC from pl/sql if it is possible. Or what are other possibilities comunicate with sap and call abap function. I hope my scenario is clear, if not i will describe it in more details.
thanx for help.
Jakub.
Hello,
i think i will use BC because our SAP expert send it to me as possible way. I understand their msg as that BC server is ready. But i dont know if i understand this architecture well: BC is server which allows comunicate with sap and use abap function. And i need any client application to connect to BC and send abap statements using any sap-bc's xml files. is this right? If it is how i can connect to BC from pl/sql if it is possible if not can i use java?
Jakub.
Edited by: An Organic on Mar 6, 2008 4:35 PM
Similar Messages
-
How can I use unix commands from oracle report
I have to use the following command from oracle reports.
In oracle forms we can use the HOST command but what about oracle reports2.5.
I have to email the attached file 100245.pdf from oracle reports to the given email id
uuencode 100245.pdf 100245.pdf | mailx -s "test" [email protected]Hi,
It's because .bat (or .cmd) files are scripts and not executables and are interpreted using the command line executable - which is normally cmd.exe (although you can buy others).
So you need to call cmd.exe passing the bat file name as a parameter, something like
cmd.exe /c batchfilename
Without the /c you will never get a response.
However, this brings us to the bizarre conclusion that you are going to:
call cmd.exe (a shell interpreter)
to launch a batch file
that calls cygwin (another shell interpreter)
which then runs ls
When shouldn't that just be:
call cmd.exe to run the dir command
Or better yet, If you are just after a file name listing and you seem to understand Java stored procs, why not just write a JSP to list the contents of a directory? No problems with OS dependant commands, scripts and 3rd party interpreters. Plenty of examples of that out on the internet as well.
HTH
Chris -
How execute pl/sql command from Oracle ADF Business Components
can't find examples for how execute pl/sql command from Oracle ADF Business Components and how call pl/sql package procedure from ADF Business Components.
insert,update,delete rows in view object instance cache is good but if i must do some complex operations while insert,update,delete rows..it's more better for me to call
pl/sql procedure from oracle db.Am i wrong ????Roman,
this should be similar to how it worked in JDeveloper 9.0.3. hava a look at <JDev903 Home>\BC4J\samples\StoredProc for a code example.
Frank -
Calling a report from oracle form 10g
how to call a report from oracle form 10g
Please see the link:
http://www.oracle.com/technology/products/forms/pdf/10g/frm10gsrw10g.pdf -
URGENT!!! calling crystal reports from oracle forms 10g
Is it possible to call crystal reports from oracle forms 10g?
Can someone help to answer how, if there is a solusion, to call crystal reports from oracle forms 10g.
Please provide codes with details showing step by step.
Thankshi
try something like this.
DECLARE
charWinHandle VARCHAR2(50);
numWinHandle NUMBER;
BEGIN Set_Application_Property(Cursor_Style,'BUSY');
charWinHandle := Get_Item_Property('Control.Rep',Window_Handle);
numWinHandle := To_Number(charWinHandle);
:Item('Control.CrystalReport1').OCX.Crystal.Crysta lReport.WindowParentHandle
:= numWinHandle;
:Item('Control.CrystalReport1').OCX.Crystal.Crysta lReport.WindowState := 2;
:Item('CONTROL.CRYSTALREPORT1').OCX.Crystal.Crysta lReport.Connect
:= 'DSN=;UID=' || Get_Application_Property(UserName) ||
';pwd=' || Get_Application_Property(password) || ';dsq=;';
Crystal_CrystalCtrl.ReportFileName( :Item('Control.CrystalReport1').interface,
'C:\Sample_Rep.Rpt' );
Set_Window_Property( Forms_Mdi_Window, Window_State,Maximize );
Set_Window_Property( 'MAIN', Window_State, Maximize );
:reptitle := 'Report Preview Window';
numWinHandle := Crystal_CrystalCtrl.PrintReport( :Item('Control.CrystalReport1').interface );
Set_Application_Property(Cursor_Style,'DEFAULT');
END;NOTE: Change the report name and path according to your required file name and path in
the "Crystal_CrystalCtrl.ReportFileName" method call. Also, the connection string shown
assumes that you will use the current USER and PASSWORD for the Form.
- To make the above Form generic so that you can run any Crystal report from it, then create
a parameter for the report name and pass it to the Form using CALL_FORM from any other Form.
Then just replace the file name with the passed parameter.
-. Run the Form
If its correct/helpful please mark it thanks.
sarah
Edited by: S@R@h on Nov 27, 2009 6:33 AM -
Calling web service from oracle application framework r12
Hi Techies
Is anybody know How to call web service from oracle application framework r12(step by step procedure),because i searched in net but i could not understand that one
Thanks
Dillibabu B
Edited by: 962005 on 28 Sep, 2012 12:11 AMHi,
Check below links:
http://oracle.anilpassi.com/oa-framework-with-captcha-webservice.html
http://oracle.anilpassi.com/integrate-oa-framework-with-web-service.html
https://blogs.oracle.com/ebusinesssuiteintegration/entry/r121_-invokingweb_service_fr
--Sushant -
Calling OAF Page from Oracle forms
Hi All,
Is it possible to call an Oracle Forms from OAF page?
I need to call a OAF page EAM material cost screen from oracle form using personalization.
Please any one put on some lights on this issue.
Thanks in Advance,
Ramesh reddy
Edited by: user642447 on May 13, 2011 4:33 AMRamesh,
yes, its possible to call oaf page from oracle forms.
This has been specified step by step in Developer Guide. Refer it for more.
Regards,
Gyan -
Java.lang.ClassCastException when calling webservice stub from oracle DB
Hello everyone,
Because i need to get familliar with calling java webservices from an oracle database, i followed the following example
(http://www.oracle.com/technology/products/jdev/howtos/10g/WS_DBCallout/DBCalloutWS_HowTo.htm),
which included installing the SOAP client stack to the database (in the sys schema), grant the right permissions to the SYS user, developing a simple Helloworld webservice with jdeveloper 10.1.2, generating a Webservice stub and deploying a static method of this stub to the database.
All of this worked just fine, but when i want to call the webservice from oracle by invoking the deployed function, i get a java.lang.ClassCastException.
The complete stacktrace lists as follows:
v_Return = foutje: java.lang.ClassCastExceptionnulljava.lang.ClassCastException
at org.apache.soap.rpc.RPCMessage.serializeParams(RPCMessage.java:323)
at org.apache.soap.rpc.RPCMessage.marshall(RPCMessage.java:305)
at org.apache.soap.Body.marshall(Body.java:148)
at org.apache.soap.Envelope.marshall(Envelope.java:203)
at org.apache.soap.Envelope.marshall(Envelope.java:161)
at oracle.soap.transport.http.OracleSOAPHTTPConnection.send(OracleSOAPHTTPConnection.java:664)
at org.apache.soap.rpc.Call.invoke(Call.java:261)
at test.HelloWorldServiceStub.sayHello(HelloWorldServiceStub.java:82)
I debugged the WebServiceStub and noticed that the call.invoke method crashes. This is weird beacuse when i use System.out.println on the parameter is works just fine. so you would think it is a string.
Moreover, if i invoke the webservice from the endpoint or even when im debugging the stub locally it all works just fine.
Can someone plzzzzzz help me with this because i spend the whole day looking for an answer and im getting crazy!!!!!
Thanx al lot guys,
Kim
PS or could the problem be in the database instead of the webservice?????????
Message was edited by:
user568880
Message was edited by:
Kim ZeevaardersI think that it's going wrong because i did not install the right SOAP client stack.
In the HowTo is specified what JAR files are to be loaded in the database (from %JDEV_HOME), but it states that it has only been tested on a Oracle 9.2 database. I'm using Oracle10g. Maybe that's the reason that im getting this classcast exception...
Can anybody tell me what the right .JAR files are that have to be loaded into database when working with Oracle 10g?
Many thx in advance!
Kim -
HI Guys,
I have a requirement to call ABAP RFC from Message Mapping.
Can any one pls share the document links or ideas with me.
Thanks,
MSHi
u can use RFC LoopUp
if PI 7.0 / 3.0 -- need to write the UDF to execute
link
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70d90a91-3cf4-2a10-d189-bfd37d9c3231
if PI 7.1 then u have functionality in MM itself to do so
rgds
srini -
Call Unix Command From Reports Using Java
Hi,
Could somebody please show me a sample coding to call Unix command from 10g report using java?
In metalink doc id 361857.1 does not show much.
Thanks,
neeminHi,
I have a problem with synchronization of the java commands.
In the Before Parammeter Form trigger, I have:
function BeforePForm return boolean is
rt ORA_JAVA.JOBJECT;
proc ORA_JAVA.JOBJECT;
v_txt varchar2(32000);
i integer := 0;
v_cd_modulo int;
v_arqlog text_io.file_type;
cursor c_evento is
select codigo,
nome
from
(select e.cd_evento || e.cd_edicao codigo
,nm_evento nome
from grh_ev_evento e
where e.CD_GRUPO in (select cd_grupo
from grh_ev_adm
where cd_usuario = (select cd_usuario
from usuario
where login_usuario = :AUTHID)))
order by substr(nome, 11);
begin
-- Create the context for logged user
if instr(upper(nvl(:AUTHID,'RWCLIENT')),'RWCLIENT') > 0 then
:AUTHID := :SSO_USUARIO;
end if ;
TCEENV.SET_TCEENV(:AUTHID);
if PK_SCA.SCA_GET_USER_RIGHTS(:sca_module_name, :AUTHID) IS NULL then
srw.message(100, 'Access denided!');
return (FALSE);
end if;
-- Create file in Report Server (UNIX)
v_txt := '<BR>' || htf.formSelectOpen('P_EV_EDICAO', 'Evento: ');
:p_file := '/u03/SCAWEB/repout/' || :sca_module_name || '_' ||
pk_sca.sca_encrypt(:AUTHID || to_char(systimestamp, 'ss.ff'));
v_arqlog := text_io.fopen (:p_file, 'A');
text_io.put_line (v_arqlog, v_txt);
for reg in c_evento loop
i := i + 1;
if i = 1 then
v_txt := '<OPTION SELECTED VALUE="' || reg.codigo || '">' || reg.nome;
else
v_txt := '<OPTION VALUE="' || reg.codigo || '">' || reg.nome;
end if;
text_io.put_line (v_arqlog, v_txt);
end loop;
v_txt := '</SELECT></CENTER></form></BODY> </HTML>';
text_io.put_line (v_arqlog, v_txt);
text_io.fclose (v_arqlog);
SRW.SET_AFTER_FORM_HTML(SRW.FILE_ESCAPE, :p_file);
rt := RUNTIME.GetRuntime();
proc := RUNTIME.exec(rt,'rm ' || :p_file);
return (TRUE);
end;
The problem is that there isn't a "synchronize" command, and the
RUNTIME.exec(rt,'rm ' || :p_file) don't works (it does nothing) because
the SRW.SET_AFTER_FORM_HTML has a large delay and the following
command is ignored.
How can I solve it?
thanks,
lmprestes -
Calling ABAP report from BEx query
Good day!
I want to call ABAP report from BEx query by right-clicking on the field and using context menu. I know that transaction RSBBS is used (sender-receiver connecting), but I don't know how to transfare data to ABAP program
In ABAP program I want to know at least data from those cell in BEx query, that was right-clicked.Depending on your requirement and environment, you have the following options:
1. Use an info spoke and make selections as you would in a query.
2. USe FM RS_VC_GET_QUERY_VIEW_DATA_FLAT to send the data to a file and your ABAP can read this file.
Ravi Thothadri -
Hello all,
I dont have much idea of BSP ans would like to have some inputs from you all.
I would like to know that can I call ABAP transaction from BSP page ?
I have got a set of column entries just as an ALV column on my BSP page and I would like to provide hotspot or double click functionality so that for each of the entries in the table , the BSP page navigates to ABAP tcode and back to BSP page.Is this functionality possible?
any help would highly be appreciated.
Regards
AmrutaHi Amruta ,
You can't call an R/3 transaction directly from BSP.
But you can achieve all the functionalities it does .
for ex ..if an r/3 transaction is a report , u hav to code in BSP editor .u can call function modules from BSP .
But one thing u hav to concern is ,,in BSP Apllication logic is seperatd from Business logic .
U hav to move all your results into an itab / params and display that inside HTML tables .
Start ur journey from here .......
http://help.sap.com/saphelp_erp2004/helpdata/en/e6/e23fd8c47e11d4ad320000e83539c3/frameset.htm
All the best .
Regards,
J -
How to call gnuplot command from java
Hi there,
In our course, we are required to develop an GUI for gnuplot. In case you don't know about gnuplot, it's a plotting program and has lots of command. We want to use java and swing, but now we don't know how to call gnuplot command from java, or how to execute a shell command(script) from java.
By the way, since we need read in files with several columns of data and allow user to select a column, we want to use JTable. Is that reasonable?
Thanks a lot for any suggestions!
JackHi, there:
Will using JTable add much overhead? I may have to use several JTables and switch among them. I can add scroll bar to or edit JTables, right?
BTW, do you have experience about gnuplot? Can I find the command tree of gnuplot somewhere? Or do you know a better place to post question about gnuplot? unix/linux group, maybe.
Thanks,
Jack
P.S. Would you guys answer my question after I use up my duke dollars? :- ) -
How to call web services from oracle database 10g
Hi all ,
How can i call web services from oracle database 10g ?
thanks ...abdou123 wrote:
but how can i get complex result
for example
i pass input parameter like National Id Number
and get the person details ( name , age , date of birth , ............ ) .Basic approach to web services using UTL_HTTP explained in {message:id=10448611}.
An example of using a pipeline table function as a data transformation process (turning web data into rows and columns) in {message:id=10158148}. -
Call business event from oracle workflow
Hi,
how to call business event from oracle workflow ?
if possible, could you give any sample code.
Thanks.In short terms: assign values to the attributes that compose the payload of the event. Then raise it. Here a simple example of raising the Flex Field compilation event:
declare
l_application_id fnd_application.application_id%TYPE := &1;
l_descriptive_flexfield_name varchar2(200) := '&2';
l_application_short_name fnd_application.application_short_name%TYPE;
l_parameters wf_parameter_list_t := wf_parameter_list_t();
begin
SELECT application_short_name
INTO l_application_short_name
FROM fnd_application
WHERE application_id = l_application_id;
wf_event.addparametertolist(p_name => 'APPLICATION_SHORT_NAME',
p_value => l_application_short_name,
p_parameterlist => l_parameters);
wf_event.addparametertolist(p_name => 'APPLICATION_ID',
p_value => l_application_id,
p_parameterlist => l_parameters);
wf_event.addparametertolist(p_name => 'DESCRIPTIVE_FLEXFIELD_NAME',
p_value => l_descriptive_flexfield_name,
p_parameterlist => l_parameters);
wf_event.raise(p_event_name => 'oracle.apps.fnd.flex.dff.compiled',
p_event_key => (l_application_short_name || '.' ||l_descriptive_flexfield_name),
p_event_data => NULL,
p_parameters => l_parameters,
p_send_date => Sysdate);
end;
Regards.
Maybe you are looking for
-
Hi all! I trying to learn how create mass process and i have some issues trying to follow the note 144461 - Mass activities step by step setup ... is not very clear about the relationship between the transaction and the jobs that i want to be execu
-
I know how to access my email, i set it up and everything, and know how to exit it out without clicking the x button by clicking quit mail. But some reason my mail is not popping up when i click on it and when i try to click on it the quit button it
-
Project details of network ID in CN23
hi guys, i need to create a report, to extract the details for Project PRs. i need to get the network ID, and together with the project details ( project ID, description etc). but i were unable to find where the project details located in table, whic
-
I am using the following tutorial as a guide: http://docs.oracle.com/javafx/2/deployment/self-contained-packaging.htm# I have added the <fx:deploy> task to my build.xml as instructed, and am getting a working native (Mac) bundle, but am unable to cha
-
Forwarding events and clarifying events format information
Hello. I've set up source initiated subscription for auditing file system usage. I need to know what files are added or deleted to the file share resource and by whom. So, subscription is working, and I get such kind of event on source server: Log Na