Delete Bapi Structure of a SyncBo

Hi, i need to delete a structure (040) of a SyncBo, i did this by the next code:
SyncBo syncBo = getSyncBoInstance("Y01_ORD_TR", topSyncKey);
SyncBoDescriptor sbd = syncBo.getSyncBoDescriptor();
RowDescriptor trd = sbd.getRowDescriptor("040");
Row row = syncBo.getRow(trd,syncKeyToDelete);
syncBo.deleteRow(row);
With this code appears in the merep_mon a "M" message for the TOP structure, and for the 040 structure a "D" message, but it doesn't call to the Bapi "Delete", what can i do to the Bapi Delete is executed ?
Thanks.

Hi,
if you send M and D , then form client side it is okay I think.
Why do you say the delete is not called? Is the information still on the device? What is the state of the BO? And have you inserted a LOG writer into the Backend BADI for delete - so you see what happens there? DEBUG of that remote stuff is nbot really possible or very tricky in MI - i know. But I think the problem is not the code you mentioned, because the m and the D method are the thing we expect.
Either the GETDETAIL handler still gives that information down. What is the type of the BO? Perhaps you have an Add for that item with one of the next syncs, because the information is still on the MW?
- please check the sync state of the item
- what information is send down to the client for that item?
- can you implement a logging for the delete and confirm that it is really not called (I think it is called)
Hope this helps to get any further.
Regards,
Oliver

