No node created when calling BAPI !!!

Dear All,
I am making a demo Web Dynpro in which I m trying to use BAPI
BAPI_EQUI_GETDETAIL 
For doing this I have done the following steps (as per stated in Tutorial 2):-
1. Left-Click on the Web Dynpro Name
2. Create -> Service Call
3. A wizard Starts
4. Selecting Use Existing Controller and in controller given (COMPONENTCONTROLLER) and continue
5. Then Selecting Function Module and continue.
6. Now Giving name of the BAPI (BAPI_EQUI_GETDETAIL ) and leaving Destination blank and continue.
7. Continue the next screen (ADAPT CONTEXT STEP) without making and changes.
8. Giving Method name as EXCUTE_BAPI_EQUI_GETDETAIL
and continue to the next step.
9. Complete.
Now the problem is as shown in the tutorial 2 no impoting and exporting nodes are coming in the CONTEXT.
I have checked the Attributes tab there everything is reflected but not in the context.
The only thing which I m getting is :-
CONTEXT
     |----
BAPI_EQUI_GETDETAIL
Please help me and guide me what to do to resolve this.
Thanks and Regards,
Rachit Khanna

Hi Rachit
In the step 7(adapt context) select Object type as Context(node/Attribute).
You will get all the parameters in context.
Regards
Naresh

