Reg :  In GP interface call RFC for output structure

Hi ,
I am developing Webdynpro callable object through GP interface. In this task I have only output don't have input parameters. If i will click Test directly it will come output like this :
   for ex:  Name  :   Risha
              EmpID  :  1234
In getDescription() i created output structure and getting the structure.
For data i have to call RFC  , RFC will fetch data for Loggedin user.
In GP interface how to call RFC and how to fetch the data for corresponding O/p structure.
I have to submit this data to Approvar.  Please help me out.
Thanks in Advance,
  Risha

Hi Risha,
1. Please check whether the RFC is executing properly and giving the correct result.
2. declare a output strcuture say "output" with attributes which u need in the getDescription method.
3.in the execute method, execute the RFC and get the data from the model node and set it to the value node of component controller.
4. create the same context node and do the mapping between component controller and view controller.
5 . create the UI elements and bind the ui elements with the value node.
6. so when u click execute button, the model is executed and model data is transferred to value node.
7. these datas will be displayed in the view .
8. declare a variable in begin others of component controller as shown below.
IGPExecutionContext mContext;
9. in the view , u should have created a button say "complete" and on clicking this button call a method in component controller to end the execution of callable object.
10. in the method say "complete" which u have created in component controller, get the execution context
11. using the execution context , get the output structure as showwn below:
IGPStructure outputStructure = mContext.getOutputStructure();
12 . get the output structure which u have declared in getDescription method and set the strcuture attributes from the value node which has the RFC model data.
13. so when the user clicks complete the Co execution is completed and u will get the output structure which has the model data .
hope this helps.
Thanks and Regards