Similar Messages

  • DDIF Function Module for getting the description of a BAPI structure

    Hi,
    I need to find a function module that returns the description of a structure...well a BAPI structure, not that that makes any difference.
    The DDIF_ function modules I've tried will all return the descriptions of data elements in tables, but not structures.
    Thanks,
    Tristan

    Check FM : CACS_DBNAME2TABNAME

  • Problem in Transporting a BAPI structure

    How to transport the extended BAPI structure from D system to Q system.
    BAPI structure is extended by appending a new structure with two fields in Development system. I want to transport it to Q. But there is no transport request for this change. Since i have not done this change i dont know wat has to be done.
    Thank you in advance.
    Regards,
    Umasankar.

    Hi,
    You can use standard program RSWBO052 to change development class.
    In the  line : R3TR FUGR Function Group
    1)check the box
    3)insert the function gruop name
    4)Press F8 or Execute
    5) double click and change the class
    Regards,
    Sooness

  • 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

  • Assign values to bapi structure dynamically

    Hi,
    I have to use the BAPI, BAPI_MATERIAL_SAVEDATA to extend the material to different plant specific views. I have to use the structure BAPI_MARC and other structures in order to do this. But the values to be passed to the structure BAPI_MARC are not fixed. These values will be maintained in a custom table against the structure name and field name for a particular plant.
    In the program I have to extract the structure name and field name for a corresponding plant from custom table and fill the corresponding value in BAPI structure BAPI_MARC.
    Now, internal table in the program is having these details.
    How can I fill the bapi structure BAPI_MARC based on this information.
    For example, if in custom table, value 0001 is maintained against the field PUR_GROUP, I have to fill the field PUR_GROUP in strcutre BAPI_MARC with 0001.
    Hope I am clear in explaining the problem. Please let me know how to aciheve this?
    Best Regards,
    Kumar.

    Hi,
    I have tried to implement that in a sample program first. Please have a look at the code below.
    DATA: BEGIN OF line,
            col1 TYPE i,
            col2 TYPE i,
            col3 TYPE i,
          END OF line.
    DATA comp(4) TYPE c VALUE 'COL3'.
    FIELD-SYMBOLS: <f1> TYPE ANY, <f3> TYPE ANY.
    ASSIGN line TO <f1>.
    ASSIGN COMPONENT comp OF STRUCTURE <f1> TO <f3>.
    IF <f3> IS ASSIGNED.
    ENDIF.
    I checked in the debugging mode and the value of <f3> in debugging mode is 0, but not line-col3.
    Best Regards,
    Kumar

  • How to delete append structure in a table?

    Hi guys,
    How can I delete the structure appended to a table?
    Thanks in advance!

    hi,
    select the structure in the table which the atructure is available  by going to SE11
    and choose the Delete line option by right clicking.
    or
    Go to SE11
    enter the structure name
    choose the delete option from Application toolbar.
    <b><i>Reward points if useful</i></b>
    Chandra
    Message was edited by:
            Chandrasekhar Velpula

  • Can BAPI Structure be used to generate Proxy?

    Hi @ ,
    I want to generate the proxy for a BAPI that i have imported the BAPI already.I don't want to use RFC but proxy based upon the BAPI structure.
    REgards,

    Hi
    check this thread
    Re: BAPI or Proxies

  • Import XSD from BAPI structure

    Hi all,
    I have a problem when export XSD scchema from BAPI structure and use this schema to create a data type using import XSD schema. The error is following displayed:
    Schema to be handled does not contain a definition of type BAPI_SALESORDER_CREATEFROMDAT2.
    Any idea?????
    Thanks in advance,
              Michele Lazzarato

    Hi Stephan,
    I have created an Abap Proxy and the error message in English as follow:
    Message Interface prova   http://xtel.com/xi/Sales Order references RFC  
    Message BAPI_SALESORDER_CREAT EFROMDAT2   urn:sap-                       
    com:document:sap:rfc:functions    BAPI_SALESORDER_CREATEFROMDAT2.Response
    and the                                                                               
    Message no. SPRX000                                                                               
    Thanks,
                Michele.

  • Upload IBase = IS-U: incorrect BAPI structure transferred

    Hi
    We are trying to integrate CRM 5.0 and ISu 4.72 System. Now when we are creating a Connection object in CRM. During replication in BDocs we are getting an error "Upload IBase => IS-U: incorrect BAPI structure transferred".
    I have feeling that it is related to parameter definition in MDT. But since I have never worked on this area, I don't know what should be the correct entry.
    Please help me in resolving this.
    Thanx in advance.
    Cheers
    Hits

    Hi Hitesh,
    Connection objects and points of delivery in CRM are stored as components in an IBase (Installed Base) of the category IU(technical objects for SAP IS-U).
    The following conditions apply for an IBase from the category IU.
           1.      The first component of an IBase is always a connection object.
           2.      An IBase only has one connection object.
           3.      0 .. n points of delivery can be allocated to a connection object.
           4.      Apart from the relationship between connection object ¬ point of delivery, there are no other relationships in the hierarchy.
    These conditions mean that the IBase contains a maximum of two hierarchy levels. The first level consists of a connection object, the second consists of 0 .. n points of delivery. IBases with a different structure are not valid IS-U IBases and cause errors during the upload.
    hope this will help you.

  • Need for separate BAPI Structure for import parameters

    Hi All,
    I have a doubt regarding the logic behind declaring a separate BAPI structure for import paramters and use it.
    Let me explain you clearly,
    Whenever we pass an import parameter(like vendor number/sales order number) to an normal function module we declare it using either like/type referring to an existing dictionary structure field. but when the number of import parameters increase we may think of creating a single structure with all and use it for simplicity.
    But when it is the case with a BAPI, it is suggested that we create a structure even when we have single import parameter.
    for example.
    supposing that we create a normal function module to get the details of a given Vendor, then we declare the import parameter as below
    VENDORNO LIKE LFA1-LIFNR
    But <b>if we observe the BAPI_VENDOR_DISPLAY, We find that declaration for the same as
    VENDORNO like BAPIVENDOR_ID-VENDOR_NO,
    where BAPIVENDOR_ID is a separate BAPI sturcture created and assocaited only with Business object "Vendor".</b>
    I tried it by declaring as for a normal FM, even then it work fine.
    Now my question is,
    If SAP Suggests that we have a separate structure for all import parameters starting with name BAPI and use only those fields to reference with,
    what is the logic/reason behind asking so.
    I had created a BAPI with paramters referring to standard database fields like
    VENDORNO like LFA1-LIFNR and it is still working
    <b>I had also written interface programs using VB/ .NET to access the data from my own BAPI and standard BAPI's and both were working alike.</b>
    so anyone <b>please give me the reason/logic behind declaring a separate BAPI stuture for all the import parameters to be used in a method</b>.
    Thanks in advance,
    Lakshmi

    I would say that it really comes down to simplicity.   Think of it this way,  you are not an ABAPer, you must right a VB or a java program to call this BAPI from outside the system, you know nothing about R/3 or its data structures/tables.    Now that said,  think of what it would be like if all of the fields in the BAPI signature were like we find in the standard tables,  LIFNR, etc.  What is LIFNR, right?    Since we are ABAPers we know that it is Vendor, but for others,  they may not know.  This is why you will find the signature of a BAPI very descriptive, notice that all of the fields describe the field in english.  This is good for non-ABAPers.   To organize all of these fields that may be used in the BAPI interface,  it is good to put all of them in one defined structure,   that way they are all in one place, and can be referenced as such.    Again,  BAPIs are designed to be used by ABAPers and non-ABAPers, so simplicity is important.
    Regards,
    Rich Heilman

  • BAPI-structure: invalid change message while changing structure field lengh

    Hi Experts,
      I've one structure which is used in many BAPIs.
      I want to change the field lengh of one of the field in the structure.
      When I'm activating it,  it is giving me message BAPI-structure: invalid change.
    Can you help me on this issue ?
    Naimish.

    Look at [BAPI Programming Guide (CA-BFA)|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf]
    If your BAPI is released, you wont be allowed to change the structure, so you should un-release the BAPI, BOR and FM before updating the structure parameter.
    Regards

  • IM27 and IM27_close (how to delete all structure in 2008)

    Dear All,
    How can i delete all structure in IM that i have created in 2008 ? I tried this in QAS, and i want to clear it out in 2008 and want to create again using the IM27 and IM27_close.
    Thank you for your advice.
    Nies

    First Delete all the Measures assigned to the position ID then Delete the Position ID's and then Delete the Program.
    Try use the IM upload program RAIM_UPLOAD (T Code SE38) to create the structure again instead of creating it manually.
    Refer below link for more information for upload program
    Upload and Download of Investment Programs
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/2a/f9fefd493111d182b70000e829fbfe/frameset.htm
    Regards
    Sreenivas

  • BAPI Structure ( very Urgent)

    Hi,
    BAPI Structure for Comments on Address Segment is E101BAPIAD_REM. I don’t know structure Please help me as soon as possible.

    Hi,
      this will help full to u.
    *structure for E101BAPIAD_REM *
    APPL_SNAME : Structure Name, No Business Significance
    internal data type : CHAR
    Internal length : 000030 characters
    Position in segment : 001, Offset : 0063. external length : 000030
    ADDR_VERS : International address version ID
    internal data type : CHAR
    Internal length : 000001 characters
    Position in segment : 002, Offset : 0093. external length : 000001
    LANGU : Language Key
    internal data type : LANG
    Internal length : 000001 characters
    Position in segment : 003, Offset : 0094. external length : 000001
    LANGU_ISO : Language according to ISO 639
    internal data type : CHAR
    Internal length : 000002 characters
    Position in segment : 004, Offset : 0095. external length : 000002
    ADR_NOTES : Address notes
    internal data type : CHAR
    Internal length : 000050 characters
    Position in segment : 005, Offset : 0097. external length : 000050
    ERRORFLAG : Flag: Record not processed
    internal data type : CHAR
    Internal length : 000001 characters
    Position in segment : 006, Offset : 0147. external length : 000001

  • Delete append structure

    I have appendead a structute to an extract structure but now I want to delete that structure which is appended.Please tell me how to delete an append structure.

    Hi Vaishali
    Adding to Kishan's inputs, incase the append structure has typical fields like amount remember to <b>adjust the table</b> back via transaction SE14.
    Kind Regards
    Eswar

  • BAPI structure as TYPE?

    In case of coding a RFC shall I have to always use BAPI structure as TYPE?  or I can use other things also. Please let me know.
    Regards,
    Subho

    Hi
    To the best of my knowledge you can use any dictionary type structures for more info take F1 help. or Take F1 help on
    CALL FUNCTION key word.
    go to SE84 and select the Radio Button of RFC and execute you can find many RFC function Modules, Check their Import Parameters
    All the Imprort Parameters must be PASS BY VALUE only.
    For more info you can search Forums or Web
    Cheers
    Ram

