How to default Roles on Person Affected screen (transaction cbih82)

Hi, Experts
When an Iincident / Accident Log Entry of a specific type is created, I would like to default a few roles e.g. INJ / "Injured Person" on the persons affected screen in transaction CBIH82.
Is there a USER EXIT to achieve this?
Regards,
Nhlanhla Ndlovu

Hi Nhlanhla,
There is an user exit "IAL_TYPE"  which you can assign against the "log entry type"  at "Specify Incident/Accident log entry types" in spro. But, this user exit performs a check function, which compares the number of persons affected with the Incident/Accident log entry type and outputs a warning if it finds inconsistencies.
A reference function module "CBIH_LB14_IAL_UPD_CRE_CHECK" is assigned to this user exit at Basic Data & Tools>Basic settings> Manage user exits.
For your requirement, you may probably use this reference function module as a template for defining your own logic.
Regards,
Pavan

Similar Messages

  • How to default date values in Selection Screen

    Hi everyone,
    I would like to display the 1st day of the previous month into the I_GSTRP-LOW field and the last day of the current month into the I_GSTRP-HIGH field.
    For example, this in the 5th month of the year (May), therefore, in the selection screen it should appear like this:
    Basic Date: <u>01.04.2006</u>    to   <u>31.05.2006</u>
    How do i do it?
    *& SELECTION-SCREEN                                                    *
    SELECTION-SCREEN BEGIN OF BLOCK 1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS:
      I_AUFNR FOR AFIH-AUFNR,                           "ORDER NUMBER
      I_GSTRP FOR AFKO-GSTRP,                           "BASIC DATE
      I_BUDAT FOR AUFM-BUDAT,                           "POSTING DATE
      I_IWERK FOR AFIH-IWERK DEFAULT '6010' OBLIGATORY, "PLANNING PLANT
      I_ARBPL FOR CRHD-ARBPL,                           "WORK CENTER
      I_ERNAM FOR AUFK-ERNAM,                           "CREATED BY
      I_MATNR FOR RESB-MATNR,                           "MATERIAL
      I_KTEXT FOR AUFK-KTEXT.                           "EQUIPMENT
    SELECTION-SCREEN END OF BLOCK 1.

    Here is the code to populate default values,as per your requirement.
    data : V_date type sy-datum,
           v_month(2) type c,
           v_low_value(8) type c,
           v_high_value(8) type c,
           v_month1(2) type n,
            V_NO_OF_DAYS type T009B-BUTAG,
           v_curr_month type T009B-BUMON,
           v_curr_year  type T009B-BDATJ.
           select-options : i_gstrp for sy-datum.
    initialization.      
    v_date = sy-datum.
    v_month1 = v_date+4(2) - 1.
    write v_month1 to v_month.
    concatenate v_date+0(4)
    v_month
    '01'
    into v_low_value.
    I_GSTRP-LOW = v_low_value.
    v_curr_month = sy-datum+4(2).
    v_curr_year  = sy-datum+0(4).
    CALL FUNCTION 'NUMBER_OF_DAYS_PER_MONTH_GET'
      EXPORTING
        par_month       = v_curr_month
        par_year        = v_curr_year
    IMPORTING
       PAR_DAYS        = V_NO_OF_DAYS
    concatenate sy-datum+0(6)
    V_NO_OF_DAYS
    into v_high_value.
    I_GSTRP-HIGH = v_high_value.
    I_GSTRP-sign = 'I'.
    I_GSTRP-OPTION = 'EQ'.
    APPEND I_GSTRP.
    regards
    srikanth

  • How to default the values in BP screen with BDT?

    Hi all,
             I am working in BDT enhancement for BP for Grants mangement. Therefore there are some screen fields in BP transaction should directly get saved in GMSPONSOR table.  I mean to say user would give some values in BP screen(One can get it at the runtime by calling the FM BUP_BUPA_BUT000_GET) and the relevant values will autometically goes to GMSPONSOR table if the BP is saved.
    As per my knowlwdge there are many events under BUPT transaction and there also I found the entry of GMSPONSOR table. Can anyone tell me in which event I have to default these screen values and redirect these to GMSPONSOR table?
    Thnaks & Regards
    Dibyendu.

    Dear Smita,
                    Thanks for your reply. The fact is that if I could default it in the screen text box then it would autometically goes to the corresponding table at save event.
    So could you help me to identify the event by which one can keep default values in screen.
    May be ISDAT or ISSTA event  to default the valuesfor BP.
    I have done to some extent for the fields belonging to BUT000 with the help of FM BUP_BUPA_FIELDVALUES_SET. I have placed a Z FM in ISDAT event. But the problem lies with the fields belonging to other tables.
    Waiting for your update.

  • How to default "Reason" in a Business Activity transaction

    Hi experts,
    When I create a Business Activity, I am able to default Priority and Goal. When it comes to 'Reason' I am unable to default because there is no direct assignment in Trans type in Customizing header. We can assign only the Subject Profile for the Reason but not the reason code.
    Can anybody give some idea to default the reason code in the Activity document. It's an urgent req. Pl reply ASAP.
    Ranjan

    In customizing in the crm server there is no way of doing it without programming.
    But if you program, you should rather do it with the post processing framework (actions) than with the events: just create an event which is executed automatically (an always-true schedule condition and also an always-true start condition). This is calling then a self-written method which sets the reason via an CRM_ORDER_MAINTAIN. The reason code itself then can be passed as a container parameter.
    The benefit of this approach is that the predefinition can be enabled or disabled via customizing per transaction type.
    Kai

  • How to display contact person full screen photo in making a call or receive call

    How to display contact person full screen photo in making a call or receive call

    Apple have removed the full screen contact image calling in 7.1, they come with default icon. Hope they bring back that option in next, you can also leave feedback @http://www.apple.com/feedback/

  • How to change the default date in Person assignment tab?

    Hi experts,
    Does anyone know how to change the default date in person assignment tab in cj20n? Currently, the system always take the scheduled finish date to the date of the person assignment tab. Can I change it to the start date?
    Thanks and rgs,
    Michelle

    Hi Michelle,
    Goto SPRO->Project system->Dates->Scheduling->Specify Parameters for Network Scheduling, Here you can control the workforce planning dates.
    Hope this is useful...
    Regards
    Aatish

  • How to get Default Role fron the EmployeeInfo

    How i can get the default role from the EmployeeInfo object ?

    When you search for "default role" in the SDK Helpcenter you will find that the Type property keeps this information...
    I have to admit though that this is far from being intuitive
    I only found it through checking the SQLs in MS SQL Profiler though.

  • How to change the   Success Message  for Personal Data Screen in ESS

    Hi,
           While saving the Personal Data in the ESS  I want to chage the Success message.When I check the DC , Message Class  i am not able to find the  the particular string.Can any  one please  guide how to find the Success Message String   for this Personal Data Screen or Which BAPI  I  have to check .
    Regards
    Alexi

    Hi  iidhya ,
      Please find the code below
        public boolean onEvent( )
        //@@begin onEvent()
        String event = fpm.getEventData().getEventName();
              if (event.equals(IFPM.EVENT_ADD)){
                   wdThis.wdGetFcPersInfoInterface().setModeForCreate(selectedSubtype);
              }else if(event.equals(IFPM.EVENT_EDIT)){
                   wdThis.wdGetFcPersInfoInterface().setModeForEdit(wdThis.wdGetFcPersInfoInterface().getSubtypevalue(selectedRecord));                              
              }else if(event.equals(IFPM.EVENT_REMOVE)){
                   wdThis.wdGetFcPersInfoInterface().setModeForDelete(wdThis.wdGetFcPersInfoInterface().getSubtypevalue(selectedRecord));                              
              return true;
        //@@end
    Regards
    Alexi

  • Can iPad Air be hooked up to AOC desktop monitor? How? We have older person in home needs larger screen. Thanks.

    Can iPad Air be hooked up to AOC desktop monitor? How? We have older person in home needs larger screen. Thanks.

    YYou can connect with the cables listed above or with an Apple TV device. Keep in mind that and ipad is what it is and was made to be used as it is. I can tell you first hand that what you are trying to do will likely not be of assistance since the ipad is still required as the user interface. Connecting to a larger display maybe fine for watching movies if that's what you have in mind but for overall use the ipad will still have to be used and thus looked at to type and touch. Even with a bt keyboard there are still to many limitations That only a mouse can solve along with a keyboard and display.
    All said, you may be better off looking into, and perhaps using along with the bigger screen, some of the features that can be found in (general-text size) and (general accessibility) settings. Other then that, if you are not mindset on the ipad experience, there are other products on the market that are better suited and more affordable. I have provided care for my mother in law from here 80's to mid 90's. Been there, done that.

  • The Browser is defaulting to the Persona Selection as opposed to normal use, how do I fix?

    The Firefox Browser selection is defaulting to Firefox Personas and I cannot search the net with Firefox. Tried uninstalling and reinstalling and still defaults to Personas Selection Page.

    It is not clear what your problem is.
    Is it the home page that is going to the Personas site? If that is the problem, you can set the home page back to the default, or to any other site, for details see [[how to set the home page]].
    Do you have a Persona installed and want to remove it? If that is the case see [[using themes with Firefox]] for details of how to switch to the default theme, or any other theme.
    If your problem is something else please give more details.

  • How to default values on screen using FREE_SELECTIONS_INIT

    Hi Experts,
    I have the following requirement :
    We have developed a screen on which there is a button. On click of the button, a dynamic selection screen is generated using the functions FREE_SELECTIONS_INIT and FREE_SELECTIONS_DIALOG.
    I want when the selection screen is generated for the first time, the fields on it contains some default values taken from a table.
    e.g. If Screen has fields MARA-MATNR, MARA-MTART, MARA-MEINS then MARA-MEINS should be defaulted with a value 'EA'.
    I have tried a lot but could not find a solution to it.
    Kindly help me out as this is very urgent.
    Points are guaranteed..
    Thanks in advance.
    Regards,
    Himanshu

    SELCTION SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK BLOCK_1 WITH FRAME TITLE TEXT-001.
    PARAMETERS : P_RADLOC RADIOBUTTON GROUP GRP1 USER-COMMAND USER  .
    SELECTION-SCREEN BEGIN OF BLOCK SUB1_BLOCK WITH FRAME TITLE TEXT-002 NO INTERVALS.
    PARAMETERS : P_LOCNO TYPE /SAPAPO/LOCNO MODIF ID ABC default 'Specify the default value here.
    SELECTION-SCREEN END OF BLOCK SUB1_BLOCK.
    SELECTION-SCREEN SKIP .
    PARAMETERS : P_RADRES RADIOBUTTON GROUP GRP1  DEFAULT 'X'.
    SELECTION-SCREEN BEGIN OF BLOCK SUB2_BLOCK WITH FRAME TITLE TEXT-003 NO INTERVALS.
    PARAMETERS : P_RESNM TYPE /SAPAPO/RES_HEAD-NAME MODIF ID XYZ.
    PARAMETERS : P_NOB   TYPE /SAPAPO/CRES_NOINDIVRES  MODIF ID XYZ.
    SELECTION-SCREEN END OF BLOCK SUB2_BLOCK.
    SELECTION-SCREEN END OF BLOCK BLOCK_1.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF P_RADLOC = WL_SPACE .
          IF SCREEN-GROUP1 = WL_ABC.
            SCREEN-ACTIVE = 0.
            MODIFY SCREEN.
          ENDIF.
        ELSEIF P_RADRES = WL_SPACE .
          IF SCREEN-GROUP1 = WL_XYZ.
            CLEAR : P_RESNM, P_NOB.
            SCREEN-ACTIVE = 0.
            MODIFY SCREEN.
          ENDIF.
        ELSE.
          SCREEN-ACTIVE = 1.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.

  • How to default the safari browser to full screen

    how to default the safari browser to full screen

    System Preferences > General
    Uncheck the box beside "close windows when quitting an application".
    Best.

  • HR-ABAP: Defaulting Radio Button on Selection Screen of PNP LDB

    Hi all,
    I am using PNP LDB (Logical Database) for program which is used for Payroll Results.
    Now I have a requirement wherein it is necessary to select 'Up to today' as default on the selection screen.
    We are having 4.7C version of SAP. I tried following code in INITIALIZATION event:
    Initializing Selection Screen Data Selection Option to 'Up To Today'
    INITIALIZATION:
      MOVE:  'X'    TO    pnptimr4, " This is the option which I want as Default selection.
             space  TO    pnptimr1,
             space  TO    pnptimr2,
             space  TO    pnptimr3,
             space  TO    pnptimr5,
             space  TO    pnptimr6.
    But still I dont see this Radiobutton getting selected as Default selection while running the program.
    By Default it selects Option : 'Other Period' (pnptimr6).
    Any Idea how to resolve this ??
    Regards,
    Avinash

    hi...
    When the INITIALIZATION event occurs, you can set default values for the selection screen.
    The fields for the data selection are defined in structure QPPNP.
    Possible values for field PNPTIMED are:
    D     =      Today (key date)
    M     =     Current month
    Y     =     Current year
    P     =     To current date
    F     =     From today (from current date)
    The person selection fields are defined in include program DBPNPSEL. They are internal tables that must be filled using APPEND.
    so in intialization you have to write code as
    PNPTIMED : P.
    so up date will be defaulted in selection screen.
    award points if helpful.

  • Default role + session role

    Hi,
    How do I enable a session role in addition to keeping the default role enabled. Eg. If user scott has a default role of scott_dflt, I want to enable role scott_session without affecting scott_dflt. Using dbms_session.set_role to enable scott_session semms to disable scott_dflt.
    Thank you.

    when you call DBMS_SESSION.SET_ROLE, give a comma separated list of roles that you want to set as
    parameter:
    SQL> exec DBMS_SESSION.SET_ROLE('<role#1>,<role#2>,<role#3>.....') ;

  • How do I enable my personal hotspot

    how do I enable my personal hotspot on th iphone?

    Once enabled, you'll be able to use it in three ways: via Wi-Fi, via Bluetooth or via the USB cable. Fastest and most reliable is the cable, and that will charge the phone as well. If using the Wi-Fi alternative, the phone behaves like a secured access point: the screen will tell you the default password to use or let you type one.

Maybe you are looking for