Create Purchase requisitions directly using PS network or indirectly ME51N

Hello SAP-PS consultants,
My customer manage big projects that most of the work done by suppliers, contractors and consultants. We use WBS element to define phases in project and for link to budget control in FM (every phase as different budget). We also use activities network to manage the work in the phases. I offer my customer to create Purchase requisitions, as a standard integrated process, using activities. My customer thinks that is more difficult and complicated to create Purchase requisitions directly using PS network. From your experience, is it better to create purchase directly using PS network or indirectly using MM transaction?
Regards
Muly Zohar

Hi Muly,
The decision to go for PR creation from PS or from MM will be based on the customer requirement.
1.If the customer requirement is to have both the cost integration as well as the integration project schedule with the PR , then you create the PR from PS.Any changes in the dates of the network will change the requirement dates of the components and will be transferred to the Purchase requisition. Further more planned cost distribution across the duration of the activity is possible in this approach.
2. Creating the PR from MM will have only the cost integration with the project. Any changes in the project schedule will not transfer the requirement date to the purchase requisition. You normally go for this where scheduling and procurement are independent of each other.
By clearly explaining these points to your client, I hope they can  make a better choice of which approach to take based on business requirement.
Regards
K Ramaiah

Similar Messages

  • 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

  • Rounding Values while creating purchase requisitions using ME51N

    Hi MM Experts,
    I have created some materials with a Rounding Value maintained in MRP1 View of the material master.
    Whenever I raise a purchase order, the order quantity rounds off to the value maintained in the material master which is the correct functionality.
    But when i try to create a purchase requisition using ME51N, the rounding functionality doesn't work.
    Example: Rounding value (in MRP1 view) of a material is 25.
    The order quantity entered is 4. But before saving the PURCHASE ORDER the order quantity will be changed to 25(which is the rounding value). This is the correct functionality but doesn't happen with the PURCHASE REQUISITION (ME51N)
    Can someone guide me on how to make the rounding value work for purchase requisitions when using ME51N?
    Thanks in advance.
    cheers,
    Randi

    Hi!
    i had the same problem with a company.
    i did not find any customizing possibilities.
    I solved it with BAdI ME_PROCESS_REQ_CUST
    Method PROCESS_ITEM.
    I hope this helps
    Flo

  • Batch job not creating purchase requisitions

    I have a batch job that runs every day at 5 pm.  The point of this job is to run the MRP and create purchase requisitions for materials that have more demand than current supply.
    Programs ran within the jobu2026
    RWPOB001
    RVV50R10C
    RMMRP000
    My problem...
    Purchase Requisitions are not being created for random materials after the batch job has been ran.  When the MRP is run by itself (MD01), ALL materials will have purchase requisitions created for them without fail.  There is no order to it, and no one has kept track of any material numbers that have not had purchase requisitions created, so I cannot check the configuration.
    How I would like to investigateu2026
    1 u2013 Obtain a list of ALL purchase requisitions created in the timeframe AFTER the batch job has been ran
    2 u2013 Export this list into Excel
    3 u2013 Run the MRP manually to create purchase requisitions for ALL materials
    4 u2013 Obtain new list of ALL purchase requisitions created in the timeframe AFTER the MRP was manually ran
    5 u2013 Export this list into Excel
    6 u2013 Compare both lists; remove duplicates, display materials and requisitions that were created AFTER the batch job missed them.
    How would I go about getting a full list of purchase requisitions that have been created within the time frame the batch job has been ran, then export them into excel?  I understand that ME5A is the standard transaction for displaying lists of purchase requisitions, but how would I go about pulling all purchase reqs CREATED within a certain time period?
    Please, include specific SAP transactions and details in your answers.
    Also, if anyone has any good advice regarding how to get to the bottom of this specific issue, Iu2019m open to suggestions.  All good suggestions will be rewarded promptly.

    Cameron Lawrence Dunbar wrote:
    >
    > You mention that RMMRP000 should be ran before requirements planning.  Is it possible that our positioning of the program at the end of the job is causing these issues?  Or is it most likely the varient/parameters of one of these programs?
    >
    > Also, how can I display a list of purchase requisitions CREATED over a certain period of time?
    No, I did not say that RMMRP000 should be ran before requirements planning. I said it is the requirments planning. So you just run it twice if you execute it with MD01 again after this job.
    Running it twice should not end in different results if it is run with the same paramters (selection variants)
    As you are saying you get different results, I think you are running it actually with different entries in the selection screen.
    So you need to compare both selection screens. MD01 is obvious as you see it directly.
    Compare it with the selection variant of the batch job, that you can display  via the menu after you displayed the job in SM35
    ME5A transaction can give you a list of requisitions. alternative you can just use SE16 at table EBAN.
    Edited by: Jürgen L. on Apr 25, 2011 9:08 PM

  • 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

  • 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

  • WHILE CREATING PURCHASE REQUISITION,THE AVAILABILITY CHECK FOR THE MATERIAL

    dear Friends,
    our users want to  WHILE CREATING PURCHASE REQUISITION,THE AVAILABILITY CHECK FOR THE MATERIAL SHOULD BE ENABLE,
    at present we maintaing KP in Material Master.  if we activated what will happen?
    please advice.
    with regards,
    Rajesh G

    Hi,
    The availability check is generally used for goods movements(GR,GI,reservation) & not for PRs.
    Regards,
    Vijay

  • BAPI to create Purchase Requisition for selective BOM Material

    Dear Experts,
    I need ur help, Actually I am developing a module Pool prg to create Purchase Requisition for selective Bom Material .
    Actually, standard T.Code (ME21N) create PR for a multiple BOM Materia lwhich are used to create a prepared material. But my requirement is PR should be generate for selective BOM material .
    Multiple BOM Material is used to prepared a complete Material .
    I have checked a particular BOM Material, for this matrial Purchase Requisition should be genrate.
    Please suggest me the related code and Bapi which helps me .
    Thanks & Regards,
    Swapnika

    Hi
    you can Use BAPI   BAPI_REQUISITION_CREATE
    Hope Its  help You.
    Regards
    Ajit

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

  • 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

  • Error while creating purchase requisition

    Hello
    I am getting following error when I try to create Purchase Requisition
    u201CField selection PT4B not definedu201D
    Cant progress any further due to the error
    Regards,
    sudhir

    Hi
    First Do you Have  created any new field selection for PR document types?
    IF not check your PR document type is attached with which field selection in Puchasing -> purchase requisition -> define document types -> check your document type and field selection. Is it PT4B?
    PT4B is not available then assign correct one in customization.
    If it is then check the settings for fields selection in purchasing -> PR - screen layout at document level -> field selection PT4B.
    Regards

  • Creating Purchase Requisition Automatically

    Hi all,
    Is there any way to create "Purchase Requisition"  (trcodeME51) automatically when create sales order(trcodeVA01) ? At ME51 screen required entries will be written by reference of screen VA01.
    Thanks&Regards

    in the functionality of schd.line cat. enter 'NB' in Item Category field.this would trigger the creation of purchase requisition automatically.