Maybe you are looking for

  • How to display  a calendar on an GUI screen

    Hi, I need to dispaly a calendar on GUI screen, for instance if you go to www.hotwire.com, you can see a "Depart Date" field next to this filed there is a small box, click on that you will get calendar. In my screen I had a start date field I need to

  • Where did my songs go?

    I am trying to get my song library (my own CDs, albums bought from iTunes) onto a new iPod, but only about half of it (mix of iTunes and my own CDs) moved over when I synced. The rest of the songs have an exclamation point to the right of them in the

  • My BOOTCAMP partition can't be mounted and can boot but will fail boot, doesn't show in shartup disks what do I do?

    Hi everybody. After Updating the new 2.9EFI update for the 2012 MacBook Pro, I restarted the computer which was set to boot into windows. The windows booted and show the BSOD for a brief moment then closing. After I booted into Windows again to see "

  • Error message - photoshop elements editor has stopped working

    Hi - I've installed photoshop elements 8 twice, and I still get the error message "photoshop elements editor has stopped working" .  I can't seem to get beyond this point.  My system is Windows Vista.  Any help is appreciated.  Thanks

  • MRP looking past planning horizon?

    Dear Experts, We have a material that exists on a purchase order.  The material is a HALB, with MRP Type = PD and Procurement Type = F (purchased).  The Planning Horizon for the plant is 180 days and there is no planning horizon defined for MRP Group