Backend adapter (BAPI Wrapper)

hi all,
i created a data object in the DOE called USER and set his direction proprety to "Download Only" with 2 BAPI Wrappers (GETLIST,GETDETAIL) to check if a simple scenario work and go on from there.
everything worked very well.
now i want to add a new BAPI Wrapper which is CHANGE.
for this to happen i need to change the direction propery in the data object to "BI-Direction" and add the new BAPI Wrapper to the backend adapter.
i can't figure out how to change the direction property to "BI-Direction" as the radio buttons are gray and can't be changed.
also the place where i put the BAPI Wrapper in the backend adapter is also gray and can't be changed .
my only option is to delete the data object,DM and rule (which in this case in the whole scenario) which i don't want to do.
is there a possible way to change the data object direction property in more easy way?
regards,
Roi Grosfeld

Hi Roi,
Thats the expected behaviour. The reason is that, you have an active backend adapter, which is mapped for only getlist and getdetail (download only). If you are allowed to change the direction to bidirectional, then the backend adapter may not function well. Thats the reason why its disabled and you are not able to change the direction. If you want to do so, you can delete the backend adapter and then you will be able to change the direction of the Data Object. Then you just need to create the backend adapter again and do that mapping for all the BAPI's -- getlist, getdetail, create, delete(optional), modify(optional).
Hope this helps,
Regards,Vinodh

