Call front-end API from WD ABAP

Hi experts,
  I'm trying to call font-end API (Destination: SAP_SSFATGUI) from webdynpro. It giving me communication_error but if i call it from ABAP its working. Pls help.

Hi,
  I try to call API namely ssfrfc which is provided by SAP and located in SAPGUI dir in my desktop. You also will have this API program if you installed SAPGUI. When calling this API using call function....destination 'SAP_SSFATGUI'  via WebDynpro ABAP it giving me communication_error . However no problem when using normal ABAP. Below are the coding.
METHOD onactionact_exe .
DATA:   ostr_output_data   TYPE  ssfparms-outtext,
        ostr_output_data_l TYPE  ssfparms-outtextlen,
        crc                TYPE  ssfparms-ssfcrc,
        lv_sysubrc         type sysubrc.
call C function 'SSFVERSION'
  CALL FUNCTION 'SSFVERSION' DESTINATION 'SAP_SSFATGUI'
    IMPORTING
      ostroutputdata        = ostr_output_data
      ostroutputdatal       = ostr_output_data_l
      crc                   = crc
    EXCEPTIONS
      communication_failure = 1
      system_failure        = 2.
  lv_sysubrc = sy-subrc.
    write:/ OSTR_OUTPUT_DATA,
          / OSTR_OUTPUT_DATA_L,
          / CRC.

