How determine de Purchasing Group ID

Hello,
I need to determine the purchase group ID (field EKGRP) in SRM from a purchase or a shopping cart.
Until now I can get the GUID value (ex. 50000026) but I need the field EKGRP. I have seen that this field appears into the  BBP_PDBEH table, but it refers to backend system.
Do you know how can I get it?
Thank you in advance.
Best regards.

Please find the details below:
1. Get the Org Id say O 50012979 and pass it to the table HRP5500
OTJID = 'O 50012979'
Here select the value TABNR
2. Pass the TABNR value to the table HRT5500
TABNR = 'TABNR from HRP5500 for O 50012979'
You can get the value EKGRP here.
Hope this solves your problem.
Regards
Kathirvel

Similar Messages

  • How to determine the purchasing group using BADI BBP_PGRP_FIND

    Hello Friends
    We use SRM Server 5.5 (Classic scenario).
    As you know that, purchasing group has the responsible product categories in PPOMA_BBP, when user creates the shopping cart to determine the purchasing group. 
    In our case, we should determine the purchasing group using other criteria.
    MM side is OK to determine the purchasing group using specific criteria.
    Because Material Master has the purch. Group information. 
    In case of SRM, we should develop the logic using BBP_PGRP_FIND BADI.
    But I’m not sure how to use this badi.
    We want to determine the purchasing group based on the following logic.
    If described shopping cart without product ID
    Do Standard purchasing group determination logic.
    Else
    Assign the purch group from MARC- EKGRP (Purchasing Group)
    Is it possible to determine above the logic?
    If yes, Could you give me some information?
    Thank you,
    Best regards,
    SH
    Message was edited by:
            So Hee Lee

    Thank you for your answer.
    I found the way to develop the our logic using BADI: bbp_pgrp_find.
    But I’m not sure the following logic is correct.
    To differentiate described req. or product id req, We check the E_ITEM – PRODUCT using BBP_PD_SC_GETDETAIL.
    IF E_ITEM – PRODUCT is blank, Read the category ID to find the purchasing group.
    To find the purch. Group, we can use FM:  BBP_OM_DETERMINE_RESP_PGRP.
    Import parameter: IS_RESP_ITEM_DATA – Category _ID
    Export parameter: ES_PURCH_DATA
    ELSE
    CALL the customer function to read the R/3 purchasing group from MARC- EKGRP
    Search the HRT5500-TABNR using purchasing group from R/3.
    Search the HRP5500 – OBJID using HRT5500-TABNR
    Call the FM:  BBP_OM_DETERMINE_RESP_PGRP
    Import parameter: IS_RESP_ITEM_DATA – PROC_GROUP – OBJID
    Export parameter: ES_PURCH_DATA
    Thank you
    Best Regards
    SH

  • How to show purchasing group members in the item data of the shopping cart?

    Dear Experts,
    for s shopping cart in SRM 7.0 CS, i have the following business requirement:
    In the item data tab of the line item details, the drop down field for Purchasing group is there. Right to this field, there is also a link called "Show members".
    If i go on this link, than a small table opens that obviously is there to contain such additional information about the purchasers like name, telephone nummber or extension.
    Currently, this small table does not contain any of this additional information for any of the used purchasing groups.
    Can you please help me understand, how and where i can maintain this information in the sytem, so it shows in the shopping cart?
    Thank you very much for your help.

    Hi,
    thank you very much for the answer.
    Actually, the question is not how to create the organizational unit of purchasing group in the PPOMA. This is all done. I just would like to understand, whether there is somewhere a place where i can maintain the name and maybe also the phone number of the buyer himself.
    Thus, i would hope to see these details (i.e. the name and the phone number) in that small table that opens up if i click on the "Show members" link that is situated right to the purchasing group field in the "Item data" tab of the details of the line item.
    Thank you.

  • How to replicate purchasing group from R/3 to EBP

    HI,
    1.Cany anyone kindly explain me in steps the procedure to replicate new purchasing groups created in r/3 to EBP?
    2. How to assign the new purchasing group to user against cost center in EBP organisation structure?
    Thank you.

    Hi,
    Step1: create purchasing group in R/3 (backend)
    Below steps are required to create New Pur Grp node in SRM:
    1. Select another Pur Grp under same Company / Pur Org and copy.
    2 Under copy object  - Enter Object abbr as PGRP_ XXX and under name field enter XXX  and name as per Pur Grp in SAP. (XXX is Pur Grp)
    3. Please check Basic data and address. Address should be as per Por Org address.
    4. Please check / change below data under FUNCTION tab.  System name should RZPLOGS100 (if you are carrying out activity in RSP)
    5.Check responsibly tabs and object id should match with company ID (company organization ID should be updated in responsibilty tab)
    6.Once Pur Grp is created in RSP, we have to assign user responsible for Pur Grp. 
    If you are not clear then give me your email id & i will send you document for that...
    Regards
    Shrinivas
    +919282153141

  • How to create Purchase group

    Hai Guys,
    What is the procedure to create my own Purchase group?
    Kindly let me know the Steps..
    Regards
    Jino.

    Hi,
    You need to perform the following steps
    Goto SPRO > Material management > Purchasing > Create purchasing group
    Here you'll be able to enter the name, desciption, phone no., fax and e-mail Id of the purchasing group.
    If you need to maintain the printer settings for the purchasing group please follow the below path
    Goto SPRO > Material management > Purchasing > Messages > Assign output devices for the purchasing groups.
    You'll have to maintain this in the development client and get it transported to production.
    Hope this clarifies this issue.

  • Purchasing group determination

    Hello,
    We are using the extended classic scenario but we need to activate the classic scenario in the badi BBP_EXTLOCALPO_BADI because we want to create reservation in R/3.
    Now we have a problem with the purchasing group in the shopping cart, the system always determine the purc gr from R/3.
    We need to obtain the purch grup from R/3 in case the system creates a reservation and in other case (no reservation) from SRM.
    We have tried to modify it in the badi BBP_PGRP_FIND but this is not possible because the creation of reservation depends of the request quantity. Also we try to change it on BBP_DOC_CHANGE_BADI but we get sometimes an error message about the purchasing organization differs from target system
    Thanks in advance, Juan Manuel

    Hello Juan
    BBP_OM_DETERMINE_RESP_PGRP this is std fm determines purchase grp upon responsible product category.
    BBP_PGRP_ASSIGN_BADI - helps or BBP_PGRP_FIND to determine reponsible purchase group in a sc.
    but this badi controls follow on documents need to  created
    bbp_target_objtype  i.e overriding the 'Define Objects in Backend System (Purch. Reqs, Reservations, Purch. Orders)' i believe you must do with this target badi. correct me i were wrong.
    942052 and 1067803 note
    br
    muthu

  • STO error: No Purchasing Group determined

    Hi,
    There is one *STO error message* occurred when i creating optical service order.
    I am trying to create a Optical Service Order and when I going to save it as completely billed, STO error occurs with message: No Purchasing Group determined.
    Could somebody help me in this regard and explain the steps to solve the issue.
    Thanks in Advance...
    Ur Help will be highly beneficial......
    Regards
    Amandeep K. Dhaliwal

    Hi
    product category are directly related to purchase group. depends upon the settings in the organisation structure , the system determines which purchase group is responsible for procuring this product category.
    so back track your product category and purchase group link and this purchase group is made a link with purchase organisation. since product category responsiblity is a mandatory in srm.
    Can you update here . where your user was positioned in org structure?
    hope that you made a link between purch organ with purchase group?
    po1
      --> pg1
    and moreover check following settings. are you try to procure via describe (spl request)?
    Purchase group - responsibilty tab what are the product category you mentioned?
    have you maintain Organisation responsibility under the responsibility tab?.
    still you find difficulty ?
    regards
    muthu

  • Same Purchasing group assigment to multiple Purchasing Org

    Dear all,
    I am facing an issue in SRM 5.0 in Classic Scenario.
    In R/3 the freedom exist to assign independently the Purchasing Organization and the Purchasing Group to a PREQ or PO.
    Then the following lists have been created:
    <u>PurchORG</u>:
    - PORG1: Porg of country 1
    - PORG2: Porg of country 2
    <u>and PurchGROUP</u>
    - PGRP1: Pgrp Office sup
    - PGRP2: Pgrp IT
    and then I want to be able to use all the following combinations:
    PORG1-PGRP1
    PORG1-PGRP2
    PORG2-PGRP1
    PORG2-PGRP2
    To do that I create in my Organization Plan the following:
    - PORG1
         -PGRP11
         -PGRP12
    - PORG2
         -PGRP21
         -PGRP22
    However as I am in Classical Scenario I need to link the OrgPlan Pgrp to the coresponding in R/3
    - PORG1
         -PGRP11 >PGRP1
         -PGRP12 >PGRP2
    - PORG2
         -PGRP21 >PGRP1 : Error Purchasing group ... in system ... already assigned to ... (message BBP_ATTR 030)
         -PGRP22
    1) I have read somewhere but I can not find it anymore that the system messages can be updated to avoid this error and to allow that functionality. Has somebody done it? Where is it? I am correct?
    2) Otherwise do you have an option to do it? 
    How must I create my Org Plan as I suppose all Porg and PGrp must exist once in Org Plan.
    Then must I use the BADI BBP_PGRP_FIND with Determine Responsible Purchasing Group(s) BADI BBP_PGRP_FIND.  Can you explain how, or provide piece of code.
    I looked in doculentation but I don't see clearly the difference between the 2 exit objects (they seem duplicate for me):
    - ES_PURCH_DATA - This output structure should contain the object type and the object ID of the default purchasing group and the higher-level purchasing organization. If you are dealing with a backend purchasing group (purchasing organization), then you must also define the corresponding backend IDs.
    - ET_PURCH_DATA - This output table passes the list of all responsible purchasing groups and their higher-level purchasing organizations. A table line is formed corresponding to structure ES_PURCH_DATA.
    Thanks in advance
    RD

    Hi
    <b>You can go through the link for complete code and other required details -></b>
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/srm/badi-general+information&
    Re: Purchasing group from external requirements
    Re: BAdI BBP_PGRP_FIND
    Re: Purchasing group from external requirements
    Re: Sample code for BADI implementation
    Every purchaser will be assigned to the relevant purchasing groups in Organization structure and purchasing groups have the product responsibility (product category) and person/organization responsiblility assigned in the 'Responsibility' tab. I think this should be sufficient to get the linkage.
    Re: "Proc_Group" assignment to shopping cart  from transferred requisitions
    Using BAdI BBP_PGRP_FIND for purch.group determination
    Use Function Module -> BBP_OM_READ_PURCH_ORG_ID
    Give Logical system and Purchasing group to this FM.
    It will give you
    ES_PURCH_ORG-OT
    ES_PURCH_ORG-OBJID
    Use this info in table HRP1000(Infotype 1000 DB Table) to get the value of text.
    Function module - BBP_OM_DETERMINE_RESP_PGRP
    The purchaing groups are responsible for product catrgories (material group) and not material numbers. If you use "describe requirement" to create a shopping cart, the purchasing group will default from this responsibilty of product categorty and not material number.
    Also the purchasing group can default on other criterias like the organizational responsibility and so on....
    Inorder to determine the reponsible purchase organization for creating shopping carts for all product categories, this task can be accomplished by implemeting the badi BBP_DOC_CHANGE_BADI. here you have to write some logic to change the purchasing organization based on product category. In the purchasing cycle Purchase Organization is not responsible to procure the product, Purchase Group is responsible for the same. In the Organization structure after defining Purchasing organization, you might have define Purchase Group also in the purcase group RESPONSIBLE TAB you have to define the PRODUCT CATAGORY to be procure by this Purchase group.
    Do let me know.
    Regards
    -Atul

  • Vendor Responsibility for Purchasing Groups

    Hi experts!
    We should assign vendor responsibility for purchasing groups, what means depending on which vendor / source-of-supply is selected in the shopping cart the correct purchasing group is assigned.
    Do you have any idea how to handle this in SAP standard?
    Can we use a BADI to help out?
    Many thanks for your ideas.
    Best regards,
    Corinne

    Hi
    Lots of BADIs are there, which can help out ->
    BBP_PGRP_ASSIGN_BADI                  EBP Purchasing Documents: Assign Purchasing Group(s)    
    BBP_PGRP_FIND                                        Shopping Cart: Determine Responsible Purchasing Group(s)
    <u>Related links to check out -></u>
    Re: How to assign purchasing organization to a vendor using the GUI interface??
    Multiple purchasing group responsibility?
    Re: SRM 5.0 - Assign user to multiple purchasing groups?
    Re: Purchasing Group and User Assignment
    How can we change the purchasing group which it is maintained in R/3?
    vendor not intended for a puchasing org
    <u>Other related BADIs -></u>
    BBP_DOC_CHANGE_BADI
    BBP_DOC_CHECK_BADI
    Hope this will definitely help.
    Regards
    - Atul

  • Purchase group creation in EBP

    Hi,
    i got a requiremenet to create purchasing group in R/3 and EBP.
    How to cretae purchasing group in EBP,whether we have to replicate it from R/3 or we ahve to create directly in EBP.
    Please guide me how to create or replicate.
    Thank you.

    Hello ,
    First create the Purchasing group in R/3 by going to following Menu Path in SPRO
    Materials Management >Purchasing> Create Purchasing Groups (OME4).
    Then follow the steps as per my previous post .
    Cheers,
    Sid

  • Purchasing Group control - PO and PR - Best Practices?

    Hi experts,
      My client need to implement in the same plant, purchasing group for POs and indirect PRs.
      They currently have around 5-6 plants in Asia and the design is to group the purchasing group for the plant at the prefix level. Example A01 to AZZ for plant in Thailand, B01 to BZZ for plant in China.
       Thus we will have situation of A01, A02, A03 created for buyers and A04, A05 created for department to raise indirect PR.
       But the requirement is that the buyer should not use the purchasing group from the department (A04, A05) to create PO. Other than hard-coding the A01, A02 and A03 to the role to be given to the buyer, for Best practice, how should the purchasing groups be design in such situations?

    Hi Ravi,
              Thanks for your respond.
               My client won't have issue of buyer buying for other plants as the buyers are local buyers situated at the plant. They don't have a centralized purchasing team that purchased for mor than 1 plant.
                When you say purchasing group are added to the role, I presume you mean that buyer only have authorizaton for their own purchasing group? That mean buyer A01 only have authorization for A01 and nothing else?
                 When it come to maintenance, won't this be tough? In addition, buyers will not be able to back up each other of the same plant when anyone goes on leave. Our current plan is to give A* for buyers in Thailand plant. But that also mean I might have the prob of direct buyers accidentally using department purchasing group to create PO.

  • No Purchasing Group is assigned to Org plan attributes

    Hi,
        When the user is creating a SC he is getting the following error "No Purchasing Group is assigned to Org plan attributes".I have checked the users Org structure in PPOMA_BBP,But everything looks fine.
    Any inputs  will be appreaciated!!
    Thanks
    Rakesh.

    Hi
    product category are directly related to purchase group. depends upon the settings in the organisation structure , the system determines which purchase group is responsible for procuring this product category.
    so back track your product category and purchase group link and this purchase group is made a link with purchase organisation. since product category responsiblity is a mandatory in srm.
    Can you update here . where your user was positioned in org structure?
    hope that you made a link between purch organ with purchase group?
    po1
      --> pg1
    and moreover check following settings. are you try to procure via describe (spl request)?
    Purchase group - responsibilty tab what are the product category you mentioned?
    have you maintain Organisation responsibility under the responsibility tab?.
    still you find difficulty ?
    regards
    muthu

  • Purchasing Group in Purchase Info Record

    Hello Gurus,
    The Purchasing Group in Purchasing Info Record is not read at Purchase Requisitions...
    My operation is as below;
    1. Create Purchasing Requisitions via MRP
    2. Assign Fixed Vendor at MD57 or via Source List ( when source list, Fixed Vendor will be assigned at MRP)
    3. Vendor and sometimes Purchase info rec # are assigned to Purchase Requirement
    But Purchasing Group is not assigned to Purchase Requisition.
    I understood that Price is not assigned at Purchase Requisitions, but nor Purchasing Group is not assigned although it is mandatory field in Purchase Info Record at SAP standard..
    Would you tell me how to read Purchasing Group from Purchasing Info Records into Purchase Requisitions?
    Best Regards,
    AK

    Hello,
    Hm, now it is like this;
    - Actually, One Purchase Organization is fixed for the Plant
    - But since we use the same purchase organization, the organization customization was set as below;
        --  Purchase Organization- Company Code: Blank for the Purchase Organization
        --  Plant - Purchase Organization: one Purchase Organization is set for all the Plants
        --  Plant - default Purchase Organization: blank since this seems to be effective only for consignment etc
    -> And the PR which was created via MRP, there is no Purchase Organization assigned....
    I do not know why...we have Plant in the PR but blank for Purchase Organization..
    And it seems that, if I could assign purchase organization to PR via MRP, Purchase Group should be read into PR..
    Edited by: Asayo Kasai on Jan 18, 2011 2:15 PM
    Edited by: Asayo Kasai on Jan 18, 2011 2:15 PM

  • Creating a new purchasing group

    Hi,
    I have created a purchsing group in SAP and now it should reflect in SRM. I dont know how does it happen? do i have to create the purchsing group again in srm or it needs to be mapped in SRM.
    If i have to create a new purchasing group in SRM, then please tell me how to create as i am unware of this.
    Thanks in Advance
    Nisha

    Hi Nisha,
    Please check if the [link1|how to replicate purchasing group from R/3 to EBP] [link2|Creating New Purchasing Group in SRM] helps.
    Regards,
    Saumya

  • The correct purchasing group is not being determined in the SC line item

    Dear all,
    I have a problem in that for some reason, when a shopping text line item is added to the shopping cart, the wrong purchasing group is determined. Further more when you look in the basic data section they is a drop down against the purchasing group field listing all pruchasing groups setup in the org plan via PPOMA_BBP.
    This means that the requisitioner can change the purchasing group to any one even the one that is not relevant to his or her Purchasing Organisation. This of cause is not right because if the requisitioner is allowed to change the P/Grp, the wrong buyer may end up recieving the buyer completion work item.
    What is causing this?
    We have uniquely assigned P/Orgs to P/Grps and assigned resposiibility of P/GRPS to one unique ORg unit (company).
    for example, a suppose product Category 1234567 is assigned to P/GRP 100 & P/GRP 100 is assigned to P/ORG 1000 and the P/GRP responsibility is set to Org unit(company) 1000,  The requisition "sits" under an orgunit linked to company 1000.
    If a requisitioner creates a text item and assigns product category 1234567, when the item is added to the shopping cart , I expect to see that the followig:
    1. The Company code(CC)should be 1000 (This is happening)
    2. The P/org should be 1000(This is happending)
    3. The Plant sssignment is correct
    4. The p/grp is worong. It appear that the first P/Grp is assigned plus a drop down listing all p/grps created for all purchasing P/Orgs.
    Regards,
    Grace

    Yann,
    Yes , we have (need to have)set 2 purchasing groups with the responsibility of the same product category. We have to do this because in our organisation, individual company purchasing organisations have same responsibilities to purchase similar products.
    Please note that we have a classic scenario implementation. SRM 4, Server 5.
    The business requirement and settings in the org plan is for example:
    P/Grp 100 has the reponsibility to procure Prod cats LAM001 to LAM010 via its assigned P/org 1000 which is linked to  own company 1000 and P/grp 200 also has the reponsibility to procure Prod cats LAM001 to LAM010  via its assigned P/org 2000 which is linked to own company 2000.
    Please note that thr buyer responsible for p/grp 100 & 200 are the same and will be the same for similar product cats across the organisation as a whole. Its just the SRM does not allow you in the orgplan to assign the same p/grp to multiple p/orgs, we had to double up on the p/grps.
    Also when a requisitioner who sits under company 2000 chooses a product cat 12345 if creating a SC text line, we DO NOT WANT the requisitioner to change the assigned p/grp.We want it defaulted to 200 (based on the org plan setting I have described above) and fixed(greyedout)
    when thr line item viewed in the basic data section.
    Do you think that because we have set the prod cat range LAM001 to LAM010, which is an alphanumeric product cat range, that could also be the reason for the dropdown listing all orplan p/grps even ones that do not have the product cat LAM001 to LAM010 in its responsubility assignments?
    If you are saying that the system does not know which p/grp to pick, why its it displaying all "unrelated" p/rps in the dropdown. I atlest expect to see two p/grps in the dropdown 100 & 200, because only these two p/grps have been set with product cat responsibility for LAM001 to LAM010 in our org plan.
    Also if you are saying that is the way SRM was designed to work (which may be the case!!!) how then can we set the org plan to meet our the purchasing org/purchasing grp /prod cat responsibility requirements I have described above?
    Regards,
    Grace

