Purchase requisitions idoc issue

Hi,
We have found a new interesting thing happening in ECC.
IDOCs does not get processed due to PurReq is being processed.
Then the IDOC goes into status 51 and can no longer be processed by the batch jobs that is running for status 64.        
1) Is it possible to keep the status as 64 for these types of errors?
2) If not is it possible to reset these IDOCs from 51 to 64 in a batch job
3) or is it possible to get the batch job to run for IDOCs with status 51?
Regards,
RSK

Hi,
new !
that's just the normal behaviour since... almost the beginning of IDoc history.
1. yes. program RC1_IDOC_SET_STATUS.
2. yes, but that's not recommanded, as your idoc has been already processed, and it said to you "I cannot update this object  because someone or something is currently treating this same object".
if it's a permanent error like (this customer does not exist), that means with a background process (with a too short frequency) you will overload your system for nothing with a treatment like:
"idoc 64 -> 51" + "background change: 51-> 64" + "reprocess: 64 -> 51", etc...
when it's one idoc, it's ok, but if a day you a complete source files with several idocs which are in error.... you will reprocess them several time to say to you the same thing "cannot update because customer does not exist" (for instance).
3. yes. RBDMANIN in background, or tx BD87 in foreground.
According to me, it's better to use BD87 as it's a human you can analyze and decide to retreat the data.
Use background program only if you are sure that the data (in error) was sent a 2nd time after. In your case of purch req. i did not recommanded that.
Have a look a that:
Idoc1: role = change value with A on pruch req 123. This idoc is in error (like in your exm: already processing by another...)
Idoc2: role  =change value with B on purch req 123. This idoc arrives 5 min after idoc1. but this times the other processing is finished, and so ecc can integrate this idoc2. So in your systm you have value "B".
And you with your background process which runs (every hour, for instance), one hour after your Idoc2, you will retreat idoc1, and so now for your purch req, the value is "A"... and no more "B" which was the last value sent by your source system. => Problem !
4. So why not use it, but be clever/smart before to use such a background retreatment. Estimate the pro/cons.
regards.
Mickael
P.S : it's because we can, that we have to do it.