Similar Messages

  • Mapping tool: mapping child nodes (level2 hierarchy) to bapi wrapper fields

    Hi,
    I'm new to MI7.1. I'll try the demo on help.sap.com. I have following data object EQUIPMENT with node structure in DOE:
    ROOTNODE (attr: EQUIPMENT_ID/ SERIAL_NO)
       child node level 1 DETAILS (attr: SERIAL_NO/TYPE/BRAND/INSTRUCTIONS)
           child node level 2 LOCATION (attr: SERIAL_NO/ADDRESS_LINE1/
    ADDRESS_LINE2/ZIP_CODE/...)
    In backend my bapi wrapper is build using structures:
      TOP: ZSEQUIPMENT (attr: EQUIPMENT_ID/SERIAL_NO)
      010: ZSEQUIPMENT_DET(attr: SERIAL_NO/TYPE/BRAND/INSTRUCTIONS)
      020: ZSLOCATION(attr: SERIAL_NO/ADDRESS_LINE1/...)
    When i want to use mapping tool in middleware for the backend adapter, after mapping the fields, during activation i get the error:
    Referential integrity between node DETAILS and it's parent is not complete.
    Referential integrity between node LOCATION and it's parent is not complete.
    What does that mean? How can I solve this?
    thanks
    Peter

    Solved it myself with explicit key mapping. thanks anyway

  • Backend Adapter Activation error on providing Instance Push Function

    Dear Experts,
    We want to create Backend Triggered Adapter. We were able to successfully activate it BUT when we tried to put "Instance Push Function" and then try to activate then its throws following error:
    Unable to get the structure type of  in bapiwrapper  (adapter: <Backend Adapter Name> )
    And then Backend Adapter becomes Inactive.
    Can anyone please try to help me out?
    DOE Server Version is 7.1 with Support Pack 7.
    Thanks and Regards,
    Gopal

    Dear All,
    First of all sorry for soooooo late response. Got stuck in some other work.
    We are still stuck at the issue. "Check" did not result in any error in Backend Adapter Screen.
    There is no "GetDetail" BAPI Wrapper defined in Backend Adapter. Is that a must for Push Functionality?
    And one more point. There was no problem in Activation and Generation of Node Structure and DATA Objects.
    Its only that Backend Adapter is not getting activated when it is Backend Triggered AND when Instance Push Function is specified.
    DOE Triggered Backend Adapter or Backend Triggered Backend Adapter without Instance Push function is working fine and they are getting activated and generated.
    Thanks and Regards,
    Gopal
    Edited by: Gopal on Sep 17, 2009 6:58 PM

  • Instance Push doubt about getList bapi wrapper

    Hi guys.
    Another question: Is necessary to implement getList and getdatails bapi wrapper in backend adapter whose Synchronization  Type backend trigerred  and Direction only download?

    Hi,
    It is not mandatory to have both GetList and GetDetail.
    If you have only one structure in your BAPI, which is a header/root node and if you return the whole instance rather than just the backend key, then only GetList BAPI wrapper is enough.
    But if you have root node along with some child nodes, then you need GetList and GetDetail both. Getlist returning either just Backendkey or whole root node and then a GetDetail which returns whole root along with all child nodes.
    Regards,
    Siva.

  • Delete bapi wrapper with multi node object

    In delete bapi wrapper how do I discover if only the subnode was deleted ?.
    Because the user can delete operation of  the orderm and operation is subnode of object Orderm.

    Hi esoliveira ,
    Ex:  OrderHeader (Root)
                          --- OrderItems (Child level1)
    OrderSubItems  (Child level2)
    In this scenario, MODIFY will be called when
    1--> Root is updated
    2--> Child1 is updated/Deleted.
    3--> Child2 is updated/Deleted.
    Ex:  When you delete  OrderSubItems(Child2) on client and sync, DOE will call MODIFY BAPI pasing only OrderHeader(Root) and OrderItems(child level1).   Your MODIFY BAPI should have code/logic  to upate Root,OrderItems and delete OrderSubItems.
    Only when you delete OrderHeader on client and sync, DOE will call call the DELETE BAPI by passing the primary key of root(OrderHeader).  Your DELETE BAPI should have the logic to clean the child tables (OrderItems and OrderSubItems)  and then delete the root(OrderHeader) in the Backend.
    Regards
    Rohith

  • BAPI WRAPPER

    Hi,
    I'm facing a new problem concerning Bapi wrapper when i try to insert new data.
    Actually, i get a message from the DOE, telling me that the bapi wrapper does not return any header key.
    The problem is that, the primary key in the backend table is a composite primary key. Therefore, no primary key is generated while datas are inserted.
    Is there any way to dodge this problem ?
    Thanks

    Hi,
    I understand that you are trying to create a new entry in backend via DOE.
    Create BAPI wrapper is invoked passing these keys generated in custom service.
    Is this data getting inserted correctly in the BE table?
    The create BAPI wrapper's Exporting parameterlist will be containing the header keys (multiple keys in your case).
    I suppose these keys given there will be available when Create BAPI is executed(even if they are generated in custom service and given to BE)
    These keys in exported parameter list should be filled in proper values..
    Are you seeing these filled already?
    Regards,
    Liji

  • Unable to activate backend adapter

    Hi all,
    I'm using SAP Netweaver Mobile 7.1.
    I'm trying to create some data objects defining their related Backend Adapters (using standard BAPIs).
    When I try to activate them I've got always the same errors:
    Only flat structures and fields of structure allowed in bapiwrapper.AD_TELNRCL-
    Only flat structures and fields of structure allowed in bapiwrapper.AD_SMTPADR-
    Only flat structures and fields of structure allowed in bapiwrapper.AD_PSTCD1-
    Only flat structures and fields of structure allowed in bapiwrapper.LAND1-
    Only flat structures and fields of structure allowed in bapiwrapper.REGIO-
    Only flat structures and fields of structure allowed in bapiwrapper.AD_MC_STRT-
    Only flat structures and fields of structure allowed in bapiwrapper.AD_HSNM1-
    Client specific data object is mapped to client independent BAPI Wrapper
    Does anyone have any suggestions?
    Thanks and regards,
    Laura

    Hi,
    Check the following.
    1) In getList check whether the structure of (exporting or tables) parameter
        have any non flat data types.
    2) In getDetail check whether structure of (exporting or tables) parameter have non flat structure(i.e. AD_TELNRCL, AD_SMTPADR...)
    3) Also check structures of importing and tables parameter of Create, modify bapi wrappers.
    Note: if these structures has included any other structures, then look for non flat data types in those structures.
    Regards,
    Dhana
    Edited by: Dhanasekhar Karuppanan on May 19, 2009 12:24 PM

  • To create BAPI Wrapper for Sales Order Creation

    Hi Experts,
    I'm working upon MI 7.1 to create mobile application for creation of sales order.
    I've to create Sales Order BAPI Wrapper (Getlist, Get Detail & Create) using Standard BAPI's (BAPI_SALESORDER_GETLIST & BAPI_SALESORDER_CREATEFROMDAT2).
    Kindly guide me for how to proceed with the above. Which all other BAPI's do I require except above?
    PS: I was trying to call standard BAPI's but while executing the BAPI Wrapper it asks about Customer No. & Sales Org. then only I'll get the output.
    my requirement is I should get list of all the sales order's existing in the Back-end, once I execute the BAPI Wrapper.
    Romi

    Hi,
    if it comes to bapis on the backend, there are not so many changes from MI7.0 to MI7.1 as in the UI for example. So you still need the backend adapters like GETLIST/GETDETAIL/CREATE as they where necessary in 7.0.
    If you need an example on how these should look like - do you have a full blown backend available? Have a look if you can find the following BADIS in SE37 in the backend: MAM30_050_GETLIST. If you can find this one, have a look how it is working. That one should help you to get an idea on how the replication is working and how the complete stuff works. The create should be straight forward development then.
    You furthermore can have a look into the URL mentioned aboveand as well in the complete MI7.0 dokumentation if you take it just to get a general idea on how the stuff works. But the URL mentioned above should be enough in a normal case.
    Regards,
    Oliver

  • BAPI and BAPI Wrapper

    Hi All,
    I would like to know the difference between a BAPI and a BAPI Wrapper in detail.
    I would also like to know the procedure to create the various types of BAPI Wrappers- Getlist, GetDetail, Create, Modify and Delete.
    regards,
    Sunil

    Hi Sunil,
    Conceptually, BAPIs and BAPI wrappers are the same. BAPI wrappers, like BAPIs also must have a standard interface. THey are also RFC enabled FMs and like BAPIs they can comprise of the backend applciation business logic. They can also comprise of calls to Web services.
    You can easily create BAPI wrappers - GETLIST, GETDETAIL, CREATE, MODIFY and DELETE from the DOE workbench (SDOE_WB transaction) using the BAPI wrapper wizard, available under the Utilities menu.
    Once you create the BAPI wrappers, you can compare them with BAPIs and you will see that they are the same. Of course this is under the assumption that you are using MI 7.1.
    You do not need specific OO knowledge for creating BAPI Wrappers.
    Regards,
    Wenonah
    Edited by: Wenonah Jaques on May 9, 2008 7:44 AM

  • Problem in deleting Backend adapter

    Dear All,
    When i am trying to delete a backend adapter, it is throwing an error like "Local logical system not defined".  Can you please tell me what could be the problem.
    Regards,
    Kiran.

    Hi gaurav,
    It was a good response from your side.
    I have gone through the FAQ but could not able to find anything.
    Can you please help me out in this regard ?
    Also i am using select query of this kind,
    SELECT
    SEFVHRC.VHRBRCD,SEFVHRC.VHRCUCD,SEFVHRC.VHRVIN,SEFVHRC.VHRMOCD,SEFVHRC.VHRCHAS,
    SEFVHRC.VHRSLOR,SEFVHRC.VHRDIVI,SEFVHRC.VHRMGCD,SEFVHRC.VHRMOCH,SEFVHRC.VHRVHTY,
    SEFVHRC.VHRBDTY,SEFVHRC.VHRMFYR,SEFVHRC.VHRMOYR,SEFVHRC.VHRMODS,
    SEFVHRC.VHRMDTL,SEFVHRC.VHRCLBR,SEFVHRC.VHRRCID,SEFVHRC.VHRARDT,
    SEFVHRC.VHRLUTM,SEFVHRC.VHRLUDT,SEFVHRC.VHRKEYN,SEFVHRC.VHRCTORN,
    SEFVHRC.VHRCTIMP,SEFVHRC.VHRPRDT,SEFVHRC.VHRPRDT,SEFVHRC.VHRRCDT,
    SEFVHFT.VHFCLCD,SEFVHFT.VHFCAT,SEFVHFT.VHFCADSC,SEFVHFT.VHFKEY,SEFVHFT.VHFTEXT1,
    SEFVHFT.VHFTEXT2,SEFVHFT.VHFTEXT3,SEFVHFT.VHFTEXT4
    FROM
    SAPTESTLIB.SEFVHRC,SAPTESTLIB.SEFVHFT
    WHERE
    SEFVHRC.VHRVIN = SEFVHFT.VHFVIN AND SEFVHRC.VHRSTTS = ' '
    and update query of this kind,
    Update SEFVHRC SET VHRSTTS = 'R' WHERE VHRSTTS = ' '
    I am using prity big select query. is there any option to optimize it?
    Can you please help me out in solving this problem
    urs,
    Soorya

  • How to pass table values in Create Bapi Wrapper

    Hi All,
           Am using create BAPI  Wrapper in that how to map the fields inside BAPI  Import Structure .
    Thanks&Regrads,
    Arun

    Hi,
    Am using standard RFC " QIBP_INSPCHAR_SETRESULT "  for creating result recording in SAP QM. And BAPI_INSPOPER_GETDETAIL for getdetail i want to create BAPI wrapper for these 2 i already created BAPI wrapper for get detail . I dont know how to create Create BAPI wrapper.
    In QIBP_INSPCHAR_SETRESULT am passing inupt
    INSPLOT      LIKE         QALS-PRUEFLOS
    INSPOPER     LIKE     QAPO-VORNR
    INSPCHAR     LIKE     QAMV-MERKNR
    INSPSAMPLE     LIKE     QASV-PROBENR
    CHAR_RESULT     LIKE     BAPI2045D2           
    so i want to know how i can pass    1 . CHAR_RESULT structrue values
                                                               2.  INSPLOT,INSPOPER,INSPCHAR again repting inside CHAR_RESULT so how to map these
                                                                    in SDOE_WB
    Pls explain how to create BAPI Wrapper for this and how to map details.

  • GETLIST BAPI Wrapper for Purchase Requisiton

    HI All,
    I want to know the GETLIST BAPI Wrapper for Purchase Requisition in ECC 6.0 . I am able to find GETDETAIL but not GETLIST.
    It would be nice if anyone could help me out in this.
    Regards,
    Madhu.
    Edited by: madhu kv on Jul 8, 2008 10:53 AM

    In that case you could just write your own custom function module to do it.  All you need to do is write a simple select statement to return a table of document numbers.  It shouldn't take more than an hour to have it all up and running.  You could add a parameter to the interface so that it either returns just a list of document numbers or if the parameter is set, it calls GET_DETAIL for each document and returns the full data.
    Good luck

  • UR: Regarding BAPI Wrapper

    Hi SDN.
    there is a standard bapi BAPI_PO_GETITEMSREL.
    I created an RFC ZBAPI_PO_GETITEMSREL.... But i want 2 know whether the RFC i created is said to be a BAPI Wrapper or not ???
    because actually i'm in need of BAPI Wrapper.
    here is the code ....
    FUNCTION ZBAPI_PO_GETITEMREL.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(I_REL_GROUP) LIKE  BAPIMMPARA-REL_GROUP OPTIONAL
    *"     VALUE(I_REL_CODE) LIKE  BAPIMMPARA-REL_CODE OPTIONAL
    *"     VALUE(I_ITEMS_FOR_RELEASE) LIKE  BAPIMMPARA-SELECTION DEFAULT
    *"       'X'
    *"  TABLES
    *"      ET_PO_HEADERS STRUCTURE  BAPIEKKOL
    *"      ET_PO_ITEMS STRUCTURE  BAPIEKPOC
    *"      RETURN STRUCTURE  BAPIRETURN OPTIONAL
    if I_ITEMS_FOR_RELEASE is initial.
    CALL FUNCTION 'BAPI_PO_GETITEMSREL'
    EXPORTING
       REL_GROUP               = I_REL_GROUP
       REL_CODE                = I_REL_CODE
       ITEMS_FOR_RELEASE       = ' '
      TABLES
        po_headers              = ET_PO_HEADERS
        po_items                = ET_PO_ITEMS
       RETURN                  = RETURN      .
    else.
    CALL FUNCTION 'BAPI_PO_GETITEMSREL'
    EXPORTING
       REL_GROUP               = I_REL_GROUP
       REL_CODE                = I_REL_CODE
       ITEMS_FOR_RELEASE       = 'X'
      TABLES
        po_headers              = ET_PO_HEADERS
        po_items                = ET_PO_ITEMS
       RETURN                  = RETURN      .
    ENDIF.
    ENDFUNCTION.

    Hi,
    to use it with MI you need to have:
    GETLIST
    and
    GETDETAIL
    warpper. Check the documentation in MDK to have a better understanding of the complete process. There is a good example for this and you can take the code from there and change it to your needs.
    The single code you send will not help you any further cause it is missing the clear structure between GETLIST and GETDETAIL - that is standard MI behaviour and necessary for correct results. Without this you even can not create any SyncBO in MEREP_SBUILDER.
    Hope this helps to bring you any further.
    Regards,
    Oliver

  • Runtime Error when generating Backend Adapter

    Hi All,
    I have a problem when im trying to generate a backend adapter for a data object with two nodes. it is just a simple data object with a root node and a child node having sales order header data & item data.
    when im trying to activate i get a runtime error which is listed below.
    Runtime Errors         DBIF_RSQL_SQL_ERROR
    Except.                CX_SY_OPEN_SQL_DB
    What happened?
        An exceptional situation has occurred in the ORACLE software,
        possibly due to an error.
        This is not an error in an application program.
    actual source code trigger location: modify seocompodf from table modify_seocompodf.
    Please help me with this if possible.
    Thanks & Regards,
    Malinda

    Hi Malinda,
    Below link would be usefull:
    http://sap.ittoolbox.com/groups/technical-functional/sap-basis/runtime-error-dbif_rsql_sql_error-2649777
    Above link mention why problem is coming
    Runtime Errors DBIF_RSQL_SQL_ERROR & Exception: CX_SY_OPEN_SQL_DB
    According to above link, its problem with database and your Basis team to set up the database according to the note 1005758. It will definitely solve your problem.
    Regards,
    Abhishek Joshi

  • MAS_CUSTOMIZATION fails to generate backend adapter related classes

    Hello experts,
    During sdoe mobile sales software component generationg, I got an syntax error during MAS_CUSTOMIZATION backend adapter related classes generation, which reports syntax error. The error messages are
    -Class ZDOECL_013_001_0_BW, Method MAP_TO_MBO
    -Field "LS_" is unknown. It is neither in one of the specified tables nor defined by "DATA" statement.
    So, What may cause this issue?
    Thanks.

    Hi,
    Report: SDOE_MOBILESALES_CONFIGURATION was not executed successfully. Metadata of the model is in inconsistent state.
    So, to get back the metadata to correct state please perform following steps.
    1. Goto transaction SE37
    2. Execute function module SDOE_REPAIR_MOBILE_SALES with OLD_GEN value as 'N'.
    3. After successful execution of thie function module
    4. Goto transaction SE38
    5. Execute report: SDOE_MOBILESALES_CONFIGURATION by providing RFC destination name which is configured to CRM system. (User whoever executing this report should have authorizations to login to CRM system using RFC destination).
    6. Wait until queue: DOE_MASS_ACTGEN completes.
    Raise an OSS message if you get any problem after step 6.
    Regards,
    Siva.

