Process inbound Idocs only one at a time

Hi all,
I'm searching for a solution to the following problem:
We are receiving ORDERS-Idocs into our R/3 4.6C-system. These Idocs are processed by our own Z-function module. The function module's coding should assure that e.g. the first idoc of each day sent by a certain customer should create a new sales order (VA01), whereas the following idocs of that same customer should only add items to that sales order (VA02).
To make this work, we must make sure that no two idocs of the same sender are processed simultaneously, or even better that the function module is running only once at a time. I tried the following practices, which didn't satisfy our needs:
- create own ENQUEUE/DEQUEUE object and call the ENQUEUE at the beginning of my function module - didn't work!
- use GET PARAMETER ID to read a flag and SET PARAMETER ID to set the flag - didn't work, second idoc was too fast!
- write a record into own DB table and check existing entry with SELECT SINGLE FOR UPDATE - worked only sometimes, needs COMMIT WORK.
- check if there are any flags you can set in WE20 - couldn't find any!
Does anyone have a idea for my problem?
Greetings
Klaus

Hi Klaus,
form the mentioned options, I would give enqueue / dequeue a second try.
I would use customer (/sender) as key field for your locking object.
If you try to set the lock right in the beginning of your FM, whole customer should be locked for processing. Second test is of course, if already a sales order exists.
Maybe here the problem occurs: when you have some parts in update task, select for sales order is not successful for some (micro-)seconds.
Solution for this part: use synchronic booking / commit work and wait. Maybe make a test with a select for VBAK in the end of your FM to test existence -> if not successfull, you know you identified your problem.
If this is your problem, you should make a new enqueue after commit (because it will be deleted by commit) and wait until DB gives you new VBAK entry.
I would start with a test, why all this different locking options don't work (instead of looking for a different locking option): make a select after your sales order creation. If this is not successfull, then here is your starting point.
Regards,
Christian

