Lock and Commit work in INBOUND IDOC

Hi Experts,
Problem is about lock and commit work
i need to receive idoc for Good receipt for purchase order.
For one Purchase Order i can receive many good receipt Idoc at the same time and when first came in Lock the Purchase Order and further idoc came after give Errors becouse purchase Order is lock.
Problem is not the serialization (the sequence is correct), but is the lock.
Any idea on how to fix this issue? (maybe there is some std settings??)
Cheers
Boris

Hello Guys
the packetsize is already set to 1 but the problem still again..... and where i can find this setting   "in Customizing choose Engineering Change Management ® Define statuses for master record". ?
Any way i try in function module in inbound to check the lock object with this sample code:
      DO 30 TIMES.
        CALL FUNCTION 'ENQUEUE_EMEKKOS'
         EXPORTING
           mode_ekko            = 'S'
           mandt                = sy-mandt
           ebeln                = goodsmvt_item-po_number
           _scope               = '2'
         EXCEPTIONS
           foreign_lock         = 1
           system_failure       = 2
           OTHERS               = 3.
        IF sy-subrc <> 0.
          WAIT UP TO 1 SECONDS.
        ELSE.
          EXIT.
        ENDIF.
      ENDDO.
but also with this....problem syill again...
thanks
Boris

Similar Messages

  • Differences between commit work and commit work & wait

    Hi people,
    I have a theory question:
    What differences are there between commit work and commit work & wait?
    Thx

    Hi,
    <b>COMMIT WORK:</b>
    This statement will apply any outstanding database updates and wait until they have actually been put on the database before proceeding to the next statement.
    An ordinary commit work will initiate the process to update the databases in a separate task and will press on in your abap.
    COMMIT WORK: ( Asynchronous)
    Your program does not wait for any acknowledgement. it just start executing the next statment after COMMIT WORK.
    <b>COMMIT WORK and WAIT</b>: (Synchronous)
    Whereas For <b>COMMIT WORK and WAIT</b>, the system waits for the acknowledgment, and then moves to the next statement.
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

  • CRM_ORDER_SAVE. how to identify the lock after commit work and save

    I am updating a status, using crm_order_save , then commit work and wait and crm_order_initialize before i update the status to next status for the same item.
    I am facing an error when i change the same item status to another status i get error some times cannot change the error.. if i keep commit work an save and wait up to 20 seconds it works ..
    Is there any way to look for the lock object for the header guid.. instead of putting wait up to 20 secs.
    what is the FM or lock object to check the order is not committed or still system is updating or its in middleware processing.

    hi,  I remeber the there is a function name like  CRMXXDocumentXXlock  which is be called in standard program to maintain order.
    I can't login a crm server, can't offer you the accurate name, you can do a search in system.

  • Regarding getting data from excel file and need to generate  inbound idoc

    Hi guys,
    Please can u give some example how to get excel file data and need to generate the inbound idoc my questation ? Is it possible to generate inbound idoc with the same logical system ( it seems to be not possible using same logic to generate idoc ) can u suggest me any posssibule way to generate idoc.) if possible give me some example.
    Regardng
    anil
    Edited by: anil kumar on Aug 8, 2008 1:35 PM

    If you want someone to do your work, please have the courtesy to provide payment.
    http://www.rentacoder.com

  • How to work on inbound idoc

    how to work on inbound idoc

    Azeez,
    Check this...
    Receiving System(Inbound ALE )
    Tcode SALE ? for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 -- Check for Model view whether it has distributed or not
    Tcode BD82 -- Generate partner Profiles & Create Ports
    Tcode BD11 --Getting Material Data
    Tcode WE05 -- Idoc List for inbound status codes
    Inbound Status Codes
    50 Error --> It will go for ALE Service Layer
    56 Error --> Idoc with Errors added
    51 Error --> Application Document not posted
    65 Error --> Error in ALE Service Layer
    for 51 or 56 Errors do the following steps
    goto WE19 > give the IDOC Number and Execute>
    Press on Inbound function Module
    for 65 Error --> goto SE38 --> Execute the Program RBDAPP01 then your getting 51 Error
    Regards.

  • Creation of Sales Order and Service Contract from Inbound IDOC

    Hi Experts,
    My requirement is to create a Sales Order as well as a Service Contract from one Inbound IDOC. I am getting the Inbound IDOC from a third Party. The message type is ORDERS and Basic Type is ORDERS02. How ever i am using an extension type IDOC which carries all the required data for Sales Order and Service Contract. My requirement is like, to create a Sales Order first.
    I have created a Z FM which is attached to the Process Code and subsequently to the message type. Inside the FM i an calling FM 'IDOC_INPUT_ORDERS' for creation of Sales Order. After that i am changing the IDOC data for the Document Type. I am changing the document type which is responsible for Contract Creation.
    Then I am again calling the FM 'IDOC_INPUT_ORDERS' for creation of Contract with the help of IDOC data. But here the Contract is not getting created. It's getting failed during the Batch input session.
    I need to solve this problem as soon as possible. Please help me. If there are any other options also please share.
    Thanks in Advance.
    Regards,
    Priyabrata

    Actually there is problem with BDCDATA. Inside the FM it's calling transaction with help of BDCDATA. If i am creating a Sales order or contract alone its creating successfully. But when i am trying to create both, it's retuning sy-subrc '1001' after calling the transaction on the second attempt. Is there any problem with BDCDATA like we can't handle with less time gap? Please help and give your inputs.
    Regards,
    Priyabrata

  • Droid 3  screen  locked and  cant  work

    i  have had this  droid for   sometime now.. and  today  screen  locked and  will not  work..  have tried in  safe mode... well that  is a  waste of time..
    so  anyone out there in  droid world  have any  ideas. i would love them ..

    hi Allied. i started to have the very same problem last week with my droid 3. Now my phone does not work at all. this seems to be an ongoing problem within the droid 3 community. i have read many people complaining of the same problems. it seems that Verizon is not acknowledging this wide spread issue. I'm looking to get a replacement but i do not want to get a refurbished droid 3 back because whatever the issue is not being fixed. i just want t know if their are any other phones that can be sent as a replacement instead of receiving another phone with issues?

  • I have an Iphone 4s that I installed the face button app. After trying to use the first time, my phone locked and stopped working. Does anyone knows how to fix that problem or how to reset this phone?

    I have an Iphone 4S that i installed the face button app. After trying to use it, my phone locked and I cannot get it to work anymore. does anyone knows how to reset this phone and get it working again?

    A reset may help. Tap and hold the Home button and the On/Off buttons for approximately 10-15 seconds, until the Apple logo reappears. When the logo appears, release both buttons.
    No content is affected by this procedure.

  • BCS Email and Commit Work

    I created a small email class that is basically a wrapper around the BCS document classes.  Everything works fine when used in normal programs.  Then, I tried to update some code that was behind a smartform for our order confirmations.  When I tried to test this, I got a dump because of the Commit Work after the send.  The error I got was that I was doing a commit work during an update task, which SAP doesn't like.  Apparently the commit work is needed for the BCS send method.  Does anyone have any ideas I can get around this?  Any idea would be appreciated.
    Thanks in advance,
    Curtis

    What i understand is that your code is getting executed in an Update Work Process & as you've guessed SAP doesn't allow COMMIT WORK to be used inside an Update Task.
    What Gaurav is trying to suggest is may be there are some Implicit Commits later on which might trigger your email.
    Without further inputs it's difficult to analyse.
    BR,
    Suhas

  • Regarding WS_DELIVERY_UPDATE_2 and COMMIT WORK AND WAIT

    Hi Experts,
    My problem is, when I try to update 1 record more than 1 time, the data(Item delivery quantity)getting cleared  after 2 or 3 attempts. Sometimes it was happening for 5 time and so on..
    If i do debugg, it was not happening.
    I was using Z F.M. i.e. - ZWM_SAISIE_PAL_LIV. This F.M has WS_DELIVERY_UPDATE_2.
    Below i have mentioned my code.
    Thanks & Regards,
    Sree.
    Moderator message - Please respect the 5,000 character maximum when posting. Post only the relevant portions of code
    Edited by: Rob Burbank on Sep 20, 2011 10:58 AM

    s

  • Hi, when ı visit some web sites , firefox is lock and not work anything, how can ı solve this problem?

    I use firefox v 18.0.2

    See:
    *http://kb.mozillazine.org/Error_loading_websites
    *https://support.mozilla.org/kb/Error+loading+web+sites
    *https://support.mozilla.org/kb/web-pages-dont-load

  • HT4061 I have a locked iphone and need to find the IMEI number of a phone that is locked and wont work on my sim

    I have a iphone that is lockled to a network. I was wondering is there a way to get the IMEI number when it wont let me go through the set up

    As you might have read in the Support Doc., where you posted this question, it is on the SIM tray.

  • Inbound IDOC commit

    Dear all,
    I need to clarify scneario below:
    INBOUND process
    Receive an Idoc, and inbound FM Z_TEST_IN will be executed. In inbound FM Z_TEST_IN, i have to update both Table ZHEADER and ZITEM. Since they are Header and item table, so if one of the table updating failed I've to perform rollback.
    This is what i plan to do. Create 2 update task FM, one for ZHEADER update and one for ZITEM update. It will look like this:
    Function Z_TEST_IN
      CALL FUNCTION 'Z_UPDATE_HEADER'
              IN UPDATE TASK
      CALL FUNCTION 'Z_UPDATE_ITEM'
              IN UPDATE TASK
    ENDFUNCTION
    My question would be:
    1. Is there a system COMMIT WORK predefined in ALE layer? Or should i code an explicit COMMIT WORK in Inbound FM Z_TEST_IN?
    2. Let's say update fail on one of the table, then ROLLBACK WORK will be triggered. So i'm aspecting data will not update to both tables, but how about the Inbound Idoc creation? Will the idoc still be created and shown in WE05?
    Your comment is highly appreciated. Thanks in advance.

    Hi,
    1.You are using the Zfunction module,So you need to commit explicitly.
    2.For standard ,implicitly done.
    3.There is no need to create inbound IDoc.While processing only the Inbound idoc created.
    4.Suppose if u want to create just go for We30.
    5.We05 for just gives the list of idocs created.
    To Create Idoc we need to follow these steps:
    Create Segment ( WE31)
    Create Idoc Type ( WE30 )
    Create Message Type ( WE81 )
    Assign Idoc Type to Message Type ( WE82 )
    Creating a Segment
    Go to transaction code WE31
    Enter the name for your segment type and click on the Create icon
    Type the short text
    Enter the variable names and data elements
    Save it and go back
    Go to Edit -> Set Release
    Follow steps to create more number of segments
    Create IDOC Type
    Go to transaction code WE30
    Enter the Object Name, select Basic type and click Create icon
    Select the create new option and enter a description for your basic IDOC type and press enter
    Select the IDOC Name and click Create icon
    The system prompts us to enter a segment type and its attributes
    Choose the appropriate values and press Enter
    The system transfers the name of the segment type to the IDOC editor.
    Follow these steps to add more number of segments to Parent or as Parent-child relation
    Save it and go back
    Go to Edit -> Set release
    Create Message Type
    Go to transaction code WE81
    Change the details from Display mode to Change mode
    After selection, the system will give this message “The table is cross-client (see Help for further info)”. Press Enter
    Click New Entries to create new Message Type
    Fill details
    Save it and go back
    Assign Message Type to IDoc Type
    Go to transaction code WE82
    Change the details from Display mode to Change mode
    After selection, the system will give this message “The table is cross-client (see Help for further info)”. Press Enter.
    Click New Entries to create new Message Type.
    Fill details
    Save it and go back
    Regards,
    Shiva.

  • How can i set the IDOC Status to 03 without doing a "COMMIT WORK"

    Hello Geeks,
       I want to set the status of the Outgoing IDOC to 03 , without doing a "COMMIT WORK" . Actually only after i do a commit work are my IDOCs dispatched. But with a commit work the IDOCs are dispatched immidiately. I do not want to dispatch it immidiately. Instead i want to hol the IDOCs till my LUW finishes , but the IDOC status should be set to "03" instead of "30".
    Thanks,
    Bashir

    Hi,
    After collecting all the idocs which are under status 30, run the program RSEOUT00 to change the status from 30 to 03.
    If you want to do this process automatically then set the program RSEOUT00 in background.
    Regards,
    Lokeswari.

  • BDC and Inbound IDoc

    Hi
    I need your help to guide me for inbound Idoc process,
    in my porject client is sending data with standard idoc and PI is middleware converting into file and sending to us then am using BDC and uploading data,
    but now client asking why i cant use Idoc only ( standard or custom )  to upload data   why BDC ?
    here i need your help to understand how much extra  effort i need to put if i use  idoc and how to use inbound idoc process ? am new to this. 
    points will be there for sure
    Thanks
    Palak

    Hi ,
    For the inbound IDOC , u refer this ..Every thing for the inbound will start with
    IDOC_INPUT* .
    search based one we have so many inbound idoc's in SAP...
    For the programming we need to consider that these tables..
    EDIDD, EDIDC .
    loop at control table.
    loop at edidd.
       write the logic here...(required logic)
      endloop.
    endloop.
    after that we need to send the IDOC status to the application layer.
    Regards,
    Bharani