Similar Messages

  • Simsession short dump when calling BAPI

    Hello,
    I have created a macro in Demand Planning that calls BAPI_APO_AVAILABILITY_CHECK.
    When running this is SE37 or SE38, everything works fine. But when calling this from //SDP94 I got a shortdump, because the BAPI wanted to create a simsession, but there was already an existing simsession.
    Do you think, this is an error in the BAPI, or do i have to handle this in the calling FM?
    Would this be the right approach:
    FM "Z_TEST"
    CALL FUNCTION //RRP_SIMSESSION_GET         -
    Save SIMSESSION from DP
    CALL FUNCTION //RRP_SIMSESSION_LEAVE     -
    Clear Simsession
    CALL FUNCTION //BAPI_APO_AVAILABILITY_CHECK
    CALL FUNCTION //RRP_SIMSESSION_SET         -
    Set old SIMSESSION back
    I do not understand the purpose of the SIMSESSION, so I rely on your comments and help.
    Thanks for any feedback,
    BR,
    Dominik

    Hi Domink
    Simsessions are simulation sessions or work areas for transactional live cache data. You must create a simsession in order to retrieve and work with data from live cache. When finished you should close the simsession however most times the end of a LUW will delete the simsession. If data created/changed in a simsession needs to be saved an explicit LC commit may be required but in most cases that is taken care of within SAP code. In fact, the leave simsession fm will determine that data in the simsession has changed and ask if you want to save.
    I am not sure if you can get around the simsession creation problem in the ATP BAPI. If you had control over the code such as in a Zfunction module you could either not create the simsession or force a merge of simsessions. Do not code the leave simsession because that will delete (rollback) or force the save of the changed data from your planning book before you entered the macro - in addition when you return to your planning book from the macro there will not be a simsession for you to save or change data.
    Why are you running ATP from within a DP planning book? Are you looking for what stock is available to update another KF? Do you need to run through the entire ATP process to retrieve an available qty or can you use a simpler function module to retrieve the stock? Another option is to read the planning book in a stand alone program, do the ATP check and whatever logic is necessary before writing back to the planning book.
    Hope this helps
    Andy

  • Issues with a Z field in an append structure of VBAP when calling BAPI

    We have added a Z field on table VBAP with an append structure. It is a flag field. We want to change its value with the BAPI BAPI_SALESORDER_CHANGE. We have also created the append structure in API structures
    THe return message of the bapi gives us a success message for the modification. But when we go to the se16 we still see the field as blank, not with the X suposed to be there.
    We are succesfully calling the BAPI_TRANSACTION_COMMIT.
    What can cause us this problem? What can we do to solve it??
    Thank you!
    Artur.

    Hi Artur,
    this blog could help you:
    [Updating custom fields on VBAP and VBAK using BAPI_SALESORDER_CREATEFROMDAT2|/people/kevin.wilson2/blog/2009/09/30/updating-custom-fields-on-vbap-and-vbak-using-bapisalesordercreatefromdat2]
    Regards,
    Andrea

  • JCO error when calling BAPI

    Hello guys,
    I have an scenario R3 -> XI -> R3.
    From the first R/3 we call a function in a program to execute a BAPI in the second R/3, so the BAPI doesn't exist in the R/3 that starts the interface.
    We have configured the TCP/IP connection and with the same program ID in the Sender RFC adapter. All the connectios are running successfully but when we execute the program we have the error:
    JCO.Server could not find server function 'Z_TEST'
    Do you know if the BAPI has to be created in both systems, or it's only necessary in the R/3 destination to run.
    All connections are running so the question is what we remarked before, the BAPI must be created in both R/3 systems?
    Regards,
    Xavier.

    Hi Xavier,
    strange, i answered to a very similar question a hour before, there was no reaction by Gerardo Mondragon .
    How can the sender adapter get the metadata? If the FM is just in the receiver system? Maintain the meta data connection at Communication Channel to the receiver system...
    Regards,
    Udo

  • Internationalization when calling BAPI in webdynpro

    Hi all,
    We are developping a multi-lingual application connected to a R3 backend with adaptive RFC model.
    When using RFC model we have to create JCO destinations.
    These JCO destinations need a user and an language. So no matter what we do, the text elements and dictionary metadata are returned in the language of the destination user.
    How can we managed to handle various language without having to create specific BAPIs with language parameter ?
    Regards,
    Sylvain

    Hi Sylvani,
    u can use SAP Enterprose Connector instead of JCo's.
    in the sap enterprise Connector we will pass the login credentionals at the runtime.so have an options to
    pass the language also.
    hope this will helps to u
    with regds
    Naidu

  • Two Incidents created when calling the AppsLogger createIncident method

    when trying to create the Incident using the below method AppsIncidentInfo createIncident(Object pThis, String pAppShortName, String pMessageName, Map<String, Object> pMap, Throwable pException) of class AppsLogger.java (Line No:745 /jdeveloper/jdev/oaext/oracle.apps.fnd.applcore-src.zip!/oracle/apps/fnd/applcore/log/AppsLogServiceImpl.java),
    it is creating two incidents with same Error Message. But it is suppose to create only one Incident
    when debug this above method it is calling the AppsIncidentInfo write(Object pThis, MessageVORow pMessage, Map<String, Object> pMap, Throwable pException) method iof class AppsLogServiceImpl.java
    ( /jdeveloper/jdev/oaext/oracle.apps.fnd.applcore-src.zip!/oracle/apps/fnd/applcore/log/AppsLogServiceImpl.java). In Line No 377 of class AppsLogServiceImpl.java it is creating the incident. And again in Line No 1542 of class AppsLogServiceImpl.java also it is creating Incident.
    Could anyone please suggest whether this is the expected behavior or do we need to restrict the second Incident creation in Line No 1542 of class AppsLogServiceImpl.java with condition
    if (_checkIncidentMarkerExists(pMessage) == false).
    Edited by: 902796 on Feb 2, 2012 4:26 AM

    You are sure you are in the right forum?
    Looks like OA {forum:id=210}
    Timo

  • Error when calling BAPI from web dynpro

    Hi,
    I have a program that calls a BAPI to retrieve data. The problem is that i have the following error message:
    com.sap.dictionary.runtime.DdException: 'WD_RFC_LOADBL_META' not properly defined! Unable to create Metadata connection for Dictionary Provider. Either the logical System Name 'WD_RFC_LOADBL_META' has not been properly defined in the System Landscape Directory, or you are not using a MsgServerDestination (AppServerDestinations are not permitted for Metadata connections)
    I have created a JCOP connector and tested it, everything works fine, but the application is not working.
    Any helpfull ideas ??
    Thanks a lot.
    Thibault Schalck

    I have checked again the parameters, have updated the logon group to PUBLIC and now I have this error message:
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=sapdevnova GROUP=PUBLIC R3NAME=NO1 MSSERV=sapmsNO1 PCS=1 LOCATION CPIC (TCP/IP) on local host with Unicode ERROR service 'sapmsNO1' unknown TIME Fri Feb 06 16:23:15 2009 RELEASE 700 COMPONENT NI (network interface) VERSION 38 RC -3 MODULE ninti.c LINE 530 DETAIL NiPGetServByName2: service 'sapmsNO1' not found SYSTEM CALL getservbyname_r COUNTER 1
    I have no idea what this means...

  • Regarding Nodes created when creating a model from RFC

    Hi All
    When we create a model from RFC suppose FlightBook RFC, then node is created one as FlightBook_Input, and one as FlightBook_Output.
    Inside flightBook_input we have nodes and value attribute which we use to pass the data and also for output, but i still dont know what flightbook_output signifies and how we can use it
    Thanks & Regards
    Sandeep

    >>Inside flightBook_input we have nodes and value attribute which we use to pass >>the data and also for <b>output</b>
    How is that? You should always use model class assigned to relation "output" to get RFC FM result. BTW, don`t forget to invalidate it.

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

  • Executable created in LabVIEW 7.1 containing Call Library Function Node runs but creates error when Call Library Function Node is executed

    I have created a simplee application that controls a piece of equipment with all control via a supplied dll.  Hence, there are a number of Call Library Function Nodes within the code and a modicum of other LabVIEW code.  Everything works fine as a LabVIEW application, but when converted to an executable, although the application runs and functions, as soon as any Call Library Function Node is executed, calling from the dll, I get the C++ debug error in the attachment.
    Is this something that I can solve from within LabVIEW, or is the problem likely buried in the dll?
    Damian
    Attachments:
    CLFN error.JPG ‏22 KB

    Hi Wise,
    Try building an executable from a very simple VI that makes one call to the dll. Have you also try using the Call Library Function node on other simple dlls that you know will work?
    Regards,
    Stanley Hu
    National Instruments
    Applications Engineering
    http://www.ni.com/support

  • NIEHOST_UNKNOWN error when calling any CREATE BAPI

    Dear all,
    I have a .NET application that will create sales order in SAP by exposing the "create sales order" BAPI WSDL to SAP. However, when the .NET application got executed, nothing was returned back to the .NET app. And when I checked the trace file in ICM, the following error message is displayed:
    [Thr 3496] *** WARNING => Connection request from (0/1/0) to host: P25214, service: 1090 failed (NIEHOST_UNKNOWN)
    [icxxconn.c 2114]                                                                               
    However, when the .NET application consume the web services from SAP with Getting the sales order data (GETLIST and GETSTATUS), data is returned back to the .NET application. Are the setup in ICM any different between  the different interfaces (meaning, are there differences between an inbound and an outbound communication?)?
    The current setting in ICM is: I have activated RFC and SOAP.
    Any help on this is greatly appreciated.
    Thanks!
    Cheers,
    Cyanna

    By using transaction OAC0, delete the entry HME_CONTENT then by using transaction OACT, delete the entry HME_CONT. This should eliminate the following error:
    [Thr 03] *** WARNING => Connection request from (0/1/0) to host: P25214, service: 1090 failed (NIEHOST_UNKNOWN)
    [icxxconn_mt.c 2114]
    Good luck.
    Raja M. Ahmed
    [email protected]

  • How to show a jtable created when a tree node is selected in a jsplit pane

    hello,
    does anyone know how you would go about updating a jtable you have created in a split pane when the data of the jtable changes?
    i have a jtree that creates a jtable when a node is selected. i want to display this jtable in a split pane that is created when the gui is launched.
    any help appreciated. i know it has something to do with updating a table model but if anyone has any sample code of how to do this, could they post it?
    thank you.

    Hi Laura,
    When you make a selection on your JTree, what data are you send to the JTable? Is it an entirely new TableModel that gets set each time?
    If you don't already have an implementation, consider using one JTable and simply swap the models in and out on JTree selection. It's probably best to contain the JTable in JScrollPane also. Perhaps not necessary, but calls to revalidate and repaint on the JTable after setting whatever data it is you set should update what is displayed.
    Warm regards,
    Darren

  • Call BAPI to Create Invoice During PGI(VL01N) via BADI

    Hi,
    Requirement: During PGI (VL01N), we have implemented a BADI (IF_EX_DELIVERY_PUBLISH) in method (PUBLISH_AFTER_SAVE) to call BAPI (BAPI_BILLINGDOC_CREATEMULTIPLE) to create invoice simultaneously with the PGI. In DEV box, the call BAPI is working fine (invoice is created). However in QA box there is a update termination occuring in the call BAPI, thus no invoice is being created. The thing is, how do I locate why the BAPI is terminating in QA but not in DEV? Is the BADI used correct? I have searched SAP Notes related to this termination when doing PGI in VL01N. Up to now we still do not know why in DEV is okay in QA it is not.
    SAP Notes:
    782447 Runtime error SAPSQL_ARRAY_INSERT_DUPREC when posting GIs
    777409 Foreign trade: Update termination EXPIMP_POSTING
    ST22 dump analysis:
    In the source code you have the termination point in line 51
    of the (Include) program "LV50EU05".
    The program "SAPLV50E" was started in the update system.
    The termination is caused because exception "CX_SY_OPEN_SQL_DB" occurred in
    procedure "EXPIMP_POSTING" "(FUNCTION)", but it was neither handled locally nor
    declared
    in the RAISING clause of its signature.
    The procedure is in program "SAPLV50E "; its source code begins in line
    1 of the (Include program "LV50EU05 ".
    Source code:
    DESCRIBE TABLE XEIKP LINES LIN.
    IF LIN GT 0.
       INSERT EIKP FROM TABLE XEIKP.         <<< the dump is happening in this standard logic
       REFRESH XEIKP.
    ENDIF.
    Edited by: Mawi C. Ng on Sep 2, 2009 2:24 PM

    Hi,
      Based on the DUMP i can say that in the below statement :
    INSERT EIKP FROM TABLE XEIKP. <<< the dump is happening in this standard logic
    The program is trying to insert lines which have duplicate key values check the btable XEIKP at this point and see if the records that are there do they have key fields values that already exist. You can put a break-point at that statement and check.
    Regards,
    Himanshu

  • Why does the DLL function executed by call library node fail when the Vi is re-opened?

    Development System
    OS: Windows XP
    LabVIEW: version 10.0
    DLL: Custom 
    Compiler: Visual C++ 6.0
    Function Prototype: __declspec(dllexport) const char * test(void)
    We have developed a DLL for use.  The DLL compiles cleanly.  The DLL includes a function test.  The test function validates the functional capabilities of the DLL.  I have followed the examples online, and I have used the import shared library tool in LabVIEW.  The VIs created use the call library node. 
    When I create a VI calling the test function from the custom DLL using the call library node the VI executes the DLL function test flawlessly.  I close the VI.  When I re-open the VI and run it, I get an error code from the DLL.  However, if I go to the block diagram and set the path for the DLL in the configure call library node again then the VI executes the DLL function test flawlessly again. 
    I have to set the path for the DLL in the configure call library node every time I open the VI.  The examples I downloaded from the community do not require this.  What might the DLL be missing?  What am I missing? 
    Solved!
    Go to Solution.

    I think it was rather unfair of me to ask for help with my DLL issue without disclosing more detailed information.  As a corrective action, I have attached a zipped file.  The zipped file contains the entire VC++ 6.0 project for compiling the DLL, the DLL, and the VI I have been using to test it. 
    ###NOTE####
     As a prerequisite to compilation and usage of the DLL you'll need to have installed Python 26 on your system.   
    You may obtain the MSI for correct version of Python from the following location:
    http://www.python.org/ftp/python/2.6.6/python-2.6.6.msi
    ###NOTE###
    Thank you very kindly for any assistance offered!
    Thanks,
    Bill
    Attachments:
    C_DLL_PYTHON_AND_LABVIEW2010.zip ‏1685 KB

  • Fail when creating routing through bapi.

    what are the mandatrory steps to create routing using bapi fm ( bapi_routing_create )?
    when i create routing using bapi it is showing the routing is created succesfull  but it is not updating in the standard table plko .

    after bapi use commit
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

Maybe you are looking for

  • Input parameters for BAPI_GOODSMVT_CREATE --MIGO--GR for Outbound Delivery

    Hi Friends,   We have to create a Goods Receipt against an Outbound Delivery ( movement type "101" ) using the BAPI <b>BAPI_GOODSMVT_CREATE</b>. In online the user is using <b>MIGO</b> transaction for the same. There he will choose the GOODS RECEIPT

  • Unable to see the ebook in digital editions, please help!

    I puchased a ebook, it downloads fine, opens up the digital editions when it is done but then I don't see any ebook in it. I have checked the default problems and .acsm is connected to adobe digital editions. I have tried deleted temporary files but

  • Alarm not going off in Lumia 520

    Recently I updated my Lumia to WP8.1 and a couple of days later I find my alarms not going off at all, or they do so on random days. It is really a big issue for me cuz I have to wake up early quite often and without an alarm its impossible. Please d

  • How to put javascript function to AIR

    Hi, first I had Flex web application with onet javascript function in index.html file. Now I copied my code from web project mxml file to AIR project and it working properly. How can add this javascript function now. There is no html file now... EDIT

  • Bug In My Display

    Hello, I recently noticed a very small bug crawling on what I though was the front of my display. I tried to brush it off but it seems as if it is inside the display, I'm not sure at what level. I was wondering if anyone has had anything like this ha