Maybe you are looking for

  • Whats the difference between the Flash Player runtime and Adobe AIR runtime?

    Hey all. I've been into coding for about 5 years now, but I'm a recent convert to Flash development. One of the questions I have at the moment is, considering that SWF files can be run by either Adobe Flash Player OR Adobe AIR, what's the real differ

  • Regarding the alert Message when i try to close the window

    Hi All, I am trying to give the alert message when the user tries to close the window. For this i have coded a jsp in which i have written <html> <head>Test in the Page Ajay</head> <body onUnload="alert('Test UnLoad')"> </body> </html> and in the por

  • Cisco Gateway constantly disconnecting, logs aren't helpful

    This has been going on for weeks, already talked to support who walked me through the usual power cycling, the morning the tech came out there was no problem, he found nothing wrong, I asked him to not swap it out, then later problems started happeni

  • [SOLVED] Qt 4.7 - 4.8 and bad fonts hinting.

    Hi, since the upgrade to qt 4.8, font rendering of qt applications seems very bad to me. Before the upgrade, firefox and konqueror looked the same, here is now, I tried in graphicssystem native and raster: http://ompldr.org/vYnZ2Mw/firefox1.png http:

  • Elements in JPanel not painting when positioned absolutely

    I am designing a superclass that extends JPanel which will have methods like addTextField(int x, int y, int w, int h). Basically it just creates the named component at the given coordinates, positioned absolutely on the panel. Here's the important sn