Maybe you are looking for

  • Submitting academic proof for Adobe Creative Cloud Student and Teacher Edition

    I was contacted to validate my academic status for a Creative Cloud Student and Teacher Edition I purchased via adobe.com on May 14, 2014. The Education FAQ page (http://helpx.adobe.com/x-productkb/policy-pricing /education-faq.html) states: "Submit

  • Slow video playback in Photoshop Elements 11

    Playback of videos directly in Photoshop Elements Organizer is very slow. Video is stuttering. Playing the same video outside of PSE11 with Windows Media Player is much better. Video plays without any stuttering. Looks like the internal video player

  • Using Labview with an ALR-9800 RFID reader

    I am a student at Cal Poly, SLO and I am currently working on a Labview program to characterize RFID tags using a positioner and an Alien Technology ALR-9800 RFID reader. This is my first time programming with Labview and also my first time interfaci

  • 12" Powerbook 1ghz on 10.4.8 no airport card

    i just ordered an airport card for my pb. its the 2003 version that came out just before panther..... tell me that the extreme card is going to work in this..becuase so far i can't get it to show....

  • 13" Mac Pro dent repair?

    Purchased my Macbook Pro 13" (Late 2012) 3 months ago, unfortunately i tripped over my cat while carrying my macbook pro (lol), it landed on the floor on the side. The port next to the charger has been dented in and underneath the laptop has also bee