Calling RFC in F4 button

I have a requirement in PPM , where i need to add custom fields and when I click on F4 button , I need the data to be fetched from table of different server(ECC and few other) and to store it in custom fields.
Kindly guide me how to proceed on this.
Its an urgent requirement.

Hello Rahul
Firstly, you need to have setup the object links to the relevant ECC environment. This is done in the SPRO configuration - for this to work you would have had to setup the relevant RFC and logical system name (same as RFC name) and tested the connection/s.
Then you need to add the custom fields to the relevant database tables under the CI section. For these fields you need to specify a search help as well as relevant domain. Lets say for example you want to add cost centre (which is a ECC PS field) to your Item, you could create a cost centre field in your Item table, use the same domain for this field as what is used in ECC (KOSTL) and assign a search help for cost centre (with the relevant paramaters) to this field of yours.
Then you need to do some configuration (under Global field settings -> Define Custom Field Configuration) whereby you will assign your new field to the advanced search service. You will also do relevant UI Configuration for the field. You will then do configuration for assigning the field to the relevant view and subview
As you can see there are quite a few steps so I hope this helps a bit?
Regards
Chatsworth

Similar Messages

  • WD Program calls RFC. How to start external ABAP debugger to see the data

    Hi Experts,
    I have created WD program which calls RFC. I want to see the value passed from WD to ABAP. I have to see the values once data reaches ABAP. How I can do so?
    I did following.
    1) se 37 . Open the proram. Inside the fucntion near a select statement I placed the cursor. Then clicked on controlshitfF9 (set/delete  external brakepoint icon).
    2) I clicked on WD screen - Save push button.
    3) The data goes from WD to R/3. Some processing takes place. I can see message from R/3. However debugger never got triggered.
    How to resolve the issue.
    Regards,
    Gary

    go to following link.
    External debugging of ABAP from NWDS in web dynpro java
    I hope it helps.
    Regards,
    Rohit

  • 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

  • Calling RFC with webdynpro java (in NetWeaver Developer studio)

    Calling RFC with webdynpro java (in NetWeaver Developer studio)
    Hi,
    I want to call only one parameter RFC with webdynpro.
    Flight example is very complex.
    I want to push a button and pass parameter to RFC input and call RFC.
    After execution some message must appaer on the screen.
    Is there a step by step .pdf?
    Thanks.

    Hello Cemil,
    There's a seperate Web Dynpro forum for such posts, you should take a look there.
    Nonetheless, the classic tutorial is the FlightList. If I was you, I would make sure to do this tutorial step-by-step as it should give you the fundamentals for understanding aRFC. On top of that, it's most likely already available to you on your SAP system...
    Here's the link:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a00f7103-6790-2a10-ac9c-fcac7c5b18a3
    Cheers,
    Hermann

  • Calling RFC funtions from VBA

    Hi all,
    I would like to call RFC funtions from VBA, could you please advise on what library should I set reference to?
    A piece of sample code would also be highly appreciated.
    Thanks in advance.
    Tomas

    here is a small code sample using vbscript
    <html>
    <head>
    <meta http-equiv="Content-Language" content="en-us">
    <title>RFC Example - THUSRINFO</title>
    <script language="VBScript">
    sub get_cust_data()
    dim fns
    set fns = createobject("SAP.Functions")
    fns.logfilename = "my_log.txt"
    fns.loglevel = 6
    dim conn
    set conn = fns.connection
    conn.ApplicationServer = "application server name or ip address"
    conn.System = "DEV"
    conn.user = document.myf.t1.value
    conn.password = document.myf.t2.value
    conn.Client = "025"
    conn.Language = "E"
    conn.tracelevel = 6
    if conn.logon(0, true) <> true then
    exit sub
    end if
    dim myfunct
    set myfunc = fns.add("THUSRINFO")
    result = myfunc.Call
    the_exception = myfunc.exception
    dim users
    if result = true then
    set users = myfunc.tables.item("USR_TABL")
    document.write "Table USR_TABL, " & users.rowcount & " rows"
    document.write "<table border=1>"
    document.write "<tr>"
    document.write "<td>BNAME</td>"
    document.write "<td>MANDT</td>"
    document.write "<td>TCODE</td>"
    document.write "<td>TERM</td>"
    document.write "<td>ZEIT</td>"
    document.write "<td>HOSTADR</td>"
    document.write "<td>RFC TYPE</td>"
    document.write "</tr>"
    for each user in users.Rows
    document.write "<tr>"
    document.write "<tr>"
    document.write "<td>"
    document.write trim(user("BNAME"))
    document.write "</td>"
    document.write "<td>"
    document.write trim(user("MANDT"))
    document.write "</td>"
    document.write "<td> "
    document.write trim(user("TCODE"))
    document.write "</td>"
    document.write "<td> "
    document.write trim(user("TERM"))
    document.write "</td>"
    document.write "<td>"
    document.write trim(user("ZEIT"))
    document.write "</td>"
    document.write "<td>"
    document.write trim(user("HOSTADR"))
    document.write "</td>"
    document.write "<td> "
    document.write trim(user("RFC_TYPE"))
    document.write "</td>"
    next
    document.write "</table>"
    set users = nothing
    end if
    fns.connection.logoff
    Set fns = nothing
    Set conn = nothing
    end sub
    </script>
    </head>
    <body>
    <form method="POST" name="myf">
      User Id <input type="text" name="T1" size="20"></p>
      <p>Password<input type="password" name="T2" size="20"></p>
      <p> </p>
      <p><input type="button" value="Submit" onclick="get_cust_data()" name="B1"><input type="reset" value="Reset" name="B2"></p>
    </form>
    </body>
    </html>
    Regards
    Raja

  • Which sy variable is initiated when web dynpro application call rfc of r/3

    Hi,
    My question is that when i pressed my web dynpro application button which called rfc at r/3 at that time which system variable will initiated.
    Regards,
    Gurprit

    Hi Gurprit,
      All variables of sys structure will be intiated.
    regards,
    Ganga.

  • 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

  • Call RFC  In ABAP XSLT

    Hello Experts,
          I have a requirement where in i need to call RFC(Which is created in R/3 system) In ABAP XSLT Mapping(defined iN xi system).
    Can some one help me to achieve this??
    **ITS URgent****
    Thanks and Regards,
    Prakash Babu.

    Hi James,
             Check here............
    /message/5182263#5182263 [original link is broken]
    RFC connections
    /message/5102602#5102602 [original link is broken]
    Regards,
    Vijay.

  • How to call function behind the button and update only specific record

    Greetings,
    1 - i wnat to ask few things as i m new to apex, i am using apex 4.1, and created 3 select list and a button in seleting of parameter,
    1 select list : select area
    2 select list: select product
    3- select list - size of the product
    i want to generate Ids for the follwing. for that i created query for INSERTING RECORD FROM ONE TABLE TO ANOTHER , generation the ids when button pressed "Generate" after selecting parameters,
    Now where i call that QUERY on button ? because when i create button its gives me option to submit, defined dynamic action, etc, pls gudie me where i call the function name id_generation when button pressed?.
    2- second thing i creared tabular " select user_id, product_name, product_type from product".
    by defualt check box list are create delete submit button are created, first when i insert record it saves that was fine, e.g i entered 50 records and afterward i want to update only one record, e.g there is a record product name = box, if i change it to box small and click submit then it saves all the page means all 50 records,
    i want to submit only that record that i changed, for that i use the logic that only those records should be updated which are checked but the user. how will i do this ? where to use the preocess , please guide
    Edited by: Omzz on Oct 2, 2012 11:28 PM

    If I understand what you are trying to do is correct you could possibly do this by:
    Creating and AFTER INSERT trigger on the table based on the tabular form which inserts the record into a seperate table after the record is inserted something like:
    CREATE OR REPLACE TRIGGER copy_records
    AFTER INSERT ON table a
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    DECLARE
    BEGIN
    INSERT INTO table b
    VALUES :NEW.col1, :NEW.col2 etc......
    END;
    There is also a way that you could do it within the form using a cursor on the tabular form with APEX_APPLICATION.G_ ......
    Chris

  • Error when call RFC Function module in R/3

    Dear All,
    We are trying to call RFC function module CBIF_GLM1_PROCESS_ORDER_READ (This is not a BAPI and also not released ) in R/3 from XI system.
    we are facing the error "Error while lookup Exception during processing the payload. Error when calling an adapter by using the communication channel CC_PPPI_MES_RFC_Rcvr (Party: , Service: WCD_320, Object ID: 16563889b449328eac76caa6a3bc592e) XI AF API call failed. Module exception: 'error while processing the request to rfc-client: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: failed to parse BAPI response due to: com.sap.aii.adapter.rfc.util.bapi.BapiException: Parameter with name RETURN not found.'. Cause Exception: 'com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: failed to parse BAPI response due to: com.sap.aii.adapter.rfc.util.bapi.BapiException: Parameter with name RETURN not found.'."
    This is the first time we are doing this configuration.
    Could you please let me know what woulbe the reason.

    read the original message
    We are trying to call RFC function module CBIF_GLM1_PROCESS_ORDER_READ (This is not a BAPI and also not released ) in R/3 from XI system.
    I am talking about the above Receiver RFC channel which you guys are using to call R/3 from XI. That where you need to change the commit parameter

  • 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.

  • Java call rfc check in original:error while checking in and storing.

    hi,experts.
    java call rfc check in original:error while checking in and storing. BAPI in the RFC is "BAPI_DOCUMENT_CJANGE2",
    the RFC was fine in SE37 and calling by Visual Basic. and in java,when mConnection.setAbapDebug(true), and  runing by step and step, was fine too.
    if mConnection.setAbapDebug(false) in JAVA, up error in title was displayed.
    what cause this error?
    Best Regards.

    Hi Priya
    Please use Su53 after getting the error and find any authorization is missing for the user..
    S_GUI Full Authorization is required..
    Since by giving BASIS Authorization its rectificed, then it shud be mostly due to Auth issues only
    Regards
    Aby

  • Error while calling RFC

    Hi all WebDynpro Gurus
    I am using EP7.
    I am developing an WD application for KM functionality in which I need to call RFC from backend. I followed the "<b>Creating WD application accessing ABAP function</b>" example.
    But when I executed the application I got following exception.
    <i><b>Root Cause</b>
    The initial exception that caused the request to fail, was:
       com.sap.lcr.api.cimclient.CIMClientException: java.net.MalformedURLException: URL must have a host part
    <b>Correction Hints</b>
    Accessing the System Landsape Directory (SLD) failed. Depending on the concrete reason (see root cause) check the following:
    is the SLD Supplier in the J2EE engine configured correctly? See the SLD documentation for more details about the SLD and about how to configure it.
    are all JCO destinations maintained correctly? Use the preinstalled Web Dynpro Content Admin application to check/edit the destination. Use the Ping and Test functions of the Content Admin to verify that each destination is properly configured.</i>
    I checked JcO connections in the webdynpro content admin. There the status is unknown and create tabs are disabled.
    I checked the SLD connections in content admin , the entries are as below:
    <b>Host name : blank
    Port: -1
    User: blank
    Url: http://.-1/sld</b>
    Where could i configure these SLD settings and what should be the new entries ?
    I dont have permission to view WebDynpro console.
    Please help me out.

    Vinod,
    Claim: "Hello, World" application with WD and RFC is the "Hello, World" application with most complex configuration.
    Prove:
    1. You need to run http://host:port/sld and import CIM context
    2. You need to add technical WebAS ABAP systems to SLD (same URL)
    3. You need to run Visual Administrator and setup SLD connection parameters (host, port, user, password)
    4. You need to (re)deploy your WD application
    5. You need to run web-based WebDynpro Content Administrator and configure JCO connections.
    Fortunately, [1]-[4] is necessary only ones per server, [5] is necessary per every application.
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net
    P.S. After I'd started working with XI I understood that procedure described above is not complex at all

  • Is there a way to answer the 5c without swiping? It really is a pain and hard to do at times one handed. Maybe allow favorites to be answered with a click of the home button or possibly all calls with a home button push

    Is there a way to answer the 5c without swiping? It really is a pain and hard to do at times one handed. Maybe allow favorites to be answered with a click of the home button or possibly all calls with a home button push. First smart phone I have owned and the old flip phone was much easier to answer.....just press one button.

    Is there a way to answer the 5c without swiping? It really is a pain and hard to do at times one handed. Maybe allow favorites to be answered with a click of the home button or possibly all calls with a home button push. First smart phone I have owned and the old flip phone was much easier to answer.....just press one button.

  • Standard Component in CRM that will call RFC Function Module

    HI all,
    Is there any Standard Component in CRM that will call RFC Function Module from ECC and that called RFC FM should Fetch the data from ECC.

    You can call RFC from different places, like programs, function modules, web dynpros, classes...
    So you just have to have appropriate RFC on ERP side and call it from CRM side. To call it you use the following statement...
          CALL FUNCTION 'YOUR RFC FUNCTION'
            DESTINATION i_dest "name of server
            EXPORTING
              your export parameters
            IMPORTING
              your import parameters
    Regards.

