Explicit BAPI Commit in Inbound FM

I want to commit a BAPI BAPI_GOODSMVT_CREATE , which I will use in an implicit enhancement in FM IDOC_INPUT_INVOIC_MRM.
This FM is called during Inbound IDOC incoming.
I want to commit this BAPI BAPI_GOODSMVT_CREATE before IDOC is posted. So if I create a wrapper FM for this BAPI and call that in update task ...will the BAPI get commited before IDOC is posted if I set in se37->Attributes Tab -> Update Module ->Start Immed.
Any answers will be highly appreciated.
Thanks
Please refer to thread
Inbound IDOC commit
for similar question.

Check if this works for u.
BAPI_HU_PACK

Similar Messages

  • BPM BAPI COMMIT

    Hi,
    I try to create a sync connection BPM which soap post data to BPM then inside BPM i have 2 bapi which the first bapi will need to commit by XI before process the second bapi. I have done all this and it work but there was a problem of the commit process time sometime the second bapi will return mat doc not found. I know that BPM have the wait process but the minimum time is 1 minute which is quit long for sync process. Is that any way to make the second bapi process only is the 1st bapi commit successful.
    Best Regard,
    Gan

    Hi,
    Thanks for reply. I am also consider about the performance of the BPM but the reason i am using BPM is to let the XI handle the commit for bapi. For example lets said after XI past data to bapi and then the connection between XI and SAP R3 down then the soap client cant get the data but the bapi with commit if i put the commit on z bapi. In order to control this i have to let XI control the commit.
    Is that anyway to handle this?
    Best Regard,
    GAN
    Edited by: fcgan on Dec 2, 2008 8:12 AM

  • BAPI to get inbound delivery from material serial number

    BAPI to get inbound delivery number from material serial number?
    input---material serial number.
    output--inbound delivery number.

    Perhaps instead of using a BAPI you can code it like this.
    DATA:serial(10) TYPE n VALUE '0000340078',
    pos TYPE i VALUE 1.
    START-OF-SELECTION.
      WHILE pos <= 10 AND serial+pos(1) = 0.
        pos = pos + 1.
      ENDWHILE.
      REPLACE ALL OCCURRENCES OF '0' IN serial(pos) WITH space.
      WRITE serial.

  • BAPI to create Inbound Delivery without reference

    Hi Folks,
    I'm working for a client who requires a process to create Inbound Deliveries <i><b>without reference</b></i> to a PO. Does anyone know of an existing BAPI that will meet this criteria?
    The fallback position is to look at using a BAPI like BAPI_DELIVERYPROCESSING_EXEC or BAPI_OUTB_DELIVERY_SAVEREPLICA with a custom document type, but these are less than ideal options.
    Points rewarded for helpful answers.
    Cheers,
    Steve

    Hi!
    I can't seem to find a working example using this function modules. I want to create an inbound delivery without reference to a PO.
    Thanks!
    abapGenin

  • 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

  • RFC Adapter and BAPI Commit

    Hi everybody!
    In my scenario I post an RFC call to a BAPI (BAPI_GOODSMVT_CREATE). The call succeeds (empty RETURN parameter, material document numer is returned). However, the resulting material document is not available in MB03 - I assume this is due to a missing COMMIT after the RFC call.
    However, our system has SP 18 - and I have read that the RFC adapter is able to add a COMMIT after a successful call automatically starting from SP 14. What confuses me is the fact that the descriptions in the online sources state that I should check the "Extended Mode" checkbox in the RFC adapter config screen and then I should check the "Commit..." option. However, when I set the checkbox for extended parameters, I only get a simple table where I can enter property/value pairs.
    Has something gone wrong with the upgrade and my RFC adapter doesn't have SP 18 yet? Or am I doing something wrong?
    Regards, Joerg

    Hi Joerg,
    Check in your Repository if you imported the newest adapter metadata.
    Check Software Component SAP BASIS - > SAP BASIS 6.40 -> http://sap.com/xi/XI/System
    There Adapterobjects -> Adaptermetadata -> RFC
    search after the attribute  ..<b>singelBapiCommit</b>
    Because you dont see a SP version there.
    Maybe its better to search afer the label:
    <b>Commit handling for singel BAPI-calls</b>
    When you dont find the attribute .. try to reimport your BASIS 6.40 Software Componenent.
    Regards,
    Robin

  • BAPI commit without using Wait? need to get the data for created order

    I am using BAPI to create or change sales order and by using 'BAPI_TRANSACTION_COMMIT' updating the database.
    Immediately after that there is some requirement to fetch VBAP with the created order number, but there is no data found.
    If i use call function 'BAPI_TRANSACTION_COMMIT'
                 exporting
                   wait          =  'X'.
    then i am able to fetch data from VBAP, but its impacting the performance. Is there any alternative way to get data without fetching or without using wait.
    Can i use ABAP memory or SAP memory to get the details?
    Please help...........

    Hi Tapas379,
    Yes technically you can:
    set data before commit
    DATA memory_id(20) TYPE c.
      CONCATENATE 'VBAP_01_' sy-uname INTO memory_id.
      DELETE FROM DATABASE indx(as) ID memory_id.
      EXPORT vbap_tab = vbap_tab "<-input
        TO DATABASE indx(as)
        CLIENT sy-mandt
        ID memory_id.
    Get data from anywhere after setting it.
      data memory_id(20) type c.
      concatenate 'VBAP_01_' sy-uname into memory_id.
      import vbap_tab = vbap_tab " ->output
        from database indx(as)
        client sy-mandt
        id memory_id.
      delete from database indx(as) id memory_id.
    Thanks,
    Duy

  • WebService From a BAPI & Commit

    Heyho!
    I created a Webservice from a BAPI (From BusinessPartner, to create a BP).
    There is the option to add  "TransactionCommit" and "TransactionRollBack" to the Service Definition (that is what i did).
    I consume the Webservice with an external Java-Application, create a BP and then call the commit.
    My Problem is that the BP can't be found anymore as if it wasn't even created.
    The counter for the BPs did counter++ but there is no BP to be shown.
    Anyone?
    regards
    frank

    Thank you all for your replies,
    i solved this problem with the following:
    1)
    i created a new RFC-able FM
    2)
    I Called the BAPI-Method
    3)
    I Called 'BAPI_COMMIT_TRANSACTION'
    4)
    I generated the Webservice
    thank you
    frank

  • BAPI to change Inbound delivery - Delivery Date.

    Hi Expert,
    I wanna change the  Inbound delivery - Delivery Date .
    i have check the BAPI_INB_DELIVERY_CHANGE and WS_DELIVERY_UPDATE but both seems to be not useful for me or i have mis sumthing.
    so kindly suggest BAPI or any other solution.
    thx in advance.

    Hi guys,
    plz get following code,
    REPORT  ztest_inboun_deli.
    TYPES : lty_dead TYPE STANDARD TABLE OF bapidlvdeadln.
    DATA :lt_header_deadlines TYPE lty_dead,
          wa_header_deadlines TYPE bapidlvdeadln,
          wa_header_control TYPE bapiibdlvhdrctrlchg,
          it_return TYPE STANDARD TABLE OF bapiret2,
          wa_delivery TYPE bapiibdlvhdrchg-deliv_numb,
          wa_header_data TYPE bapiibdlvhdrchg.
    write : sy-datum.
    wa_header_deadlines-deliv_numb = '0080000069'.
    wa_header_deadlines-timetype    = 'WSHDRLFDAT'. "Delivery date
    wa_header_deadlines-timestamp_utc = 20120909000000. "YYYYMMDDHHMMSS
    wa_header_deadlines-timezone    = 'ALA'. "Western Europe
    APPEND wa_header_deadlines TO lt_header_deadlines.
    wa_header_data-deliv_numb = '0080000069'.
    wa_header_control-deliv_numb     = '0080000069'.
    wa_header_control-deliv_date_flg = 'X'.
    CALL FUNCTION 'BAPI_INB_DELIVERY_CHANGE'
      EXPORTING
        header_data                = wa_header_data
        header_control             = wa_header_control
        delivery                   = wa_delivery
      TABLES
       header_deadlines           = lt_header_deadlines
        return                     = it_return.
    IF sy-subrc EQ 0.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    ENDIF.

  • BAPI to create inbound delivery of an SO

    Hi,
    I need to create an inboud delivery through the outbound delivery for SO. I would to know the best available BAPI to acheive this. Also, please specify the mandatory paramters that needs to be passed as input for the given BAPI.
    Thanks,
    Kalahasti

    Hi!
    I can't seem to find a working example using this function modules. I want to create an inbound delivery without reference to a PO.
    Thanks!
    abapGenin

  • BAPI to create inbound delivery

    Is there any BAPI to create a new inbound delivery without reference to a PO?
    As far as I know, there is bapi to create outbound deliveries:
    BAPI_OUTB_DELIVERY_CREATENOREF.
    Thanks.

    try these
    GN_DELIVERY_CREATE
    GN_DELIVERY_CREATE_FOR_DIALOG

  • BAPI for VL31N (Inbound Delivery Creation

    Hi,
    My requirement is I need to write a program create a inbound delivery based on multiple Purchase orders.  Usually Inbound deliveries are created through transaction VL31N. As it is SAP njoy transaction, we can write a BDC code for this. I searched a suitable BAPI, but i found none. 
    Anyone have any idea on this ?
    Regards,
    Ganesh

    Use the below function module to create a inbound delivery with the PO number
    DATA: IS_INB_DELIVERY_HEADER LIKE BBP_INBD_L.
    IS_INB_DELIVERY_HEADER-DELIV_EXT = 12121
    IS_INB_DELIVERY_HEADER-DELIV_DATE = 08/16/2006
    DATA: T_DETAIL LIKE LIKE BBP_INBD_D OCCURS 0 WITH HEADER LINE.
    T_DETAIL-MATERIAL = 'xxx'.
    T_DETAIL-DELIV_QTY = '10.000'.
    T_DETAIL-UNIT = 'EA'.
    T_DETAIL-PO_NUMBER = '45XXXXXX.
    T_DETAIL-PO_ITEM = '000010'.
    APPEND T_DETAIL.
    DATA: T_RETURN LIKE BAPIRETURN OCCURS 0 WITH HEADER LINE.
    DATA: V_VBELN TYPE VBELN_VL.
    CALL FUNCTION 'BBP_INB_DELIVERY_CREATE'
    EXPORTING
    is_inb_delivery_header = is_inb_delivery_header
    IMPORTING
    EF_DELIVERY = V_VBELN
    tables
    it_inb_delivery_detail = T_DETAIL
    return = T_RETURN
    Regards,

  • BAPI for GR ( Inbound Delivery )

    Hi,
    My requirement is that I need a BAPI or FM to create a Goods Receipt (MIGO document) for Inbound delivery. I need to even pass the FREIGHT Details in it. I had checked BAPI_GOODSMVT_CREATE, but i dont have the Parameter where i can pass the Freight details.
    Please provide me the correct way to create GR with FREIGHT Details.
    Thanks,
    Ravi

    Hi David,
    Actually there are 2 condition types in Purchase Order (ZHC3 & ZTC3) which are related Freight details. Now when I create a GR with refrence to Inbound delivery(which is related to PO), we will be getting a FREIGHT Tab in MIGO screen, so automatically 2 line items in FREIGHT tab will be appended with the PO Vendor number. I need to change the Vendor's for both the line items in FREIGHT Tab.
    Please let me know how to change the vendor details.
    Thanks,
    Ravi

  • Issue with BAPI & Commit

    Dear All,
    I have been working with an assignment and facing a strange issue.
    I have used the 'BAPI_SALESORDER_CHANGE' to modify sales order and then I call 'BAPI_TRANSACTION_COMMIT' with wait = X. So, this bapi modifies the sales order schedule lines and also in turn updates the info structure linked to it (In our case, say it is S800)
    Immediately after this I have a select statement on S800 to fetch the records.
    On debug, if I break at select statement, I get correct records from S800  but If i break one step after select it gives me different records.
    I think there is some delay in updation of infostructure, hence, If i use wait statement before select for 1 sec, it works fine, but cause performance issues.
    for over 15000 order items, it will wait for around 8 hours, hence, i would like to know is there any way I can avoid wait and also read the infostructure for correct records.
    << Moderator message - Everyone's problem is important. Please do not ask for help quickly. >>
    Edited by: Rob Burbank on Feb 24, 2011 9:45 PM

    Hi Chandanrs,
    with COMMIT WORK (or BAPI_TRANSACTION_COMMIT) with WAIT addition, processing is continued after all high-priority ("VB1") update function modules are executed in the order of their registration and in a shared database LUW.
    That means that the info structures are probably updated in low-priority ("VB2") update.
    I never faced this situation but I think that the info structure should still be locked. Try to find the corresponding lock object, in a (test) run, locks may be visible shortly in SM12 lock overview.
    If possible, after commit work, try to call the enqueue function with the same arguments as it is done within the BAPI processing. You should get a foreign lock error until the end of the second level update process.
    while lv_locked is initial.
      call function 'ENQUEUE...
      IF sy-subrc = 0.
        lv_locked = 'X'.
      endif.
    endwhile.
      call function 'DEQUEUE...
      clear lv_locked.
    This lets your program wait until the info structure update is complete. Sorry I do not really know which lock object is used here. Anyway, I still do not know why you have to read the S900 directly after update.
    You may also process all orders to the to set the order quantity to delivered qty, COMMIT every 1000 or so orders, put the original quantity to internal table. Then do the same for restoring.
    BAPI processes run a great deal faster if you do not COMMIT after every single document. But you can't take too many because than you risk a lock table overflow.
    Hope it is some help anyway.
    Regards,
    Clemens

  • BAPI call Error - Inbound Interface to SAP

    Hi Experts,
    my middleware side  using IBM WebSphere Message Broker SAP Adapter request node ,
    Problem after the execution of the interface the adapter node failed and it in the log its giving the error message:
    "{[3442]Caught Throwable}.{[3450]throw a RecordNotFoundException}.{com.ibm.j2ca.sap.exception.SapBAPIException}."
    I had seen some post in forum as " Quantity field type should be assigned a DECIMAL in the ESQL code."
    so i checked in my bapi for quantity ( units per container field ) its assigend with decimals. So while checking in the middleware side..
    In the imported BAPI layout UnitsPerContainer appears in 2 locations:
    > SapTinContain : Here UnitsPerContainer is defined as decimal
    > SapTinRecord3: But here UnitsPerContainer is defined as string
    why is there a difference ? Its a connectivity Problem??
    Donu2019t know whether because of this difference am getting the " Record Not Found Exception ".
    Please help me .
    Thanks in Advance.
    Regards,
    Priya.

    How did you fixed the error i am getting this type of error only?

Maybe you are looking for

  • Unable to install Itunes, Win-XP, Windows Installer error 1722.

    When I install itunes on XP-SP3 (fully updated) with Windows installer 4.5 - I get this message half the way through -refer to attachment- I have uninstalled all apple products, installed quick time - this installed but still provided the error. I ha

  • Flash 7 and flash 8

    I would like to use Flash 7 but i get this error: WARNING: This movie uses features that are not supported in the Flash 7 player Symbol=btnhistory, layer=base, frame=2:Runtime bitmap caching not supported in current player version Symbol=Who We Are,

  • Upgrade from 10.7.1 to 10.7.4 wont install after download. Please help!

    I'm using MacBook Pro 13-inch, early 2011 running 10.7.1. I want to upgrade to 10.7.4 but the system discarded the upgrade after I successfully downloaded it. Please help!

  • ITunes (and Safari) won't connect; Firefox fine

    I'm not having any difficulty accessing the internet through Firefox, but iTunes (and Safari, for that matter) don't seem to be connected. I've tried checking the proxies for both of them and nothing appears set in the wrong way. Any ideas? Thanks.

  • Lms 4.2 discrepancie update

    Hello, in the configuration>dashboard>configuration i have a portelet Discrepancy but "Por is in Error Disable State" don't uptade automatically i have only one switch indicate it's error disable port the other switch are not reported even if they ha