Obtaining Location in BADI BBP_PGRP_FIND

I've implemented BADI BBP_PGRP_FIND in order to pass back a custom list of purchasing groups.  We plan to use a Z table which links purchasing groups to locations.  The idea is that we will only show certain purchasing groups in the drop-down list, based on the location currently chosen.  However, I can't figure out how to determine the value of the 'Location' field on the shopping cart.  I'd like to make the list of purchasing groups context-sensitive based on the location.  Is there any way I can do this? I put a break-point in our implementation of BBP_SC_CHANGE, but I don't see the loccation value stored in any of the import parameters.  In any case, even if I was able to get the location value, I'm not sure it would matter, since the BBP_PGRP_FIND BADI only seems to run before the shopping cart screen is displayed.

I put a break-point in our implementation of BBP_SC_CHANGE, but I don't see the loccation value stored in any of the import parameters.
Location is a partner type (PARTNER_FCT=00000075) stored in the "IT_PARTNER" parameter.
In any case, even if I was able to get the location value, I'm not sure it would matter, since the BBP_PGRP_FIND BADI only seems to run before the shopping cart screen is displayed.
You can always invoke the BBP_PGRP_FIND BADI in your BBP_SC_CHANGE method logic by create an instance of it.

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

  • Issue in BADI  BBP_PGRP_FIND

    Hi SRM Gurus,
    How can i get the Shopping Cart Item details,Company Code
    and Product Category in the BADI 'BBP_PGRP_FIND'?.
    I checked with the BADI Interfaces and i could find only Product
    Category.
    My Exact Requirement is to get the Approvers(Maintained in a Customer Table) based on the Combination of Company Code,Product Category and Shopping Cart value and to change
    the Purchasing Group.
    Thank You.
    With Regards,
    P.Arunkumar

    Hi. If you create a custom table that contains 2 fields, User Name and Either Cart Number of Cart GUID you can write the current cart deatils for SY-UNAME into the new table using the BBP_DOC_CHECK_BADI.
    When you enter the current user name and cart number/GUID you should delete the old data for that user.
    This BADI is called all the time, and so you can enter the current cart that the user is looking at in this custom table, then call function BBP_PD_SC_GETDETAIL from BBP_PGRP_FIND.
    Regards,
    Dave.

  • BADI  BBP_PGRP_FIND

    Hello Friends,
    Can you please help me out in developing a program logic to default the purchase group in the shopping cart based on plant and product category via BADI  BBP_PGRP_FIND .

    Hi Kavitha,
    Could you please clarify which system you found the badi :BBP_PGRP_FIND.
    wether is it from ABAP WORKBENCH or SRM system.?
    Regards,
    Venkat.

  • BAdI BBP_PGRP_FIND missing import data

    Hi all,
    I want to change the purch group and the purch org within shopping carts.
    I implemented BAdI Definition BBP_PGRP_ASSIGN_BADI for external requirements --> working fine!
    But BAdI Definition BBP_PGRP_ASSIGN_BADI does not fit to "normal" shopping carts (created local within SRM).
    Question:
    How can I change the responsible purch group and purch org for shopping carts?
    I have found BAdI BBP_PGRP_FIND but there is missing a lot of data, for example
    item_guid, company_code...
    Any idea how to change the purch data within SC?
    Note:
    CHANGE BAdI does not seem to be a solution because I just want to make a proposal, user should be able to change the data afterwards.
    Thanks for any suggests!
    Best regards
    Andreas

    Hi Andreas,
    If user needs to be changed the purchasing group and purchasing org while creating SC then you can define in Org Struture.
    For example User X needs profile should be configured to PurchOrg1 PurchOrg2 then depend upon the product cateogry In org structure under "Responsiblity" tab you need to give the list of product categories under product responsiblity and Org id under Organization responsibility.
    Kind Regards
    Sameer

  • Using BAdI BBP_PGRP_FIND for purch.group determination

    Hello all
    For normal sc items I'd like to have one single purchasing group being determined during sc creation (by default).
    Except for described req. items, the purch. group should be determined using the normal logic based on product category and its logical backend system.
    I thought it would be fairly easy to achieve this, but the bad thing is, that when activating BAdI BBP_PGRP_FIND it automatically deactivates the standard logic which would be the one needed in case of described requirements.
    So I'm searching how to implement BAdI BBP_PGRP_FIND in a way where I can run the standard purch. group determination logic for described requirement items but to run own new determination logic for all other sc items.
    EDIT
    In other words:
    IF described req.
      do normal standard determination logic
    ELSE.
      assign single default purch.org./purch.grp.
    ENDIF.
    Somebody an idea on this one? Is there a function module / method I can call from within the BAdI to run the standard determination logic?
    Thanks for any helpful input.
    Renaud

    Me again... after some further investigations I found function module BBP_OM_FIND_SC. It returns a list of found purchasing org. / groups responsible for a specified user, product category and logical backend system.
    Hope this helps someone else one day...
    Kind regards,
    Renaud

  • Location for BADI CRM_RF_SEARCH_EEW in SPRO

    Dear Experts,
    Currently I am upgrading to CRM 7 and want to enhance the search. Based on documentation in SDN, it need to implement BADI CRM_RF_SEARCH_EEW.
    Could anyone please tell where the BADI CRM_RF_SEARCH_EEW located in SPRO?
    Or is there any documentation
    Many thanks in advance.
    eddhie

    Hi Denis,
    Many thanks for the quick respond.
    I like to see in the SPRO for the documentation that SAP give, if via SE18 for see BADI Definition or SE19 to make BADI Implementation, there is no such documentation found.
    Could you please give the path in the SPRO?
    Many thanks in advance
    eddhie

  • User Exit/BADI for IH06 'Display Functional Location' screen.

    Hi all,
            Is there got any user exit or BADI to enhance and add two custom fields in RIIFLO20 program screen via tcode IH06? Thanks.
    Best Regards,
    Cheang

    Hi ,
    these are the user exits for  IH06  or RIIFLO20
    ILOM0001            Additional checks before saving a functional location
    ILOM0002            User exit when checking structure of location numbers
    Badis
    BADI_CCM_FLOC_ARC              BADI_CCM_FLOC_ARC              CCM: Functional Location Archivi
    ILOM_MASS_CHANGE               ES_ILOM_EXIT                   Functional location mass change ba
    Regards,
    Madhu
    Edited by: Madhu Babu on Mar 20, 2009 9:12 AM

  • A single bad block

    Hi,
         I am a Graphic Designer from Nepal. I have a single bad block on my 7 month old macbook pro 2011. It hasn't been written over yet with spare as my HD is almost full. Should i wait it to be written over with spare block or should i go on ahead with format. Will it damage more blocks if i wait? i would have returned it but it will cost me more to return it as i will have to sent it abroad as there is no apple stores here (only authorized dealers). It's a single bad block which is not that bad and can happen from the factory. I have even heard many hard disk manufacture dont even exchange it if there is just few bad blocks as it is quite normal. My main question is should i wait for bad block to be written over with spare or should i format it with zeros? thanks in advance.

    You ran some driver checking software and it located a bad block, no big deal because all drives have bad blocks.
    When your computer attempts to write to the bad block and can't verify it, then it writes the data to a new location and that bad block is mapped off.
    This occurs automatically and requires absolutely no assistance from you what so ever.
    So don't do anything, it's been all taken care off. If you do, your just wasting your time and could erase your data.
    The software your running is for technical use only, just go about using your computer like before and nothing will happen from the bad block.

  • BBP_PGRP_FIND And Extended Details in Shopping Cart

    Hello,
    I am trying to implement BBP_PGRP_FIND and encountered a snag.  I have it so that I set the default purchasing group on initial exexcution of the shopping cart session by check the producy_type field.  This works fine, however, if the requisitioner changes it in the Extended Details, I do want to change it. But since the BADI is active, I have to load something into ES_PURCH_DATA.
    How can I determine if the Extended Detail setting were change and pass those settings along in the BBP_PGRP_FIND?
    Points will be awarded accordingly.
    Thank you in advance, Dean.

    Hi
    Which SRM version are you using ?
    +You have BADI BBPPGRP_FIND to determine Purchasing group as you want. Please be aware that as soon as badi is implemented, the standard behaviour is deactivated, thus no more structural determination.+_
    For finding Purch GroupID and Purchase Org:
    Stored in tables HRT5500, linked to HRP5500. Or use view HRV5500A.
    Can be accessed via FM BBP_OM_READ_PURCH_GRP_BE and BBP_OM_READ_PURCH_ORG_BE.(lots of functions with BBP_OM*).
    You can use FM BBPOM_FIND_PURCH_GRPS_BEI_2 to get the P.org & O.grp given the backend p.org & P.grp_
    Please try these Very helpful links ->
    Re: Default Purch Org for shopper
    Re: BAdI BBP_PGRP_FIND
    Re: Note: 624172    Badi: BBP_PGRP_FIND
    Re: how to determine the purchasing group using BADI BBP_PGRP_FIND
    Re: How can we change the purchasing group which it is maintained in R/3?
    Re: Urgent: Organizational Plan Set-up!!
    Re: Defaulting purchasing group from drop-down
    Hope this will help. Do let me know.
    Regards
    - Atul

  • BBP_PGRP_FIND - Filter PGRP by Ccode

    Hi All,
    We have a special requirement, where in the standard Purch. group determination to be overridden and determine only the purch. groups assigned to the company code on the shopping cart item. But the BADI BBP_PGRP_FIND does not pass the item line data or the item company code data.
    I have tried to find another BADI where i can export the ccode and import it here. But couldnt find any solution. Even SAP says, since it is not an error by SAP, nothing can be done, its just a standard feature.
    Can anybody help me how to come around this issue.
    Thanks
    SA

    Hi
    We have faced a similar situation earlier. We resolved the same by implemenating our requirement inside the 2 BADIs.
    All the information related to the Shopping cart is available inside BBP_DOC_CHANGE_BADI
    Better to implement the changes you want to made inside the
    BBP_DOC_CHANGE BADI Implementation
    and
    BBP_DOC_CHECK BADI Implementation
    Let me know incase you need any details.
    Hope this will help.
    Pls reward suitable points.
    Regards
    - Atul

  • Bad query performance - how to analyze it?

    Hi all,
    since 8 weeks we locate a bad query performance (round about 30% worse than before) in our BW system. At the moment we use a BIA on revision 49 with 4 blades (16GB).
    I have already read note 1318214 and analyzed that the most time is spend on the virtual provider(over 80%!).
    I´ve seen that a lot of time is spend on the "Datamanager":
    For example: It takes 0,76s to select 3.5million items in the relative provider and 78s!!! to select 0 items in the virtual provider.
    information from RSDDSTATTREXSERV:
    RFC Server    BIA client  BIA Kernel    ABAP RFC
    497          464              450               619
    So it seems to be a problem an the BW site, what can we do to improve the performance or analyse the query performance better.
    Best Regards,
    Jens

    Hi Jens,
    A few checks you may consider doing.
    BIA Availability :  Check the BI connection with BIA.
    Check if you need to rebuild BIA indices again. SAP recommends to do this often, to repair the degenerate indices or delete the indice which are not referenced any more.(eg data in the cube was compressed/deleted and the indices are no more needed.)
    Check the if BIA  reorganization is required - This is done to see the indices are evenly distribueded areoss the BIA Landscape.
    Try to find from BI Admin if major administration work was done within these 8 weeks.eg: Copy cube, dimension restructureing, copying data to some copy cube, archiving etc.
    You can use the BIA monitor to peform checks/monitor alerts from BIA servers
    [ BIA monitor|http://help.sap.com/saphelp_nw70/helpdata/en/43/7719d270d81a6ee10000000a11466f/content.htm]
    This link would tell you on the overall status of the BIA and any actions if required.
    Also it has sublinks to other important transaction of BIA monitoring and maintainnance.
    To go to BIA monitor : RSA!---> BIA monitor icon.
    Is your virtual provider reading data from R/3 or BW.
    Generally virtual providers are used to read data from other systems , so it woulfd not have an indices in BIA, I believe if this is the case. except for some applications like BCS wher eyou may be reading data from BW itself.
    Hope this helps
    Bext regards,
    Sunmit.

  • Process Flow ignores name and location for Control- and Log-Files

    Hi!
    Our OWB Version is 10.1.0.3.0 - DB Version 9.2.0.7.0 - OWF Version 2.6.2
    Clients and server are running on Windows. Database contains target schemas as well as OWB Design and Runtime, plus OWF repositories. The source files to load reside on the same server as the database.
    I have for example a SQL*Loader Mapping MAP_TEXT which loads one flat file "text.dat" into a table stg_text.
    The mapping MAP_TEXT is well configured and runs perfect. i.e. Control file "text.ctl" is generated to location LOC_CTL, flat file "text.dat" read from another location LOC_DATA, bad file "text.bad" is written to LOC_BAD and the log file "text.log" is placed into LOC_LOG. All locations are registered in runtime repository.
    When I integrate this mapping into a WorkFlow Process PF_TEXT, then only LOC_DATA and LOC_BAD are used. After deploying PF_TEXT, I execute it and found out, that Control and Log file are placed into the directory <OWB_HOME>\owb\temp and got generic names <Mapping Name>.ctl and <Mapping Name>.log (in this case MAP_TEXT.ctl and MAP_TEXT.log).
    How can I influence OWB to execute the Process Flow using the locations configured for the mapping placed inside?
    Has anyone any helpfull idea?
    Thx,
    Johann.

    I didn't expect to be the only one to encounter this misbehaviour of OWB.
    Meanwhile I found out what the problem is and had to recognize that it is like it is!
    There is no solution for it till Paris Release.
    Bug Nr. 3099551 at Oracle MetaLink adresses this issue.
    Regards,
    Johann Lodina.

  • BADI/user-exit in FM SO_OBJECT_SEND

    HI
      Can you please help me in locating any BADI or user-exit in the Function Module SO_OBJECT_SEND. Actually we want to restrict send mail options to internet domains to only a few users.Since mainly SO_OBJECT_SEND FM would be used for sending mails we want to enforce the check somewhere in the FM.
    Regards
    Abapper

    Hi,
    first, thanks for your reply. I tried this but this does not solve the problem at all.
    The first thing is, that it would be nice to have the mail as executable document. But now i have a mail with an attachment, which must be saved and then executed (both manually).
    -> Do you know how to combine the creation of an executable mail with the executable code coming from SWN_CREATE_SHORTCUT?
    The second thing is, that the values of the parameters are not transported (the fields are empty after clicking the file on the desktop). But the created file looks fine.
    [System]
    Name=PX1
    Description=
    Client=300
    [User]
    Name=EREDLIN
    Language=DE
    [Function]
    Title=
    Command=REBDBU BUKRS=P001;SWENR=10003;SGENR=101;
    Type=Transaction
    [Configuration]
    GuiSize=Normal window

  • Log4j.properties location

    Hello,
    I want my web application uses a log4j.properties file located in a directory outside Tomcat, in /var/app/conf/.
    I'm using the PropertyConfigurator to configure log4j. If I put log4j.properties in the WEB-INF/classes directory all works fine, but if I put it in the "external" directory works but I get these warnings:
    log4j:WARN No appenders could be found for logger (org.apache.catalina.startup.TldConfig).
    log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax).
    How could I avoid these warnings?
    Thanks!

    I am putting log4j.properties file in same folder
    where the java class file is, it's working fine. If
    i'm puting it in some different folder (folder is on
    class path) it's giving the proper output as log file
    but throwing exception at console as:I don't think it's the location of the java class, but rather
    where you are when you run the program. I'm running
    junit tests from within eclipse, and need to put the file
    one directory above my "com" directory. From the
    command line, the properties file just needs to be in
    the current directory. Perhaps using a fully qualified
    path name will solve your problem; no matter where
    you run the program, the file will be found. This
    assumes you have access to a fully qualified location
    (probably bad). Best to determine from where the
    program will be run, and place the file in a relative
    directory off of that (perhaps at deploy time).
    Cheers,
    Brian