Maybe you are looking for

  • Questions on scripts, tables & transfer objects between clients.

    1. In script, how to use the same print program for two different layouts? with procedure.! 2. Why cant sapscripts be client independent.? 3. Want to maintain a table in dev server and if i update the data, it should simultanously update in Quality a

  • Suggestions For A Reporting System

    Hi, I'm currently working a nefty Swing application and was looking for ideas as to how to develop a robust, extensible reporting system. I would appreciate any all suggestions to make the whole system work as efficiently as possible, with little dif

  • IPhone 4s: upgrade from ios 5.1 to ios 6 failed and phone stuck in recovery mode

    I am on a Macbook OS 10.7.5.  iTuens 10.7. This afternoon I plugged in my iPhone 4S and started the upgrade process from iOS 5.1 to iOS 6. The update process failed at some point and now I am stuck with only the "Restore" option in iTunes. The fright

  • ITunes will not allow me to update

    When I click the update button, it tells me the newest version (10.6.3) that I should download, but when I try to download that, Software Update comes up and tells me that there is nothing new to update. I am running iTunes 10.4 on a Mac OsX. I have

  • Reg: Functions of Planning Table MF50

    Hi Friend, i wish you all a happy Friendship day... I need to know the following Function in REM, 1. Functions of Planning table.(MF50) 2.When we carry out Backflush , Components , activities get Posted. where can i find the reports for activities an