Similar Messages

  • As I can call to a API from ABAP (46C) ?

    Hello.
    As I can call to a API from ABAP (46C)?
    Any idea?
    THANKS.

    The answer to that question really depends upon the SAP WebAS (or Basis as it used to be known) release you are on.  
    Did you have a look at the weblog mentioned earlier in this thread:
    /people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap
    It shows some examples on 620 and 640.  Let us know what you have to work with, and we will see if we can help.

  • How to call a Web Api from from a Visual webpart code behind?

    Hi,
    I am trying to create a visual web part in sharepoint 2013 with data received from another Web API.
    I followed the below steps.
    1. Created a Visual Web part.
    2. In the code behind(.cs) file I wrote the following code.
     async private void GetResult()
                using (var client = new HttpClient())
                    client.BaseAddress = new Uri("http://localhost:8080/");
                    client.DefaultRequestHeaders.Accept.Clear();
                    client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
                    var response = await client.GetAsync("api/Tfs/OpenEnquiriesCount");
                    var content = response.Content;
    3. When I run the application, I get security exception in the line await
    client.GetAsync()
    What is the way to achieve this? How to call a web api from share point visual web part?
    Thank you in advance.

    Hi,
    Thanks for your sharing.
    Cheers,
    Jason
    Jason Guo
    TechNet Community Support

  • How to call a BW Query from an ABAP program?

    How to call a BW Query from an ABAP program?

    hi
    check this link
    /people/durairaj.athavanraja/blog/2005/04/03/execute-bw-query-using-abap-part-i
    /people/durairaj.athavanraja/blog/2005/04/03/execute-bw-query-using-abap-part-ii
    /people/durairaj.athavanraja/blog/2005/12/05/execute-bw-query-using-abap-part-iii
    hope this helps
    cheers

  • Is it possible to make a call to an Infotype from an ABAP program?

    Dear friends,
    I created a new infotype 9*** using transaction pm01 and it works fine. What i need to do is to make a call to this infotype from an abap program without going through transaction pa30. Is it possible to do that? Thank you in advance.
    Sincerely,
    hajar

    Hi,
    The HR_MASTERDATA_DIALOG might need some tweaking.. we use a custom Program on the lines of SAP's
    'perform rp_infotyp(sapfp50g)'  that is more user friendly.. let me know if u need more info..
    Good Luck,
    Suresh Datti

  • Call pl/sql API from jsp portlets

    HI ALL!
    I need to ask from java developers for portal application,How can i call pl/sql API from my jsp portlets,What enhancements in code should i have to follow in addition to use JDBC,I read in FAQ abt portal some thing abt pl/sql wrapper but that was for complex scenarios ,what if my requirement is to call only API functions for contentareas,items,previleges etc.I really need help.
    thx
    Alizeh

    Hi
    thanks for ur reply but where were u a month ago,i really started to think that my question was enough stupid not to be answered.At present i have done with jdbc and pl/sql calls ,current concern is for sessions as i see that session id remains same when one user logs out and another logs in(if browser is not closed), same sessionid persists in my java portlet for both users.Is this an expected behaviour?? but yes new session id appears if browser is closed.
    .session clear for both application and sso after logout is checked
    .broser is set to check for new version each visit for the page
    portal version is 3.0.9.8.0 ,we r planning patch to 3.0.9.8.3 soon
    once again thx
    Alizeh

  • Can we call an Standard API from the BPM process

    Hi,
    Can we call a Public API from within a BPM Process. Can you please suggest the procedure for achieving the same.
    Also wanted to know the procedure to insert into Standard Interface tables and called Standard Interface program to Create objects like Employees, Employee assignments, etc.
    Please send any documents / writeup to achieve the above.
    Thanks & Regards,
    Murali

    You will have to catalog the API (refer to the Studio help files for the details). Once you catalog the api you can use it in a method. The method can then be used in an activity in the process.

  • Calling Process Order API from SOA BPEL

    Hi. It's been from weeks and weeks to months and months since i am trying to call process order api from soa bpel to generate sale order header. Passing org_id, responsibility and username to invoke activity. the response i am getting from Oracle Applications Adapter is
    <X_RETURN_STATUS>U</X_RETURN_STATUS>
    <X_MSG_COUNT>2</X_MSG_COUNT>
    <X_MSG_DATA  xsi:nil="true"/>
    Can anybody help me here? do anybody know what's going on?

    The best way to deal this would be to first call the Order API standalone with the same input which you are using from BPEL process.
    You can test Order API from Toad or any other PL/SQL tool and see if it returns the same response. Else write out the exact steps how you are trying to call the API.

  • Call IDM Rest API from ABAP

    Good day experts,
    We have a requirement to add privileges to users in IDM via a call from a SAP GRC system
    Does anyone have example code of such a call in an ABAP function module?
    Thanking you in advance,
    Johan Kriek

    Martin,
    Thanks for your reply.
    I tried the Web Service way of doing it, seems to be working alright but again it comes with all the security issues and all around the Web Service.
    I am exploring the use of JCO RFC Service provider, to call a JAVA program from ABAP. Hopefully that should work.
    Thanks again.
    John Miller

  • Calling Webdynpro Java Application from Webdynpro ABAP Application.

    Hi,
    We have developed one Application using Webdynpro Java and I m in need to call the Webdynpro Java application from Webdynpro ABAP.
    Require Suggestions to acheive this.
    Thanks In advance.
    Reg,
    Ajay.

    Dear Ajay,
    Assuming that both your applications WDA & WDJ are in the portal & you don't have to pass any parameters to the WDJ application.
    Write the following code on the action  where you would call the WDJ application.
      DATA:
            lr_compcontroller TYPE REF TO ig_componentcontroller,
            l_component TYPE REF TO if_wd_component ,
            lr_port_manager TYPE REF TO if_wd_portal_integration ,
            wa_navigation TYPE navigation.
      lr_compcontroller =   wd_this->get_componentcontroller_ctr( ).
      l_component = lr_compcontroller->wd_get_api( ).
      lr_port_manager = l_component->get_portal_manager( ) .
    * The value inserted into the navigation-target field can be found in the Portal
    * content administration tab of your portal. It is the ID or PCD Location field
      wa_navigation-target = pcd. " Please provide the PCD Location of the WDJ Application here.
      wa_navigation-mode   = '0'.  "0 = INTERNAL(same page) and 1 = EXTERNAL(new page).
      CALL METHOD lr_port_manager->navigate_absolute
        EXPORTING
          navigation_target = wa_navigation-target
          navigation_mode   = wa_navigation-mode.
    You can get the PCD from the Page properties of the WDJ application page in the Portal.
    Hope it helps!
    Warm regards,
    Upendra Agrawal

  • CSD_RULE_MATCH_FAILED-calling service request api from oracle apps adapter

    We are doing integration between Siebel and Oracle Apps. When a service request is created on Siebel we are passing that in Oracle Apps using Oracle Apps adapter which is calling a custom API which is doing all the validations and in turn is calling a public api for service request creation. There are two types of service requests - Field Service and Depot Repair. For Field Service we are able to successfully insert the data on Oracle Apps, but for Depot Repair we are getting an error 'CSD CSD_RULE_MATCH_FAILED' from the standard API.
    We have checked the setup and found it is proper. We invoked the pl/sql API from sql developer and we are able to insert the data. So we are facing this issue only when calling the api from oracle apps adapter.
    In the invoke call we have set these properties -
    jca.apps.RespApplication
    jca.apps.Responsibility
    jca.apps.Username
    Based on our analysis till now it is looking like a security context setup issue, but we are not really sure what properties to set.
    Any help in getting this through will be greatly appreciated.
    Thanks,
    Shantanu

    Hi Vijay,
    We have created the apps adapter with default settings as 'apps' user and set the properties Responsibility, RespApplication, Username of <invoke>. Other than that no other settings has been changed.
    Are we missing anything?
    This adapter is able to hit the database in case of 'Field Service' but it is failing for 'Depot Repair'.
    Edited by: 927382 on Apr 13, 2012 2:19 AM

  • Calling a local Webservice from ECC ABAP - Am I on the right track?

    Hi all
    In my NW2004s landscape I have an ECC system (ABAP 6.40, Java not configured/linked) and an XI system (6.40).  My requirement is to call a Webservice (WS) from the ECC system.
    I've converted an existing Java class (that contains 3 methods) to a webservice (WS) using NWDS.  This WS has then been deployed to the XI system as it is the only one with a JAVA system.  I'm able to view and test the WS methods using the Web Service Navigator on the XI system.  The wsdl for the WS that was generated has the following format "http://<server>:<port>/<webservice name>/<configuration name>?wsdl  (No .asmx extension as per most of the examples on SDN...not sure if this matters).
    My understanding is that I should be able to create a client proxy in my ECC system (via Enterprise Services in SE80) using this wsdl and I can also configure a logical port throught txn LPCONFIG.  I should then be able to utilise ABAP to call this webservice? 
    I've found the blog "/people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap detailing this (for a 6.40 system)... but when I attempt the program I get a soap 111 error code Unallowed RFC-XML Tag(SOAP_EINVALDOC).  
    Am I on the right track? Is it possible to call the Webservice from ECC ABAP? 
    There are no dumps for me to analyse and I've also tried putting on RFC trace with no success.
    Could it be that the WS is not correctly formed even though it works fine when tested from the WS Navigator on the XI system?
    Thanking you in advance.
    Malick

    Clive Pennington wrote:
    Thank you Eugene, your answer is most helpful.  I supose I just wanted to do everything myself really.  If when I have made my little movies, my animations and collated all my words and pictures I have problems assembling the documents then I can always get a professional to haul it together for me but I want to put in the donkey work first.  I know it is a lot of money for the software but now the pain is giving way a little I'm really quite enjoying myself.
    The planning which you have mentioned in your reply is of imense value I will start to do that immidiately, also the constant testing through Digital editions.
    All this is really helpful and I thank you for you reply.  I have made a brave attempt at some elementary annimation and posted them on youtube for testing, the urls are here if there is any interest.  Basic and time consuming but I can do this much faster now.
    http://tinyurl.com/348wjxg
    http://tinyurl.com/2wzuhql
    http://tinyurl.com/3yzjunk
    Thanks again............ Clive
    What comes through to me from your videos is that you know your material (of course, no pun intended) and that you have a clear sense of how to present it for clear communication to, and understanding by, your audience. Without this core, no amount of professional-level visual effects will achieve your goal, a great training program.
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Calling a portal page from WebDynPro ABAp application

    Hi,
    I would like to call a portal page (any type) from a WebdynPro ABAP application. I have the PCD location of the page.
    Which call shall I make :
    Absolute Navigation
    Relative Navigation or
    OBN.
    Also, can anyone send me short code snippet on the following.
    The package SWDP test examples are not working.
    Best Regards
    Sid

    Hi Siddharth,
    Well, to start with you can go for ABSOLUTE NAVIGATION.
    Secondly, you can find the snippet here
      DATA LO_API_COMPONENT  TYPE REF TO IF_WD_COMPONENT.
      DATA LO_PORTAL_MANAGER TYPE REF TO IF_WD_PORTAL_INTEGRATION.
      DATA L_NAVIGATION_TARGET TYPE STRING.
      LO_API_COMPONENT = WD_COMP_CONTROLLER->WD_GET_API( ).
      LO_PORTAL_MANAGER = LO_API_COMPONENT->GET_PORTAL_MANAGER( ).
      MOVE 'pcd://portal_content/com.xxxx.zpof_f_XXXXportalcontent/com.xxxx.test/com.xxxx.folders.MaintenanceBusinessPackage/com.xxxx.test.mt.pages.Pages/com.xxxx.pages.MaintenanceTasks'
        to l_navigation_target.
      CALL METHOD lo_portal_manager->NAVIGATE_ABSOLUTE
        EXPORTING
          NAVIGATION_TARGET   = L_NAVIGATION_TARGET
    *      NAVIGATION_MODE     = IF_WD_PORTAL_INTEGRATION=>CO_SHOW_INPLACE
    *      WINDOW_FEATURES     =
    *      WINDOW_NAME         =
    *      HISTORY_MODE        = IF_WD_PORTAL_INTEGRATION=>CO_NO_DUPLICATES
    *      TARGET_TITLE        =
    *      CONTEXT_URL         =
    *      POST_PARAMETERS     = ABAP_FALSE
    *      USE_SAP_LAUNCHER    = ABAP_TRUE
    *      BUSINESS_PARAMETERS =
    *      LAUNCHER_PARAMETERS =
    Above it, the examples of SWDP will not work if you test them from SE80-ABAP WAS...I suggest you to create a WDA IView in Portal and test it in Portal itself.
    Hope this should solve your problem.
    Regards
    <i><b>Raja sekhar</b></i>

  • Calling custom Infotype method from Webdynpro Abap

    Hi Experts,
    I am working on an application where i need to call a method of a custom defined infotype.
    I have done this -->
    1. Create a custom infotype 9111
    2. SAP creates a class of that infotype ZCL_HRPA_INFOTYPE_9111
    3. Inside this method there are few inherited method which provide me functionality of insert , update , delete
    i want to call methods IF_HRPA_INFTY_BL~MODIFY,
    IF_HRPA_INFTY_BL~INSERT
    However when i call these method from webdynpro abap this method does not work.
    where as when i try to insert an entry using PA30 transaction it works.
    Does anyone know why does this happen and what is the solution?
    Regards,
    Ashish Shah

    Hi Ashish,
    You need to create method inside your assistance class, the class your webdynpro component talks to.
    Within the methods of Assistance class you will have to create instance of ZCL_HRPA_INFOTYPE_9111 and call its  method IF_HRPA_INFTY_BL~INSERT  passing the data.
    Cheers
    Prashant

  • Calling a java API from XI

    Hi
    We need to call a java API on a J2EE system from SAP XI. What is the approach to be followed for these scenarios.
    Thanks
    Sabyasachi

    Hi Stefan
    Is there any other way of doing this using java proxies or HTTP adapters.Please Advise.Thanks

