BADI Implimentation

I have a below requirement.
When a Sales Role is removed for a employee a back ground job should be scheduled with the below mentioned logic.
System should search for all the account in which the selected employee is having the relationship called as "Primary Owner". Then all the accounts will be transferred to the manager which was assigned to the employee as relationship "Reports to" and the sales role will be removed from the employee master. If there are no accounts assigned to this sales person only sales role of the Sales Person will be removed from the Employee Master and the sales person is removed from the sales hierarchy.
I want to fetch the value for a field in UI in runtime, so for that what should I do ?
and I am using BADI, BUPA_SAVE_CONTROL as the logic is to be implimented after clicking the SAVE button in EDIT mode,but this BADI does not have any signature,
Can anyone give some pointers on this ?
Thanks.

you have to call function BUPA_ROLES_CALLBACK in order to get data

Similar Messages

  • CRM BADI implimentations for BP validation .

    Hi all ,
    CRM BADI implimentations for BP validation . BUPA_FURTHER_CHECKS works only for WEB UI .
    is there a way we can implement those validations for GUI ?
    Thanks ,
    Naval Bhatt.

    Hi NB,
    Hope you had checked all the available BADIs for GUI..
    Long time back, I remember enchancing the interface to accomadate my requirements.
    Created a new method and used it for my requirement.
    Regards,
    Raghu

  • Use value returned by badi

    hi all
    i havnt worked on badi before.
    i have to use the value returned by a badi in "if" condition.
    i just know the badi/implimentation name.
    when i try to find where this badi is used, all i get is the implementation name (which i already know)
    is the badi even used anywhere (because i dont see any program name in "where used list") ?
    Should it be called or will it be called automatically?
    also, i have tried calling this badi using:
    data : flag type string,
    Implementation_instance type ref to <implementaion_name>
    CALL METHOD cl_exithandler=>get_instance
    EXPORTING
    exit_name = <badi_name>
    null_instance_accepted = 'X'
    IMPORTING
    act_imp_existing = flag
    CHANGING
    instance = Implementation_instance
    EXCEPTIONS
    OTHERS = 0.
    CALL METHOD Implementation_instance-<interface_name>~<method_name>.
    EXPORTING
    p1 = a1
    IMPORTING
    p2 = a2
    but i get the following error.
    The type "<implementaion_name>" is unknown.
    I just have to use the value returned by this badi. Someone Please tell me how to do it.
    Thanks

    Hi,
    The way you are calling the BAdi implementation is perfect. However the declaration
    Implementation_instance type ref to <implementaion_name>
    is wrong, the implementation instance should reference the class behind the BAdi. Every BAdi has a class/interface.
    Go to SE18, enter the BAdi name and goto interface tab. In that you will see the name of the Inteface of the Badi say <interface_name>, hence your declaration for implemntation should be
    Implementation_instance type ref to <interface_name>.
    Then make sure you create an implementation for the BAdi from SE19 transaction and activate it.
    Then test your program agian.
    Cheers.

  • Multiple implementation of a BADI

    Hi All,
    I want to know the process in which a particular instance of a BADI gets invoked. Let me give a example.
    If we want to create a implementation of the multiple use BADI  definition  /DCEUR/Z_ACTION_INTR, we will provide some implementation like /DCEUR/ACTION_AAA, or  /DCEUR/ACTION_BBB for the BADI definition /DCEUR/Z_ACTION_INTR which are being used in some specific context. Now I want to know how we can design the specific implementaion so that the proper implementation gets called in the desired context.
    To be specific: How can we match the specific implementation with its point of invocation. I mean suppose we want to execute action AAA then /DCEUR/ACTION_AAA will be called
    if we execute action BBB then the implementation /DCEUR/ACTION_BBB will be called. Although the code is same altogether but different implementations will be called according to requirement. Please explain the above know how.
    Thanks,
    Sudipto

    Hi Sudipto,
    If multiple Implementations of a BADI are created, then all the implementations would be called one after the another.
    Say there is a BADI ABC. This BADI has methods METHOD1, METHOD2, METHOD3 and METHOD4.
    Your requirement may be such that you have to use METHOD2 and METHOD4. Someone else also has to use the same two methods.
    Then you would create an Implimentation ZABC_1 and the other person would create an Implementation ZABC_2.
    Whenever the BADI is involved both the implementations would be called one after the other.
    But in your BADI implementation you can handle the processing based on condition checks that you would put in methods METHOD2 and METHOD4.
    Say you are checking for SY-UNAME = 'USER1' and you dont want your BADi to run for other users.
    Then in both the methods of your BADI implimentation ZABC_1 would would write
    CHECK sy-uname eq 'USER1'.
    This would restrict methods METHOD2 and METHOD4 of BADI implimentation ZABC_1 to run only when the login user is USER1.
    I hope that this will help.
    Regards,
    Abhisek.

  • Button not visible in ess or mss appraisal portal.

    i have implimented custome BADI implimentation for standard BADI " HRHAP00_ADD_HEADER " for my appraisal template for ess and mss. it is showing one additional data button in header section of the template. when i see this template in R/3 system in dev cleint or any cleint in server it is showing the additional data button. but when i go to web browser to open appraisal portal for ess or mss adn check the button is not visible there. please help. if it showing the additional buton in R/3 system adn standard BADI is implimented then it must show it in portal in web browser also. portal is built in web dynpro abap standard only.

    I guess HRHAP00_ADD_HEADER badi is for only backend changes
    Thanks
    Bala Duvvuri

  • IDOC (BLAORD03) could not be saved..

    Hello all,
    When we create GOA in SRM and after approval.. it is not getting distributed to ECC..
    When we debug, RFC Call, in ECC there is no IDOC Generated against to this Contract Number.. And the call in failing with the following discription
    IDOC (BLAORD03) could not be saved 
    Application error in backend system D01CLNT200 (SRM outline agreement 6100000043)  
    We Implimented BADI's for Condition (Mapping) in SRM and Company code updation (in ECC)..
    - IDOC it self is not getting generated in ECC, Partner profile is maintained for message - BLAORD
    Pls suggest..!!
    Thanks in Advance.!!
    Regards,
    Mohan Vamsi

    Hello Sanjeev,
    Yes, we maintained partner profiles for both the message types, and, Profile in ECC is SAP_ALL.
    Any other places which I need to check.. Pls suggest. Very much thankful for your help.
    Also..
    Now I hard coded our ECC Sytem LS name in BADI Implimentation of BBP_DETERMINE_LOGSYS as per the documentation.!!
    Follow-on contract from Bid Invitation
    Regards,
    Mohan Vamsi..

  • How to make the custom field enable/disable in ME21n/ME22n/ME23n trans

    Hi Experts,
    I need help.
    I have created one custom field in the transaction ME21n/ME22n/ME23n under customer data 2 tab. But my problem is the field is always in enable (means editable only)  even in Display mode. How to make the field is non editable in display mode and editable in change mode.
    I have tried by putting some logic to make that field to change alternatively according to change/display button. And it is working fine but if we click any othe button , this field is becoming editable even in display mode.
    How to make this field to behave as standard fields?
    Please reply me <removed by moderator>
    Thank you in advance.
    Best Regards,
    Divakar.
    Edited by: Thomas Zloch on Mar 2, 2012

    If you have BADI implimented for custom tabs then you can do this in method ME_PROCESS_PO_CUST~FIELDSELECTION_ITEM
    lv_changeable = im_header->is_changeable( ).
      LOOP AT ch_fieldselection ASSIGNING <fs>
        IF lv_changeable IS INITIAL.
          <fs>-fieldstatus = '*'. " Display
        ELSE.
          <fs>-fieldstatus = '+'. " Change
        ENDIF.
    endloop.

  • New workflow first time with InDesign and FH

    I thought I would share my experience using FreeHand in an
    InDesign CS2 workflow for the first time,
    first a little history: I have almost exclusively used trusty
    old FreeHand for 95% of my layout work for the last 10 years up
    till now, only tackling the crappy old dinosaur that is Quark when
    the job size just got too big for Freehand,
    one of my regular annual jobs is to produce a 52 page full
    colour catalogue for a local company, too big for FH and a real
    pain in Quark, so this year I took the plunge and bought the Adobe
    CS2 Design Suite with the intention of only using InDesign CS2 for
    long format jobs like this catalogue and sticking with FH for my
    regular work.
    Sorry folks but I have to tell you, I won't be using Freehand
    for any of my layout work from now on, InDesign CS2 is no less than
    Awesome!! I finished the whole job in record time, and due to the
    great tools, honestly a better design.
    just being able to use native photoshop psd files with
    transparency directly in Layout is fantastic, not to mention
    selectable hide and show layers from within the psd, I could go on
    and on about the features that blew me away but many of you already
    know about them, (nested style sheets anyone!?)
    needless to say from now on I will only be using FreeHand to
    produce my vector logo's etc, however if this is the situation then
    there's a good case for learning Illustrator as .ai files can also
    be used natively in InDesign.
    I still think FreeHand is a great all rounder, but I have to
    say I now feel more confident that I could live without it if
    that's the way the cookie crumbles!

    Robert Philpotts wrote:
    >
    quote:
    Originally posted by:
    maxman23
    > ID feels cleaner and more logical - far more - than
    Illustrator ever did.
    >
    > I have to agree, ID feels very natural and intuitive to
    a long time freehand
    > user, I found it very easy to make the transition, ID to
    me feels like FreeHand
    > with a whole bunch of extra features thrown in, now if
    they can impliment the
    > same structure into Illustrator, then they would be on
    the right track, (paste
    > inside rather than masks etc, the list goes on and on)
    >
    > Illustrator as it stands still baffles me, so counter
    intuitve, frustrating
    > and odd, not just for FreeHand users, I have used other
    vector apps, Corel Draw
    > and DrawPlus in the dark and distant past and they are
    all easier to use.
    >
    > Illustrator has some incredible features, just badly
    implimented imho.
    Same experience for me and my coworkers. We use ID everyday
    and made a
    smooth transition from Quark. Illustrator, on the other hand,
    is just
    baffling and I wonder if that's a legacy of it being a much
    older
    program. Photoshop, in some ways, has some difficult concepts
    to learn
    but Adobe seems to have worked hard to make its tools easy to
    use
    (reworking filters and layer styles for a couple of
    examples.) I wonder
    if Illustrator just doesn't get the same kind of resources
    that
    Photoshop and some of the other programs get.

  • Multiple active implementation

    Hi,
    For a badi, can be multiple active implementations?
    if yes how can I do that?
    Thanks.
    deniz.

    Hi We have a rquirement for doing this
    Can you please clarify me
    Can I do  multiple badi implimentation for  std Badi (bbp_WF....)
    my requirement this I need to do for   same business object BUs2121
    1. For company code   As01  I need to use different logic for Schopping Cart work flow
    2. For cmpany code   As 35   I need to use differen logic  for Schopping Car Work flow
    Can you please provide me the docuemnts if any to do this.
    Sekhar

  • How many implimentations can be done for a single BADI definition?

    How many implimentations can be done for a single BADI definition?
    Is there any restriction to impliment a single BADI definition?
    Plz answer with proper explanation....
    Thank you in advance
    REgards,
    Chaitanya

    hi Krishna Chaitanya,
    In a badi if the "Multiple Use" Checkbox is checked then You can have any number of Implementations for the BADI
    Say I have defined a BADI "BADI1"
    and I have 3 implementations
    IMP1
    IMP2
    IMP3
    The order of execution will be IMP1, IMP2 and IMP3
    In a badi if the  "Multiple Use" Checkbox is not checked then You can have ONLY ONE  Implementation for the BADI
    Say I have defined a BADI "BADI1"
    and I have 3 implementations
    IMP1
    IMP2
    IMP3
    Only one Implementation can be active at a time and only that will get executed
    Hope this helps a bit
    Reward if Useful
    Cheers
    Kripa Rangachari.

  • Finding implimented badi

    Hi Gui's,
    Badi has been implimented for tr code FINT.How to find implimented Badi for that one.
    Please any one suggest me.
    Thanks
    santhosh

    Hi ,
    go to t-code Se15>expand the enhacement tab>-->enter package under Badi's tab and
                                                                         -->enter Badi name and execute
                                                         execute you will get the list of Badi's and implementations under badi
    Prabhudas

  • Claims  Error " Please Impliment BADI for Approver and Approver Group"

    Hi all,
    We have configured all the Eligibility criteria for an employee to create an
    Advance and claim request through ESS.
    while raising a claim or Advance request it is
    showing the message request validation sucess full
    but when we are sending the request it is throwing the error.
    " Please Impliment BADI for Approver and Approver Group"
    we have configured the
    1. Privileges Group
    2.Approver Group
    3.Map Privileges Groups to Approver Groups
    still Issue is there?
    Warm Regards
    Hari Sankar M

    Hi All,
    We have Implemented Badi to determine Approver and Approver Group.
    while executing the Application its throwing a new error
    "Incorrect Status Movement(New:New to In-Process:Approved) for Claim"
    We have put a break point inside the Badi but it is not getting called?
    Regards
    Hari Sankar M

  • How to impliment badi

    Hi gurus,
              I want to impliment the badi for address check which is ADDRESS_CHECK.
              when i am going to create an enhancement implimentation  system allow me to create the z implimentation but while saving this system gives error that ENTER FILTER TYPE.
    when i seen the parameter for this ADDRESS_CHECK badi in attributes it shows filter dependent checkbox is marked
    i dont know what to do please give me the solution how to impliment this badi.
    thanks in advance
    vinod.

    Hello,
    Please see this: How to implement a BAdI And How to Use a Filter - Part 4 of the Series on the New Enhancement Framework
    Regards.

  • Problem in implimenting BADI CRM_ORDER_AUTH_CHECK

    Hi All
    The requirement for BADI is to maintain authorization for own transactions.the users who is involved in transactions should only be authorized to see the transactions.Other users who are not involved in partner function like "Assigned to" & "Account responsible " should not be able to see the transactions like Activity .Lead , Opportunity ,Sales orders.& Service orders.
    I Have implemented Badi CRM_ORDER_AUTH_CHECK 
    but its giving problem while creating a lead.
    this the code
    METHOD if_ex_crm_order_auth_check~crm_order_add_auth_check.
    ******************For the Import Parameter****************************
    DATA: wa_header_guid TYPE crmt_object_guid.
    DATA: wa_mode TYPE crmt_mode.
    DATA: wa_process_type TYPE crmt_process_type.
    DATA: wa_orgman_wrk TYPE crmt_orgman_wrk.
    ************Local Variable********************************************
      DATA: username TYPE xubname.
      DATA: person_number TYPE ad_persnum.
      DATA: partner TYPE bu_partner ,
            partner2 TYPE bu_partner ,
            partner1 TYPE bu_partner ,
            flag(1) ,
            flag1(1).
      DATA: curent_user TYPE sy-uname .
      DATA: wa_username TYPE bapibname ,
            partner_order TYPE crmt_partner_external_wrkt ,
            wa_partner_order LIKE LINE OF partner_order ,
            order_guid TYPE crmt_object_guid_tab ,
            wa_order_guid LIKE LINE OF order_guid ,
            auth_check_flag TYPE crmt_boolean VALUE 'X' .
      DATA: org TYPE  crmt_orgman_wrkt .
      DATA: wa_org LIKE LINE OF org .
      DATA: ls_message   TYPE bapiret2,
            ls_applog    TYPE crmt_bsp_applog_tab,
            lt_messages  TYPE bapiret2_t,
            wa_messages  TYPE bapiret2,
            wa_applog    TYPE crmt_bsp_applog,
            count TYPE i ,
            object_key   TYPE crmt_bsp_objectkey.
      DATA:  del_message  TYPE STANDARD TABLE OF   bapiret2,
             wa_del       TYPE bapiret2,
             ref_object TYPE crmt_object_guid .
      DATA: y_lv_log_handle TYPE balloghndl,
            y_i_header_guid TYPE crmt_object_guid_tab.
      curent_user = sy-uname .
      MOVE iv_header_guid TO wa_order_guid .
      APPEND wa_order_guid TO order_guid .
      wa_username-bapibname = curent_user.
      MOVE iv_header_guid TO ref_object.
      CALL FUNCTION 'COM_BPUS_BUPA_FOR_USER_GET'
        EXPORTING
          is_username           = wa_username
        IMPORTING
          ev_businesspartner    = partner1
        EXCEPTIONS
          no_central_person     = 1
          no_business_partner   = 2
          no_id                 = 3
          no_user               = 4
          no_alias              = 5
          alias_and_user_differ = 6
          internal_error        = 7
          OTHERS                = 8.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
        EXPORTING
          input  = partner1
        IMPORTING
          output = partner1.
      CASE iv_process_type .
        WHEN 'YLD'.
          IF iv_mode EQ 'C' .
            CALL FUNCTION 'CRM_ORDER_READ'
              EXPORTING
                it_header_guid       = order_guid
                iv_no_auth_check     = auth_check_flag
              IMPORTING
                et_orgman            = org
                et_partner           = partner_order
              CHANGING
                cv_log_handle        = y_lv_log_handle
              EXCEPTIONS
                document_not_found   = 1
                error_occurred       = 2
                document_locked      = 3
                no_change_authority  = 4
                no_display_authority = 5
                no_change_allowed    = 6
                OTHERS               = 7.
            IF sy-subrc EQ 0 AND partner_order IS NOT INITIAL.
              LOOP AT partner_order INTO wa_partner_order WHERE partner_fct = '00000014' OR partner_fct = '00000012'.
                MOVE wa_partner_order-partner_no TO partner2 .
                IF partner2 EQ partner1 .
                  flag = 'X' .
                ENDIF .
                flag1 = 'X' .
              ENDLOOP.
              IF flag NE 'X' and flag1 eq 'X' .
                AUTHORITY-CHECK OBJECT 'CRM_ORD_OE'  ID 'SALES_ORG'  FIELD is_orgman_wrk-sales_org .
                IF sy-subrc NE 0 .
                  RAISE no_authority .
                ENDIF.
              ELSE.
                RAISE no_authority .
    Please help ASAP

    Hi Amiya,
    I am working on a same Scenario.
    *The users who is involved in transactions should only be authorized to see the transactions
    and other users who are not involved in PARTNER FUNCTION should not see the transactions*
    So, can u help me out in this.
    Thanks & Regards,
    Esaki

  • Multiple implimentation of BADI

    Hello Everyone,
    I have two implementation for a single BADI.
    Now I want to synchronize the sequence which triggers first and which is next.
    How I can do?
    Thanks in advance.

    Hello,
    As per standard SAP if there are multiple implementations of a single BAdI (not filter dependant), the trigger sequence is not defined.
    You can however create an implementation of the BAdI BADI_SORTER to sort the implementation.
    Read this documentation for further details: [Need to Control Sequence of Calls of Business Add In (BAdI) Implementations|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0d2f214-b1a5-2a10-f3a0-98c95afcf281?quicklink=index&overridelayout=true]
    @Keshav: The OP wants to sort the sequence in which the BAdI implementations are triggered. The info provided in the link you've provided is irrelevant.
    BR,
    Suhas
    PS: This has been discussed many times in the forum, you can search the forums for further references on this topic.

Maybe you are looking for

  • The best way to transfer videos between devices and mac?

    I have an iphone 4s, ipad and a macbook pro - is there any way to transfer videos wirelessly betwen these platforms? As far as I know icloud only allows photostream of photos only but nit videos. This is quite inconvenient for video users as I normal

  • BSP with SQL insert statement

    Hi all, I'm creating a BSP page with 2 inputfields and 1 submit button... first inputfield should contain a table+field name and the second inputfield must contain a value that has to be written in the table of field1. When I press the submitbutton,

  • Any direct link to download Maverick installer from safari?

    I have problems logging in to my app store . I even created an additional new apple ID. The app store however doesnt let me login and asks me to review my account information. When i click the Review button,there is no further progress.

  • Using Video Camera, USB vs. Firewire for performance question

    I want to hand down my Sawtooth (upgraded to 1.8MHz / 1G RAM) to my parents to use as a skype machine. I am able to get a USB Logitech Notebook Pro Webcam to work, but video is much lower quality than I would like. I am thinking it is the USB 1. spee

  • CPS job status alert via email

    Dear All, We are using Build: M28.20-37214 CPS version. So far we are able to get email alert from CPS when any job reaches any final (completed, error, canceled) status. However in our email alert template we also want to include the date and time w