Maybe you are looking for

  • EFI update on 24" White iMac.

    the installation was successful but the computer wakes up from sleep and turns it on automatically. What can I do?

  • FM F4IF_INT_TABLE_VALUE_REQUEST do not return value in RETURN_TAB

    Hi all, I used the FM F4IF_INT_TABLE_VALUE_REQUEST to return the objid and stext and it is showing the search help in the selection screen, however, after i choose a value from the search help, the FM does not return me the value that i have choosen.

  • Schema Validation failure in SOA Suite 11.1.1.6.0 but not in 11.1.1.7.0

    I have a composite that is deployed on both a SOA Suite 11.1.1.6.0 and 11.1.1.7.0 server. The composite exposes a service that my application subscribes to and sends messages to so the BPMN process can handle the request. This works fine in 11.1.1.7.

  • How does one manage these new render setting for previews?

    I placed 4 HD clips from a nested into a sequence 5800 x 768 to mimic 4 side by side monitors for a multi channel video.  Each clip cut from the sequence are at 1280x720 all sitting side by side. However when I rendered the previews, they came look a

  • "Improving SQL query performance using secondary indexes"

    I have a very old copy of this document from 1997. I'm hoping to find newer version, if one exists, but the search facility on SDN is not working at the moment. Does anyone have a more up to date copy or link they can point me to ? thanks, Malcolm.