Maybe you are looking for

  • Itunes 12.1.1.4 crashes in windows 7 since itunes update.

    Since the latest iTunes for PC update 12.1.1.4, my iTunes is broken (again) - seems to happen every few updates. Windows 7 (64 bit) I may have a rather large library which might not help (aprox.. 2200 albums).  The trouble shooting options posted to

  • Exchange 2010 - EWS and disabling TLS 1.0

    Hi all, Due to the POODLE vulnerability and TLS 1.0 showing as enabled on one of our external scans, we were informed that we would need to disable SSL 3.0 and TLS 1.0 on our Exchange server. Apparently, this wouldn't even be possible until Update Ro

  • SQL QUERY to create new schema in Oracle 10g Express

    Can anyone provide the SQL query to create a new schema in Oracle 10g Express edition.

  • Smaller desktop size but preserving screen resolution (add borders)

    Does anyone know if it's possible to add borders to my screen (the device) (using xrandr maybe)? I have some old TV which has HDMI connector. It can show 720p resolution. Problem is that, for some very odd reason, it cuts about 20px from _every_ side

  • How to import 11i JDeveloper into R12 JDeveloper

    I had develop a java page program with JDeveloper fro Apps 11i, normal if I want to re-import the program, I can just create the workspace, project and then opne the server.xml. It did not work for R12 version. I try to create a new workspace and pro