Create purchase requistion

Hello,
I'm working on an integration project between SAP and a third-party library software system. The goal is to generate SAP Purchase Requisitions for orders created within the library software. The idea is to let the library software generate an (xml) file and load the file into SAP.
I'm searching for information on the structure/layout of such a file and the technology to use to transform the file to a PR in SAP ?
Any help would be appreciated.
Kind regards,
Erik

You can not create BDC for purchase order creation by T-Code ME21n as it is using ALV for items. But you can use thold transaction ME21 to create purchase order by BDC. But better to use BAPI or functional module.

Similar Messages

  • Error in vendor selection while creating Purchase requistions

    Hi,
    I was using bapi_requestion_create to create purchase requistion with different quotas for different vendors.
    Ex: vendor A   with 60%
          vendor B   with 40%
    If the required quantity is 100 items then it has to split 60 items to vendor A and create seperate Puechase Requistion.
    and for 40items with another Purchase requsition.
    Currently iam able to split the noof purshcase requisiton but it was picking only with one vendor.
    MY Code :
    *******Split PRs with respect to Quota ************************
          data : lv_lines type i,
                 lv_qty type  p DECIMALS 4.
          lv_qty = it_oo-qty.
          DESCRIBE TABLE t_equp LINES lv_lines.
          IF lv_lines GT 1.
            clear : w_equp.
            loop at t_equp into w_equp
                          where qunum = w_equk-qunum.
              refresh : t_req_item.
              clear   : w_eord,
                        t_req_item[],
                        t_req_item.
              READ TABLE t_eord INTO w_eord
              WITH KEY matnr = it_oo_sum_purch-matnr_sap
                       werks = it_oo_sum_purch-plant
                       lifnr = w_equp-lifnr.
              if sy-subrc is initial.
                it_oo_purch-AGREE     = w_eord-EBELN. "To Fill ALV
                it_oo_purch-ITEM      = w_eord-EBELP. "To Fill ALV
                it_oo_purch-FORNEC    = w_equp-LIFNR. "To Fill ALV
                t_req_item-doc_type   = c_zbmr.
                t_req_item-pur_group  = it_oo-ekgrp.
                t_req_item-material   = it_oo_sum_purch-matnr_sap.
                t_req_item-plant      = it_oo_sum_purch-plant.
              t_req_item-AGREEMENT   = w_eord-EBELN.
              t_req_item-AGMT_ITEM   = w_eord-EBELP.
              t_req_item-FIXED_VEND  = w_equp-LIFNR.
              t_req_item-QUOTA_ARR   = w_equk-qunum.
              t_req_item-QUOTARRITM  = w_equp-qupos.
                t_req_item-gr_ind     = c_x.
                t_req_item-ir_ind     = c_x.
              t_req_item-MRP_CONTR   = 'NOV'.
                CONCATENATE it_oo_sum_purch-due_dte+4(4)
                            it_oo_sum_purch-due_dte+2(2)
                            it_oo_sum_purch-due_dte(2)
                            INTO t_req_item-deliv_date.
                t_req_item-QUANTITY   = ( w_equp-QUOTE / 100 ) * lv_QTY.
              endif.
    ********Rounding off values*******************
              data : lv_int(20) type c,
                     lv_dec(20) type c,
                     lv_tot(20) type c.
              clear : lv_int ,
                     lv_dec,
                     lv_tot.
              lv_tot = t_req_item-QUANTITY.
              split lv_tot at '.' into lv_int lv_dec.
              if lv_dec(1) ge '5'.
                lv_int = lv_int + 1.
              endif.
              t_req_item-QUANTITY = lv_int.
              APPEND t_req_item.
              clear : v_number.
      Create purchase requisition by group
              CALL FUNCTION 'BAPI_REQUISITION_CREATE'
                   IMPORTING
                        number            = v_number
                   TABLES
                        requisition_items = t_req_item
                        return            = t_return.
    ERRO
              IF t_return-type CO 'AE'.
                CLEAR: v_msg, v_x.
                CALL FUNCTION 'WRITE_MESSAGE'
                     EXPORTING
                          msgid = sy-msgid
                          msgno = sy-msgno
                          msgty = sy-msgty
                          msgv1 = sy-msgv1
                          msgv2 = sy-msgv2
                          msgv3 = sy-msgv3
                          msgv4 = sy-msgv4
                     IMPORTING
                          messg = v_msg.
                PERFORM zf_grava_log_erro_oo
                              USING it_oo_purch it_oo_sum_purch v_msg v_x.
    SUCESSO - Atualiza Tabela zsytmm_pr_po
              ELSE.
                CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
                     EXPORTING
                          WAIT = c_X.
                CLEAR: v_msg, v_x.
                CONCATENATE text-026  v_number INTO v_msg
                                      SEPARATED BY space.
                it_oo_sum_purch-QTY =    t_req_item-QUANTITY.
                PERFORM zf_grava_log_sucesso_oo
                          USING it_oo_purch it_oo_sum_purch v_msg v_x.
                CLEAR: zsytmm_pr_po.
                vl_item = c_00001.
                zsytmm_pr_po-banfn    = v_number.
                zsytmm_pr_po-bnfpo    = vl_item.
                zsytmm_pr_po-ebeln    = c_false.
                zsytmm_pr_po-ebelp    = c_false.
                zsytmm_pr_po-zshmode  = it_oo_purch-shipm.
                MODIFY  zsytmm_pr_po.
              ENDIF.
            endloop.

    Hi,
    You have to fill DES_VENDOR & FIXED_VEND of structure REQUISITION_ITEMS while calling BAPI.  But while going through your code,
    * t_req_item-FIXED_VEND = w_equp-LIFNR
    is commented, uncomment the same and add line for DES_VENDOR also.
    Regards
    Vinod

  • BDC to create purchase requistion

    Hi ,
    Can purchase req. be created using BSC?
      if yes then how, what are the mandatory fields for BDC recording for purchase requisition?
    Thanks
    Lovleen

    You can not create BDC for purchase order creation by T-Code ME21n as it is using ALV for items. But you can use thold transaction ME21 to create purchase order by BDC. But better to use BAPI or functional module.

  • Creating Purchase Requistion with Configuration Data

    Hi Guys,
    I am interested in creating purchase requisition (BUS2105) with configuration data (Charatceristics). However, the BAPI BAPI_REQUISITION_CREATE does not have any interface to pass the config data.
    I tried using BAPI BAPI_OBJCL_CHANGE/CREATE to assign characteristics to to the requisition with no success.
    Any suggestion is welcomed.
    Thanks
    Yogi

    Hi,
    Dont think Shipping data will be there in Material Master. U probably need to chk the shipping details for the customer instead.
    Regards,
    Bikash

  • Creating Purchase Requistion through WRP1 (Replenishment planning)

    Hi,
    We use transaction WRP1 to create requistions. There is a requirement to store the stock on hand of all articles in the requistions at the time WRP1 is executed and report on it later. I tried to achieve this by adding field STOCK in EBAN and WVFB and hoping that will automatically be transferred from replenishment to requisition. But, this does not happen. Also, table WRPT has this field, but does not store the value.
    Is there any where else that I can get the stock on hand used by the replenishment run from.
    Thanks in advance for any help.
    Cheers
    Tim

    Hi Shakthi,
    check necessary settings in Article
    under Logistics DC and Store Rp type should be RP, mention the
    Reorder point,
    target stock,
    planned delivery time
    Availability chceck - 01
    Purchase group
    and then Run WRP1
    Thanks
    Satheesh.C

  • Create Purchase Requistions through MD01 despite Procurement Type X

    Hi,
    When we run MD01, Planned Orders are being created for our materials with Procurement Type X despite we select "1 - Purchase Requisitions" in field "Create Pruchase req."
    We would like to have Purchase Requisitions created instead of Planned Orders, is it possible?
    Or is there any way of converting the planned order into a purchase requisition automatically? (we know we can do it manually in MD04)
    Thank you very much

    Hi Jürgen L,
    Thanks, but we need to have Procurement Type X (or E) due to a Project System requirement.
    I've seen that with Procurement Type E and Special Procurement 20 (External Procurement) the MRP creates PReq. (instead of Planned Orders) and our Project System requirement is fulfilled.
    It seems kind of contradictory (and I must do some extra test) but it works. Do you think this could have other consequences?
    Thanks

  • MD02 - Create purchase requistions

    Hi,
    I am using transaction MD02 to create puchase req. for sales orders. Do you know any user-exits or BAdis that can be used to assign a value to the tracking number field (BEDNR) on the purchase req. line item? Please help.
    Many thanks,
    Chuong

    There are several BAdI's for Purchase requisitions.
    Go to txn SE18 and select the drop down.
    Select Information System.
    Enter urchase in the short description (case sensitive to allow "Purchase" and "purchase").

  • User Exit / BADI while creating Purchase Requistion

    Hi,
    I am trying to find a BADI that would get triggered before the purchase requisition gets created (so that I can edit the storage location). I observe that purchase requisitions could be created with transactions like MD41 or while creating a sales order (events trigger MRP in background ?)
    I tried to find the relevant BADIs using the transaction MD41 and function module SXV_GET_CLIF_BY_NAME and found the following BADI definitions but was not too sure which one to use in the case. Could anyone help
    MD_MRP_PARAMETERS
    MD_CHANGE_MRP_DATA
    MD_ADD_ELEMENTS
    MD_MODIFY_SOURCE
    MD_ALTERN_EXPLOSION
    MD_LAST_LOT_EXACT

    Used the BADI MD_PURREQ_CHANGE

  • Sales order released from Credit block, but Purchase Requistion not created

    Hi,
    In third party sales scenario based on Scheduline Line category configuration purchase requistion creates when the order is created. If order is blocked for credit check then purchase requistion will not be created until order released from credit.
    Here my scenario is
    I have two users like A and B. When A releases the order from credit block by using transaction VKM1, Sales order releasing from credit and creating Purchase requistion. But, if the order is released by B, Sales order is getting released from credit but purchase requstion is not getting created.
    There is no issue from security side, we activated trace and analysed everything it is not security issue.
    Thanks and Regards
    Alokam Chandra Sekhar

    Hi Lakshmi,
    Thanks for reply. I followed your instructions, pls find my observations below.
    1. Can you check the below settings:
    What is the Credit status in the header status tab page of the sales order for the B's sales order?
    Is it "Not approved or releasedu201D If it is not approved, you might have released the sales order in VKM3, but you might not have saved it.
    Reply: We are releasing order through VKM1 and after releasing the order the status is showing as "Released".
    2. Did you use the same material for B's Sales order? If it a different material check the Item category and Schedule line category whether these are same with A's sales order.
    Reply: Both the orders has same information, like material Item category and scheduline category
    3. Check in the Schedule line tab page --> Procurement button whether you have maintain vendor, Source determination and Info record.
    Source list has been verified through ME03 transaction and vendor data maintained correctly.
    I really appreciate your time and efforts on this.. looking forward some more suggestions...
    Thanks and Regards
    Alokam Chandra Sekhar

  • 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

  • I want to make Requistioner field Mandatory in the Purchase requistion.

    Whenever i create purchase requistion i want to make  Requistioner field mandatory. I have checked the filed selection NBB and changed to mandatory and ME51 also  made mandatory after that also whenever i create with ME51 PR is going to next screen without asking for requistioner.
    Please let me know where actullay i have to make mandatory so that whenever i create it should ask the requistioner.
    Thanks.

    H,
    You also select the field Requisitioner as mandatory for below field selection>
    AKTH,ME51 & ME51N
    Because always the field selection: mandatoey , display & optional    will work in
    Setting Priority
        Hide 1
        Display 2
        Required entry 3
        Optional entry 4
    SAM
    Edited by: Saminathan Gopalan on Jun 22, 2010 3:25 PM

  • Operational responsable in Purchase Requistion

    Hi,
    one of the release steps in the release strategy of purchase requisition is dedicated to the department which takes care of the operational implementation of a service.
    E.g.
    - department A is in charge of construction services
    - A creates Purchase requistion for department B (costcenter)
    - Head of department A has to release the Purchase Requisition as well, so he is aware of the workload, which his colleagues have to cover
    I think this is not what the release procedure is made for. Is there another way to indicate - if possible the organizational unit - in the purchase requisition and to create some reporting so the head of the department A is aware of the workload?
    Thanks in advance
    Torsten

    Thanks for the feedback.
    To be honest with you I do not want that to be part ofthe release strategy. It is like that now, but I'm convinced it should not be part of the purchasing process itself, but rather indicated in some other field in the purchase requisition.
    Therefore we could assign each purchase requisition to an operational responsable without misusing the release procedure.
    If anybody has an idea, I apreciate your feedback
    Kind regards
    Torsten

  • Error while Creating PO from Purchase Requistion in Third Party  Sales

    Dear Team,
                          While Creating the Purchase Order from Purchase Requistion in Third Party Sales. When I am saving the PO I am getting the Error in GL Account Cannot be Used. I have disabled the field G/L Account in settings of Account Assignment Category of Third Party. Still I am facing that Error while Creating Purchase Order.  Can you guide me where we do this Assignment of G/L Account so that I can change the G/L Account.
    Thanks,
    Farhan.

    Dear Farhan,
    1. Go to T. Code: FS00 and enter GL number and Company Code and go to Tab: Create/bank/interest, write down the field status group.
    2. Go to T. Code: OBC4 and Select your Field Status Variant and Double Click: Field Status Group (From Left-hand Dialog Structure)
    Double-Click on to Field Status Group (as noted down from in Step 1).
    From Select group, Select Additional account assignments and make Earmarked Funds, as optional.
    Best Regards,
    Amit

  • Unable to create a PO via Purchase Requistion

    Hi Gurus ,
    I am facing a Problem while creating a Purchase order with ref. to a Purchase Requistion.
    System is showing an error "Purchase requisitions  of   document_type  ZVS or item category L may not  be  assigned to purchase orders of   document type ZVS or item   category L".
    Doc. type of Pur. Req. & PO is ZVS
    Item Category for PR & PO is L
    Kindly Guide.
    Regards
    Honey

    Goto
    SPRO-> Materials Management -> Purchasing -> Purchase order -> Define Document Types
    Select your document type ZVS and click on allowed item categories & check whether item category L is assigned.
    Then select link purchase requisition - document type. Here check whether your purchase requisition document type ZVS and item category L combination is maintained.

  • Not able to create purchase orders

    Hi Experts,
    I am not able to create purchase order , it is not allowing me to save , I I am giving purchase requisition number in Po and trying to crete po .When i give purchase requistion number  all the revelant data is copied and when i click on item level tab of delivery address following error occurs : Address doesn't exist  T001W 2000  00010.  Then the entire PO is cancelled.  not able to save going out of po screen
    Please give me your valuable advice so that it can help me in resolving this issue
    Please do the need ful
    Regards
    Ayub

    Hi
    We had to change the name text of he plant  from ABCD COMPANY TO ABCD COMPANY PRIVATE LTD so , we had change and in both name 1:ABCD COMPANY PRIVATE LTD  and NAme 2: ABCD COMPANY PRIVATE LTD 
    but in print out it the plant name  appearing twice we decided to to erase name 1 that is we left blank and gave name 2:ABCD COMPANY PRIVATE LTD 
    But while creatimg Po from req ad the clicking item level adress tab eror pops up , and if i click on error tick mark it will take you out from Po screen
    Regards
    Ayub

Maybe you are looking for

  • Attachments are missing in form later when you view the form

    Hi All, we have developed the application with webdynpro java with adobe interactive forms, we have implemented adding attachment to adobe form . I have two problems related to adobe attachments. 1)  once files are attached to form and submitted the

  • 13inch vs 15 inch non retina display for university

    13 inch or 15 inch Non retina display macbook for university? I've been going back and forth for so long and I only have a few more weeks before I go to university. My major is psychology, so I don't need it specifically for my major. I will be using

  • How to edit or add text to a PDF file from an e mail

    I would like to open a PDF file from an e mail received to work the file to edit and or add text, my e mail service is  LIVE.CA  (hot mail), I have Iwork 09 

  • Power plug cable for HP6500+ Printer for use in Australia

    I have recently immigrated to Australia from South Africa and need to get the part of the power cable with the plug for my HP6500+ printer, that is compatible for Australia, instead of using adaptors.  Any suggestions would be aprpeciated.  Thanks Th

  • Aggregation & Analysis

    I'm attempting to use Discoverer to create a rolling 12-month attrition report. It works fine, up to the point of trying to create a average headcount for each month in the current 12-month period over the last 12 months' each. The problem I'm encoun