Maybe you are looking for

  • SYSTEM FAILURE로 PO STAUTS가 INPROCESS 상태시 해결방법

    제품 : MFG_PO 작성날짜 : 2006-05-17 SYSTEM FAILURE로 PO STAUTS가 'INPROCESS' 상태시 해결방법 ======================================================== PURPOSE Document approval manager가 fails 되어 down 되면 PO는 IN PROCESS 상태가 된다.이 PO에 대한 available한 workflow가 없고,reproces

  • How to generate SWF file with dynamic data but no live connection

    Hello, We got a requirement where we have to email out SWF file either in PPT or outlook generated from BOBJ universe. When the file reaches the customer who would be outside our network with no access to our servers or data should be able to view th

  • Ichat buddy list will not open.

    I have a brand new macbook and have used ichat successfully. Today my buddy list will not load when i open the application. to the best of my knowledge, my buddylist is not set to hide or anything. I restarted my computer, and turned it off, but the

  • How to change actual quantity in Outbound delivery User exit

    hi all , My requirement is to change the quantity of outboud delivery according to some logic .but my issue is after writing the code MV50AFZ1 , system is not considering the quantity changed by me , it is taking the quanity directly from sales order

  • DNS GUI adding trailing . to zone name in publicView.conf.apple

    I tried setting up the DNS on a newly installed OS X Server 10.5.1 installation. I have a working server on a Debian installation that I want to transfer to OS X Server. Server Admin seems to insist that the zone name given to the zone statement in p