Purchase Requisitions

Hello Experts,
The below decribed must be done.
Is there somebody faced similar kind of issue. I need some hints how to do that.
To Do:  (please notice there are 2 Systems R/3 Backend-System and SRM-System)
Make  Purchase Requisitions from created order by the Transactions(IW31/ IW32 / IW34 / IW36 / IW81) at the Backendsystem R/3
Replicate this Purchase Requisitions into SRM System and make approved Shopping Cards out of these
Purchase Requisitions (within SRM)
Later create Purchase Order at the Backend according the Shopping Cards where
have been created within SRM .
Please suggest me how can I go for it.
rgds
ilhan

My Only suggestion is to post this thread in the MM & SRM Forum, for speedy responses.

Similar Messages

  • FI MM integration with purchase requisition

    Hi,
    For FI MM integration - acquire asset through MM - the process is -
    1) create asset master
    2) Purchase requisition
    3) PO
    4) Assign asset master to PO
    5)Goods receipt
    It is difficult to create an asset master in advance, so the solution is to create purchase requisition without account assignment.
    I would like to know whether this is possible. because once we select Account assignment category "A" system does not allow us to save the Purchase requisition.
    Can someone pl. help me understand how to achieve this.
    Thank you
    - Vedavatee

    Hi vedavatee,
    You need to assign Asset Number since PR when you are using Account Assignment A.

  • Error in new purchase requisitions, for already deliverd materials

    Dear all,
    I have a problem with newly created purchase requisitions, although material was partially delivered and no delivery is expected anymore.
    For example I have ordered 1767kg of oil and a total sum of 1766.2kg was deliverd. This means only a minor amount of material was not deliverd and only 80gramm are missing. The purchase value key allows a 5% over and under delivery.
    Usually I would expect, that because of the purchasing value key of 5 % over and under deliverance allowence this situation should not occur anymore. Additionally at the time of goods receipt the key of final delivery was set and the purchase order is updated correctly.
    But when I run the MRP again I will have another purchase requisition. The dependend requiement of the material above still existis as production is not finished yet or this is still a planned order.
    What keys do I need to set in total for allowing a "partial delivery"?
    - Purchaseing value key in the material master
    - Delivery completed at the time of goods receipt
    Maybe this question is to basic as I cannot find any questions / answers related to this issue here in the forum.
    In some points, I found that I need to set up the vendor accordingly to set up partial deliveries. But I cannot find the right setting to allow the vendor to do so. I use MK02 for the change of the vendor settings.
    Thank you very much for your support!
    With best greetings,
    Bjoern

    Hello Jürgen,
    yes after thinking about this issue again, I think this might not be an appropriate solution. Now I am thinking about other possibilities.
    1) Automatically change the value in the production order at the time of saving MIGO - will not create any more missing material messages and no new purchase requisitions .
    2) Errror message, that for this positions no more postings are possible as the purchase order still remains "open"
    3) I need to find the customizing of the indicator "delivery completed". At the moment I just dont see, the influence of this indicator.
    Sorry for my "stupid" questions, but I am quiete new to these MM topics. Up to now I was always doing only PP and QM but our collegue for MM has left the team and there are some open issues which now belong to me. Lucky me.
    I have created a new posting at:
    With best greetings,
    Bjoern

  • Error in creation of purchase requisition

    Hello Sap Guru,
    When we are trying to create a purchase requisition under t.code ME51N, we are getting error message "enter valuation price"?
    If anyone can please explain the reason & solution of this error.
    Thanks In advance
    Deepak Garg

    {code)When we are trying to create a purchase requisition under t.code ME51N, we are getting error message "enter valuation price"?{code)
    Hi,
    it is sap standard process when you create PR and if material master record exist the price is automatically taken from the valuation price field. if record not exist enter lum sum price of requested material price.
    When purchase guy create po with reference to Pr they can change valuation price also.
    In custommization for Purchasing under Purchase Requisition -> Define Screen Layout at Document Level, you can set price and price unit. The Valuation price field can be set as a mandatory or optional input field.

  • Help needed for enhancement in Purchase requisition

    Hi all,
    Our client uses me59n to generate PO's automatically using purchase requisitions.
    Now, the requirement is ...
    If net Purchase value  is 0 in purchase requisition, then
    Free(UMSON) field in Purchase order shoud be "checked".
    lemme explain the steps a bit detail.
    1. lots of purchase requisitions will be created in me51n.
    2. Client will use me59n to generate PO's automatically, using Purchase requisitions.
    3. purchase orders will be created.
    3. Now, i am in search of a badi/user exit , which will
         if netPurchasevalue(gswrt) = 0
            (free)umson = X.
         endif.
    so , i need a enhancement, which links both fields(gswrt) from purReq & (umson) in PO. 
    please lemme know if anybody have experience on similar issues earlier.
    Regards.
    santosh.

    Hi,
    Try implementing the BADI -ME_PROCESS_PO_CUST ...the method "PROCESS_ITEM" can be used to do the check that you want...
    Thanks,
    Renjith

  • Service Number is not getting updated in the Purchase Requisition

    Hi All,
    When i create a Service PR using bapi BAPI_REQUISITION_CREATE FM , service details ( Service number, Qty, Gross price, ) are not getting updated in Service tab of Purchase requisition transaction. I am passing all the services related parameters in the FM.
    Please clarify this.
    Thanks for the help.
    Vinoth

    Hi Vinoth,
    Are you getting any error in the return table?Can you show your coding?
    Regards,
    ravi

  • Purchase requisition is not being displayed in FM area, CJIA

    Hi
    Project cash management is activated in our system, when creating purchase requisition from project builder with account assignment 'Q' system does not generating any document in FM area (CJIA). Contradicting to this, system generating document in FM area when creating purchase requisition through ME51N transaction with account assignment Q and setting project WBS to account assignment object.
    Later, comparing both purchase requisitions using ME5J, field committed item showing different values (default layout do not display this field, need to added from change layout settings). Can any one help us to find the settings which derives the committed item field in purchase requisition?
    Screen shots are attached for detailed understanding.
    Thanks

    Sanjeev,
    In EBAN table both records are present with special stock indicator Q.  But these documents are not available in second table COOI.
    In customizing, KOAB for order category 20 (network) don't have indicator commitment management, whereas different order category having this indicator. Possibly, this would be causing the issue?? if so please help us in this direction. One more point that component with item category L (non-stock) are displayed in CJIA report.
    Checked OPSV and found both the check boxes are ticked for order category 20.
    Thanks

  • Purchase Requisition not getting generated in APO

    Hi,
    I am facing an issue in APO. Once I confirm a sales order, I have to run the Product Heuristic in APO to generate the purchase requisition through rrp3. The problem is the purchase requisition is getting generated without the PR number. The line does not show the number and also the purchase req is not reflecting in ECC. Please refer the screenshot. Kindly help me with this.
    Thanks & Regards,
    Raja S

    Hi Guys,
    Sorry for the delayed response. Now got another issue. My CIF model for a Sales Order is not getting activated. I also cleared the queue in APO through /sapapo/cq and then start running the CIF. But it runs for a long period.
    What could be the other possible issues with CIF model activation?
    I am getting a message box like the below when try to activate the CIF. I keep ignoring the message and trying to run the CIF. But still I am unable to resolve. Kindly help
    After resolving this only, I can go for the above mentioned issue. I sincerely thank all your support.
    Regards
    Raja S

  • Purchase Requisition Is Being Getting Created In APO But not being publishe

    On doing, SNP Location Heuristics on  one of our item, purchase requisition is being getting created in APO (We are able to see the same in RRP3) but the same is not being getting published in ECC. On doing CCR of the said location - product combination, it is showing Error u201C182u201D. We have checked the following parameters :-
    Item is an APO Item i.e. X0.
    It is having a proper Purchasing Group.
    As This be a purchase item. So, it is having a valid single Purchase Info Record.
    Item Has Not Been Blocked At Any Level.
    Vendor From Whom This Item is being getting procured is also open (Not Blocked).
    Please suggest what else to be checked  and what else can be the reason for non-flowing of purchase requisition from APO to ECC.
    Thanks & Best Regards,
    Sanjeev Chugh

    Hi Sanjeev,
    Please check change pointers if any and send them to ECC. Check the order in the planning book whether it has picked the same source for which there is a Purchase info record. If these all are fine then You send them to ECC from the CCR then check the log in ECC through CFG1 tcode.
    Regards,
    Kishore k Reddy

  • Release strategy for purchase requisition does not kick in

    Hi Gurus!
    I've been struggling with this issue for some weeks now.
    I have set up the release strategy configuration for purchase requisitions with classifications.
    However, if I create a purchase requisition the release functionality is not taken into account by the system.
    See below some more information regarding my configuration:
    1. I've created a new characteristic "REL_PR_GROUP". Status: released, Multiple values, Number of Chars 3, 7 values (TR1, TR2, TR3....TR7), Table name: CEBAN, Field name: EKGRP, Procedure for value assignment set to not ready for input.
    2. I've created a new class: "REL_PR_ANPC". Class type 032, Status: released, Same classification: do not check, Char: "REL_PR_GROUP"
    3. I have one release group "T1", Rel. object 1, OverReqRel is marked, Class: "REL_PR_ANPC"
    4. I have 5 release codes. Grp: T1, Code: 01....05
    5. I have 2 release indicators:
    "R = Released", Rel. for ordering is marked, Changeabil: 4, Value chgs. 100,0
    "X = Blocked",  Changeabil: 4, Value chgs. 100,0
    6. I have 1 release strategy:
    "T1 with Grp T1"
    - one release group, 01 Manager
    - release prerequisites not applicable because of only one release group
    - release status, nothing marked = blocked, 01 marked = released
    - classification, purchasing group is TR1 or TR2 or TR3 or TR4 or TR5 or TR6 or TR7
    I intentionally kept the configuration as simple as possible so I can try to get it working first.
    Now if I create a purchase requisition for an item with release group T1, I would expect the release strategy to be activated. However, this is not the case. I don't see the "release status" tab in the PR, and if I try to relase via ME54 the system says the PR is not relevant for release.
    Could you please assist in getting this working?

    Hi,
    Have you checked in CL30/CL30N if your release strategy is derived successfully?
    See section 3 of Note 365604. A small section of it:
    You can use transaction CL30 search for an object using the data
    of the purchase requisition/purchase order. Here, it is important
    that the object search determines exactly one strategy. If this
    is not the case, this indicates that there are overlapping
    strategies in the system or that the release strategies in
    Customizing do not correspond with those from transaction CL24.
    See the previous point. If the object search returns more than
    one result, the system subsequently determines an incorrect
    release strategy or no release strategy at all.
    If it is derived successfully, next, check the user exit EXIT_SAPLEBND_001 as per Note 371667:
    The following assignment statement has to exist within activated SAP
    enhancements M06B0002 (include zxm06u13) and M06B0005 (include zxm06u31)
    for purchase requisitions:
         E_CEBAN = I_CEBAN.
    Regards,
    Purnima.

  • Purchase requisition report.

    Hi,
          Is there any standard report for purchase requisitions, showing purchase requistion number, user created, plant and some basic stuff like that.
          Can anyone pls assist me with this.
    thanks in advance,
    Ravi Boppana

    Hi,
         ME5A has pretty much all the information we are looking for. Thank you very much. But is there a way that we can restrict users to see their own requisitions. Ideally we dont want a user to see requisitions created by other users.
        If there is some way like that, it would be perfect for our situation.
        Thank You very much
    Ravi Boppana

  • Purchase Requisition Analysis

    hello Experts,
    I saw one statement some where it is...
    Generated a report which gives PR(Purchase Requisition) analysis using ALV.
    Can anyone explain me what is the meaning of this one and what is the business scenario behind this PR analysis reports
    Thanks in advanse,
    SRI

    hello Experts,
    I saw one statement some where it is...
    Generated a report which gives PR(Purchase Requisition) analysis using ALV.
    Can anyone explain me what is the meaning of this one and what is the business scenario behind this PR analysis reports
    Thanks in advanse,
    SRI

  • Generated a report which gives PR(Purchase Requisition) analysis using ALV.

    hi experts,
    please give me tables and fields for following report, and also exlain me briefly,
    Generated a report which gives PR(Purchase Requisition) analysis using ALV.
    thanks in advance,
    radhakrishna

    Hi
    please find this report which link SO PO PR and Prd Ord and there status.
    >
    REPORT z_so_info.
    TABLES: vbak, vbap, afko, afpo.
    *Field catalog
    TYPE-POOLS: slis.
    DATA: lv_repid TYPE sy-repid VALUE sy-repid,
    xfield TYPE slis_t_fieldcat_alv,
    afield TYPE slis_fieldcat_alv.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(25) text-002.
    SELECT-OPTIONS: so_so FOR vbak-vbeln OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-003.
    PARAMETERS:
    p_kunnr LIKE vbak-kunnr, " sold-to
    p_kunwe LIKE vbak-kunnr. " ship-to
    SELECTION-SCREEN END OF BLOCK b2.
    *Constants
    CONSTANTS: c_zor TYPE vbak-auart VALUE 'ZOR',
    c_we TYPE vbpa-parvw VALUE 'WE',
    c_ag TYPE vbpa-parvw VALUE 'AG'.
    c_space TYPE space.
    *Ranges
    RANGES: ra_parvw FOR vbpa-parvw,
    ra_kunnr FOR vbpa-kunnr.
    *Tables
    DATA: BEGIN OF gt_output OCCURS 0,
    vbeln LIKE vbak-vbeln, " sales order number
    posnr LIKE vbap-posnr, " SO item number
    matnr LIKE vbap-matnr, " material number
    sh LIKE vbpa-kunnr, " Ship-to
    sp LIKE vbpa-kunnr, " Sold-to
    lifnr LIKE ekko-lifnr, " Vendor
    bstnk LIKE vbak-bstnk, " PO number
    banfn LIKE vbep-banfn, " Purchase requi
    po_st TYPE char30, " PO status text
    pstyv TYPE vbap-pstyv, " Item catagory
    aufnr LIKE afpo-aufnr, " Production Order
    prd_stat TYPE string, " Prd order status
    END OF gt_output.
    DATA: wa_output LIKE gt_output.
    FIELD-SYMBOLS: <fs_output> LIKE gt_output.
    *Table for sales order and PO
    TYPES : BEGIN OF gs_data,
    vbeln TYPE vbak-vbeln,
    posnr TYPE vbap-posnr,
    pstyv TYPE vbap-pstyv,
    matnr TYPE vbap-matnr,
    END OF gs_data.
    DATA: gt_data TYPE STANDARD TABLE OF gs_data,
    wa_data TYPE gs_data.
    *Table for Production Orders
    TYPES: BEGIN OF gs_prd,
    aufnr TYPE afpo-aufnr,
    posnr TYPE afpo-posnr,
    kdauf TYPE afpo-kdauf,
    kdpos TYPE afpo-kdpos,
    wepos TYPE afpo-wepos, "Goods Receipt Indicator
    elikz TYPE afpo-elikz, "Delivery Completed Indicator
    objnr TYPE aufk-objnr, "Object number
    getri TYPE afko-getri, "Confirmed Order Finish Date
    gltri TYPE afko-gltri, "Actual finish date
    END OF gs_prd.
    DATA: gt_prd TYPE STANDARD TABLE OF gs_prd,
    wa_prd TYPE gs_prd.
    *Table for partner data
    TYPES: BEGIN OF gs_partner,
    vbeln TYPE vbak-vbeln,
    posnr TYPE vbap-posnr,
    parvw TYPE vbpa-parvw,
    kunnr TYPE vbpa-kunnr,
    END OF gs_partner.
    DATA: gt_partner TYPE STANDARD TABLE OF gs_partner,
    wa_partner TYPE gs_partner.
    TYPES: BEGIN OF gs_po,
    ebeln TYPE ekkn-ebeln,
    ebelp TYPE ekkn-ebelp,
    vbeln TYPE ekkn-vbeln,
    vbelp TYPE ekkn-vbelp,
    END OF gs_po.
    DATA: gt_po TYPE STANDARD TABLE OF gs_po,
    wa_po TYPE gs_po.
    TYPES: BEGIN OF gs_preq,
    vbeln TYPE vbep-vbeln,
    posnr TYPE vbep-posnr,
    banfn TYPE vbep-banfn,
    END OF gs_preq.
    DATA: gt_preq TYPE STANDARD TABLE OF gs_preq,
    wa_preq TYPE gs_preq.
    TYPES: BEGIN OF gs_po_stat,
    ebeln TYPE ekko-ebeln,
    procstat TYPE ekko-procstat,
    lifnr TYPE ekko-lifnr,
    END OF gs_po_stat.
    DATA: gt_po_stat TYPE STANDARD TABLE OF gs_po_stat,
    wa_po_stat TYPE gs_po_stat.
    *Field symbols
    FIELD-SYMBOLS: <fs> TYPE tj02t-txt04,
    <fs_temp> TYPE tj02t-txt04,
    <fs_stat> TYPE char30.
    START-OF-SELECTION.
    PERFORM fr_build_range.
    PERFORM fr_get_data.
    PERFORM fr_build_fc.
    PERFORM fr_output.
    *& Form fr_get_data
    text
    --> p1 text
    <-- p2 text
    FORM fr_get_data.
    *Get SO
    SELECT avbeln aposnr apstyv amatnr
    FROM vbap AS a
    JOIN vbak AS b
    ON avbeln = bvbeln
    JOIN vbpa AS c
    ON bvbeln = cvbeln
    INTO TABLE gt_data
    WHERE b~vbeln IN so_so
    AND b~auart EQ c_zor "Only Sales Orders
    AND c~kunnr IN ra_kunnr. "from selection screen
    DELETE ADJACENT DUPLICATES FROM gt_data COMPARING vbeln posnr.
    *get data of the production order
    IF NOT gt_data[] IS INITIAL.
    SELECT aaufnr aposnr akdauf akdpos awepos aelikz
    b~objnr
    FROM afpo AS a
    JOIN aufk AS b
    ON aaufnr = baufnr
    INTO TABLE gt_prd
    FOR ALL ENTRIES IN gt_data
    WHERE a~kdauf EQ gt_data-vbeln
    AND a~kdpos EQ gt_data-posnr.
    ENDIF.
    *Get partner data
    IF NOT gt_data[] IS INITIAL.
    SELECT vbeln posnr parvw kunnr
    FROM vbpa
    INTO TABLE gt_partner
    FOR ALL ENTRIES IN gt_data
    WHERE vbeln EQ gt_data-vbeln.
    ENDIF.
    *Get Purchase Order
    IF NOT gt_data[] IS INITIAL.
    SELECT ebeln ebelp vbeln vbelp
    FROM ekkn
    INTO TABLE gt_po
    FOR ALL ENTRIES IN gt_data
    WHERE vbeln EQ gt_data-vbeln
    AND vbelp EQ gt_data-posnr.
    SELECT vbeln posnr banfn
    FROM vbep
    INTO TABLE gt_preq
    FOR ALL ENTRIES IN gt_data
    WHERE vbeln EQ gt_data-vbeln
    AND posnr EQ gt_data-posnr.
    ENDIF.
    IF NOT gt_po[] IS INITIAL.
    SELECT aebeln aprocstat a~lifnr
    FROM ekko AS a
    JOIN ekpo AS b
    ON aebeln = bebeln
    INTO TABLE gt_po_stat
    FOR ALL ENTRIES IN gt_po
    WHERE b~ebeln EQ gt_po-ebeln
    AND b~ebelp EQ gt_po-ebelp.
    ENDIF.
    *Move data to output table
    LOOP AT gt_data INTO wa_data.
    wa_output-vbeln = wa_data-vbeln.
    wa_output-posnr = wa_data-posnr.
    wa_output-pstyv = wa_data-pstyv.
    wa_output-matnr = wa_data-matnr.
    READ TABLE gt_po INTO wa_po WITH KEY vbeln = wa_data-vbeln
    vbelp = wa_data-posnr.
    IF sy-subrc EQ 0.
    wa_output-bstnk = wa_po-ebeln.
    READ TABLE gt_po_stat INTO wa_po_stat WITH KEY ebeln = wa_po-ebeln.
    IF sy-subrc EQ 0.
    wa_output-lifnr = wa_po_stat-lifnr.
    CASE wa_po_stat-procstat.
    WHEN '01'.
    wa_output-po_st = 'Version in process'.
    WHEN '02'.
    wa_output-po_st = 'Active'.
    WHEN '03'.
    wa_output-po_st = 'In release'.
    WHEN '04'.
    wa_output-po_st = 'Partially released'.
    WHEN '05'.
    wa_output-po_st = 'Released Completely'.
    WHEN '08'.
    wa_output-po_st = 'Rejected'.
    ENDCASE.
    ENDIF. "inner read subrc
    ENDIF. "outer read subrc
    READ TABLE gt_preq INTO wa_preq WITH KEY vbeln = wa_data-vbeln
    posnr = wa_data-posnr.
    IF sy-subrc EQ 0.
    wa_output-banfn = wa_preq-banfn.
    ENDIF.
    READ TABLE gt_prd INTO wa_prd WITH KEY kdauf = wa_data-vbeln
    kdpos = wa_data-posnr.
    IF sy-subrc EQ 0.
    wa_output-aufnr = wa_prd-aufnr.
    *get the purchase requisition for production order as well
    SELECT SINGLE banfn
    FROM ebkn
    INTO wa_output-banfn
    WHERE aufnr EQ wa_prd-aufnr.
    *Get the status of the production order
    PERFORM fr_get_prd_stat USING wa_prd-objnr
    CHANGING wa_output-prd_stat.
    ENDIF. " sy-subrc
    READ TABLE gt_partner INTO wa_partner WITH KEY vbeln = wa_data-vbeln
    parvw = c_we.
    IF sy-subrc EQ 0.
    wa_output-sh = wa_partner-kunnr.
    ENDIF.
    READ TABLE gt_partner INTO wa_partner WITH KEY vbeln = wa_data-vbeln
    parvw = c_ag.
    IF sy-subrc EQ 0.
    wa_output-sp = wa_partner-kunnr.
    ENDIF.
    APPEND wa_output TO gt_output.
    CLEAR: wa_data, wa_prd,wa_partner,wa_output.
    ENDLOOP.
    ENDFORM. " fr_get_data
    *& Form fr_build_range
    text
    --> p1 text
    <-- p2 text
    FORM fr_build_range .
    *Range for partner function
    MOVE 'I' TO ra_parvw-sign.
    MOVE 'EQ' TO ra_parvw-option.
    MOVE 'SH' TO ra_parvw-low. " we
    APPEND ra_parvw.
    CLEAR ra_parvw.
    MOVE 'I' TO ra_parvw-sign.
    MOVE 'EQ' TO ra_parvw-option.
    MOVE 'SP' TO ra_parvw-low. " ag
    APPEND ra_parvw.
    CLEAR ra_parvw.
    *Range for ship-to and sold-to
    MOVE 'I' TO ra_kunnr-sign.
    MOVE 'EQ' TO ra_kunnr-option.
    MOVE p_kunnr TO ra_kunnr-low.
    APPEND ra_kunnr.
    CLEAR ra_kunnr.
    MOVE 'I' TO ra_kunnr-sign.
    MOVE 'EQ' TO ra_kunnr-option.
    MOVE p_kunwe TO ra_kunnr-low.
    APPEND ra_kunnr.
    CLEAR ra_kunnr.
    ENDFORM. " fr_build_range
    *& Form fr_build_fc
    text
    --> p1 text
    <-- p2 text
    FORM fr_build_fc .
    sales order number
    afield-fieldname = 'VBELN'.
    afield-seltext_s = 'Sales #'.
    afield-ref_tabname = 'VBAK'.
    APPEND afield TO xfield. CLEAR afield.
    sales ITEM number
    afield-fieldname = 'POSNR'.
    afield-seltext_s = 'Item #'.
    afield-ref_tabname = 'VBAP'.
    APPEND afield TO xfield. CLEAR afield.
    Material Number
    afield-fieldname = 'MATNR'.
    afield-seltext_s = 'Material #'.
    afield-ref_tabname = 'VBAP'.
    afield-outputlen = 10.
    APPEND afield TO xfield. CLEAR afield.
    *Vendor Number
    afield-fieldname = 'LIFNR'.
    afield-seltext_s = 'Vendor Num.'.
    afield-ref_tabname = 'EKKO'.
    APPEND afield TO xfield. CLEAR afield.
    ship-to-party
    afield-fieldname = 'SH'.
    afield-seltext_s = 'Ship-to'.
    afield-ref_tabname = 'VBPA'.
    APPEND afield TO xfield. CLEAR afield.
    sold-to-party
    afield-fieldname = 'SP'.
    afield-seltext_s = 'Sold-to'.
    afield-ref_tabname = 'VBPA'.
    APPEND afield TO xfield. CLEAR afield.
    *PO number
    afield-fieldname = 'BSTNK'.
    afield-seltext_s = 'PO NUM'.
    afield-ref_tabname = 'EKKO'.
    APPEND afield TO xfield. CLEAR afield.
    *PO status
    afield-fieldname = 'PO_STAT'.
    afield-seltext_s = 'Step'.
    afield-ref_tabname = 'zbacklog_v2'.
    APPEND afield TO xfield. CLEAR afield.
    *PO step status
    afield-fieldname = 'PO_ST'.
    afield-seltext_s = 'PO.Status'.
    afield-ref_tabname = 'zbacklog_v2'.
    APPEND afield TO xfield. CLEAR afield.
    *Purchase requisition
    afield-fieldname = 'BANFN'.
    afield-seltext_s = 'Pur. Req.'.
    afield-ref_tabname = 'VBEP'.
    APPEND afield TO xfield. CLEAR afield.
    *Item catagory
    afield-fieldname = 'PSTYV'.
    afield-seltext_s = 'Itm. Catg'.
    afield-ref_tabname = 'VBAP'.
    APPEND afield TO xfield. CLEAR afield.
    *Prodcution Order number
    afield-fieldname = 'AUFNR'.
    afield-seltext_m = 'Prod.Order'.
    afield-ref_tabname = 'AFKO'.
    APPEND afield TO xfield. CLEAR afield.
    *PRODCUTION status
    afield-fieldname = 'PRD_STAT'.
    afield-seltext_s = 'Prd. Step'.
    afield-ref_tabname = 'zbacklog_v2'.
    afield-outputlen = 20.
    APPEND afield TO xfield. CLEAR afield.
    *PRODUCTION step status
    afield-fieldname = 'PRD_ST'.
    afield-seltext_s = 'Prd. Status'.
    afield-ref_tabname = 'zbacklog_v2'.
    APPEND afield TO xfield. CLEAR afield.
    ENDFORM. " fr_build_fc
    *& Form fr_output
    text
    --> p1 text
    <-- p2 text
    FORM fr_output .
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    i_callback_program = sy-repid
    I_CALLBACK_PF_STATUS_SET = ' '
    I_CALLBACK_USER_COMMAND = ' '
    I_STRUCTURE_NAME =
    IS_LAYOUT =
    it_fieldcat = xfield[]
    i_default = 'X'
    i_save = 'A'
    TABLES
    t_outtab = gt_output
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.
    ENDFORM. " fr_output
    *& Form fr_get_prd_stat
    text
    -->P_WA_PRD_OBJNR text
    FORM fr_get_prd_stat USING p_objnr CHANGING p_prd_stat.
    DATA: lt_status TYPE STANDARD TABLE OF jstat,
    wa_status TYPE jstat,
    lv_status TYPE tj02t-txt04,
    lv_temp2 TYPE char5,
    lv_buff TYPE string.
    CALL FUNCTION 'STATUS_READ'
    EXPORTING
    client = sy-mandt
    objnr = p_objnr
    only_active = 'X'
    TABLES
    status = lt_status
    EXCEPTIONS
    object_not_found = 1
    OTHERS = 2.
    LOOP AT lt_status INTO wa_status.
    IF wa_status-stat(1) EQ 'I'.
    SELECT txt04 FROM tj02t
    INTO lv_status
    WHERE istat EQ wa_status-stat
    AND spras EQ 'E'.
    ENDSELECT.
    lv_temp2 = lv_status.
    CONCATENATE lv_temp2 p_prd_stat INTO p_prd_stat
    SEPARATED BY ','.
    ENDIF.
    CLEAR: wa_status, lv_status, lv_temp2.
    ENDLOOP.
    lv_buff = p_prd_stat.
    *Status of Production Order
    IF lv_buff CS 'CRTD'.
    p_prd_stat = 'Not Active'.
    ENDIF.
    IF lv_buff CS 'REL'.
    IF lv_buff CS 'GMPS'.
    p_prd_stat = 'Printed In Prod'.
    ELSE.
    p_prd_stat = 'Printed'.
    ENDIF.
    ENDIF.
    IF lv_buff CS 'TECO'.
    p_prd_stat = 'Technically Compt.'.
    ENDIF.
    ENDFORM. " fr_get_prd_stat
    >

  • Purchase requisition aginst purchase order and mat.dc.no.

    Hi experts,
    i want to develop a  report PR_NO  ITEM_NO  QUANT PO_NO  ITEM  QANTY MAT.DOC.NO
    I USED EBAN EKPO AND MSEG TABLE
    but there is no relation between EBAN AND EKPO.(also EKBE )
    how should i fetch the data PRNO AGAINST PO.
    In my comany there is no functional consultant.
    THANKS
    AJAY.

    The relation is
    EKPO-BANFN = EBAN-BANFN
    EKPO-EBELN = EKBE-EBELN
    EKPO-EBELP = EKBE-EBELP
    EKBE-BELNR is your material doc
    EBAN-BANFN-Purchase Requisition Number
    EBAN-BNFPO-Item Number of Purchase Requisition
    EKPO-EBELN-Purchasing Document Number
    EKPO-EBELP-Item Num
    EKPO-MENGE - PO qty
    EKBE-MENGE - Posted quantity in Mat.doc

  • Purchase Order and Purchase Requisition

    Hi To All,
    my customer while using tcode me2m hase extracted purchase order opened since 2007. now he want to close all this order and settle them to zero. this operation should be done also for the purchase requisition.
    there is a standard way to do this? if not any idea?
    thanks
    C.

    Hello
    Just by doing
    In the PO line item level details, activate DELIVERY COMPLETED check box.
    system will not close po from GR
    U will have to check what is the gr qty did till date
    and update the po with the same qty manually
    eq
    if po qty is 50 and total gr done till date is 40
    change the PO qty to 40 and save
    this is the way u can shot close the po
    Which effects has the "delivery completed" indicator?
    The purchase order item is considered closed, even though the total quantity may not have been delivered.
    Although a further delivery is not expected, it is still possible.
    At the time of the next goods receipt, the system suggests the item as unselected.
    The purchase order item can be deleted, even if the total quantity was not delivered.
    Although the "delivery completed" indicator is not set, a purchase order item is still considered closed if the full quantity has been delivered. In this case, the "delivery completed indicator" is not required.
    The system allows to make further goods receipts. Why?
    Answer
    See note 16239 and 856279
    hope this helps
    Edited by: Umakant Bhangale on Oct 11, 2010 5:20 PM

  • Purchase order and purchasing requisition .

    Hi
    What is the difference between Purchase order and Purchase requisition . ?
    And why cube are different for them ?
    Regards

    A purchase requisition is an internal document that's created to initiate a procurement transaction. The requisition is created to identify the materials that are needed to be acquired and when they're needed. Once completed by the initiator, it's sent to the appropriate approvers.
    Upon approvals of the requsition have been provided, and a vendor is selected, a purchase order is created. The purchase order is an external document whereby an agreement is made to procure the materials at an agreed upon price and delivery schedule
    The InfoCubes for each of these is different due to the nature of the documents (internal v. external).

Maybe you are looking for