Maybe you are looking for

  • Vision M 30GB no longer working or even turning

    I have a Vision M 30GB. It was purchased just short of 2 years ago. I understand the warranty has lapsed but it is no longer even turning on. It froze whilst playing a track, when I reset it it froze whilst Re-Building and then shut off completely an

  • Why can I not open an unzipped keynote file folder on my iPad or MAC?

    Why does my keynote file get converted into a folder and get zipped when I try and e-mail it?  It didn't used to be like this?  It used to be just a .key file. Then as a result this creates a problem in trying to transfer the keynote file to another

  • Tab order moving to second page of form

    I have a two page form. I can set up the tab order perfectly on the first page, but when I try to set up the first object on the second page as the next tab after the last first page tab, it starts back at the first object on page one. Does anyone kn

  • Recover Table in Oracle 10G - Very Urgent--Kindly Help

    Hi Guru I m using oracle 10G R2 in Unix. One of the user has unfortunately updated the table with wrong dataa aand hence we need to recover the table. Our DB does not have flashbaack databaase option on. For recovering the table using Flashback table

  • Use of java script in WAD.

    Hi. I need to write java script for reading column heading  of a table (analysis grid in WAD) and check if heading has a particular  value suppose ‘X’ , I need to highlight that column heading with a color.Kindly provide some pointers . Thanks in adv