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

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

  • How To find Purchase requisition last changed By and last changed On?

    Hi All,
    How To find Purchase requisition last changed By and last changed On?
    Thanks,
    Ezhil

    Hi
    Go to M53N
    Environment.
    Header/Item changes.
    You will get the changes made to PR.
    Regards
    Sachin

  • How to trigger automatically an IDOC and RFC from SAP R/3 system?

    Hi ,
    lets say if we are implementing IDOC to FILE &RFC to FILE scenario ,how can we trigger  on timely basis(schedules)
    1)standard IDOCs and BAPIs?
    2)customized Idocs and Customized Bapis?
    3)Master Idocs and transactiona Idocs?I think we need to use change pointers for master Idocs and donno about Transactional Idocs.
    please explain ,
    thank you very much for your help.
    regards,
    Babu

    sorryfor the late reply, I was busy with my work.thank you for your posts.
    so all of you say just run the RSEOUT00 no matter what interface we use in XI like Master ,transactional Idocs,standard or customized BAPIs?
    And I think we use RSNASTED if we have on recieving side right?
    <b>then when we would use a report of format below to trigger an RFC,is this format for Asunc RFC ?</b>
    REPORT Z_SEND_DATA_TO_XI.
    parameters: dest like rfcdes-rfcdest default '(RFC Destination you defined in SM59)'.
    <<your other variable declaration and ABAP Code here>>
    call function 'ZXI_SEND_DATA'
    in background task
    destination dest
    exporting
    Name = John
    City = Smith. (The values to pass to XI)
    commit work.
    <<Any Write statements or sy-subrc statements here>>
    6) Save and Activate your ABAP program.
    6) After all these steps, execute your ABAP Program to send the data to file via XI.

  • How to trigger an Outbound IDOC with a default status 68

    Hi,
    How an Outbound IDOC can be created/triggered with a default status 68??
    I have a requirement where the outbound IDOC should always get created with status 68. Once an Outbound IDOC is created, I should not be changing its status manually or using a program.
    Basically we don't want any IDOCs created in other status and changing to 68 once an IDOC is created with a different status.
    Currently i'm using fm 'IDOC_OUTPUT_DELVRY' to trigger an outbound idoc, and the idocs are triggered with different status 30, 2, 3 etc... By using a program i can change the status of the IDOC. But what we need is "Whenever an outbound idoc is triggered, it should always have status 68".
    Please let me know the ways to achieve this functionality.
    Thanks!

    Hi,
    We need to display all the IDOC data on a Smartform layout. But we dont need the IDOC to be used for our requirement. So we want to make sure that IDOC is triggered but will not stay in 02 or other status.
    We have a process to monitor the failed idocs (02 status) and we do not want our idoc to have failed status. So we need the idocs to be tirggered directly with status 31 (thanks for letting me know that i cant use status 68 for outbound idocs).
    Thanks!

  • 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

  • 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

  • How to release Purchase requisition..URGENT..

    Hi guru's
    good morning to all,.
    I have created PR in my development (100).further i want to create PO for the same .But while creating PO , the shows the PR is not released.
    Can anybody support me how to release PR in Development.iTried in ME54N..
    Thanks in advance
    sap-mm

    Dear
    be sure that you are creating PO in the same plant which of the PR exist
    there are many ways to create the PO with ref. to PR
    1. go to me21n enter vendor and plant-> add PR no. in the item details pur req column and the line no. in the just next column and enter you will get it.
    2. go to me57 and select the PR and click on assign manually and select the assignment and then double click on the next selected itm you will get the me21n screen where you can enter the vendor and drag your PR from docmnt overview window in the PO basket.
    3. the same thing you can done with
    me25- vendor unknown
    me58 - via requisition assignment list
    me59n- automatically via PR
    you can get the PR no in me21n only after entering the the PR no. in the Purchase requisition column with the line no.
    also youcan dra and drop the PR no. through docment overwiew tab and enter the pr no. in my purchase requisition
    rewads needed accordingly
    regds
    devesh
    Edited by: DEVESH AGRAWAL on Jan 5, 2008 2:03 PM

  • How to Reject Purchase Requisition

    Hi All
    I tried using ME UPDATE REQUISITION but its not working.
    If anyone had tried this function module before to reject the purchase requisition, please guide me how to use it
    Or is there is any other way to Reject Purchase Requisition.

    hiii
    you can use BAPI_REQUISITION_CHANGE
    FM to reject purchase requision.
    regards
    twinkal

  • UWL - how to approve purchase requisitions

    Hi experts,
    Can anyone tell me whats wrong with the xml code section below ?
    It is supposed to approve a purchase requisition by triggering an event called RELEASED,
    which is defined as a triggering event of TS90100067
    it seems object key is not delivered to R3, this is the message from tracing with SWEL
    Event Instance ID    14252057
    Object Type          BUS2009
    Object Key           null
    Event                RELEASED
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE UWLConfiguration PUBLIC '-//SAP//UWL1.0//EN' 'uwl_configuration.dtd' >
    <UWLConfiguration version="1.0">
         <ItemTypes>
              <ItemType name="uwl.task.webflow.TS90100067" connector="WebFlowConnector" defaultView="PurchaseApproval67" >
                   <ItemTypeCriteria  externalType="TS90100067" connector="WebFlowConnector"/>
                   <CustomAttributes>
                        <CustomAttributeSource id="ABAP_BOR" objectIdHolder="externalObjectId" objectType="BUS2009" cacheValidity="final">
                             <Attribute name="PRICEUNIT" type="string"     displayName="Price" />
                             <Attribute name="QUANTITYREQUESTED" type="string"     displayName="quantity" />
                             <Attribute name="VALUATIONPRICE" type="string"     displayName="total" />
                        </CustomAttributeSource>
                        <CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalId" objectType="WebFlowContainer" cacheValidity="final">
                             <Attribute name="_WORKITEM" type="string" displayName="_WORKITEM"/>
                             <Attribute name="RELEASECODE" type="string" displayName="releaseCode" />
                        </CustomAttributeSource>
                        <CustomAttributeSource id="UM" objectIdHolder="creatorId" objectType="user"     cacheValidity="final">
                             <Attribute name="firstName" type="string" displayName="firstName"/>
                             <Attribute name="lastName" type="string" displayName="lastName"/>
                        </CustomAttributeSource>
                   </CustomAttributes>
                   <Actions>
                        <Action name="released" userDecision="yes" groupAction="yes" handler="TerminatingEventHandler">
                             <Properties>
                                  <Property name="eventName" value="RELEASED"/>
                                  <Property name="objectType" value="BUS2009"/>
                                  <Property name="objectId" value="${item.externalobjectid}"/>
                                  <Property name="RELEASECODE" value="${item.RELEASECODE}"/>
                             </Properties>
                             <Descriptions default="Release"/>
                        </Action>
                   </Actions>
              </ItemType>
         </ItemTypes>

    Hi,
    Here's what I did to add a custom task (SC approval) to my UWL :
    1. download standard UWL configuration file for SRM (com.sap.pct.srm.core.xml) and copy the file (com.sap.pct.srm.core.<CUSTOMER>.xml)
    2. find a standard task that looks like my custom task
    3. copy the ItemType block corresponding to the standard task and change the ItemType name
    4. upload the new configuration file : create a new configuration (com.sap.pct.srm.core.<CUSTOMER>) and make sure high priority is set
    For example, here's what I've added to my configuration file in order to handle a custom task (TS91000001) :
    <ItemType name="uwl.task.webflow.srm.TS91000001" connector="WebFlowConnector" defaultView="com.sap.pct.srm.core.view.tasks" defaultAction="com.sap.pct.srm.core.action.launchWD.WDCLFPOIF" executionMode="default">
          <ItemTypeCriteria externalType="TS91000001" connector="WebFlowConnector"/>
          <CustomAttributes>
            <CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalId" objectType="WebflowContainer" cacheValidity="final">
              <Attribute name="WD_CONFIGID" type="string" displayName="Web Dynpro Application Configuration"/>
              <Attribute name="BOTYPE" type="string" displayName="Type of Business Object"/>
              <Attribute name="BOID" type="string" displayName="Business Object ID"/>
              <Attribute name="BOMODE" type="string" displayName="Business Object Mode"/>
            </CustomAttributeSource>
          </CustomAttributes>
          <Actions>
            <Action reference="com.sap.pct.srm.core.action.approve"/>
            <Action reference="com.sap.pct.srm.core.action.reject"/>
            <Action reference="com.sap.pct.srm.core.action.launchWD.WDCLFPOIF"/>
            <Action reference="com.sap.pct.srm.core.action.launchWD.print"/>
          </Actions>
        </ItemType>
    Hope it helps.
    Regards,
    Pierre

  • How to update Purchase requisition number in EBAN table through ME51n?

    Hi Guru,
    I know thoes user exit as below use for ME51N.
    EXIT_SAPLMEREQ_005
    EXIT_SAPLEBND_001
    EXIT_SAPLMEREQ_010
    But I don't know which use exit  effect after saving  PR number in EBAN table and which field  to tick PR number = '0010000111'  in order to I want update  number 00100001111 in EBAN  table after clicking save in ME51N.
    I need it soon . Please help me,
    Thank you so much guru.

    Hi,
    Try with this BADI ME_PROCESS_REQ_CUST and create a new implementation under POST. That would give us the generated new PR number and using that we can access the relevant tables.
    And also try this exit given Below EXIT_SAPLMEREQ_009 Document Number Assignment: Purchase Requisition
    Regards
    kk
    Edited by: Krishna KiranN on Dec 20, 2011 5:28 AM

  • 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.

  • IDOC testing: how to upload sample IDOC xml file while outbound IDOCtesting

    Hi experts,
    can any one tell me , how to upload a sample XML idoc xml(data) file while Outbound IDOC testing;
    in WE19 tcode ( insted of manually entering the sample data, i have to import the sample XML/text file into the idoc fields). say IDOC is  MATMAS.
    Thanks in advance;
    Kumar

    Hi Asit Purbey,
    can you clearly explain, how to upload the file and how can i genetare the IDOC no?
    i have seen that function module IDOC_XML_FROM_FILE, in that it is required a port no, what exactly it is, and what type of port is it?
    suppose i am having a XML/TEXT file with IDOC data, how can i upload it into the server and how can convert it into the IDOC and how can i generate the IDOC no for outbound testing?
    Thanks,
    Anil

  • Idoc-XI-file test scenario

    i m new to XI,
    i wanna make a test scenario for idoc-XI-file...
    i donno what an idoc is.......
    tell me how to create an idoc from the very basics....like message type, segment, partner profile, port creation, etc,..... and how to fire an idoc from the R3 system to my XI system,
    and ofcourse... ican do the rest of mapping and all, with the file message type

    Hi Sudeep,
    1. steps for creating customized Idocs..
      we31- creation of Segments
      we30- creation idoc types
      we81- creation of Message types
      we82- assigning message type to Idoc type...
    2. R/3 Configuration settings
      SM59 -  creation of RFC destination...
      we20  -  creation of Ports
      We21 -  Creation of Partner profiles..
    3. XI Configuration settings
      SM59  - Maintain RFC destination,
      IDX1    - Maintaining port for XI
      IDx2    - Loading the Idocstructure into metadata repository
    These are the settings to be done before starting ur scenario..
    I think this will help you... points...
    regds,
    vasanth.

  • Query realted to IDOC packaging in case of  IDOC-SAPPI- FILE scenario

    Hi,
    I have requirement related to IDOC packaging, i.e. SAP ECC -SAP PI - FTP server.
    I have done the following settings:
    1) In WE20, I put the partner profile settings to collect mode.
    2) I am using RSEOUT00 to trigger the collected IDOCs for example 2 idocs together.
    3) In SAP PI, I have done the following settings
    a) I added the the parameter in sxmb-adm, RUNTIME , PACKAGING & Value 1
    b) I have used IDXPW t-code to activate the message packages for IDOC
    c) I run the job through sxmb_adm t-code, configure event driven message filtering
    d) I exported the xsd of ORDERS05 and changed occurence of source structure to 0 to Unbounded and imported it in Integration Repository.
    e) I am not using mapping & interface mapping as I just want to post the IDOC structure as it to the receiving FTP server. Therefore when I changed the occurence of ORDERS05 xsd to 0 to unbounded my idea was that in the outbound message interface it will be reflected which will be ultimately reflected in Integration directory.
    Problem Details:
    When I test for the 2 PO idoc from SAP ECC, it generates 2 messages in SAP PI and also 2 files in FTP server but actually it should generate one output file containing both the IDOC details.
    Note: I am just trying to merge 2 idocs of PO as IDOC package into one output message.
    Can anybody what configuration settings I am missing for the packaging.
    Thanks & Regards
    Prabhat

    Hi Prabhat,
    If you are using PI 7.0 EHp1 or PI 7.1 Ehp1, you can configure packaging parameter and create single file for multiple idocs without using BPM.
    In other case, you have to use BPM.
    But recommended approach would be to create XML file port on SAP ECC and create IDOC XML file.
    You must have set collect IDOCs option in partner profile.
    Now you can execute RSEOUT00 report program and specify IDOC type and number IDOCs to be collected.
    This configuration will generate IDOC XML file for number IDOCs you specified in RSEOUT00 report program.
    In PI you can use File adapter to pick the file.
    Here is the nice blog explaining entire process:
    /people/stefan.grube/blog/2006/09/18/collecting-idocs-without-using-bpm
    Best Regards,
    Divyesh

Maybe you are looking for

  • Extrapolate data into a graph

    Thank you for taking a look at my question. I am having a hard time finding out how to extrapolate data into a graph. I am working on a business forecasting document and would like to create a break even analysis by charting the fixed, semi-fixed, an

  • Header Display in file - Using OHD

    Hi, Using OHD i am pushing data from ODS to local file in CSV format and it is working fine, now i need Header also in the file. ex., Now file is like AAA     6A      2BB BBB      6B      C2S but i need header too, like MATERIAL      CLASS       SUB-

  • Website has sent an untrusted certificate accept a...

    today when i opened the ovi maps as usual and then opened weather and as normal it asks me to go online to use the service any ways i tapped yes and proceeded but this time a new message appeared (website has sent an untrusted certificate accept any

  • Qosmio F10 display and sound drivers not installing

    Hi, my hard drive went and on replacement we used the toshiba recovery disk. We have installed the Intel Chip Software and then NVIDIA driver. It says its installed but makes no difference after restarting computer. The sound driver starts to install

  • How can i restore the bookmarks toolbar that i had before this upgrade?

    where did you guys put the bookmarks toolbar in this new firefox? how can i get it back? i miss it.