Similar Messages

  • I want to make a video clip using two still pictures, placing side by side.  I am able to make with only one at a time.

    I want to make a video clip using two still pictures, placing side by side.  I am able to make with only one at a time.  Also, I am able to move the picture using Transform.  But unsuccessfull in making with two stills in same clip.  Thank you for reply.

    If you want a Picture in Picture effect, stack one still on top of the other with a connect edit. Use Transform to scale and reposition the top image.
    Russ

  • Adobe Flash Builder 4 licence is for one desktop and one laptop, only one at a time run or

    After installing Adobe Flash Builder 4 needed install AIR? Adobe Flex 4 SDK IS ALREADY INCLUDED?
    Adobe Flash Builder 4 licence is for one desktop and one laptop, only one at a time run or...?

    hi,
    Flashbuilder has the ability to create and run Air content from the IDE, to actually usean Air App outside of the IDE you need to install Air.
    Flashbuilder install includes 2 sdks, the 3.5 sdk for 'backward' compatibility with Flexbuilder and for targeting flashplayer 9, the 4.x SDK for Flashbuilder and  targetting flashplayer 10.0 and above.
    As far as fair use is concerned Adobe have had fair use software licensing for a while, single user 2 devices is not a problem, what is not clear is if you can use the software on both devices at the same time.
    David

  • How to process inbound idoc in R/3 with status 75 - idoc received via qRFC?

    Hi gurus,
    we are using EOIO for source to R/3, and all the idocs a received in r/3 with this status. But they can't be processed from BD87. How to process these?
    Thanks,
    Olian
    Edited by: Olian Saludew on Sep 11, 2008 11:44 AM

    Hi,
    Idocs Works on tRFC Queues.
    Check this Report to Process Inbound Idocs with Specified Status.
    RBDAPP01
    Regards
    Seshagiri

  • Processing inbound Idoc ORDERS03  with status 51

    Dear ALL
    While processing inbound idoc with message type ORDERS03 i am getting a status 51 with below erros
    I have maintained the data under VOE2 & VOE4 but not got the solution. We are on  SAP ECC6 Version
    Customer 1100 is customers purchase organization
    Partner no 1109 is customers plant
    VKORG, VTWEG, SPART cannot be determined for customer 0000001100 , vendor REN15D
    Message no. VG204
    Terms of payment in IDoc E1EDK18 have been transferred: Check data
    Message no. VG202
    Partner number 1109 for customer 0000001100 , partner function WE does not exist.
    Message no. VG140
    Regards
    Arun

    Hi,
    Vendor 100002 is not maintained in your system. Maintain the same or use some other vendor which is there in your system.
    You should be able to post the document.
    Regards,
    Lalit Kabra

  • Process Inbound IDOC

    Hi there,
    I have an IDOC file store in the application server, I would like to know if exist a funcion module to read this Idoc and process it as inbound message in SAP.
    Thanks in advance
    Alexis

    Hi,
    You can use standard program RSEINB00 to process inbound IDoc file.
    Regards,
    Ferry Lianto

  • I am trying to process inbound idoc

    I am trying to process inbound idoc it will be showing error i.e
    51-Purchasing document 8000200 not selectable
    Pls give me advise

    Hi,
    You inbound FI idoc is containing Purchase order no, which is not existing in receiving system, that's the reason you are getting this error.

  • Error while processing inbound Idoc (HRMDA_07) with FM IDOC_INPUT_HRMD

    Hello,
    I have a inbound Idoc of type HRMD_A (basistype  HRMD_A07) which is processed by Function module (FM)  IDOC_INPUT_HRMD with  proofing. After processing an Idoc the status Monitor for ALE messages (BD87) tell me that my Idoc has status 53, which should be the result i would like to have.
    Unfortunately when i go to transaction PA20 and check the infotypes, i see that infotype 0302 isn't created. When analyzing this problem i see that during the processing the Infotypes are posted with HR_MAINTAIN_MASTERDATA (dialog mode is 0 and luw_mode = 0 from include LRHA2F02 FORM save_pa_pb_infty)  When this is done for infotype 0302 sy-subrc <> 0 the message is A complex application error has occured. This error message is placed in Export parameters
    Return and Return1
    of HR_MAINTAIN_MASTERDATA. When the program returns to the calling Form it checks if there is message of type E in HR_RETURN (see below) :
    CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'
              EXPORTING
                pernr                          = ins_objects-objid       "#EC DOM_EQUAL
                actio                           = 'INS'
                tclas                           = tclas
                dialog_mode               = dial_mode
                luw_mode                  = '0'
                no_existence_check = $cross
                no_enqueue              = $cross
              IMPORTING
                return1                       = return
                hr_return                    = hr_return
              TABLES
                proposed_values    = proposed_values.
            REFRESH proposed_values.
         IF hr_return-msgty = 'E'.                           "note 984409
          CLEAR protocol_error.
          protocol_error-msgty  = hr_return-msgty.
          protocol_error-msgid  = hr_return-msgid.
          protocol_error-msgno  = hr_return-msgno.
          protocol_error-msgv1  = hr_return-msgv1.
          protocol_error-msgv2  = hr_return-msgv2.
          protocol_error-msgv3  = hr_return-msgv3.
          protocol_error-msgv4  = hr_return-msgv4.
          READ TABLE t_hrobjinfty WITH KEY objid = hr_return-pernr
                                           infty = hr_return-infty
                                           subty = hr_return-subty.
          protocol_error-segnum = t_hrobjinfty-segnum.
          protocol_error-routid = 'create_prf_pa_pb_object'
    As mentioned above, the error message is only placed in the parameters Return and Return1  and not in HR_RETURN.please read the first reply

    Hi,
    I think you have preety much done from your end itself .
    Could you please tell me what you got in this parameters:
         protocol_error-msgty  = hr_return-msgty.
          protocol_error-msgid  = hr_return-msgid.
          protocol_error-msgno  = hr_return-msgno.
          protocol_error-msgv1  = hr_return-msgv1.
          protocol_error-msgv2  = hr_return-msgv2.
          protocol_error-msgv3  = hr_return-msgv3.
          protocol_error-msgv4  = hr_return-msgv4.
    It may help us to track down the issue in more better way .
    Thanks!

  • Processing Inbound IDOC's from FTP.

    Hi,
             I have an issue where IDOC's (WPUBON01 & DEBMAS01) are being saved in ftp folder and once these IDOC's are saved, we have to process it in SAP System, i would like to know the simple way of having these IDOC's processed in Unix based SAP system as the IDOC's will be coming in at Real time evey minutes or Seconds.
             is there a way to do it with out ABAP process i mean just by using the Unix Scripts or by triggering the SAP background job.
    Thanks in Advance.

    Hi,
    for testing purposes you can trigger inbound IDoc processing in transaction WE16. Otherwise you can schedule program RSEINB00 to periodically import IDoc into system. You can make a copy of that program and made changes if you need to add some extra logic.
    Cheers

  • Is third-party SO/PO  process possible using only one company code?

    Hi friend,
    1) my client wants to implement third-party PO process but also wants a way of keeping track of inventory during this process. I know that inventory should be tracked on the vendor side and not on our client side since we're doing third-party PO.
    However my client wants to track inventory (in an inventory g/l account like 120100) so that when my client post a Goods Receipt, the inventory account
    gets Debited and when client post  the outgoing invoice to customer, the inventory account gets Credited. In this way, my client can track
    if the customer have received the ordered item or not.
    The problem is that third-party PO posts to consumption account but DOES NOT post to inventory account. Is there any way of
    setting this up so that in addition to posting to comsumption account every time a Goods Receipt occurs?
    2) i tried to create "Individual Purchase Order" (customer order from client -> client order from
    vendor -> vendor ships item to client -> client then ships item to customer) so that posting will hit inventory account.
    However, i find that taking this approach involves setting up a Plant for vendor (A), a Plant for our Client (B), and a Plant for Customer (C).
    Because when i do a Goods Receipt, the stock has move from Plant A to Plant B. Then when i do a Goods Issue to the customer, it asks for the receiving plant. I assume this means that the stock moves from Plant B to Plant C.  
    Also, from the reading i did on the forum, i get the impression that i need to create more than one Company Code if i were to do
    third-party PO.  Do the Vendors have to be created in a different company code then the Customer? Or does it mean that Just the
    plant (like Plant A) needs to be created in a different Company Code then Plant B and Plant C?
    3) can i do third-party PO using only ONE company code?
    Can anyone provide some clarification on this issue? I've read tons of posting but none really helped clear  this issue up.
    Thanks so much.

    Dear Kishore,
    Individual PO processing is not third party process at all. In third party process the vendor delivers the goods dirctly to the customer - please check what SAP help says.
    http://help.sap.com/saphelp_46c/helpdata/en/dd/5601d4545a11d1a7020000e829fd11/content.htm
    Dear Queyen,
    One important point of third party process is that there's no need to keep stock of materials - that is in harmony with reality. Why does your customer want to keep stock from the goods if they doesn't receive at all? Is it coreect? It doesn't correspond to the fact.
    You can do statistical (ghost) GR against the third-party PO and you can see the goods movement in MB51 - I think this should be enough.
    http://help.sap.com/saphelp_46c/helpdata/en/dd/560287545a11d1a7020000e829fd11/frameset.htm
    BR
    Csaba

  • Job cancelled while processing inbound IDOcs

    Hi All,
    we are sceduled job in background processing mode for the program RBDAPP01(Inbound Processing of Idocs),
    but job was cancelled due to RAISE_EXCEPTION.
    if i cheked in ST22 it is showing as
    ""The termination occurred in the ABAP program "SAPLMCS2" in "MC_SEND_MAIL".
    The main program was "RBDAPP01 ".
    The termination occurred in line 108 of the source code of the (Include) program "LMCS2U09""
    i didn't understand why it is cancelled ?
    can any one pls help me ....
    regards,
    suresh

    Hello,
              Sometimes if the Data / Right Data is not present in the IDoc, then it would not help the Standard SAP Program / Programs / Function Modules to fill-in Certain Field Symbols due to which the Short Dump might have occured.
             Check the IDocs and try executing the Job again.
    Thanks and Regards,
    Venkat Phani Prasad Konduri

  • Process Inbound IDoc WPUWBW

    Hi experts,
    I am quite new in SAP, and I am finding a lot of problems trying to make probably the easiest things.
    My problem is this:
    I am trying to process an inbound IDoc type WPUWBW, and it has status 53, but when I try to view it in the workbench, the system does not recognize the IDoc as good movement type and I can not find the way to insert in one field of the IDoc via we19 transaction the transaction type.How can I make it?And in which field can I insert the transaction type??
    Thank you very much in advance!
    Best regards,
    Ander

    Hi Praveen,
    First of all thank you very much for your help.
    My problem continues, because I am not able to find the field inside the WPUWBW IDoc to insert the transaction type, in my case 1502. But I can find the field to introduce the goods movements type, in my case 7004 in E1WPG02 segment, movement type line.
    Thank you very much.
    I wait your reply.
    Best regards,
    Ander

  • Error in re-processing inbound idocs of status 51

    Hi
    We are facing problems in reprocessing inbound idoc from BD87 transaction
    We have an inbound process code 'STA1' which is pointing to a standard task 'TS30000206'.  we have an errored inbound idoc(status 51) of message type 'STATUS' ( standard status change idoc pointing to process code STA1 for a valid port. Whenever we try to process it using BD87 transaction, we are getting errors B1033-'No function module for input process code STA1'.
    We dont understand what we were missing. When we try the same for a process code which points to a function module, BD87 reprocesses it correctly.
    We tried adding an entry in BD67 with an inbound function module 'APPL_IDOC_INPUT1'. Note that we still had the process code pointing to the same task. This time BD87 reprocessed idoc, but gave 51 again saying that 'Function module not allowed: APPL_IDOC_INPUT1'.
    Any pointers or help in this regard will be highly appreciated.

    Hi,
            Please check IDOC TYPE, MESSAGE TYPE & PROCESS CODE  and also check the we30, we42. & try BD87 reprocess of an IDOC.

  • Multiple file uploads, or only one at a time?

    I have multiple files in folders on my iPad.  I want to upload entire folders of documents.  So far I have only been able to upload one document at a time.  Then after uploading, I have to put them in acrobat.com folders one document at a time.  It is very time consuming.  Is there any way to upload multiple files at one time?  Once the documents are uploaded, is it possible to move multiple documents into a folder at one time?  Or does each document have to be a separate upload action, and each move into folder a separate document-by-document one at a time?

    On my iPad I have been opening and saving pdf's in Adobe Reader.  I would like to upload these pdf files from the iPad Adobe Reader to acrobat.com.  I have thus far been uploading them from the iPad one fie at a time.  It is very slow and tedious.  There is also no way to get multiple pdf files from the iPad Adobe Reader to a computer except one file at a time.  So it seems that once I used the iPad Adobe Reader app to save the files, I am stuck with one file at a time movement.  I did, however, find that once I get files to acrobat.com, I can move multiples files at a time into folders on acrobat.com via the iPad.  The problem is getting them uploaded from the iPad Adobe Reader app to acrobat.com. Is there a solution I'm missing, or am I correct in my understanding of the iPad Adobe Reader app upload situation?

  • Only one at a time?

    Is there no other way of adding rows or columns between existing rows and columns except 1 at a time?

    It seems a bit odd (perhaps there is a bug)... but here is how it is working currently:
    (1) Select the number of rows you want to add
    (2) Do not use the little row header pop up. It only will add one at a time.
    (3) Instead the menu item "Table"/"Add Rows Above" or "Add Rows Below" (note that "Row" is plural in these menu texts). Alternately you can right click on a row header.

Maybe you are looking for

  • Performance problems with 0EC_PCA_3 datasource

    Hi experts, We have recently upgraded the Business Content in our BW system, as well as the plug-in on R/3 side. Now we have BC3.3 and PI2004.1. Given the opportunity, we decided to apply the new 0EC_PCA_3 and 0EC_PCA_4 datasources that provide more

  • How to register User custom field using PHP?

    Hi! I am looking for a way to share user specific data between connected users. For example, all participants should know each other IDs(our own system IDs, not LCCS). User's custom fields looks the best solution for this, but I can't find a way to r

  • Customer Statement of Account

    Dear All, What is the T-code for Customer Statement of Account. (Required for period i.e. From 1/04/2007 to 31/3/2008). Regards, Srikanthraj

  • Images aren't completely visible after loading in Photoshop CS6

    I've been using CS3.  Without un-installing CS3, I installed CS6 . . . actually both 64bit & 32bit.  I had several problems when running.  For example, images often were not completely visible after loading . . . part of the image showed as transpare

  • Many podcast episodes marked as saved

    I am getting many episodes marked as saved, despite never manually downloading episodes and never manually marking episodes as saved. I have to manually reset them to unsaved before they files will get deleted. In my personally idea scenario there wo