Similar Messages

  • Interface with Peoplesoft for Org structure

    Please let me know if there is way to interface with Peoplesoft to get the org chart (employees and their reporting details along with Org structure) and update the SAP Org hierarchy (PPOME). Any type of interfacing (file, RFCs, real time) options available to achieve this? We have our HR in PeopleSoft but need the Org chart in SAP for workflow and other reasons.
    If any one has done anything similar, please share how it was done. Thank you.

    No one seems to know of a way, so closing it.

  • Call RFC for Lookup from BPM. how to determin the correct target system

    Hi
    I have a scenario where i am sending a sync call to SAP R/3 to fetch some sata using the BPM.
    The issue is I can have multiple SAP systems so to determin the SAP system for the correct lookup is necessary.
    in the rec determination step of Config I can configure multiple receivers but this isthrowing an error saying the multiple receivers cannot be determined for sync step.
    Any idea why is such an error occuring
    Regards
    Nikhil

    Nikhil,
    Multiple Receivers cannot be configured for a Synchronous Interfaces. reason is that when you are sending the request message to the target systems, XI will recieve multiple responses for one request and this is aginst the concept of Synch Message Processing.
    You will have to have an option of determining the receivers inside your BPM and using separate Send Steps for each of these.
    Regards
    Bhavesh

  • Remote function call (RFC) for WS_DELIVERY_UPDATE fails w/o error message

    Dear Experts,
    Iu2019m using WS_DELIVERY_UPDATE to post goods issue against outgoing delivery. SE37 works fine.
    RFC call from external program with the same parameters fails without returning any message.
    It aborts during call and after that it becomes invalid.
    Also calling BAPI_TRANSACTION_COMMIT does not help.
    Any idea why SE37 works fine but RFC fails?
    Anything I am missing?
    Many thanks
    Regards
    JW

    There could be many reasons, I'd suggest to get your Basis admin involved. Take a look at the ABAP dump (ST22), update termination (SM13) or RFC errors (SM58). Although I doubt you'll find something inside SAP, since it seems that RFC call itself fails.
    This function is not a BAPI, so BAPI_TRANSACTION_COMMIT won't do any good. All it does is COMMIT WORK actually.

  • Call RFC that return structure using VB

    Hi, anyone has a sample code to call a custom RFC that returns table structure?
    The RFC expect parameters to pinpoint the record and return it in a structure.
    *Local Interface:
    IMPORTING
    VALUE(CUSTOMER) LIKE KNA1-KUNNR
    VALUE(MATERIAL) LIKE MARA-MATNR
    VALUE(POSTING_DATEFR) LIKE BKPF-BUDAT
    VALUE(POSTING_DATETO) LIKE BKPF-BUDAT
    TABLES
    SALES_VOLUME STRUCTURE ZRRPS_SALES
    Here's my vb code, but it return zero entries (I'm sure it should return records).
    ***Login Process Here***
    Set objFunc = objSAPLogon.Add("Z_CUSTOM_SALES_DATA")
    Set objSALES = objFunc.Tables("SALES_VOLUME")
    With objFunc
    .Exports("CUSTOMER") = "1234567"
    .Exports("MATERIAL") = "1234"
    .Exports("POSTING_DATEFR") = "10012005"
    .Exports("POSTING_DATETO") = "10312005"
    End With
    If Not objFunc.Call Then
    Debug.Print objFunc.Exception
    Exit Sub
    End If
    Debug.Print objSALES.RowCount ==> 0
    From here, I dont know what to do next. Am I missing something? Please help.
    Thanks in advance!
    /Noel

    Yes, the RFC developer told me to use this format mmddyyyy.
    I think the Exports portion is not working, and I dont know why. I tried remarking the Exports portion and it gives the same result, zero entries.
    Thanks!

  • WebDynpro Call RFC, Handling with structures

    Hi together,
    Does someone know where I can find examples showing me the handling of RFC - Exportparameters.
    I've got succees handling tables with the webdynpro-TableControl.
    But know I'm interested using the export-structure of a function module from R/3 in Java, filling automatically an
    form.
    Please Help.
    Special Thx to Armin Reichert, who helped me with Excel Problems.
    Thx
    Greetings Sascha

    Hi Sascha,
      There is no single example which will explain all the possibilities that you are asking for. There is a book called "Inside WebDynpro for Java". Its an excellent book for developers. It really gives you a good understanding of the concepts. In this book you have examples on how to handle RFC's.
    Well if you require an example that really explains all the scenarios.
    As far as i can see the Flight example is the best to start off with as a WebDynpro newbie. Its the same.
    If you have any problem in a particular scenario, then you can post it and you will get good replies out here :).
    Using the Flight example you will be covering almost all the scenarios. In case a scenario is not covered do post it here and we will be able to guide you.
    regards
    ravi

  • Call RFC  using java procedure

    Hi
    How can I to use java procedure and call RFC for to access tables of SAP ?
    Thank You

    RFC? That term in the IT environment usually means "+Request For Comments+" and refers to Internet protocol and usage standards.
    Do you perhaps means RPC (Remote Process/Procedure Calls)? Or something else?
    Also, SAP is a company. Not a product. SAP has a product called R3. This runs inside a database.
    Connecting from Java to a database typically requires nothing more than a JDBC driver. So why can't you use a JDBC driver and need to call the database (and access tables) using another method?

  • Error while calling RFC when using BSP Web Interface

    Hi,
    we have a problem with the Authorization when we use an Web Interface for BSP. We have assigned all roles to the user which were mentioned in the SAP standard documentation:
    R_AREA   
    R_METHOD 
    R_PACKAGE
    R_PARAM  
    R_PLEVEL 
    R_PM_NAME
    R_PROFILE
    R_STS_PT 
    R_STS_SUP
    R_WEBITF 
    S_RS_ADMWB
    S_RS_AUTH
    S_RS_COMP
    S_RS_COMP1
    S_RS_DAS 
    S_RS_ICUBE
    but we still get the error message: "Error while calling RFC".
    When using a user with SAP_ALL, it works.
    What can we do?
    Thx for your time.
    Joerg

    Actually that's surprising - because BSP (Business Server Pages) and RFC (Remote Function Call) are not related; they use totally different transport protocols (http vs. RFC). Even if an BSP application is calling a function module remotely (acting as RFC client) no authorizations for S_RFC are required - in the calling system (but in the called system, i.e. the RFC server).
    Since assigning SAP_ALL seems to "cure" the problem, it seems to be an authorization issue, indeed. In that case it makes sense to use the authorization trace (ST01 - notice: that's specific to one single ABAP application server; you might have to activate the trace on multiple instances) to find out which authorizations are checked / demanded.

  • Help for Calling RFC in B2C application.

    hi,
    We had written one RFC and all java classes related to that.
    we are able to call RFC in b2c application.we are calling RFC on loading of JSP.
    now my requirement is to call same RFC in other JSP but muliple times(in a for loop).But how can i do that?
    one thing is sure we cannot calll this RFC on loading of new jsp page.we have to call inside jsp page(in a loop).
    there is any way?
    please help me out.
    thanks in advance.
    jayesh talreja

    Two things I would like to say here:
    1) Calling RFCs directly from JSP is not supported so we need to use interfaces and backend classes.
    2) Calling an rfc is java code and in jsp we write java code along with html to make it dynamic...so dynamic
    call is also possible.
    ie. suppose we want to call our rfc for fetching some data from the backend based on the data entered at item level once the user clicks on update button on order creation page.So we can write the code like below
                                  <%--   messages --%>
                                       <%@ include file="/b2b/itemErrMsg.inc.jsp"%>
                                       <% } %>
                                       <%-- ui.showItemDetailButton() --%>
                                       <% } %>
                                       <%-- ui.isBOMSubItemToBeSuppressed() --%>
                                       <%--Start of addition by Arshid --%>
                        <!-- From here our custom rfc call is starting-->
                        <%
                             String arg1[]= {"crm~isa~isacore~resources_en"};
                             if((JspUtil.removeNull(item.getProduct()).length()) !=0 && !(JspUtil.removeNull(item.getNetValue()).equals(WebUtil.translate(pageContext,"yourcompany.order.minimumValue",arg1))) )
                                  String baseUOM = "";
                                  int enteredQuan= 0;
                                  double minOrderQuan = 0.00;
                                  double roundingValue = 0.00;
                                  BusinessObjectManager isaBOM = (BusinessObjectManager)userSessionData.getBOM(BusinessObjectManager.ISACORE_BOM);
                                  User user = (User)isaBOM.getUser();
                                  Shop shop = (Shop)isaBOM.getShop();
                                  String distrChannel = shop.getDistributionChannel();
                                  String sod = shop.getSalesOrganisation();
                                  Z_CustomBusinessObjectManager customBOM = (Z_CustomBusinessObjectManager)userSessionData.getBOM(Z_CustomBusinessObjectManager.CUSTOM_BOM);
    //Z_prodInfoValue is a bo that will hold the data returned from rfc call
                                  Z_prodInfoValue z_prodinfo = customBOM.getZ_prodInfobo().getProdInfo(Zeropadding.productInfoNoPadding(item.getProduct()), sod, distrChannel);
    <!-- Call ends here and this piece of code is called for every item on clicking on update buton -->
    Although this is not a good code design as instead of making multiple calls to the backend we can get the above thing done in a single call also.I wrote this code just to give an example .
    This clearky proves we can have dynamic calls to the backend through jsps also.
    But Jayesh, your question is not very clear to me.
    If its about for loop, where you want to call the backend for multiple times with different set of values than i would rather suggest you to create lists of these different datasets and send these in a single call to the backend and fetch the data similarily in tables in a single call.
    Regards,
    Arshi

  • BW error:  "invalid call sequence for interface when recording changes"

    I am getting the error "invalid call sequence for interface when recording changes" when I try to activate a datasource in BW.  Any ideas on how to resolve this error?
    Thanks.

    I already tried that.  This is what's happening..  When I get this error, if I try again it will activate and gets collected into a transport.  I moved this transport to our QA system.  As soon as I try to execute an infopackage under this datasource in QA, I get the error datasource   xxxxx must be activated.   Before the excecution of the infopackage, the datasource is in "Active version executable".   After I get the error message "datasource must be activated", the datasource in the QA system changes to "Active version not executable".   I am not sure all these issues are related back to the "invalid call sequence" error I am getting when I try to activate the data source.
    I also tried recollecting the transport from our Dev system to QA and it still gives the above errors.
    Any help?
    Thanks.

  • How can I call RFC FM from webdynpro application for ABAP? Please help!

    Hi Experts,
              I have a requirement where I have to make a call to RFC enabled function module passing some data from webdynpro for ABAP application. How can I achieve this? Any tutorial or links or docs will be very helpfull.
    I have seen some tutorial on Adaptive RFC but it talks about webdynpro for Java.
    Can I use "Call function XYZ destination A10" statement in webdynpro for ABAP application?
    Thanks
    Gopal

    am doing same thing for my current SRM implementation.I am taking data to SRM server from another R/3 server .
    This is solution I have used
    1) First of all I have made ABAP connection in SM59 .
    Go to SM59 .In ABAP Connection creat ABAP connection with system with which u want communicate .
    Eg I am connection with Systems PB1.
    So i developed Connection call PB1CLNT800.
    2) In my requirement I have taken data in my context from another r/3,
    I have give called RFC in my supply function of node.
    Call to RFC is as usual.
    In my case,
    CALL FUNCTION 'RFC_MATNR'
    DESTINATION 'PB1CLNT800'
    TABLES
    IT_MATNR = IT_MATNR.
    Onwards I have read my itab IT_MATNR and populated data to context.
    Hope solution will serve your purpose.
    Give point if it works .If any problem i have other ways.
    Cheers
    Parag Bhise

  • SAP adapter giving the merged result set (First RFC call data + Second RFC call data) for second RFC call

    I have a WCF Adapter service to call a SAP RFC. When I call the RFC first time, it gives me correct no of result set but when I call this RFC second time immediately after first call, it gives me merged result set (First Result set + Second Result Set).
    e.g. We have a RFC which receives vendor number and blank object of result set as parameter and gives back the list of purchase orders as Response in object of result set for that vendor.
    Suppose, we have a vendor "a" and vendor "b". For vendor "a" there are 5 purchase orders and for vendor "b", we have 4 purchase orders in SAP. When I call the WCF adapter service for this RFC for vendor "a",
    it gives me 5 purchase orders. Immediately after first call, when I call WCF service for vendor "b", it gives me 9 (5+4) purchase order records which is wrong.
    In brief, one RFC call is affected by its previous call.
    For each new WCF request, a new object of result set is created, connection is opened, rfc is executed and connection is closed.
    Can anybody have any idea on this?
    Thanks.
    Thanks, Nishant Gupta

    Hi,
    Please refer to the document
    http://seroter.wordpress.com/biztalk-and-wcf-part-vii-about-the-biztalk-adapter-pack/

  • What is the reason for Invalid database interface call in the statement

    Hi all,                                                     
    Invalid database interface call in the statement where table "ZPP_STORAGE ".
    Thanks.

    DATA: BEGIN OF itab4 OCCURS 0,
                mandt TYPE mandt,
                matnr LIKE mseg-matnr,
                werks LIKE mseg-werks,
                lgort LIKE mseg-lgort,
                tarih LIKE sy-datum ,
                meins LIKE mseg-meins,
                bldat LIKE mkpf-bldat,
                menge LIKE mseg-menge,
             SHKZG like mseg-SHKZG,
             BWART like mseg-bwart,
            END OF itab4.
    LOOP AT itab4.
          insert into zpp_storage from itab4.
          COMMIT WORK.
        ENDLOOP.
    At insert, dump occurs.
    Why?
    Thanks.

  • Call RFC dynamically

    Hi,
    I require calling 2 different RFC in the same receiver dynamically based on one of the content in my Message. How can I do this.
    Basically, assume i have a message with Create='Y', need to call a one RFC and if Create='N', need to call another RFC.
    This is just an example not the actual scenario.
    Regards
    Unni

    Hey,
       we can have two solution for this.
    Solution 1:
                  Use a BPM . in that use a switch case.
       based on your condition provided in the switch case(for eg create=y or create=N) choose the interface mapping(using transformation step of BPM). two different RFC's will be having two different interface mappings.
    Solution 2:
               In your configuration you need to create two different services for the same R3. and have two diffent communication channels.
    In your reciever determination give your condition(eg create = y or create=N). Give both the services in the service field.
    Now give the interface mappings(different for the two RFCs) in the interface determination for each reciever.
    I would suggest you to go with solution 1.
    Reward points if helpful.

  • Call RFC

    hai
         how to call RFC prog.

    Technical Overview
    A remote function call (RFC) is the call of a function module that runs in an external system to the calling program. Although it is also possible to call a function module in the same system as an RFC, normally RFCs are used when the caller and the called function module run in the same system.
    In the SAP system, these functions are provided by the RFC interface system. The RFC interface system enables function calls between two SAP systems, or between an SAP system and an external system.
    [edit]
    The RFC Interfaces
    The RFC- interface system is made up of the following interfaces:
    Calling interface for ABAP programs
    Each ABAP program can call a remote function module using the command CALL FUNCTION...DESTINATION. The parameter DESTINATION informs the SAP system that the called function module runs in a different system to the calling system. RFC communication with the remote system takes place as a part of the CALL FUNCTION command.
    RFC function modules in an SAP system must be proper function modules and must be registered in the SAP system as remote.
    If the calling program and the called program are both ABAP programs, the RFC interface provides both communication partners. The calling program can be any ABAP program, and the called program must be a function module that is registered as remote.
    For more detailed information on calling function modules that are registered as remote, see Calling RFC Function Modules in ABAP.
    For more information on writing function modules that you want to call remotely, see Writing RFC Function Modules in ABAP.
    Interfaces for calling non-ABAP programs
    If either the calling program or the called partner is not an SAP program, this program must be programmed in such a way that it can play the role of the other partner in RFC communication.
    To support you when implementing RFC partner programs in non-SAP systems, read: Components of the SAP Communication Technology
    RFC-supported and GUI-supported interfaces can be used by external programs to call function modules in SAP systems, and execute them in these systems. Likewise, ABAP programs can also use these interfaces to use functions supplied by external programs.

Maybe you are looking for

  • Print file via ActiveX,an​d it is not found always

    Hello, I have made a lot of efforts to create and print an HTML Report. I have concluded to the fact that it has to be printed via ActiveX. But it is not working always. Some times the JPEG file that has to be printed, is not found and a "red X" is p

  • Role creation other than PFCG??

    Hi SAPians, Can we create roles manually on R/3 4.7EE!!!? Not from PFCG. any other way?? If yes what is the way? If no why? Thanks. Useful answers will be given points.

  • Apex report

    Hi Could somebody clarify the difference between query column vs generic column in Apex reports page creation option. Thanks

  • Safari/internet is slow to load

    Safari is acting odd.  Some pages load normal, some at dial-up speed and others not at all.  This is occuring with all of my Apple products; however, all are affected in slightly different ways.  ISP advised that there is no issue with their service.

  • Flash Builder 4.0.1 with SDK 4.5?

    Is this possible? How do I do this?