Similar Messages

  • How do I enter Document Type for Purchase requisition IDOC

    Hello,
    File - IDOC (PREQCR.PREQCR02)
    The file is getting picked up and shows up a checkered flag in Moni..
    but in WE05, on R3 side, i see an error message
    "Enter Document Type"
    How do I enter document type for Purchase requisition IDOC?
    will that solve this issue?
    thanks and regards
    Nikhil.

    Hi,
    For error 51, you need to set the default document type in the inbound processing FM of the IDOC
    Standard type - NB
    Subcontrator type
    Blank PO
    Service PO
    Stock transport PO.
    Document types is used for below things,
    1. It controls the no. range of the document i.e. the doc no.
    2. It controls whether doc no. is auto assigned or manually entered
    3. It controls the field status of the doc header fields i.e. whether input is mandatory or optional
    4. It controls the physical doc filing
    Thanks
    Swarup

  • Idoc to File scenerion : How to trigger Purchase requisition idoc

    Hello ,
    I am working on outbound interface for purchase requisition , which uses Idoc as sender adapeter and the Idoc type being used is PRWQCR03.
    can any one tell be how trigger the idoc purchase requisition idoc .
    Cheers
    Chan

    Hi,
    Go to WE19(testing tool) in the Application System(R/3).
    Then give the necessary parameters like Sender Port/Reciever Port , Message Type and then fill the data.
    Refer this thread-
    IDOC to Suppliers
    Regards,
    Moorthy
    Message was edited by: Krishna Moorthy P

  • Generating and transferring purchase requisition IDoc

    In ECC 6.0 there exists ALE_PR_CREATE which gave us all the required fields for generating the IDoc that we needed to transfer to our JCo program. Once the IDoc was generated using this program, it's status was set to '30' automatically.
    The next step in order to send this generated IDoc to the designated port was to make use of the standard program RSEOUT00 passing the message type so that it sends all IDocs, of that particular message type (PREQCR and PREQDL in our case) and having a status of 30, to the port, changing the status to 12 once this operation is completed.
    Since it was a standard program , I used the same logic in 4.6C. Unfortunately, the function module ALE_PR_CREATE does not exist in 4.6C.
    The alternative was to use ALE_REQUISITION_CREATE and ALE_REQUISITION_DELETE.
    Why 2 Function modules? Here's why...
    The first function module gave us all the required fields except one - the deletion indicator.
    Keep in mind that this field was also provided by ALE_PR_CREATE in ECC 6.0 system thus eliminating the need to look elsewhere.
    So, to satisfy our requirement of getting the deletion indicator for deleted items of a particular Purchase requisition, we found the second mentioned function module - ALE_REQUISITION_DELETE.
    This threw another problem in front of us...
    This function module gave us only the purchase requisition number, item number and deletion indicator. All the other data fields that we required for our java app to process the IDoc were missing.
    In order to solve this issue, we have designed our program to generate 2 IDocs one after the other. First using ALE_REQUISTION_CREATE and next using ALE_REQUISITION_DELETE in sequence.
    This gives us all the fields.
    The next problem was that the generated IDocs were having the status 03 (Data passed to port. OK.) but the Java application never seemed to receive the generated IDocs.
    A search on SDN led me to check the IDoc queue in SMQ1, a case of stuck IDocs in SM58 and also changing IDoc status in BD75 all in vain.
    Finally, on debugging the RSEOUT00 program, found out that it is checking for the status '30' (IDoc ready to be sent to port) which is hard coded in the program.
    On doing further research on SDN, find some resources that suggested various function modules.
    Tried out all of them one after the other.
    By trial and error, finally stumbled upon the Function Module 'DEQUEUE_ES_EDIDOCS' that acted as a replacement to using the RSEOUT00 program.
    After the IDoc is generated, just passing the IDoc number to this Function module sends it to the port and this was successfully received by our Java app.
    Posting this on SDN for the general benefit.
    Has anyone faced any similar issues? Let us know.

    Hi,
    Im using the non-enjoy  BAPI and BAdI for PR and for deletion the outbound IDoc gets send out all the way but for create outbound IDoc it gets stuck in status 30. I did try the FM that you suggested but doesnt have any effect.
    FMs that is being used inside my BAdI:
    ALE_REQUISITION_CREATE
    ALE_REQUISITION_DELETE
    Thanks,
    Arash

  • Purchase requisition idoc

    hello gurus,
    i know there are idoc types for purchase requisition create / change. But I am not able to understand how do i trigger that idoc from sap. I dont see any output / message types in purchase requisition ME51. Is it not from message control ? Is it stand alone or ale... i am confused. please help me. i would appreciate if you tell me a quick process to do this

    Hi,
    I belief that REQOTE is an RFQ (Quotation) not Purchase Requisition. There is no output determination for PR in Sap
    I guess you will have to :
    - create a transaction/report that read the EBAN table or use BAPI_REQUISITION_GETDETAIL and creates a Z-IDOC.
    - create Z-idoc (message and idoc types)
    You need to program the filling of the IDOC and maintain the distribution model and partnerfunctions. Use MASTER_IDOC_DISTRIBUTE function model to send your idoc .
    Hope it helps,
    JG

  • Purchase Order Idoc Issue - PORDCR103

    Hello Experts,
    I have one PO and 5 PO Items in my source. I sent Idoc(PORDCR103) to SAP from SAP BODS4 successfully and I was expecting to see 1 PO with 5 items But I saw 5 PO's were created with 5 items each instead of 1 PO with 5 items. Please find attached my Job screenshots.
    Any Idea on this.. Please can anybody share your experience.
    Thanks...Mohan

    This was because of different purchase group's in source data for all other 5 po items. I have resolved this issue by make same purchase group for all 5 po items.

  • Purchase order idoc issue

    Hi,
        I am facing a issue with an inbound purchase order change IDOC (message type: PORDCH).
    I am getting the following error: FM VENDOR_MASTER_DATA_SELECT_15 ; no partner functions found for vendor VENDOR_MASTER_DATA_SELECT_15 1.
    The vendors are configured such that they dont need a partner function. The suprising part is that the same message type idoc from the same vendor got succesfully posted a few days back and a few days after the issue was found, which means the error doesnt occur every time.
    Any input is highly appreciated.
    Thanks,
    Aparna.

    Hi Aparna,
    I want to make changes in an existing PO through an inbound idoc. I am using idoc type PORDCH01 and message type PORDCH, process code BAPI. But I am getting an error "Characteristic does not exist in operating concern".
    Can you please explain how u are using idoc type PORDCH01??
    Thanx in advance,
    Shaleen

  • Purchase Requisition workflow issue

    Hello  friends,
    i have created a workflow for PR release by copying standard  WS20000077  .
    the WORKFLOW trigeers properly  ,
    but when it created it goes to all users of  applied release strategy  , before release of previous one 
    what may be problem  .
    kindly suggest me  .
    Thanks & Regards
    Digvijay Rai

    Hi,
    but when it created it goes to all users of applied release strategy ,
    before release of previous one
    You  mean to say in the 1srt level Approval it goes to all People right. How you are determining the Agent, check that.
    For PR Workflow See the Following,
    WS20000077 this std. Workflow for the PR Release this has multiple levels of approvals, Depends on the no. of approvals it will flow.
    The approver can picked using the User Exit M06B0001 (EXIT_SAPLEBNF_001), here you have to write a logic to pick the Approver.
    The approval workitem comes to SAP Inbox, once the approver click the workitem it will open the Transaction, there the user can approve.
    To see the status of the Workflow, Go to ME53N, in the top left a button, Service Object, click on that, a drop down appear in Workflow > Workflow Overview, you can see the status here.
    Regards,
    Surjith

  • How can create IDOC for Purchase Requisition

    Hi all,
    whenever I change the Purchase requisition(Tcode-ME22N),IDOC has to be generated automatically.Please help me out.

    Hi ravi,
    It seems you are talking about the purchase order change.
    because ME22N is a transaction for editing the purchase order.Purchase req. is a internal document which we dont send out to any one.
    Anyway what is the output type you are using?.
    If you use NEU then no need for any changes.
    otherwise use NACE transaction and select your output type then mark the 'multiple issuing ' flag.
    So whenever there is a change system senses that and proposes the output.
    After that you got to make the settings at the partner profile using WE20 transaction.There at the message control parameters level mention the output type and set the change flag.
    Entry could be EF ( App.id) NEU (output type) and X (Change flag).
    So system generates the IDOC whenever you do the change using ME22n transaction.
    Please let me know if you have any issues.
    Thank you.
    Regards,
    karun.M

  • Problems for creating a header text in a Purchase Requisition by IDOC

    Hello,
    I´m creating Purchase Requisition by IDOC. I use PREQCR02  like basic type (   Message type PREQCR-Create purchase requisition )
    I don´t have any proble for creating item text, but I can´t create a header one.
    Any Idea?
    thanks for all.

    What is "it" that you cannot do (+ hate)???
    What is "status"? LineStatus???
    What is your problem when you try to skip an item?
    PS: You should always use enums instead of hard-coded values e.g.: Use the BoAPARDocumentTypes Enumeration for delivery.Lines.BaseType

  • Issue on Number Range for MRP Purchase Requisition

    Hi Gurus,
    Please help me on the issue explained below.
    We are already using SAP ECC 6.0 and SRM 5.0 and now we are implementing Plant Maintenance Module.As a result of this implementation ,we have created number of PR document types and assigned to unique number ranges in ECC. One of these document types has been maintained for MRP group for a material type in order to identify the MRP purchase requisitions created on the shortage of the materials for these material types.
    This functionality is working fine. MRP run for the materials is picking the appropriate PR document but number range of the document is not the same what was assigned to the linked document type.Some other number series is getting picked by system .
    There is setting under SPRO Consumption Based PlanningNumber RangesPurchase Requisitions
    Here, number range assignment is against plant. This is the same number range which is being taken by system on running MRP. But the desired number range is the one which has been linked to PR document type.
    If I change the number range above then number range for MRP PR in present system will get affected..
    Can you please advise me on above so that PR generated on MRP run should have appropriate number range?
    Thanks & Regards,
    Niti

    Hi,
    As per my understanding, what you have mentioned above is exactly the way SAP is designed. Its SAP Standard behaviour.
    But if you check your PR document type - no:range & the CBP no:range both will be same only since both refers to the same object.
    Please check the PR document type that you have assigned in the CBP & its no:ranges.
    Thanks & Regards,
    Ram

  • Interface-Establishing relation of idoc created and Purchase requisition

    Hi All,
    I have created a program wherein idocs are generated. Its gives rise to Purchase requisition.
    Can you please tell me how to show the PR created against the idocs that are generated in the spool list?
    Please note the function module creating the idocs does not return the PR no. generated.
    Any alternate solution to this is welcome.
    Thanks,
    Abhhishek

    Done

  • IDOC for Purchase Requisition

    Hi Experts,
    I have to triger an IDOC  to a 3rd party system when a Purchase Requisition is created, with the PR data.
    Is there any IDOC to do this?
    I Hope help me,
    Regards.
    MC.

    HI,
    Check these
    The message type is PREQCR.
    The IDOC types are
    PREQCR01 40A
    PREQCR02 46C
    PREQCR03 620
    The function to be used is BAPI_IDOC_INPUT1
    Thanks
    Mahesh

  • Budgeting through Internal Order - Issues in Purchase Requisition

    Hi All,
    I have posted the issue in ERP Matyerial Management Forum also, but since this has a lot to do with CO-Internal Order, so posting the same here.
    Objective: We want to activate Commitment Update and budgeting for Capital purchases thrugh Internal Order. Budgeting is done for IO.
    For the budgeting to get activated in Purchase requisition, Internal Order tagged to the Asset should be present/seen in the PR.
    For PR with Account assignment Cat as 'A', I am not able to see the Internal order (mapped to the asset) in PR. The field 'Internal Order' in PR is coming BLANK despite the fact that the Asset used in the PR has been tagged to a valid Internal Order (of the Object Class - Investment, with Commitment update activated).
    What other setting is missing?
    Pls note the following:
    1) Account assignment cat 'A' has been set to DISPLAY CO/PP order ( T code - OME9)
    Issue is that this field in the PR is NOT getting populated at all.
    2) Commitment management, Availability Control have also been activated in the system
    . Internal Order status management has also been checked.
    Any help in this respect will be highly appreciated
    Thanks
    Gayathri

    Hi Gayatri,
    when you are saying"budgeting for Capital purchases thrugh Internal Order",how do you use account assignment category "A"?
    if your requirement is budgeting for capital purchases through IO then you should use account assignment category in respective PR.Automatically it will control budget/commitment wrt those internal orders.
    Hope this helps you.
    Ashok

  • How to link Idoc generated with the Purchase requisition?

    Hi All,
    I have created a program wherein idocs are generated. Its gives rise to Purchase requisition.
    Can you please tell me how to show the PR created against the idocs that are generated in the spool list?
    Please note the function module creating the idocs does not return the PR no. generated.
    Any alternate solution to this is welcome.
    Thanks,
    Abhhishek

    Triple-post = Triple-lock.
    Please read the forum rules before posting any further.

