Problem regarding BAPI call from a webdynpro applications
Hi,
We are trying to call a BAPI in R/3 system from a webdynpro application through the standard method. But we are getting some problems in JCO settings. We already wasted so much time in solving those problems. Is there anyway where i can access BAPI from Webdynpro application.
Rgrds,
Anna
Hello Anna,
You can do it by using SAP Java Connector API's in the implementation of the Webdynpro application. You can refer to the sample programs for JCO at http://service.sap.com/connectors and download the latest version of SAP JCo in that install those files as per the installation document in the downloaded zip. The downloaded zip contains information about JCo APIs and sample programs.
Hope this will solve your problem.
Best Regards,
Srinivas.
Similar Messages
-
Calling Javascript from ABAP webdynpro application
Hai All,
I want to call a Javascript from ABAP-Webdynpro application. If anyone has done this. Please let me know.
Thanks & Regards,
H.K.Hayath Basha.go to window
create suspend outbound plug and resume inbound type
when create an outbound plug of Suspend type a parameter Url is automatically created,
fire the outbuond plug with the Url to a BSP page where you have JavaScript.
and fromt he BSP navigate back to WDA again which you can do using by reading the url parameter sap-wd-resumeurl, which contains the WDA URL
Abhi -
Calling A Webdynpro Application From Another Webdynpro Application
Hi,
i want to call a webdynpro application from another webdynpro application with sending parameters.
i used this method,
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = lv_webapp
IMPORTING
out_absolute_url = lv_url.
CONCATENATE lv_url '?param1=' lv_param INTO lv_url.
data lo_window_manager type ref to if_wd_window_manager.
data lo_api_component type ref to if_wd_component.
data lo_window type ref to if_wd_window.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window = lo_window_manager->CREATE_EXTERNAL_WINDOW(
URL = LV_URL
lo_window->open( ).
but this method shows the parameters on the address bar.
is there a method to send the parameters to another webdynpro application without show the parameters on the address bar?
Can somebody help me pls?
Thanks.I've used a server cookie before. This was built for BSP, but it is really usable anywhere. It just writes the data temporary into the database. This way you can just pass one meaningless URL parameter - like a GUID and use this key to read the data (the server cookie) upon initialization of the new application. I generally serialize all the data that I want into one server cookie by serializing a class. I can then restore whatever attributes of the class that I want on the receiving side.
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/bd/4cd23a09313b37e10000000a11405a/frameset.htm -
Debugging ABAP Code From Within Webdynpro Application
Hello Experts,
We use ABAP RFC Function in Our Java Webdynpro application, We need to debug the parameters pass from the webdynpro application to the ABAP Function.
In order to do that we:
1. Defined a JCO connection with "Single Server Connection" as the Destination Type.
2. We have loged on to the relevant system and client using SAP GUI with the same user that run the webdynpro application.
3. We have activate the external debugging in se80 Utilities -> Settings
4. We have set an HTTP (external) breakpoint in the ABAP code,
As mentioned in the article:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0e9a9d90-0201-0010-478e-991dbea73a30
However, we recieve a dump in the R3 system:
RFC_DEBUGGING_NO_DIALOG_USER
ShrtText
RFC debugging is only possible with dialog user
What happened?
You attempted to debug a program by RFC. However, in this destination
there is a user whose user type permits communication without dialog.
This means, for example, that debugging with a system user is not
possible.
What can you do?
Restart the program and take note of the following:
You can do one of the following:
1. You can change the user listed in the RFC destination and enter a
dialog user.
2. In the target system of RFC you can change the user type of the user
listed in the RFC destination to 'dialog'.
3. You can avoid this runtime error by omitting the RFC debugging.
If in the ABAP debugger the statement cursor points to the statement
(CALL FUNCTION ... DESTINATION), you must choose the function
'Execute'.
We checked and the user we use is defined as dialog in SU01 and the user that the webdynpro use to call the functio is the same user as was logged in.
What else should we do?
Thanks,
EyalHello Eyal,
You mentioned the following..
1. Defined a JCO connection with "Single Server Connection" as the Destination Type. 2. We have loged on to the relevant system and client using SAP GUI with the same user that run the webdynpro application.*<---The system that you logged into is your source system*
3. We have activate the external debugging in se80 Utilities -> Settings
4. We have set an HTTP (external) breakpoint in the ABAP code,
and the name of the system defined in the RFC connection will be your target system.
As per the response (dump error message) in this target system you need to have a dialog user.
And this dialog user needs to be defined in the RFC destination that is being used to connect to the target system.
Regards,
Siddhesh -
Hi,
I'm creating a Java Webdynpro where I call RFC's from SAP.
For the images in the webdynpro, I call the standard SAP function 'CVAPI_DOC_VIEW'
When I execute the function in SAP, I get the url to the contentserver with the correct image.
After calling the same function in my Java Webdynpro, the url is empty.
I've checked the importing parameters after calling from webdynpro and SAP and they are the same.
After debugging, I saw that the function 'CVAPI_DOC_VIEW' is the problem. He's exporting an empty url after calling from the webdynpro.
Does anybody knows the possible fault and solution for my problem?I'm not an ABAPer but the last time I've dealt with DMS from Web Dynpro an ABAPer wrote a custom function that gets the file content (XSTRING) by sending DMS parameters (documenttype, documentnumber, documentversion, documentpart).
After getting the XSTRING from my Web Dynpro Java, I convert it to byte[] and created URL by using WDResourceFactory.
Hope it helps...
Omri -
How to execute a workflow from a webdynpro application???
hi friends....
How to execute a workflow from a webdynpro application???
we are using ep6, ecc5????If you want to start a workflow in the backend, you need to call a RFC that starts it.
-
Call a ABAP webdynpro application from a standard transaction.
Hi Gurus,
Can we trigger a webdynpro application on a click of button from a standard transaction as IW31 and pass some of the parameters?
If so, how do we do that?
Please let me know.
Thanks,
DasHi,
You can trigger the webdynpro application on click of a button.
construct the URL dynamically or you can use the URL of the application present in WebDynpro application(if you are sure that if this application run only in this system).
We can display the application either in standard screen using HTML control or we can also open the browser on click of a button on standard screen using the code:
call method cl_gui_frontend_services=>execute
exporting
application = 'www.google.com'
exceptions
others = 1.
For passing the parameters to the application:
1. Create the parameters in the default interface plug of the application.
2. Associate the parameters to the WebDynpro application
3. Pass the parameters to the application by appending to the URL like (¶1=abc¶2=def).
Best regards,
Suresh
P.S. we can define the parameters in the Webdynpro component by defining the importing parameters in the default interface view's inbound plug's method. If we define the importing parameters in the inbound plug (for example DEFAULT plug of the window) then they are visible in the parameters tab in the WD application.
We can receive the parameters in the inbound plug method (HANDLE<plugname>) of the window (interface view associate in application).
Message was edited by:
Suresh Honnappanavar -
Problem in Proxy call from an application deployed in J2EE engine
Hi,
I am trying Java Sender Proxy --> XI --> DB.
I have generated o/b proxies using integration builder.
<b>Following is the code that i am using for proxy call and it runs absolutely fine when runnning stand alone</b>
<code Controller.java>
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY,"com.sap.engine.services.jndi.InitialContextFactoryImpl");
p.put(Context.PROVIDER_URL, "server:50004");
p.put(Context.SECURITY_PRINCIPAL, "Administrator");
p.put(Context.SECURITY_CREDENTIALS, "password");
ctx = new InitialContext(p);
ref = ctx.lookup("sap.com/ProxySenderEAR/UsersSyncMI_PortTypeBean");
queryOutHome = (UsersSyncMI_PortTypeHome) PortableRemoteObject.narrow(ref, UsersSyncMI_PortTypeHome.class);
queryOutRemote = queryOutHome.create();
UserDT_Type reqtype = new UserDT_Type();
reqtype.setUsername(name);
reqtype.setPassword(pwd);
UsersDBMTResponse_Type response = queryOutRemote.usersSyncMI(reqtype);
role = response.getRole();
</code>
I am including this java file(Controller.java) in the same EJB project ProxyEJB which includes
my beans and home/local/remote interfaces.
Then I have created a Web Module Project ProxyWeb, that includes Proxy.jsp.
In proxy.jsp i am using the following code
<%
Controller obj = new Controller();
String name = request.getParameter("uname");
String password = request.getParameter("pwd");
String role = obj.getRole(name,password);
%>
Then I have included both ProxyWeb and ProxyEJB in ProxyEAR file, created Enterprise Archive and Deployed in J2EE engine.
and when I call the jsp...i am not getting expected result.
When i am debugging the code using try catch blocks for the controller.java...I observed that
Problem occured at :
<code>
queryOutHome = (UsersSyncMI_PortTypeHome) PortableRemoteObject.narrow(ref, UsersSyncMI_PortTypeHome.class);
queryOutRemote = queryOutHome.create();
</code>
what i am not able to uderstand is that ...when it is working fine when calling from standalone ...then
why it's giving me problems when deployed in j2ee engine...
note: I am using all required jars for XI.(included in ProxyEJB).And I have used NetWeaver Developer Studio for the above EAR,WAR projects.
Kindly suggest,
Regards
VedavyasThe JNDI call is different when you call an EJB from inside the J2EE.
ctx = new InitialContext();
ref = ctx.lookup("java:comp/env/<JNDI-Name>");
Regards
Stefan -
Problem for Bapi Call in Integration Scenario
Hi
I am creating an Integration Scenario at Design time which can be used during configuration time.In the Int. Scenario, I am using a Int Process(BPM). I am making a synchronous call to BAPI from my BPM. How can this be implemented in Integration Scenario.
So how can I send a input message from BPM to BAPI and then take further steps only after getting response from BAPI. Is there any way to define synchronous Action in Int Scenario??? And another point to be noted is that we are not using any communication channel to send the message from BPM or receive the response in BPM. We have only a receiver communication channel which receives the message for the BAPI.
So please help in solving this problem.
regards,
Biranchi> Thanks for ur reply. I am trying to follow the suggestion given by u. U have specified that the BAPI in R/3 system has to be inserted as an application component. But I am unable to do that. I am using IDES system for the BAPI,but in the selection screen for the Application Component we have only instances of installed product in the SLD. So how to find out the application component to be imported.
>
What you need to do is, first of all your import the BAPI (RFC) into XI system. (I hope you must be knowing how to import the RFC & IDOCs into XI system). Make sure this BAPI is remote-enabled under attribute TAB in R3 ---> SE37.
Now this imported BAPI (RFC) will be used in your message interfaces and this message interface will be used inside ACTION. And then you can use this action in your Integration Secnario as mentioned in the picture above in my first reply.
Sorry for the confusion, you need to R3 business system name rather inserting the BAPI as a business system under 3rd swim lane.
> And another problem is that I have to create an action for in the application Component containing BAPI and then it should be connected to the action in BPM for interaction. I have created one action for this and given the BAPi as both outbound and inbound interface. Is this the proper way to do this???
>
As mentioned above, after you import the BAPI (RFC) in XI you can create the messge interface. There should be two Message Interfaces. One for sending the request and other for receiving the response message.
Regards,
Sarvesh -
SOFM: Dsiplay method is not working when called from ABAP Webdynpro
Hi All,
I want to open an attachment from ABAP Webdynpro.
I have approached in this fashion:
1) Get the attachments as SOFM object key
2) On Click of a link on Webdynpro, I am calling a function module within which I am creating an instance of the SOFM object
3) Then I am calling the DISPLAY method
It is not opening.
But, if it opens when I driectly execute the function module. It open when I directly test the business object.
Any Idea ?
Thanks & Regards,
DebDisplay Method uses the Dialogue Module, You should not access such methods in web dynpro which are SAPGUI specific.
Web Dynpro Applications are run in Browser environment which cannot understand Dialog, it can understand only HTML.
Read the attachments and get the content and use FileDownload UI element to show it to user.
Abhi -
Dear all,
I am working in a project where we archive SAP data (outbound documents) and connect some of the documents for SAP R/3 applications from any other resource other than SAP(in bound documents).
Ours is basically a third party tool which supports SAP R/3 documents as well as BW`s documents, certified by SAP.we maintain our own repository for that purpose.The meta data related to the documents is stored in SAP.our requirement now is to have that metadata available in our repository.we need to extract that meta data available in SAP.
can any one know here in which table those data is available? all i know is we need to apply BAPI calls to extract that metadata from SAP to our repository.
is there any method existing other than BAPI to extract that data?if yes what are those and how to go about that type?if not, how to call the BAPI`S from our repository?
Thanks in advance
RaviHello,
You can find out the metadata for tables in table DD03L. I don't know about the BAPI to read these data.
But, you can make one program which downloads the data into flat file. Later you can upload that file into your third party software.
Regards,
Naimesh -
Hi,
in our system , a Program runs everyday in R3 system to fill the customized delta tables and we run the process chain to load the data in BW from Delta tables in R3 system.But problem in the above scenario, after completion of R3 Job in R3 system the BW system does not aware of R3 job status so we have schedule the process chain in such a way that the process chain start after 2 Hours of completion of R3 jobs.
to overcome this, i need to implement either of the below requirement.
a BAPI call so that the R3 job can be triggered from BW from a process chain, and then the BW metachains can start once it is finished.
Or
we are using a ABAP program in R3 system to fill Delta table. So at the end of the ABAP code, send an RFC message to BW, which can trigger a job in BW which will start 1 meta chain.
please tell me which is the better option and how can i
Regards
Atulhi
i have tried below logic in R3 side
Create a Customized FM with Remote Enabled in BW system
call that FM with RFC destination and Event name as Export parameter from a ABAP program in R3 Side
i have given the Event name in Variant as same as i have created in BW system SM62
when i had run the Program in R3 side the program run successfully but the process chain did not run in BW system.
please let me know what is the reason behind this.
below code i have written in ABAP program in R3 side
parameters: rfcdest like rfcdisplay-rfcdest,
zevent type char32.
CALL FUNCTION 'Z999B_CB_F_EVENTRAISE' destination rfcdest
EXPORTING
EVENTID = ZEVENT
EXCEPTIONS
BAD_EVENTID = 1
EVENTID_DOES_NOT_EXIST = 2
EVENTID_MISSING = 3
RAISE_FAILED = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Below FM i have developed in BW system with Remote Enabled in Attribute tab page of FM.
FUNCTION Z999B_CB_F_EVENTRAISE.
""Local Interface:
*" IMPORTING
*" VALUE(EVENTID) TYPE CHAR32
CALL FUNCTION 'BP_EVENT_RAISE'
EXPORTING
eventid = eventid
EVENTPARM = ' '
TARGET_INSTANCE = ' '
EXCEPTIONS
BAD_EVENTID = 1
EVENTID_DOES_NOT_EXIST = 2
EVENTID_MISSING = 3
RAISE_FAILED = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFUNCTION.
Regards
Atul -
Cannot save the Interactive form downloaded from abap webdynpro application
Hello Everyone,
Can anyone help me here.
I have created an interactive form in SFP tcode and used in abap webdynpro application.
scenario is i can downloade the form,fill it, sign it,save it and submit the form.
Some thing is going wrong when i try to sign the form downloaded from the application.It is giving the error ->
The document could not be saved. there was a problem in reading the document(26).
When i try to sign the form save as dialog box will come where we can save the filled form.but here when itry to save it is giving above error.and also i cannot save thye form form file option.
but form is working fine from sfp tcode not form application link.
What is going wrong.Can somebody please help me here.
Regards,
Menaka.H.BCheck the enabled and readOnly property of the InteractiveFormUI element in your application.
enabled should be true and readOnly should be false.
Also just FYI interactive forms are licensable in Productive environment for which you need Adobe Credentials. You may contact SAP Account Manager and Note 736902 for it.
Chintan -
Corresponding BAPIs for the respective Webdynpro applications
Hi All,
We are on EP7,ECC 6, ESS BP1.2 enhancement package. Configured the NWDI and how do we know which BAPI is being called.
Scenario:
In the Bank Information application,
User can perform three actions : Enter, change and delete the bank details.
First we need the list of BAPIs through which this three feature are called by the WDP application.
( When ever there some modifications are done in the application, here they are goin to create a ZBapi which is goin to trigger a workflow and send the notification for approval of mail to his manager)
Second : once this operations are done , user clicks on save( or any submit button ) it should prompt a message saying Information sent for approval instead of Data saved
Guide me what needs to be done here
Thanks,
NRDear Nazeer,
As suggested by Chris, follow the steps using system trace st01.
Select the Trace components (RFC Calls etc), Click on general filters ->>> trace on for the user which you would test ESS application.
Hope your Basis Guy can help you better.
Regards,
Anil Kumar -
Adding and reading the parameters from the WebDynpro Application URL
Hi,
I have a WebDynpro Application with two views. Based on the values populated by the user in the first view, I am pulling the data from database and populating the data in the second view. I do have a scenario where I have to skip the first screen and show the second screen directly. But, for the values that has to be populated in first screen, I am planning to append the parameters in the url and provide the link to the users via email.
Is it possible to add parameters to URL and read those Parameter values when user clicks on the URL.
Thanks & Regards
swetha.HI,
Code for accessing params in webdynpro java:
String urlParamVal = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("URL_PARAMETER");
if((urlParamVal != null) && (urlParamVal.trim().length() > 0))
<Write the code>
Reading parameters:
Re: Reading URL Parameter
How to pass and fetch multiple parameter in the URL of the Web Dynpro
Regards,
Lavanya.G
Maybe you are looking for
-
Hi SAP Guru s I am facing a dump when i pass the Gt_sort in reuse alv display FM I am tryingto display the subtotals on the kunnr for dollars and count via ALV following is the code ur advice is highly appreciated thanks report orders .
-
When click on the submit button i got the below error.
Hi Gurus, i am very new to oaf. i am trying to insert data into database tables. so i am entering the data and click on the submit button i got the below error in createPG rightside the top Error while creating a new entity row for NewManagerCustomTa
-
Is there any way to delete an ipod from an apple account on imessage?
is there any way to delete an ipod from an apple account on imessage?
-
An update of iMovie failed with the message "an error has occurred." That message remains posted by iMovie on the Mac App Purchases page. iMovie is now unavailable. It will not start, update, or reinstall from purchases page. How do I reinitialize th
-
The following domains are not available.
I've ran into this problem a few times. We have two separate forests with a two-way trust. We have a clustered file server that both forests access. Randomly I will notice the file server has some issues resolving the names (showing the SID instead)