Steps to call a Bapi from ESS DC

Hi all,
my requirement is to modify an ESS dc, in which I have a button and when I click the button, it should execute a custom function module and display the returned values of the function module.
Could any body tell me the steps to accomplish the above task in ESS dc?
Right now when i tried to execute the function module, it doesnot execute atall. So was wondering if I am missing something.
Please let me know how to do it. Do we have to create a separate model or reimport the existing model?
Thanks

HI,
In case you want to call RFC from WD Application you have to include that RFC in model of that DC. So you have to reimport that model including new RFC in th model.
Hope this helps !!
Best Regards,
Ruchi

Similar Messages

  • How to call a BAPI from Visual Composer

    hi,
       I am new to Visual composer. can some body give me step by step information of calling a bapi or RFC from VC.
    Thanks in advance,
    Gopi

    Hi Gopi,
    Steps involed for calling RFC/BAPI from VC
    1. Choose Model->Select Data Services.
    (Alternatively, click the Data button in the task panel toolbar.)
    2. In the Portal field at the right end of the main toolbar, enter the URL of the portal from
    which you can access the back-end system used by the iView.
    For example, you could enter: http://<yourportal>:50000/..
    3. Click the traffic light icon to the right of the Portal field. The portal Welcome screen
    appears.
    4. Log on to the portal as a user that exists in the connected back-end system, or which is
    mapped to a user of that system. Click OK.
    Once a connection to the portal is established, a list of system aliases defined in the
    portal system landscape appears in the System drop-down
    list.
    From the System drop-down list, choose the SAP system that contains the function module.
    6. Under Search SAP System, click the Search tab and in the Name field, enter the search string: <RFC/BAPI name>. Then click Search (at the bottom).
    5. A list of function modules matching the search string is displayed.
    7. Drag the function module/bapi from the Data task panel into the
    workspace: The data service is added to your model.
    8. Periodically save your work. To do so, choose File->Save Model.
    Finally test the iview in VC.
    In the workspace, drag your mouse from the Input port of the data service, <inputform> and dragn your mouse from the outut port from the data service <tabelview and etc..>
    or
    Go through the this documentation...
    http://help.sap.com/download/netweaver/nw04/visualcomposer/VC_60_UserGuide_v1_1.pdf
    Thanks,
    Suriya.

  • I am trying to generate purchase order and i create a BAPI also which is active. But when i call the BAPI from SYbase Mobile Object RFC then after calling it gives an Error "Conflict when calling a Function Module (Field Length)".

    i am trying to generate purchase order and i create a BAPI also which is active.
    But when i call the BAPI from SYbase Mobile Object RFC then after calling it gives an Error "Conflict when calling a Function Module (Field Length)".

    Hi,
    Yeah i tried my Z_BAPI in R3 and then giving some ERROR.
    This is my CODE-
    FUNCTION ZBAPIPOTV2.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(POHD) TYPE  ZPOHD OPTIONAL
    *"     VALUE(POITEM) TYPE  ZPOITEM OPTIONAL
    *"  TABLES
    *"      RETURN STRUCTURE  BAPIRET1 OPTIONAL
    data: ls_pohd type bapimepoheader,
             ls_pohdx TYPE bapimepoheaderx,
             lt_poit TYPE TABLE OF bapimepoitem,
             lt_poitx TYPE TABLE OF bapimepoitemx,
             ls_poit TYPE bapimepoitem,
             ls_poitx TYPE bapimepoitemx.
       MOVE-CORRESPONDING pohd to ls_pohd.
       MOVE-CORRESPONDING poitem to ls_poit.
       ls_pohdx-comp_code = 'x'.
       ls_pohdx-doc_type = 'x'.
       ls_pohdx-vendor = 'x'.
       ls_pohdx-purch_org = 'x'.
       ls_pohdx-pur_group = 'x'.
       ls_poit-po_item = '00010'.
       APPEND ls_poit to lt_poit.
       ls_poitx-po_item = '00010'.
       ls_poitx-po_itemx = 'x'.
       ls_poitx-material = 'x'.
       ls_poitx-plant = 'x'.
       ls_poitx-quantity = 'x'.
       APPEND ls_poitx to lt_poitx.
    CALL FUNCTION 'BAPI_PO_CREATE1'
       EXPORTING
         POHEADER                     = ls_pohd
        POHEADERX                    =  ls_pohdx
    *   POADDRVENDOR                 =
    *   TESTRUN                      =
    *   MEMORY_UNCOMPLETE            =
    *   MEMORY_COMPLETE              =
    *   POEXPIMPHEADER               =
    *   POEXPIMPHEADERX              =
    *   VERSIONS                     =
    *   NO_MESSAGING                 =
    *   NO_MESSAGE_REQ               =
    *   NO_AUTHORITY                 =
    *   NO_PRICE_FROM_PO             =
    *   PARK_COMPLETE                =
    *   PARK_UNCOMPLETE              =
    * IMPORTING
    *   EXPPURCHASEORDER             =
    *   EXPHEADER                    =
    *   EXPPOEXPIMPHEADER            =
      TABLES
        RETURN                       = return
        POITEM                       = lt_poit
        POITEMX                      = lt_poitx
    *   POADDRDELIVERY               =
    *   POSCHEDULE                   =
    *   POSCHEDULEX                  =
    *   POACCOUNT                    =
    *   POACCOUNTPROFITSEGMENT       =
    *   POACCOUNTX                   =
    *   POCONDHEADER                 =
    *   POCONDHEADERX                =
    *   POCOND                       =
    *   POCONDX                      =
    *   POLIMITS                     =
    *   POCONTRACTLIMITS             =
    *   POSERVICES                   =
    *   POSRVACCESSVALUES            =
    *   POSERVICESTEXT               =
    *   EXTENSIONIN                  =
    *   EXTENSIONOUT                 =
    *   POEXPIMPITEM                 =
    *   POEXPIMPITEMX                =
    *   POTEXTHEADER                 =
    *   POTEXTITEM                   =
    *   ALLVERSIONS                  =
    *   POPARTNER                    =
    *   POCOMPONENTS                 =
    *   POCOMPONENTSX                =
    *   POSHIPPING                   =
    *   POSHIPPINGX                  =
    *   POSHIPPINGEXP                =
    *   SERIALNUMBER                 =
    *   SERIALNUMBERX                =
    *   INVPLANHEADER                =
    *   INVPLANHEADERX               =
    *   INVPLANITEM                  =
    *   INVPLANITEMX                 =
    ENDFUNCTION.
    i am trying to generate purchase order and i create a BAPI also which is active. But when i call the BAPI from SYbase Mobile Object RFC then after calling it gives an Error "Conflict when calling a Function Module (Field Length)". 

  • Call the BAPI from the program..

    Hey guys,
    can we  call the BAPI from the program..
    if yes how can  we  can show sales orders being loaded..
    thanks its urgent

    Nishant,
    yes easily you can call bapi from program.
    for getting all sales order use:
    BAPI_SALESORDER_GETLIST
    also am providing a program so that you can see how bapi has to call in program.
    CALL FUNCTION 'BAPI_SALESORDER_GETLIST'
                 EXPORTING
                      customer_number    = lf_customernumber
                      sales_organization = if_sales_organization
                      document_date      = lf_document_date_from
                      document_date_to   = lf_document_date_to
    *              PURCHASE_ORDER     = IF_PURCH_ORDER
                      material           = lf_matno
                 IMPORTING
                      return             = ls_return
                 TABLES
                      sales_orders       = sales_orders.
    Am afraid to say you that above solution you get about bapi it is not for showing the list of SO these are for creating SO.
    Edited by: Amit Gujargoud on Jul 3, 2008 3:12 PM

  • Problem with special charecter while calling a BAPI from Webdynpro JAVA.

    Hi Experts,
    I am calling a BAPI from Webdynpro JAVA. I am passing a special charecter  u2018 as input to BAPI. But I am getting a # as input in R/3.. Can any one explain why it is getting changed?
    Any inputs regarding this issue are appreciated.
    Thanks,
    Kasinath.

    Hi,
        I had same problem before..For this I have created function module in backend for removing #. It was for converting Stream to ITF text.
    CONVERT_STREAM_TO_ITF_TEXT.
    Try this.
    Thanks,
    Prajakta

  • How can we call a BAPI from a scheduler?

    My project involves reading some data from R/3 and send a mail at regular intervals. I intend to use a schedular for that but dont know how to call a BAPI there. Is there a better way to go about it?

    Scheduler Task->Portal Service->RFC or BAPI
    You still have one issue which is IPortalComponentRequest. Portal service doesn't have access to it but you can get around it by setting up a SAP system for usermapping and then mapping that userid to a generic userid. Example code:
    private IConnection getConnection(
                   String alias)
                   throws Exception {
    IUser user =
    UMFactory.getUserFactory().getUserByLogonID("Administrator");     
    IConnectorGatewayService cgService = (IConnectorGatewayService) PortalRuntime.getRuntimeResources().getService(IConnectorService.KEY);
    ConnectionProperties prop = new ConnectionProperties(user.getLocale(), user);
    return cgService.getConnection(alias, prop);
    thanks.
    sridhar

  • Calling transactional BAPI from Web Dyn Pro

    Hi,
    I am trying to call an RFC from web dynpro, unfortunately I'm a java person rather than ABAP so am struggling a little.  The Bapi is BAPI_BPCONTACT_CREATEFROMDATA, which a colleague has wrapped up so that it saves data from memory and then commits.  I can successfully create sales activities using this RFC from the GUI.  I have connected it to a web dynpro screen and am sending the same information I send from the GUI but get the following error message
    Msg Type I.  Start Processing of refernce object - Handle generated: $000000001 Message variable $000000001 Msg.no 000000 Msg.no 082 MessageID V3 Lines in parameter 0
    Msg Type I.  Integrity rule F0026 broken (field check) - Object $000000001! Msg Variable F0026 Msg Variable $000000001 Msg.no 000000 Msg.no 084 MessageID V3 Lines in Parameter 0
    Msg Type E.  Partner function CR is not defined from fiedl VBKAKOM-PARVW_BPARNR Msg Variable CR Msg Variable VBAKOM-PARVW_BPARNR Msg.no 000000 Msg.no 688 MessageID V1 Lines in Parameter 0
    Msg Type I.  Integrity Rule D0008 broken(dependency) - Object CR VBKAKOM-PARVW_BPARNR! Msg Variable D0008 Msg Variable VBAKOM-PARVW_BPARNR Msg Variable CR Msg.no 000000 Msg.no 085 MessageID V3 Lines in Parameter 0
    Msg Type I.  Business partner 100000000 with function CR from VBKAKOM not in VBPAKOM Msg Variable D0008 Msg Variable 100000000 Msg Variable CR Msg.no 000000 Msg.no 075 MessageID V3 Lines in Parameter 0
    The implementation within web dynpro is forcing to add a Bapi_Sender which I don't have to specify when using the GUI.  I am sending a bapi_sender object in the call with no information which is what I do when using the GUI.  As I mentioned before the parameters I am sending work perfectly when sent from the GUI.
    Any help would be greatly appreciated and I will award generous points. FYI I am also going to post this in the ABAP forum.
    Thanks in advance John Abbott

    Hello John,
    seems to be a customizing problem in SAP. Error says, that the Partner function CR is not properly configured in the tables VBKAKOM and VBPAKOM.
    Did you try to execute the bapi from se37 with function module -> test -> single test ? That is a comparable situation
    The sender has to be a logical system, that in this case, i suppose, has to be declared in SAP (and referenced in the Partner function) to create Data. It depends on the 'type' of function you are executing, reading or creating data in SAP.
    Regards Andreas
    Message was edited by: Andreas Milbredt

  • Calling ABAP BAPIs from a JAVA client - Web Services vs. JCo

    Hi All,
    When calling BAPIs from a JAVA client, what are the pros/cons for making the call employing JCo vs web service technologies.  I understand that using SOAP would play better into the SOA theme and that there are nice tools to generate a WSDL document from a BAPI.  Aside from the obvious, are there any performance considerations and/or other major pros/cons to each
    Thanks,
    Mark

    Hi Mark,
    Have you got any information on this. If you have any information on this pls forward to me at <b>[email protected]</b> I am also having this confusion. My question is a bit deviating from your point. If we use XI when developing WDJs with WS, will it help in improving performance and maintenance.will it give any advantage if I use XI with BAPIs to connecto backend from WDJ apps. I got this confusion, becasue of a requirement to develop WDJ apps that will be accessed by 50,000 users. Somebody told client that use of XI willimprove performance.
    Any help is greatful
    Regards
    Ravindra
    Message was edited by:
            Ravindra Babu Tanguturi

  • Can Any one tell me what is the step in calling a function from a *.lib file in Labview application

    Hi, I am working on Labview 8.0.
    I am trying to  communicate to a thrid party HW using the driver file he has provided to me.
    The drive file is a *.lib file.
    I am unable to call the function from the lib file.
    I could get only from a DLL.
    Pls help .
    Regards
    -Patil

    patil wrote:
    When it is possible in Lab Windows, why calling a function from a static library is prohibited?
    I was trying to use Function node, but found that it is only for functions from a DLL file.
    Will CIN be useful.? 
    LabWindows is not the same as LabVIEW. LabVIEW cannot call .lib files. LIB files are intermediary products and you need to use a wrapper DLL that's compatible with the object format of the .lib file. It's as simple as that. LabWindows creates C application and from that perspective is no different than a regular C
    compiler. That's why you can call .lib files because that's how .lib
    files are used.
    A CIN, as pointed out, is something completely different and will not help you.  

  • Calling two  BAPIs from single input field from Webdynro for ABAP

    Hi experts ,
    here i hve a small problem .
    i hve two BAPIs , both  having olly one import parameter and hving messages as the export parameters .
    so how i hve to call them , give the correct method .
    thanks in advance
    setu

    Refer to this thread
    How to call two Bapi with same inputfield in webdynpro application

  • How to make the Commit after calling a BAPI from SE37 ?

    Hi
    When i use a BAPI for update some SAP table i always call the BAPI inside a program and then i call the BAPI_TRANSACTION_COMMIT for made the changes and validate them
    Bot now i need to test the BAPI directly in SE37 , and the BAPI returns the sucess message but i can not see the changes in the SAP tables , i guess i need to make the Commit but how can i do this ? 
    by calling the BAPI_TRANSACTION_COMMIT directly in SE37 after the call to the other BAPI  ?
    Thanks
    Frank

    se37 > clear the field of the function module name
    menu path: Function module > test > test sequence and give you FM's sequence you want to test

  • Calling custom BAPI from VB/VBA

    Hello, all,
    I have written a custom business object and its associated function module.  I can single-test the business object inside native SAP, and it works successfully.  I can also establish a handle to the business object from VBA (using the .GetSAPObject method of the BAPI control object.)  I can't call the method of the custom BAPI, though--I get error message "UploadResults is not a BAPI method."  (UploadResults is the name of both my business object and the method of the business object.)  Here's my source code:
    Sub UploadChemToSAP()
    Dim gConnection As Object 'global connection object
    Dim oBAPICtrl As New SAPBAPIControl
    Dim oBAPIService As Object
    Dim boFunction As Object, boResults As Object, boReturn As Object
    'Set up connection object for SAP.  Note that the SAP BAPI ActiveX object must be available on the form or otherwise.
    Set gConnection = oBAPICtrl.Connection
    'Log in to SAP.  Seems like passwords must be in uppercase.  There are examples of people defaulting some (or all)
    'of the login values
    gConnection.logon
    Set boFunction = Nothing
    Set boResults = Nothing
    Set boReturn = Nothing
    Set oBAPIService = oBAPICtrl.GetSAPObject("UploadResults")
    Set boReturn = oBAPICtrl.DimAs(oBAPIService, "UploadResults", "Return")
    'Log out of SAP.
    gConnection.logoff
    End Sub
    To my knowledge, I have released both the business object and its associated method.  The function module has been released, too.  Any suggestions on where to go from here? 
    Thanks in advance,
    Eric

    Hey,
    Please check the "Processing Type" of the function module implementing the method. It should be a Remote-Enabled module.
    Kiran

  • How to call BAPI from ABAP Inbound Proxy

    Hi All
    Can some one provide/giude  a sample code on how to call a BAPI from generated Method (Inbound Proxy) and how are the table parameters passed from Proxy to BAPI.
    Thanks
    Ravi/

    Hello Ravi,
    In the proxy before calling the BAPI, construct the table, fill it with the appropiate values by lopping over the proxy request object. Now use this table for calling BAPI
    Cheers,
    Naveen

  • Calling BAPI from Portal Service

    Hi all,
    I have created a KM custom property renderer, what includes a Portal Service.
    Now, I would like to call a BAPI from the renderer component using JCO.
    Does anybody how or whether that works?
    Or does anybody have a sample code how to call a BAPI using JCO from a portal service?
    Thanks
    ISmail

    Hi,
    This is possible.
    Please see the following documentation:
    [http://help.sap.com/saphelp_nwpi711/helpdata/en/48/634503d4e9501ae10000000a42189b/frameset.htm|http://help.sap.com/saphelp_nwpi711/helpdata/en/48/634503d4e9501ae10000000a42189b/frameset.htm]
    Regards,
    Zohar

  • Call BAPI from VBA (access 2007)

    Dear Experts
    how can i call a BAPI from Visual Basic (in MS Access 2007)
    i want to call the BAPI  -> BAPI_SALESORDER_CREATEFROMDAT1
    please help

    Hi, how are you?
    Look, it's easy to do a rfc call to SAP.
    But, if you look in the Netweaver Developer Studio 7.1, the SAP CONNECTOR is deprecated. So, my recomendation is to convert your RFC's to Web Services, and consume them like that, you won't have any problem with SOAP.
    Regards,
    Sebastiá

Maybe you are looking for

  • Performanc​e and W/R-Queue problems

    I'm new to NICAN programming and I'm in trouble with some weird behaviour: To measure bus-load with "KVASER Navigator" i wrote a simple program that sends very quickly a great number of frames. The first thing i noticed is the poor performance, reach

  • HKey error message when downloading Adobe reader 9

       When trying to download the newest Adobe Reader I keep getting this error message...HKey_local_machine\software\microsoft\windows\current version\run\optional\components\Imail.   verify you have sufficient access to that key.  What does it mean?  

  • Function of the users in Oracle10g !

    Dear Friends , Would any body plz tell me in Oracle10g , what is the function of each user ? For example , OUTLN user uses for the Stored Procedure , like this , what are the other users function ? SQL> select username from dba_users; USERNAME MGMT_V

  • Can Lightroom export a layered TIFF?

    I have hundreds of layered PSDs that I need to convert to Tiffs but need to maintain the Layers inherent in the orginal PSDs. Will LR4 export do that or do I need to create an action in PS CS6 to do it Message title was edited by: Brett N

  • Information about Generic MDB with Ejb2.1

    The version ejb2.1 suggests WE can create MDB without JMS. Can any one suggests me some documents and some sample programs related TO Generic MDB with ejb2.1