Maybe you are looking for

  • Prior year planned depreciation never posted. How to post in current year?

    Hi Experts, Planned Depreciation was not posted in 2010. Is it possible to post that in 2011? What all steps are required? When I execute AW01N for the asset in question, system gives error "Message # AA669 - Fiscal year 2010 is already closed in Fin

  • HT1353 how to upgdade ipod touch 2nd Gen to lastest iOS?

    I have iPod Touch 2nd Generation (Modal : MB528LL) with Version 4.2.1 . How i can upgrade the iOS on this device? Can i upgrade it to iOS5 or higher?

  • Audio recorded too high - can I change

    I'm doing a slideshow for my daughter's cheer banquet & found that some of the video clips that I am using is at high levels and you can hear a high pitched sound - can I get rid of the high pitched sound (kinda like a stereo that is played too loud

  • MSMQ and SQL 2012

    Trying to get MSMQ working in a SQL 2012 Cluster. We have two nodes, OS server 2012 R2, and an instance of SQL 2012 on each node. I can send test messages to private and public queues. However when trying to send message through a stored procedure ca

  • IDOC communication thorugh tRFC connection

    Hello All,    We all know we can communicate b/w two SAP systems by posting IDOCs using tRFC connection. I am sending one material master IDOC from 800 client to 811 client using BD10. It is getting posted successfully. Now, while transferring this d