Create Purchase Requisition through IDOC PREQCR1

Hi experts,
I use idoc PREQCR1  to crate PR successfully, but I need to add "cost center" and  "G/L account" infomation to PR, but I don't know how to have "cost center" and "G/L account" information in PR through IDOC PREQCR1
Thanks.

Hi Michael
As I don't have access to SAP system yet, giving functional information.
In ME51N, for line item, enter acct assgt category for "Cost Center" .Then in account assignment tab , "Cost Center" & "G/L Account" has to be entered. Add these fields.
Regds
Chandan

Similar Messages

  • Problem in creating Purchase order through Idoc

    Hi ABAPers,
    I am trying to post PO document through WE19 t-code using inbound function module BAPI_IDOC_INPUT1 which is calling BAPI_PO_CREATE1 internally.And i am getting below error messages.
    1. Characteristic  does not exist in operating concern AC01
    2. This function only possible for subcontracting items
    3. No instance of object type PurchaseOrder has been created. External reference
    passing data to IDOC:PORDCR102
    Header Segment : E1BPMEPOHEADER and E1BPMEPOHEADERX
    company code    0814
    doc_type            NB
    vendor                0000400001
    poprg-                EPRO
    pgroup               U01
    Item Segment : E1BPMEPOITEM and E1BPMEPOITEMX
    Item                  00010
    material             000000000000000263
    plant                 0374
    Qty                   22.000
    Delivery Segment E1BPMEPOSCHEDULE and E1BPMEPOSCHEDULEX
    Item                  00010
    Schedule line     0001
    delivery date      01.12.2008
    Qty                   22.000
    Note: i am able to create PO successfully, through SE37 by using FM BAPI_PO_CREATE1  with given above data.
    Please confirm me, what else i need to pass to post PO through WE19 t-code using inbound function module BAPI_IDOC_INPUT1.
    Please reply me ASAP.
    Thanks and Regards,
    Sekhar Raju.

    must be data format issue. when you use Function_module/BAPI from SAP GUI, convertion exit is applied automatically. hence data is converted to proper format & submited.

  • 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

  • Standard Smartform printing purchase requisition through - ME51N / ME52N

    Hi Experts,
    we are trying to build functionality to print Purchase requisition through transaction ME51N / ME52N / ME53N. we have created a print button on Customer data screen for that. Now we are looking for any standard smartform or script which can be used for printing Purchase requisition.
    Please provide me some pointers for the same.
    There is print button avalable at item level of purchase requisition. but it will not print header records. i am not able to find this form in system also. how can i find this form?
    thanks

    >
    rajpal sehrawat wrote:
    > Hi,
    >
    >
    > Header records means we might provide some header level information like PR number , short text and logo. Currently we are able to print only line items present in the ALV grid.
    >
    >
    > we are looking for some similar form which can be enhanced.
    >
    >
    > thanks
    actually the PR number is a line item field - it comes out of table EBAN. You would have to store the logo someplace else, since it does not belong to the PR (EBAN) -> neither header nor item, but is 'simply' graphics stored elsewhere in the database.
    I wouldn't know of any form in MM-PUR which you could easily adapt to printing PRs (and have never before heard of the need to print them) - so you will have to do a custom abap. Since there is no possibility to maintain NACE for PRs (it's simply not available) - I wouldn't know where you could use a smartform/sapscript ... that custom abap is all you can do ...

  • Create Purchase Order through EDI

    Hello Everybody,
    I want to know how to create Purchase order through EDI. I will receive text file from third party system. I have made most of the configuration related to EDI like Port -File, Partner Function etc. I am using message type PORDCR and Idoc type PORDCR05.
    But i do not know how the SAP first will convert the text file into IDoc and then create Purchase order. Can any body help me how to go about it? What steps i have to follow. I will have text file from that i have to create Purchase order through EDI.
    Thanks in advance.
    Regards,
    Manish

    Hi,
    Create Purchase Order through EDI
    Regarding on your query,
    You can use the standard ORDERS05 idoc type itself to send outbound idocs.
    It will be the middleware or the integration team that will send this IDOC to the receiving system.
    or
    Maintain Partner Profile in WE20, RFC Connection to the Middleware in SM59 and Port in WE21.
    Maintain Output Procedure/Output Type/Access Sequences/Condition Records from NACE
    Generate the Outbound 850 (PO) from ME21N
    Regards,
    Sekhar

  • Workflow purchase Requisition through transaction ME51.

    Dear Friends,
    Can anybody help me out by telling me a step-by-step process as setup up workflow purchase Requisition. and one more thing i wants to complete this through purchase Requisition transaction .
    scenario is just like,
      firstly i want create the purchase Requisition then this is directly connected for approver through WORKFLOW,
      How to connect the creation purchase Requisition through Transaction and that number goes for take approver through Workflow.
      Can you please you give me one example step by step , so i can do this one.
      Thanks in Advance for help.
    Cheers.
    Puneet.

    You check standard Business object BUS2009 thru SWo1 and standard Workflow Template WS00000038 thru PFTC_DIS.
    <b>Please reward points if useful</b>

  • Stock transfer purchase requisition through project builder

    Hi Friend's,
    For transfering material from one plant to another plant we have to create stock transfer purchase requisition through project builder.
    Can is it possible to create stock transfer purchase requisition through project builder which will have account assignment category as Q & item category U.
    Thanks & Regards,
    Sandeep

    Hi Sam,
    Thanx for your input.
    We are dealing with project specific stocks & customer project scenario.
    My requirement is that we having 2 plants. Projects are created in 1001 plant, same plant does the mfg. of FG items required for projects & 1002 plant manufactures MTS items which are required to mfg. project FG items as well as same items will bring into 1001 plant and then delivered to customer.
    Here my clients want to create stock transfer pr through project builder to bring MTS items from 1002 plant to 1001 plant & then delivered to customer.
    I think as you said this is not possible in std. sap to create stock transfer pr through project builder.
    Thanx & Regards,
    Sandeep
    Edited by: Sandeep Theurkar on Mar 23, 2011 7:11 PM

  • Creating Purchase Requisitions from within PS (ie from network)

    When creating purchase requisitions from within Projects Systems (ie activating them from a network) is there a "standard" way to put a cost center on the Purchase Requisition?  Currently no cost center is put on the account assignment.  We are looking at doing a custom field on the network header to hold the cost center and then a user exit to take this cost center and put it on the purchase requisition (and reservations) but before we go to all this trouble thought maybe I should check to see if I am missing something obvious?  Is there a more straight-forward way to accomplish this?  We know that we cannot edit the account assignment in ME52N becuase the PR originates from the network and therefore can only be changed from the network.
    Any input welcome.  Thanks.

    Dear Laura,
    When you will create Purchase Requistion through Network, system automatically takes account assignment category as "N" i.e Network. This you can not change in ME52N transaction.
    So this is a standard practise for generating Purchase Requistion through Network in PS Module.
    As you said putting Cost Center in Network Header as a Account Assignment Category which will go up to PO creation by using some User Exit which will not be possible in PS Module as per my knowledge is concern.
    But you want to keep Cost Center as as a Account Assignement Category you need to create manual Purchase Requisition through ME51N transaction.
    Hoping this will be useful to you.
    Regards,
    Sandeep

  • Can we create purchase order through report programming?

    hi experts.....
    can we create purchase order through report programming?If yes plz give me the thread details?

    Hi,
    Use this code in a program by using a BAPI function module
    Anothe rway is using classical/ALV report using call transaction from a report for changing the PO
    loop at i_header.
        header-ref_1         = i_header-legacy.
        headerx-ref_1        = c_x.
        header-doc_type      = i_header-bsart.
        headerx-doc_type     = c_x.
        header-comp_code     = i_header-bukrs.
        headerx-comp_code    = c_x.
        header-purch_org     = i_header-ekorg.
        headerx-purch_org    = c_x.
        header-pur_group     = i_header-ekgrp.
        headerx-pur_group    = c_x.
        header-vendor        = i_header-lifnr.
        headerx-vendor       = c_x.
        concatenate i_header-bedat+4(4)
                    i_header-bedat+0(2)
                    i_header-bedat+2(2)
                    into header-doc_date.
        headerx-doc_date     = c_x.
        header-created_by    = i_header-ernam.
        headerx-created_by   = c_x.
        header-currency      = i_header-waers.
        headerx-currency     = c_x.
        concatenate i_header-kdatb+4(4)
                    i_header-kdatb+0(2)
                    i_header-kdatb+2(2)
                    into header-vper_start.
        headerx-vper_start   = c_x.
        loop at i_items where legacy = i_header-legacy.
          item-po_item            =  i_items-ebelp.
          itemx-po_item           =  i_items-ebelp.
          itemx-po_itemx          =  c_x.
          if i_header-bsart = 'NB'.
            item-material            =  i_items-ematn.
            itemx-material           =  c_x.
            schedule-quantity        =  i_items-menge * 1000.
            schedulex-quantity       =  c_x.
          else.
            item-short_text          = i_items-ematn.
            itemx-short_text         = c_x.
            item-matl_group          = '1000'.
            itemx-matl_group         = c_x.
            schedule-quantity        =  '1'.
            schedulex-quantity       =  c_x.
          endif.
          item-plant               =  i_items-werks.
          itemx-plant              =  c_x.
          schedule-po_item         = i_items-ebelp.
          schedule-sched_line      = '1'.
          schedulex-po_item        = i_items-ebelp.
          schedulex-sched_line     = '1'.
          schedulex-po_itemx       = c_x.
          schedulex-sched_linex    = c_x.
          concatenate  i_items-eildt+0(2)
                       i_items-eildt+2(2)
                       i_items-eildt+4(4)
                       into schedule-delivery_date.
          schedulex-delivery_date  =  c_x.
          item-price_unit          =  i_items-peinh * 100.
          itemx-price_unit         =  c_x.
          item-tax_code            =  i_items-mwskz.
          itemx-tax_code           =  c_x.
          item-shipping            =  i_items-evers.
          itemx-shipping           =  c_x.
          account-po_item          = i_items-ebelp.
          accountx-po_item         = i_items-ebelp.
          accountx-po_itemx        = c_x.
          if i_header-bsart = 'FO'.
            item-pckg_no  = sy-tabix.
            itemx-pckg_no = 'X'.
            limits-pckg_no        = sy-tabix.
            limits-limit          = i_items-overalllimit.
            limits-exp_value      = i_items-expectedoverall.
            posrvaccessvalues-pckg_no    = sy-tabix.
            posrvaccessvalues-line_no    = '0'.
            posrvaccessvalues-serno_line = '00'.
            posrvaccessvalues-percentage = '100.0'.
            posrvaccessvalues-serial_no  = '01'.
            account-serial_no     = '1'.
            accountx-serial_no    = '1'.
            accountx-serial_nox   = c_x.
            account-quantity  = '1'.
            accountx-quantity = c_x.
            call function 'CONVERSION_EXIT_ALPHA_INPUT'
              exporting
                input  = i_items-kostl
              importing
                output = account-costcenter.
            accountx-costcenter   = c_x.
            call function 'CONVERSION_EXIT_ALPHA_INPUT'
              exporting
                input  = i_items-sakto
              importing
                output = account-gl_account.
            accountx-gl_account   = c_x.
            item-acctasscat       = i_items-knttp.
            itemx-acctasscat      = c_x.
            item-item_cat         = i_items-epstp.
            itemx-item_cat        = c_x.
          endif.
          append:item,itemx,schedule,schedulex,account,accountx,limits,posrvaccessvalues.
          clear :item,itemx,schedule,schedulex,account,accountx,limits,posrvaccessvalues.
        endloop.
        call function 'BAPI_PO_CREATE1'
          exporting
            poheader                     = header
            poheaderx                    = headerx
    *   POADDRVENDOR                 =
    *   TESTRUN                      =
    *   MEMORY_UNCOMPLETE            =
    *   MEMORY_COMPLETE              =
    *   POEXPIMPHEADER               =
    *   POEXPIMPHEADERX              =
    *   VERSIONS                     =
    *   NO_MESSAGING                 =
    *   NO_MESSAGE_REQ               =
    *   NO_AUTHORITY                 =
    *   NO_PRICE_FROM_PO             =
            importing
            exppurchaseorder             = ponumber
    *   EXPHEADER                    =
    *   EXPPOEXPIMPHEADER            =
            tables
            return                       = return
            poitem                       = item
            poitemx                      = itemx
    *   POADDRDELIVERY               =
            poschedule                   = schedule
            poschedulex                  = schedulex
            poaccount                    = account
    *   POACCOUNTPROFITSEGMENT       =
            poaccountx                   = accountx
    *   POCONDHEADER                 =
    *   POCONDHEADERX                =
    *   POCOND                       =
    *   POCONDX                      =
            polimits                     = limits
    *   POCONTRACTLIMITS             =
    *   POSERVICES                   =
       posrvaccessvalues            = posrvaccessvalues.
    *   POSERVICESTEXT               =
    *   EXTENSIONIN                  =
    *   EXTENSIONOUT                 =
    *   POEXPIMPITEM                 =
    *   POEXPIMPITEMX                =
    *   POTEXTHEADER                 =
    *   POTEXTITEM                   =
    *   ALLVERSIONS                  =
    *   POPARTNER                    =
        if ponumber eq space.
          loop at return where type = 'E'.
            clear buffer.
            move-corresponding return to e_return.
            concatenate i_header-legacy e_return into buffer.
            transfer buffer to p2_file.
          endloop.
          move-corresponding i_header to i_eheader.
          transfer i_eheader to p3_file.
          loop at i_items where legacy = i_header-legacy.
            move-corresponding i_items to i_eitems.
            transfer i_eitems to p4_file.
          endloop.
        else.
          commit work and wait.
        endif.
        clear:ponumber,header,headerx,item,itemx,account,accountx,limits,return,schedule,schedulex,posrvaccessvalues.
        refresh:item,itemx,account,accountx,limits,return,schedule,schedulex,posrvaccessvalues.
      endloop.
      close dataset p2_file.
      close dataset p3_file.
      close dataset p4_file.
    Regards
    Krishna

  • Creating purchase requisitions instead of planned orders after MRP run in MDBT

    When running regenerative planning in MDBT for plant with following details ,The system has to provides planned orders for the materials .
    Processing key:NEUPL
    Create Purchase requisition :3
    Schedule lines:3
    Create MRP list:1
    Planning Mode:1
    Scheduling :1
    But sometimes it provides purchase requisitions for certain materials.The problem happens for different materials at different times.
    I checked the material master and found that procurement type is external procurement.Business need to create planned order for the materials and then want to convert it to purchase requisition.
    MRP group is assigned to the materials but no creation indicator maintained for the MRP group.
    Please tell me why this run creates purchase requisitions suddenly and in the next run it disappears?

    Hello
    Maybe someonelse is running MRP in another transaction, such as MD02, with a different parameter. Check on transaction MD05 when was the last MRP execution and the user that ran it.
    Also check if there is any active implementation of BAdI MD_MRP_PARAMETERS.
    If you don't have a cretion indicator, maybe it would be useful to set it for your MRP group, with the parameter 3, in order to make sure that planned orders will be created.
    BR
    Caetano

  • How To Restrict Users To Only Create Purchase Requisitions with Item Catalog?

    Hi, everyone 
    Please help me, 
    How To Restrict Users To Only Create Purchase Requisitions with Item Catalog? is it possible? 
    Regards,   Manuel

    Hi Steenie Norman
    First click on the text item ---> Tools ---> Property Pallete ---->
    and change the Keyboard State to Local Only also this Depend in your OS
    hope this useful ....
    Regards
    Mohammed

  • IW31-Create Purchase Requisition automatically from PM order - Release 5.0

    Dear Experts,
    Currently we are working in the 4.6C Release but we are doing the migration for 5.0. In PM, in the 4.6C release when we
    create a PM Order in tcode IW31 we select a component and the system shows us the screen to inform the quantity and
    automatically the system shows us a  screen to Create Purchase Requisition where we can fill or select some fields.
    However, when we create a PM order in the  5.0 using the same tcode, the same material type, the system creates
    automatically the Purchase Requisition without to show us the screen to fill or select the fieds. I´ve checked the customizing
    comparing the systems but I couldn´t find something.
    I was wondering If you could help me with this issue?
    If my comments are not enough to understand me, please let me know...
    BR
    Valdevair

    Dear friend,
    Do check configuration node at
    plantmaintenance and custonmer service - maintenance and service processing -maintenance and service orders - functions and settings for order types - define change documents,collective pur.requisitionsindicator,operation no.interval
    here for your order type and plant  , check whether generation of PURCGHASE REQUISITION from maintenance order settings.
    there will be three options
    1) never
    2) from release
    3) immediatly.
    hipe this will help you.
    Regards,
    pardhu

  • Make item to create Purchase Requisition and Work Order

    I have a requirement for a Make item to create Back to Back Purchase Order from Sales Order. At the same time, need to create Work Order from Sales Order for the same item. I have done all setups for Back to Back order and able to create Purchase Requisition from Sales Order line. But how to create Work Order. What are the setups to achieve this? Thanks

    Ajith_Kz; Consultant wrote:
    I have a requirement for a Make item to create Back to Back Purchase Order from Sales Order. At the same time, need to create Work Order from Sales Order for the same item. I have done all setups for Back to Back order and able to create Purchase Requisition from Sales Order line. But how to create Work Order. What are the setups to achieve this? ThanksI guess it can't be done..when u say u created a purchase req?i was just wondering how did the system let u to create a POR when you say it is a make item?
    HTH
    Mahendra

  • While creating Purchase Requisition we need to send a mail for approvers

    Hi All,
    While creating Purchase requisition we need to send a mail to approvers.
    Dowe  need to create Function module ?
    if You know the steps can you please give me the steps.
    Thanks In advance
    Sriman.

    Hi Sriman
    Here we can try for 2 approach
    one is workflow and other his sending emails via user exit.
    I am not much aware about workflow, but you can explore for user exit.
    Try for enhancement component 'MEREQ001'.
    let me know, if you need further help
    Regards
    MD

  • What program in SAP SD automatically creates Purchase requisition

    What program in SAP SD automatically creates Purchase requisition, and also please tell me the user exit that we can use to change the delivery address automatically from plant address to ship-to address during purchase requisition creation time...
    Your help will be appreciated.
    Thanks,

    Hi,
    The control to Create the PURCHASE REQUISITION is in the SCHEDULE LINE CATEGORY VOV6
    The Purchase requisition will be created  automatically for the THIRD PARTY and INDIVIDUAL PURCHASE ORDERS
    The field in VOV6 
    ORDER TYPE
    ITEM CATEGORY
    ACCOUNT ASSIGNMENT
    Will determine the  Document type for creating the Purchase requisition
    IFor both THIRD PARTY & INDIVIDUAL PURCHASE ORDER the standard Purchase requsition document type is NB and
    ITEM CATEGORY  5 will determine whether it is  third party or Individual PO.
    Hope it is clear,
    Please revert back if you need more details
    regards,
    santosh

Maybe you are looking for