PO Report by Purchasing Group

Hello Experts,
Is there a way to run a report by purchasing group?  The report should output at a minimum:
PO #
Vendor Name
Line Item Number
Line Item $ Value
Line Item $ Actual (Invoiced) Value
Charge Number (WBS)
Performance key input or ME2N almost provides this information, but I Performance key input does not include amount billed and I can not export the ME2N report.
Thanks for any help

Hi
KIndly use the  below tcodes
PUrchase general evaluations                -
ME80FN
PURCHIS: PurchGrp PurchVal Selection   --- MC$0
PURCHIS: PurchGrp Freqs. Selection       --- MC$2
Regards
Damu

Similar Messages

  • Purchasing Report: Plant, Purchasing group, material type, PO, GR No.

    All SAP Gurus,
    Is there any Purchasing report available which gives the information regarding:
    Plant, Purchasing group, material type, PO, GR No., vendor, amount (all in single report only).
    Regards,

    Hi,
    Refer following reports;
    ME2N - List of PO Documents (In selection Screen use Scope of List - ALLES)
    ME80FN - General Analysis (Here in Output, select option "PO History" by clicking on the button at extreme right)

  • Report showing purchasing group and product responsibility

    Hi,
    Is there a report that will show all purchasing groups and which product categories that they are responsible for?
    Or
    Is there a report that will give me each product category and which purchasing groups that are responsible for that product category?
    Sincerely
    Anders

    not clear as to what you want...
    PP forum would be best for it... Or if you specify your req more clearly as to what input you give and what output you want, may be we can help
    Ajay

  • Vendor Evaluation on Purchasing Group

    Hi SAPER'S
    Could anyone tell me the if we can run vendor evaluation on Purchasing Group or can we get the report on Purchasing Group after vendor evaluation run.
    Full points guranteed.
    Regards.

    Hi
    No it is not possible.
    Purchasing group is not an organisational element.
    If you want to evaluate based on the plant , that can be done using enhancments.
    Thanks & Regards
    Kishore

  • Purchasing group

    hi gurus,
    can u tell me please
    While creating PO we are entering purchasing group,this purchasing group controls any thing,can we take a report a purchasing group wise,can we see the purchasing group wise purchase
    also we are maintaining purchasing group at purchasing  view of material master record ,whether we can see purchasing group wise material list
    regards
    jalu

    dear,
    kindly go in transaction "se16" ..and put table name "ekpo" this will give you details how many PO have been created with purchase group...or you can put your own data in purchase group data and can see how mamy purchases hace been made...
    for the material master you can only come to no which purchase grup has been assigned to the material ..this is important because tracking of materials at inventory level is done...
    go to se16 put marc...you will come to know how many materials have been maintained...
    you can also create a z report ...we have a report ..."zmb5l' in which we check the inventory according to purchase group...this is taken all from material master...
    if you want can give you logic also....
    regards,
    rewa

  • Purchasing Groups

    Hi All
    I need to run a report showing purchasing groups and the respective purchasing oganisation they belong to.
    1. Is there such a report
    2. if no report then on which table can this information be found
    3. what tables can I join in SAP Query to get this information
    Thanks for your assistance
    Vishnu

    while creating query report use table EKKO with fields
    EKORG        Purchasing Organization
    EKGRP        Purchasing group
    regards,
    indranil

  • How to sort report me2l by Purchase group ?

    Hi
    In me2L, it will list po and related informaiton. Is that possible we could sort it by purhcase group and po number?
    On our me2l , there is no dymanic selection , after get the report, there is no sort button on reprot
    So we concern if it's possible to sort it by purchase group and po?
    Thanks
    ALice

    Hi Kishore
    Thanks a lot, I found this alv , but if that, the me2l report display is different from original report,right?
    Now we send this report me2l reulst by mail to user. the program is   RM06EL00. user hope this report could sort by purhase group.
    Is that possible on seleciton screen, we also could set the layout for variant?  Or if we could create new scope of list then assign default layout and alv for it ?
    Thanks
    alice
    Edited by: alice zhang on Jun 10, 2008 7:45 AM
    Edited by: alice zhang on Jun 10, 2008 10:02 AM

  • Report  on purchase order

    report to list the purchase order quantity for statistical delivery date which gives the cumulative totals for the plants, material group, factory which were entered in the selection criteria.

    *& Report ZMM_PO_REPORT
    REPORT ZMM_PO_REPORT message-Id yb
    NO STANDARD PAGE HEADING
    LINE-COUNT 60(1)
    LINE-SIZE 256.
    D A T A B A S E T A B L E S D E C L A R A T I O N
    TABLES: lfa1, " Vendor Master
    t161, " PO Doc Types
    t024, " Purchase Groups
    ekko. " PO Header
    T Y P E S D E C L A R A T I O N S
    Purchase Orders Main Structure
    TYPES: BEGIN OF s_po,
    ebeln TYPE ebeln, " PO No.
    ebelp TYPE ebelp, " PO Item
    bstyp TYPE bstyp, " PO Category
    ihrez TYPE ihrez, " Your reference
    unsez TYPE unsez, " Our Reference
    bukrs TYPE bukrs, " Company Code
    bsart TYPE bbsrt, " PO Type
    lifnr TYPE lifnr, " Vendor No
    ekgrp TYPE bkgrp, " Purchase Group
    waers TYPE waers, " Currency
    bedat TYPE etbdt, " PO Date
    txz01 TYPE txz01, " Material Text
    werks TYPE ewerk, " Plant
    lgort TYPE lgort_d, " Storage Location
    matkl TYPE matkl, " Material Group
    menge TYPE bamng, " PR Quantity
    meins TYPE bamei, " UOM
    bprme TYPE bbprm, " Price Unit
    netpr TYPE netpr, " Net price
    peinh TYPE peinh, " Price Unit UOM
    pstyp TYPE pstyp, " Item Category
    knttp TYPE knttp, " Account Assignment Category
    END OF s_po.
    Purchase Orders History Structure
    TYPES: BEGIN OF s_account,
    ebeln TYPE ebeln, " PO No.
    ebelp TYPE ebelp, " PO Item
    gjahr TYPE mjahr, " Fiscal Year
    belnr TYPE mblnr, " PO Invoice No
    menge TYPE menge_d, " PR Quantity
    wrbtr TYPE wrbtr, " Price in Local Currency
    dmbtr TYPE dmbtr, " Price in Foreign Currency
    waers TYPE waers, " Currency
    shkzg TYPE shkzg, " Dr/Cr Indicator
    END OF s_account.
    Purchase Orders History Structure(Item Sum)
    TYPES: BEGIN OF s_inv_sum,
    ebeln TYPE ebeln, " PO No.
    ebelp TYPE ebelp, " PO Item
    menge TYPE menge_d, " PR Quantity
    wrbtr TYPE wrbtr, " Price in Foreign Currency
    waers TYPE waers, " Currency
    END OF s_inv_sum.
    Purchase Orders Main Structure
    TYPES: BEGIN OF s_rep,
    lifnr TYPE lifnr, " Vendor No
    ebeln TYPE ebeln, " PO No.
    ebelp TYPE ebelp, " PO Item
    bstyp TYPE bstyp, " PO Category
    ihrez TYPE ihrez, " Your Reference
    unsez TYPE unsez, " Our Reference
    bsart TYPE bbsrt, " PO Type
    ekgrp TYPE bkgrp, " Purchase Group
    waers TYPE waers, " Currency
    bedat TYPE etbdt, " PO Date
    txz01 TYPE txz01, " Material Text
    werks TYPE ewerk, " Plant
    lgort TYPE lgort_d, " Storage Location
    matkl TYPE matkl, " Material Group
    menge TYPE bamng, " PR Quantity
    meins TYPE bamei, " UOM
    bprme TYPE bbprm, " Price Unit
    netpr TYPE netpr, " Net price
    peinh TYPE peinh, " Price Unit UOM
    pstyp TYPE pstyp, " Item Category
    knttp TYPE knttp, " Account Assignment Category
    name1 TYPE name1, " Plant
    orewr TYPE netpr, " To be Invoiced Price
    curr TYPE waers, " Inv Doc Currency
    END OF s_rep.
    D A T A D E C L A R A T I O N S
    DATA: gv_title1 TYPE sylisel, " Report title
    gv_dial. " Color flag
    C O N S T A N T S D E C L A R A T I O N S
    CONSTANTS: c_x VALUE 'X', " Flag X
    c_h VALUE 'H', " Debit
    c_vgabe TYPE vgabe VALUE '2'. " Transaction Type
    I N T E R N A L T A B L E S D E C L A R A T I O N S
    DATA: i_po TYPE STANDARD TABLE OF s_po WITH HEADER LINE,
    " Purchase Order
    i_inv TYPE STANDARD TABLE OF s_inv_sum WITH HEADER LINE,
    " PO Invoice Values
    i_rep TYPE STANDARD TABLE OF s_rep WITH HEADER LINE,
    " PO Invoice Values
    i_ekbe TYPE STANDARD TABLE OF s_account WITH HEADER LINE.
    " PO Invoice Values
    S E L E C T I O N S C R E E N *
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS: s_lifnr FOR lfa1-lifnr MATCHCODE OBJECT kred,
    s_ebeln FOR ekko-ebeln MATCHCODE OBJECT mekk,
    s_bsart FOR t161-bsart,
    s_ekgrp FOR t024-ekgrp,
    s_bedat FOR ekko-bedat.
    SELECTION-SCREEN END OF BLOCK b1.
    I N I T I A L I Z A T I O N *
    INITIALIZATION.
    A T S E L E C T I O N - S C R E E N *
    AT SELECTION-SCREEN.
    Validate the screen fields
    PERFORM validate_screen.
    S T A R T - O F - S E L E C T I O N *
    START-OF-SELECTION.
    Fetch main data
    PERFORM fetch_data.
    T O P - O F - P A G E *
    TOP-OF-PAGE.
    Header of the List
    PERFORM header.
    E N D - O F - P A G E *
    Footer
    END-OF-PAGE.
    ULINE.
    E N D - O F - S E L E C T I O N *
    END-OF-SELECTION.
    Display the Report Output data
    PERFORM display_data.
    At Line-Selection
    AT LINE-SELECTION.
    When double clicked on EBELN display the details of Purchase Doc
    PERFORM line_sel.
    *& Form validate_screen
    Validation of Selection Screen fields
    FORM validate_screen .
    Validation of Vendor Number
    CLEAR lfa1-lifnr.
    IF NOT s_lifnr[] IS INITIAL.
    SELECT lifnr UP TO 1 ROWS
    INTO lfa1-lifnr
    FROM lfa1
    WHERE lifnr IN s_lifnr.
    ENDSELECT.
    IF sy-subrc 0.
    MESSAGE e000 WITH 'Invalid Vendor'(002).
    ENDIF.
    ENDIF.
    Validation of PO Number
    CLEAR ekko-ebeln.
    IF NOT s_ebeln[] IS INITIAL.
    SELECT ebeln UP TO 1 ROWS
    INTO ekko-ebeln
    FROM ekko
    WHERE ebeln IN s_ebeln.
    ENDSELECT.
    IF sy-subrc 0.
    MESSAGE e000 WITH 'Invalid Document Number'(003).
    ENDIF.
    ENDIF.
    Validation of PO Document Type
    CLEAR t161-bsart.
    IF NOT s_bsart[] IS INITIAL.
    SELECT bsart UP TO 1 ROWS
    INTO t161-bsart
    FROM t161
    WHERE bsart IN s_bsart.
    ENDSELECT.
    IF sy-subrc 0.
    MESSAGE e000 WITH 'Invalid Purchase Document Type'(004).
    ENDIF.
    ENDIF.
    Validation of Purchasing Group
    CLEAR t024-ekgrp.
    IF NOT s_ekgrp[] IS INITIAL.
    SELECT ekgrp UP TO 1 ROWS
    INTO t024-ekgrp
    FROM t024
    WHERE ekgrp IN s_ekgrp.
    ENDSELECT.
    IF sy-subrc 0.
    MESSAGE e000 WITH 'Invalid Purchasing Group'(005).
    ENDIF.
    ENDIF.
    ENDFORM. " validate_screen
    *& Form fetch_data
    Fetching the PO related data from Database Tables
    FORM fetch_data .
    CLEAR i_po.
    REFRESH i_po.
    SELECT a~ebeln " PO No.
    b~ebelp " PO Item
    a~bstyp " PO Category
    a~ihrez " Your Reference
    a~unsez " Our Reference
    a~bukrs " Company Code
    a~bsart " PO Type
    a~lifnr " Vendor No
    a~ekgrp " Purchase Group
    a~waers " Currency
    a~bedat " PO Date
    b~txz01 " Material Text
    b~werks " Plant
    b~lgort " Storage Location
    b~matkl " Material Group
    b~menge " PR Quantity
    b~meins " UOM
    b~bprme " Price Unit
    b~netpr " Net price
    b~peinh " Price Unit UOM
    b~pstyp " Item Category
    b~knttp " Account Assignment Category
    INTO TABLE i_po
    FROM ekko AS a JOIN ekpo AS b
    ON a~ebeln = b~ebeln
    WHERE a~ebeln IN s_ebeln AND
    a~lifnr IN s_lifnr AND
    a~ekgrp IN s_ekgrp AND
    a~bsart IN s_bsart AND
    a~bedat IN s_bedat.
    SORT i_po BY ebeln ebelp.
    IF NOT i_po[] IS INITIAL.
    Fetch the PO History/Invoice Details from EKBE Table
    CLEAR i_ekbe.
    REFRESH i_ekbe.
    SELECT ebeln " PO No.
    ebelp " PO Item
    gjahr " Fiscal Year
    belnr " PO Invoice No
    menge " PR Quantity
    wrbtr " Price in Local Currency
    dmbtr " Price in Foreign Currency
    waers " Currency
    shkzg " Dr/Cr Indicator
    INTO TABLE i_ekbe
    FROM ekbe
    FOR ALL ENTRIES IN i_po
    WHERE ebeln = i_po-ebeln AND
    ebelp = i_po-ebelp AND
    vgabe = c_vgabe.
    IF sy-subrc = 0.
    SORT i_ekbe BY ebeln ebelp.
    LOOP AT i_ekbe.
    IF i_ekbe-shkzg = c_h.
    i_ekbe-wrbtr = i_ekbe-wrbtr * -1.
    ENDIF.
    MODIFY i_ekbe.
    ENDLOOP.
    Sum up the Item wise Invoice totals
    LOOP AT i_ekbe.
    AT END OF ebelp.
    READ TABLE i_ekbe INDEX sy-tabix.
    SUM.
    MOVE-CORRESPONDING i_ekbe TO i_inv.
    APPEND i_inv.
    ENDAT.
    CLEAR i_inv.
    ENDLOOP.
    SORT i_inv BY ebeln ebelp.
    ENDIF.
    ENDIF.
    Move the Vendor Name and Invoice Values to I_rep Internal Table
    LOOP AT i_po.
    MOVE-CORRESPONDING i_po TO i_rep.
    CLEAR i_inv.
    READ TABLE i_inv WITH KEY ebeln = i_po-ebeln
    ebelp = i_po-ebelp.
    IF sy-subrc = 0.
    i_rep-orewr = ( i_po-menge - i_inv-menge ) * i_po-netpr.
    i_rep-curr = i_inv-waers.
    ELSE.
    i_rep-orewr = i_po-menge * i_po-netpr.
    i_rep-curr = i_po-waers.
    ENDIF.
    Get the Vendor Name
    CLEAR lfa1-name1.
    SELECT SINGLE name1 FROM lfa1 INTO lfa1-name1
    WHERE lifnr = i_po-lifnr.
    IF sy-subrc = 0.
    i_rep-name1 = lfa1-name1.
    ENDIF.
    APPEND i_rep.
    CLEAR i_rep.
    ENDLOOP.
    SORT i_rep BY lifnr ebeln ebelp.
    DELETE i_rep WHERE orewr LE 0.
    ENDFORM. " fetch_data
    *& Form display_data
    Display the Report Output data
    FORM display_data .
    DATA: lv_flag, " New Flag
    lv_rec TYPE i. " No of Records
    CLEAR lv_rec.
    IF i_rep[] IS INITIAL.
    MESSAGE e000 WITH 'No Data found'(022).
    ELSE.
    LOOP AT i_rep.
    Toggle Color
    PERFORM toggle_color.
    IF lv_flag space.
    NEW-LINE.
    ENDIF.
    At New Purchase Document
    AT NEW ebeln.
    WRITE:/1 sy-vline, 2(10) i_rep-ebeln INTENSIFIED OFF.
    lv_flag = c_x.
    lv_rec = lv_rec + 1.
    ENDAT.
    WRITE: 1 sy-vline,
    12 sy-vline,13(4) i_rep-bsart,
    17 sy-vline,18(10) i_rep-lifnr,
    28 sy-vline,29(35) i_rep-name1,
    64 sy-vline,65(4) i_rep-ekgrp,
    69 sy-vline,70(10) i_rep-bedat,
    80 sy-vline,81(5) i_rep-ebelp,
    86 sy-vline,87(40) i_rep-txz01,
    127 sy-vline,128(9) i_rep-matkl,
    137 sy-vline,138(1) i_rep-pstyp,
    139 sy-vline,140(1) i_rep-knttp,
    141 sy-vline,142(4) i_rep-werks,
    146 sy-vline,147(4) i_rep-lgort,
    151 sy-vline,152(13) i_rep-menge UNIT i_rep-meins,
    165 sy-vline,166(3) i_rep-meins,
    169 sy-vline,170(15) i_rep-netpr CURRENCY i_rep-waers,
    185 sy-vline,186(4) i_rep-waers,
    190 sy-vline,191(5) i_rep-peinh,
    196 sy-vline,197(4) i_rep-bprme,
    201 sy-vline,202(15) i_rep-orewr CURRENCY i_rep-curr,
    217 sy-vline,218(4) i_rep-curr,
    222 sy-vline,223(7) i_rep-bstyp centered,
    230 sy-vline,231(12) i_rep-ihrez,
    243 sy-vline,244(12) i_rep-unsez,
    256 sy-vline.
    NEW-LINE.
    hide: i_rep-ebeln.
    ENDLOOP.
    ULINE.
    FORMAT COLOR OFF.
    WRITE : /2 'Total Number of Purchasing Documents:'(025) COLOR 3,
    lv_rec COLOR 3.
    ENDIF.
    ENDFORM. " display_data
    *& Form header
    Write the Report Header
    FORM header .
    FORMAT RESET.
    header
    WRITE:/1(230) 'LIST OF PURCHASE DOCUMENTS PER VENDOR'(006) CENTERED.
    SKIP.
    FORMAT COLOR COL_HEADING.
    ULINE.
    WRITE:/1 sy-vline,2(10) 'Pur.Doc.No'(006) CENTERED,
    12 sy-vline,13(4) 'Type'(007),
    17 sy-vline,18(10) 'Vendor'(008) CENTERED,
    28 sy-vline,29(35) 'Name'(009) CENTERED,
    64 sy-vline,65(4) 'PGrp'(010) CENTERED,
    69 sy-vline,70(10) 'Doc.Date'(012) CENTERED,
    80 sy-vline,81(5) 'Item'(011),
    86 sy-vline,87(40) 'Material Short Text'(024) CENTERED,
    127 sy-vline,128(9) 'Mat.Group'(013),
    137 sy-vline,138(1) 'I',
    139 sy-vline,140(1) 'A',
    141 sy-vline,142(4) 'Plnt'(014),
    146 sy-vline,147(4) 'SLoc'(015),
    151 sy-vline,152(13) 'Quantity'(016) CENTERED,
    165 sy-vline,166(3) 'UoM'(017),
    169 sy-vline,170(15) 'Net Value'(018) CENTERED,
    185 sy-vline,186(4) 'Curr'(019),
    190 sy-vline,191(5) 'Per'(020),
    196 sy-vline,197(4) 'Unit'(021),
    201 sy-vline,202(15) 'To be Invoiced'(023) CENTERED,
    217 sy-vline,218(4) 'Curr'(019),
    222 sy-vline,223(7) 'Doc.Cat'(026),
    230 sy-vline,231(12) 'Your Ref'(012),
    243 sy-vline,244(12)'Our Ref'(012),
    256 sy-vline.
    ULINE.
    ENDFORM. " header
    *& Form toggle_color
    This routine alters the color of the records in the list
    FORM toggle_color.
    IF gv_dial = space.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    gv_dial = c_x.
    ELSE.
    FORMAT COLOR 1 INTENSIFIED OFF.
    CLEAR gv_dial.
    ENDIF.
    ENDFORM. " toggle_color
    *& Form LINE_SEL
    *When double clicked on EBELN field display the details of Purchase Doc
    FORM line_sel.
    CASE sy-lsind.
    WHEN '1'.
    DATA: lv_field(20),
    lv_value(10),
    lv_bstyp like i_rep-bstyp.
    clear: lv_bstyp,lv_value, lv_field.
    GET CURSOR FIELD lv_field VALUE lv_value.
    IF lv_field = 'I_REP-EBELN'.
    IF NOT lv_value IS INITIAL.
    READ LINE sy-index FIELD VALUE i_rep-bstyp
    INTO lv_bstyp.
    READ CURRENT LINE FIELD VALUE i_rep-bstyp INTO lv_bstyp.
    if lv_bstyp = 'F'.
    SET PARAMETER ID 'BES' FIELD lv_value.
    CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
    elseif ( lv_bstyp = 'K' or lv_bstyp = 'L' ).
    SET PARAMETER ID 'VRT' FIELD lv_value.
    CALL TRANSACTION 'ME33' AND SKIP FIRST SCREEN.
    elseif lv_bstyp = 'A'.
    SET PARAMETER ID 'ANF' FIELD lv_value.
    CALL TRANSACTION 'ME43' AND SKIP FIRST SCREEN.
    endif.
    ENDIF.
    ENDIF.
    ENDCASE.
    ENDFORM. " line_sel
    Reward Points if useful.

  • List of blocked invoices purchase group wise

    Hi experts
    Any standard reports available for blocked invoices purchase group wise ? Wht is the Tcode for that?

    Hi,
    Check the Table  RBKP_BLOCKED

  • Purchase group in Purchase order from creator not from Material Master

    Hi All,
    Can you please help me with the next one?
    Points rewarded.
    In the materialmaster is purchase group 44B entered but
    The default purchase group of the buyer is 55C. Is it possible
    that the value 55C is automaticaly placed in the PO when
    the buyer creates the Purchase order?
    At this moment always the default value from Material
    master is proposed.
    Thank you in advance,
    Eric.

    Hi,
    You have to look at the overall process.
    The idea of the Purchasing Group is to indicate which buyer manages that material in that plant.
    SO when the system (or a user) generates a requisition for that item at that plant, the system then knows who should convert it etc.
    So my question to you would be, "why have you got a default P group in the material master record that is NOT the buyer who manages that item at that plant?"
    If several buyers share a list of materials then just use one P group for the "group" of buyers, instead of separate P groups for each buyer.
    The system doesn't have the option to automatically overwrite the P group on the requisition because this may be someone just "helping out" the buyer who is busy and so it does not mean that the requisition should be changed to be linked to this other P group.
    You already have the field "created by" on the PO and so if you need to report on who created what, then simply use this field instead of P group.
    But the P group on the material master (and therefore the requisition) shoudl ALWAYS be the P group that will convert reqs for this item plant combination.
    Steve B

  • Want to select purchasing Group according to plant

    Hi experts,
    I want to make customization in SRM portal. We have a specific requirement that while creating shopping cart the purchasing group should get changed if Location is changed.
    For example if lets say A & B are purchasing grps and lets say X & Y are locations. I want if we change the location from X to Y the purchasing grp should get changed to B from A.
    We already have maintained attributes in org structure.
    Can please anyone help us out for making said changes.

    Hi there,
    SC items are assigned to purchasing groups according to the following     
    characteristics:                                                                               
    (1) Organizational assignment of the requester: The purchasing group     
         must be responsible for one department of the requester's parent     
         reporting line.                                                                               
    (2) Product category of the item: The purchasing group must be           
         responsible for the chosen product category.                                                                               
    (3) Product category's target system: The purchasing group must be       
         assigned to the item's target backend system (tab card 'Function').                                                                               
    If not all conditions can be fulfilled at once, the algorithm of          
    function module BBP_OM_FIND_SC first ignores condition (1), then          
    (1) & (2), and finally (1) & (2) & (3) to ensure that an item will        
    always be assigned to a purchasing group.                                                                               
    This of course can be overwritten by your BADI BBP_PGRP_FIND.
    Hope this helps,
    Kind regards,
    Matthew

  • Auto emailing of PO's of  particular purchasing groups to common mail Id

    Hello All,
    There is a need to have all the PO's created with multiple purchasing groups to be sent to a common mail Id.
    For Example ,  there are various purchasing groups like PG1, PG2, PG3,....and so on & the need is to send all the PO's created with these purchasing groups (PG1,PG2,PG3....) to be sent to a common mail ID
    Kindly advise how to proceed further regarding this.
    Thanks & Regards,
    Ravindra
    Edited by: Ravi Bhalerao on May 5, 2011 8:41 AM

    Yuo can have this as follows:-
    Create a customized program which choose PO detail based on PO PR group. Then write a funtion module to send mail to external mail ID POs as PDF attachment.
    Here is the sample code for Function module:-
    REPORT ZREPORT_TO_EMAIL NO STANDARD PAGE HEADING LINE-SIZE 200.
    DATA : BEGIN OF ITAB OCCURS 0,
    PERNR LIKE PA0001-PERNR,
    ENAME LIKE PA0001-ENAME,
    END OF ITAB.
    DATA: message_content LIKE soli OCCURS 10 WITH HEADER LINE,
    receiver_list LIKE soos1 OCCURS 5 WITH HEADER LINE,
    packing_list LIKE soxpl OCCURS 2 WITH HEADER LINE,
    listobject LIKE abaplist OCCURS 10,
    compressed_attachment LIKE soli OCCURS 100 WITH HEADER LINE,
    w_object_hd_change LIKE sood1,
    compressed_size LIKE sy-index.
    START-OF-SELECTION.
    SELECT PERNR ENAME
    INTO CORRESPONDING FIELDS OF TABLE ITAB
    FROM PA0001
    WHERE PERNR < 50.
    LOOP AT ITAB.
    WRITE :/02 SY-VLINE , ITAB-PERNR, 15 SY-VLINE , ITAB-ENAME, 50
    SY-VLINE.
    ENDLOOP.
    Receivers
    receiver_list-recextnam = 'EXTERNAL-MAIL-ID'. "-->
    EMAIL ADDRESS
    RECEIVER_list-RECESC = 'E'. "<-
    RECEIVER_list-SNDART = 'INT'."<-
    RECEIVER_list-SNDPRI = '1'."<-
    APPEND receiver_list.
    General data
    w_object_hd_change-objla = sy-langu.
    w_object_hd_change-objnam = 'Object name'.
    w_object_hd_change-objsns = 'P'.
    Mail subject
    w_object_hd_change-objdes = 'Message subject'.
    Mail body
    APPEND 'Message content' TO message_content.
    Attachment
    CALL FUNCTION 'SAVE_LIST'
    EXPORTING
    list_index = '0'
    TABLES
    listobject = listobject.
    CALL FUNCTION 'TABLE_COMPRESS'
    IMPORTING
    compressed_size = compressed_size
    TABLES
    in = listobject
    out = compressed_attachment.
    DESCRIBE TABLE compressed_attachment.
    CLEAR packing_list.
    packing_list-transf_bin = 'X'.
    packing_list-head_start = 0.
    packing_list-head_num = 0.
    packing_list-body_start = 1.
    packing_list-body_num = sy-tfill.
    packing_list-objtp = 'ALI'.
    packing_list-objnam = 'Object name'.
    packing_list-objdes = 'Attachment description'.
    packing_list-objlen = compressed_size.
    APPEND packing_list.
    CALL FUNCTION 'SO_OBJECT_SEND'
    EXPORTING
    object_hd_change = w_object_hd_change
    object_type = 'RAW'
    owner = sy-uname
    TABLES
    objcont = message_content
    receivers = receiver_list
    packing_list = packing_list
    att_cont = compressed_attachment.

  • Purchase group list

    Dear Gurus,
    I need to get the list of purchase groups with details. This is required for User, SO it can not be from SPRO. Also not from MM03 OR XK03 which will show drop down list on purchase group field.
    Is there any way I can get list of purchase groups with details from user perspective.

    As per I know there is no such report to  only display purchase group.
    Many reports have drop down option to choose it.
    you can make simple query to display only purchase group

  • Purchase Group - Purchase Executive

    Hi,
    Each Purchase Group has 3 executives.  when PR is generated it will generate for PG only,  Here the requirement is after creating the PR, based on Purchase Group, he will assign to the respective executive for further processing.  How can it be mapped in sap?
    Reply me in detail.
    Munna

    Dear Ramesh, Jurgen,
                               Excuse me for contradicting your answer. Intention is not to say your solution is not appropriate but I carry different understanding on this.
    what appears from Munna question is that he want to know which purchase requistions were alloted to which executive for purchase order.
    if the Purchase group is changed the direct link is gone, then he has to develop a report to know for which PREQ the original Purchase group was there and subsequently it was changed to which purchase group.
    what I suggest is he should create an addition field in PO screen to accomodate the executives, anyhow the purchase group info will be retained in PO from PREQ.
    he can have both the things without losing the orginality.
    Regards
    Rajesh

  • WRP1 considering Articles with different Purchase group

    Hi
    Gurus,
    We
    are facing issue in WRP1 program, in production system one STO is created
    for many articles with different purchase group with same site,
    But
    My understanding is that when replenishment happens, different STOs will
    be created for different purchase group for same site and client is also
    expecting same thing...
    Issue
    - In STO articles are belongs to same site but different purchase
    group, in PO header its updated purchase group as 002 but if check line items
    Articles are from many purchase group like, 001 , 002 , 003 etc....
    When
    in header its showing purchase group as 002 it should consider articles
    with same purchase group but its combining all articles belongs to same site
    irrespective of purchase group.
    Kindly advise
    Regards,
    Vinay

    Hi Vinay,
    It's standard system behaviour. PO group on header level is for reporting purposes, it's not scoping the allowed articles on the item lines. Therefore, WRP1 creates the STO with a mixture of articles of several purchase groups.
    Perhaps this apporach might be feasible for your challenge:
    - In stead of creating STO, create purchase requisition as follow on document from WRP1 processing (see Store Order Control in SPRO);
    - after WRP1 processing, run ME59N (also possible in background) for the purch. reqs. created in WRP1 with the parameter 'Per purchasing group' (and perhaps also 'Per site'). This should result in STO's per site/purchase group.
    Regards,
    Johan

Maybe you are looking for