Defaulting value of Purchasing Group based on Company Code

Hi All,
Currently we have two company codes C1 and C2 each have one - one purchasing org(PO1 and PO2) and purchasing group(PG1 and PG2). So Now hierarchy is as below: -
C1
  PO1
    PG1
C2
  PO2
    PG2
Now user of company code C1 can shop for C2 and vice versa but whenever he shops for C1 his Porg and Pgroup should be PO1 and PG1 only and same in the case for C2. Currently on shopping cart screen both company code C1 and C2 are appearing and like wise values of PO1 : PG1 and PO2 : PG2 is appearing in drop down list.
Now client is asking that whenever he selects C1 as company code PO1 : PG1 should appear as default entry and for C2, PO2 : PG2.
Can anyone tell me how this can be achieved and which BADI we are suppose to use to implement this solution?
Thanks
Siddarth

Siddarth,
You shouldn't require a badi, look into the users attributes and extended attributes to see if that is where the extra information is stored.

Similar Messages

  • Default Value for Order Type based on Company Code  in ME21N

    Hi,
         Using ME21N, I want to make the PO type defaulted to a certain company code, say for instance Company code  XYZ should have a PO type XYZ Purchase Order, ..company ABC should have a PO type ABC Purchase Order, and so on...I'm just puzzled how to implement it. I know that we can set a Default value for PO Headers in Personal Settings but its doesnt give the result I want coz it will only have one Default Value. What I wanted is when a certain company code is chosen, automatically, the corresponding PO type for that Company code will be displayed in the Order Type drop-down menu (so there's no need to choose on the drop down list what Order type) Is this possible in ABAP? Hope i made myself clear.
        Thanks in Advance.

    Use BADI IF IF_EX_ME_PROCESS_PO_CUST - method OPEN
    View the interface documentation in transaction SE19 and you will see the method OPEN can be used :
    2. Opening of a purchase order (OPEN method)
    The system opens a new document to create, change or display a purchase order. With the OPEN method,
    <b>you can import your own data and prepare it for further processing.</b>
    This is available in 4.7 Enterprise but not sure how far back.....
    hope this helps
    Colin.

  • The default value of purchasing group in "carry out Sourcing "

    Dear , expert :
         I work in SRM7.0 ,ECS!
       I have two questions about the screen of    "carry out Sourcing ":
    1,How can set the default value of purchasing group ?Now the default is empty .
    2.The purchaser can select many purchaser group here ,I want to know what controls this .in the group responsibility ?
    Thanks!

    Hi Alex
    If there are more purchase group responsible for one product category. the end user (requestor) can select which purchase group before he order a cart.
    so that sc goes to respective purchaser cockpit  in the sc ?
    if you have only one purchase group responsible . no probem
    or
    redistribute workload
    you can distribute your cart to another purchaser
    for eg. initailly ALEX is purchase group in the sc.
    now you can transfer MASA purchase group  via redistribution workload
    so now the sc shows in the MASA cockpit with new purchase group as MASA instead of ALEX purchase group name
    br
    muthu

  • Defaulting Business Area  on IT0001 based on Company Code

    All - My company wants this field ( GSBER maintained in Table TGSB) to default on IT0001 based on the Company Code. Is there a way to do this, since I see no table in SAP that links Company Code to Business Area. Additional Requirement is that all non-employees ( EE Groups) will not have a Business Area mapped to their IT0001, instead it should default to "not assigned".
    Can a custome feature be built in this case based on Molga>Company Code>Employee Group or can you experts provide some recommendations.
    Thanks a milion.

    Hi Niti,
    For PBAS0001 enhancement - EXIT_SAPFP50M_001 function - ZXPADU01 include, write a code like the one below:
    IF INNNN=INFTY EQ '0001'.
    DATA: wa_P0001 like P0001.
    CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
    EXPORTING
    PRELP = INNNN
    IMPORTING
    PNNNN = wa_P0001.
    CASE wa_P0001-BUKRS .
    WHEN '0001'.
    wa_P0001-GSBER = 'B001'.
    WHEN '0002'.
    wa_P0001-GSBER = 'B002'.
    ENDCASE.
    CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PNNNN_TO_PRELP
    EXPORTING
    PNNNN = wa_P0001
    IMPORTING
    PRELP = INNNN.
    ENDIF.
    Regards,
    Dilek

  • Purchasing group list for company code

    Hi,
    I s there any way to find out list of Purchasing groups maintained for particular company code..
    rgrds....

    Organizational Structure: Purchasing Group Locate the document in its SAP Library structure
    Definition
    A purchasing group corresponds to a buyer or group of buyers who perform the following purchasing activities:
    Procuring certain articles or merchandise categories
    Acting as the contact for vendors
    Use
    Purchasing groups can function strategically, operationally, or both.
    The main strategic function of a purchasing group in SAP Retail is to maintain its master data and control data. This includes defining outline agreements and volume rebate arrangements for Purchasing, for example.
    The purchasing group is also responsible for the day-to-day planning of requirements and ordering of merchandise.This includes creating purchase orders, allocation tables and promotions. It can also send vendors requests for quotation or create purchase requisitions.
    Integration
    Purchasing groups are assigned to the purchasing areas. They are not data retention levels; they are used as a selection criterion, as a level at which analyses can take place in the Information System and at which authorizations can be stored.
    In the individual purchasing operations you are mostly required to enter a purchasing group and a purchasing organization. It is not possible to define an explicit link in the system between these two organizational units.
    Every stock planner is assigned to a purchasing group. You make the assignment in the user master.

  • Migo BADI Based On Company Code

    Hi All,
    I created custom fields in Migo & updated them to database using MB_Migo_Badi.
    Now i need to display this tabstrip based on Company code.
    .I need to hide the subscreen for a Purchase Order Based on Company Code A & display Subscreen for Purchase Order Based on Company Code B.
    Can anyone suggest code for it.
    Thanks,
    Neelima.

    Hi,
    MIGO number ranges will be based on the company code and fiscal year in standard transaction.
    Go to FBN1 transaction and maintain the number ranges for your company code and assign that to GR document type.
    Regards,
    Bharat.

  • Shopping cart default delivery address based on company code

    Hi All,
    As a standard behaviour of SRM, currently delivery address in shopping cart is defaulted from attribute (ADDR_SHIPT). But in our case we use cross company purchasing where requisitioners buy for different company codes.
    Some times, they forgot to change the default dlivery address and shopping carts are getting created with wrong delivery address.
    Is there any way, the we can default the delivery address based on company code selected by the user instead of defaulting from user attribute?
    Suggestions would be greatly appreciated.
    Regards,
    Krish

    Hi Krish,
    Am looking for a same solution but instead of delivery address, we are looking for change in invoice recipient address
    ADDR_BILLT. For this i have identifed a FM: BBP_GET_BILL_TO_PARTY from which system pulls the defaulted attribute of user profile. Now we are in a change of pulling the attribute defaulted to the company code entered in SC rather than the user's defaulted ADDR_BILLT.
    Similarly i guess for your issue you can use the FM: BBP_GET_ORG_SHIPTO_ADDR implementing a enhancement in DOC CHANGE BADI
    Regards,
    Nihar

  • ME22N: Default value of address group field when searching for an address

    Hi,
    ME22N -->  in the «Item» section --> «Delivery address» tab --> «Address» field --> «Adress group» field
    Which transaction in SPRO allows me to set the default value for «Adress group» ?
    Thanks a lot for your help.
    Julien

    The MM Super user realized during a traning with a new employee that this user did not had the default address group ME01 while trying to enter a delivery address in the Purchase Order. So when this user searches for a delivery address, he has to to through ALL the delivery addresses, and not only the adresses included in address group ME01. (This can lead to delivery problems if the user doe snot enter the right address)
    We have SAP R/3 Enterprise 4.7, with SP: SAPKB62065 (Basis), SAPKA62065 (Cross-application), SAPKH47031 (Logistics and accounting), SAPKE47087 (HR).
    Thanks a lot for your help.
    Julien

  • SKF transactional values based on company code

    Can anybody let me know the logic how we can seggregate transactional value passed to statistical key figure based on company code or is there anytable where we can direclty find SKF transactions involved based on company code ?
    Need to upload SKF transactional figures from one SAP system to another.Hence require process for extraction and uploading of the same

    Hi Amogh
    Hope you are looking for actual SKF quantities posted. kindly check s_alr_87013611 CC report, I think on the lower part this comes. This time I am not in front of system so you please check.
    Regards
    Rajneesh

  • Default Values in Purchase Requisition

    Hi MM Experts,
    I want to set default values for Purchasing Organisation and delivery address for a particular user in transaction ME51N(Purchase requisition creation).
    Can someone please advise me on how to do it?
    I tried using the "Default Values" button, but the fields Purch Org and Delivery address are not there.
    Thanks in advance.
    cheers,
    Randi

    Hi Randi,
    In ME51N, once the source of supply is assigned, the purchasing org will default to the porg defined for the vendor that is
    assigned. For MRP, Purchase Organization will only be taken from the Source List. The POrg. cannot be dopted automatically due to the reasons mentioned in the Note 73241.
    73241 ME51: User parameter EKO is not generated
    Regards,
    Purnima

  • Can you set default values for person/group picker fields? To current user?

    Two-part question/issue . . .
    Part 1:
    In InfoPath 2013 in use with SharePoint 2013, how do you set a Default Value for Person/Group Picker fields? Other field types like Text Boxes have a Default Value section in the Data tab of Properties.  There doesn't appear to be any equivalent for
    the Person/Group Picker field type in Properties.  I'd like to set a default person for a few fields in a form I've created.  Is this possible?
    Part 2:
    The default user I want to set for one of those Person/Group fields is the "current user."  I want a user to log into our SharePoint 2013 intranet, load a new form for edit/creation, and have one of the Person/Group fields in that form to
    automatically populate this particular user.  Is this possible?

    Hi Stephen,
    You can auto populate your InfoPath farm with current user Name and all other property that you have in your User profile, you have couple of options.
    First you can make a secondary connection in your InfoPath form with user profile and can use the UserProfileService.asmx and call the GetUserProfileByName method. Here is the steps you can follow.
    http://blogs.technet.com/b/anneste/archive/2011/11/02/how-to-create-an-infopath-form-to-auto-populate-data-in-sharepoint-2010.aspx
    Secondly you can use JQuery and SPServices ,
    $().SPServices.SPGetCurrentUser function to populate the values with script to achieve the same in this case you no need to use InfoPath form just create simple text type column in SharePoint
    list and auto populate it with getting the current user Name from User Profile here is the scripts
    <script language="javascript" type="text/javascript" src="../../jQuery%20Libraries/jquery-1.4.2.min.js"></script>
    <script language="javascript" type="text/javascript" src="../../jQuery%20Libraries/jquery.SPServices-0.5.4.min.js"></script>
    <script language="javascript" type="text/javascript">
    $(document).ready(function() {
      var userCurrentName = $().SPServices.SPGetCurrentUser({
        fieldName: "CurrentUser"
      $("input[Title='CurrentUser']").val(userCurrentName);
      var userPhone = $().SPServices.SPGetCurrentUser({
        fieldName: "WorkPhone"
      $("input[Title='Phone']").val(userPhone);
    </script>
    Krishana Kumar http://www.mosstechnet-kk.com

  • Set default value for full name based on usename

    I have an LOV which as the full name of the user, for example 'John Smith'.
    I would like to set the value of this LOV to the full name of the user, based on a match with username. So when JSMITH is logged in, I would like the default value of the LOV to be 'John Smith'.
    I have an page process anonymous block which gets the right short username:
    DECLARE
    p7_assigned_to varchar2(20);
    BEGIN
    select person_name into p7_assigned_to
    from ht_people
    where v('APP_USER')=flow_user;
    END;
    How do I then set the default value of the LOV based on the return value of this block?

    Where do you use the LOV? Is it being used in a Select list? If so, you will have a place to enter the default value. Edit the Select list, and you will see a place where you can enter Default value.
    Ravi

  • Default buyer in purchase group

    Hi all,
    i need to set default buyer in purchasing group. Totally there are three buyers in purchasing group. i need to assign the third buyer as default buyer ( when ever user raises the shopping cart, the third buyer should be fetched to the shopping cart)......please note all the buyers are responsible for all the product categories.

    Hi,
    Refer the bellow link which help in getting some idea on your post.
    http://www.sap-img.com/materials/purchasing-tips.htm
    Regards,
    Goutam Kolluru.

  • SRM 7.0 , Get company name based on company code

    Hello friends,
    Is ther any function module or table to read company name based on company code in SRM 7.0 ?
    Kindly let me know your inputs.
    Thanks.
    Preethi.

    Hi,
    To find purchase group.
    BBP_OM_FIND_PURCH_GRPS_BEI
    To fund purchase org.
    BBP_OM_FIND_PURCH_ORGS_BEI
    To find company.
    BBP_OM_FIND_COMPANIES
    Regards,
    Pedro Marques

  • Decimal places adjustment based on company code or currency

    Hi experts,
        my requirement is i have to adjust the decimal places in amount fields of internal table based on company code or currency given by user.
    suppose for example in my internal tables having 5 amount fields like 1.50 1.234 1.45 1.34, 1.67  for  company code is in01
    the same values for VN01 should be like this
    150 1234 145 134  167  ....
    can any body plz tell me any functional module is there to covert or abapcode?
    Thanks in advance,
    veena.

    That code is a bad idea.  Why would you hard-code that type of action for currency/amount handling?
    @poster: If the output is based on the local currency defined for the specified company code or one specified by the user, then use it.  SAP handles amount output automatically with a currency specification because the currency definition identifies where/how the decimal is output. 
    Just use WRITE as Florian indicated but  use the CURRENCY extension instead of DECIMALS.  You can do this dynamically based on the company code easily...
    A simple 3 line program shows you how this works:
    PARAMETERS: p_wrbtr type wrbtr.
    write:/ p_wrbtr CURRENCY 'USD'.
    write:/ p_wrbtr CURRENCY 'JPY'.
    Edited by: Brad Bohn on May 12, 2011 1:07 PM

Maybe you are looking for

  • PDF Portfolio Displays Previous PDF

    I am having an issue on multiple computers running Windows 7, 32-bit SP1 and Adobe Acrobat 10.1.3 Pro. After creating a PDF portfolio with multiple PDF documents within it, and using the Grid layout I am able to see the individual PDF documents witho

  • Remove channel banner ad

    With the new software upgrade to STB.  I now have a very annoying BRIGHT RED ad banner on the bottom of my guide.  How do i remove it. I have Interactive TV --> Disabled. I sure hope there is a setting to disable the the ad.  I know what services I h

  • Condition values

    Dear Sir In the condition tab of my PO values of the condtion are not coming i have to give manual entry for e.g my PO value is 1000 and condition is 10 % system is showing 10% but it is not showing 100 , i have to enter that value manually so how to

  • Updating In Elements 9

    I have been able to update Elements 9 since installing it, and even re-installing it. When I click on Update, the updater box searches for updates and then says it cannot connect to the update server. This has been going on for weeks.  I have checked

  • BPC 7.5 SP6 Backup & Restore of AppSet

    Hi - We are currently on BPC 7.5 SP6 and I'm trying to do a backup of an app set from production and restore it to dev.  The backup and restore seems to work fine.  I don't get any errors and I can see the data on back-end.  But, when I open a templa