Want to show an information message in PA30 screen

Hi ABAP gurus,
   For Infotype9000,subtype RHUB(newly configured) ,I want to show an information message in PA30 initial screen for operations 'Create','Copy' and 'Delete'. For that , I have used a BADI (hrpad00infty) , written code in PBO method of the BADI.
The problem is this, we cannot show the message in PA30 screen,else it is showing a pop-up dialog box (information msg. is missing in the dialog box) in the next screen.
Our Requirement:
  1. For the above mentioned operations , we want to show the information message in the PA30 initial screen.
Please post your valuable comments.

Hi
What you're trying to do is not really obvious for someone that's familiar with  the usual USER-EXITs and BADIs in HR but there's a possible workaround using the BADI HR_F4_GET_SUBTYPE and its GET_SUBTYPE_TEXT method for your 9000 IT
METHOD if_ex_hr_f4_get_subtype~get_subtype_text.
*SUBTY  Importing Type  SUBTY
*PERSNR Importing Type  PERNR_D
*TCLAS  Importing Type  TCLAS
*BEGDA  Importing Type  DATUM
*ENDDA  Importing Type  DATUM
*LANGU  Importing Type  SPRSL
*MOLGA  Importing Type  MOLGA
*FLT_VAL  Importing Type  INFTYPA
*STEXT  Exporting Type  SBTTX
  FIELD-SYMBOLS <rp50g> TYPE rp50g.
  ASSIGN: ('(SAPMP50A)RP50G') TO <rp50g>.
  IF sy-subrc EQ 0.
    IF <rp50g>-infty EQ '9000' AND
       <rp50g>-subty EQ 'RHUB'    AND
     ( sy-ucomm      EQ 'INS'  OR
       sy-ucomm      EQ 'COP'  OR
       sy-ucomm      EQ 'DEL' ).
      MESSAGE i398(00) WITH 'Your message'.
    ENDIF.
  ENDIF.
ENDMETHOD.

Similar Messages

  • I want to show previous test result on uut screen?

    Hi.
    I'm using Test Stand 2013. I want to show previous uut result on new uut screen. How can i do it? Which variable can i use for it?

    You could store the previous results using the PostUUT callback (or near that if you are changing the process model directly) and store the result status in a FileGlobal indexed by testsocket index. For example something like:
    FileGlobals.LastTestSocketStatus[RunState.TestSockets.MyIndex]
    To make sure the array is big enough you could dynamically size it somewhere using SetNumElements() once you know how many testsockets there are.
    Hope this helps,
    -Doug

  • Show an information message

    Hi to everybody!!
    I need to show a message before my program is executed. How can I do this? I have to tell the user that the file must have one structure.
    Thanks a lot,
    Regards,
    Rebeca

    Just check this..
    REPORT  ZTEST_MESSAGE_00.
    data: sflight type sflight.
    start-of-selection.
    select * from sflight
    into sflight
    up to 1 rows.
    endselect.
    if sy-subrc eq 0.
    message 'Records are there' type 'I'.
    endif.
    end-of-selection.
    write: sflight-carrid.

  • Want to show 'y' by pressing x on screen.

    Plz give me ideas either to use canvas and g.drawstring or textfield.
    Infact my device donot support repeated key events and if there is some device supporting this please tell me.
    In j2se if we want key events than we do this
    TextField t=new TextField();
    t.addKeyListener.
    I want same thing here and i want that when i press Y than in textfield in place of 'y' i get say 'a'.
    If you do not have some solution please give me some ideas.

    Methods
    keyPressed()
    keyRepeated()
    keyReleased()
    in javax.microedition.lcdui.Canvas class
    My Nokia 6310i support all of that

  • Does Alert.show put a message on the screen, or not?

                            var year:int;
                            var days:int;
                            days = 0;
                            year = 2010;
                            if (year > 2099)
                                  Alert.show("Unable to calculate day number for years beyond 2099.");  // Because, for example, 2100/2/29 will not exist
                            var T0:int;
                            T0 = days + ((year - 1964) / 4) * (3 * 365 + 366);  // This oomplex expression is evaluated incorrectly, so I have broken it down to help the compiler out
                            var T1:int;
                            var T2:int;
                            var T3:int;
                            var T4:int;
                            T1 = year - 1964;
                            T2 = T1 / 4;
                            T3 = 3 * 365 + 366;
                            T4 = T2 * T3;
                            days = days + T4;
                            if (T0 != days)
                                  Alert.show("Fault in evaluation because " + T0.toString() + " does not equal " + days.toString());

    Yes, and http://livedocs.adobe.com/flex/3/html/help.html?content=03_Language_and_Syntax_11.html reports that the int data type was added to Adobe Flex to improve performance when the programmer knows only integers shall be dealt with.   The livedocs page, to which you refer, was written before there even was an integer data type.  There is definitely something wrong with the way Adobe's software handles complicated integer expressions.    I did try changing all int data types to Number data types.   The complicated expression is handled properly in that case.
    The int data type is stored internally as a 32-bit integer and comprises the set of integers from
    -2,147,483,648 (-231) to 2,147,483,647 (231 - 1), inclusive. Previous versions of ActionScript offered only the Number data type, which was used for both integers and floating-point numbers. In ActionScript 3.0, you now have access to low-level machine types for 32-bit signed and unsigned integers. If your variable will not use floating-point numbers, using the int data type instead of the Number data type should be faster and more efficient.

  • Information Message shows up as Success message

    Hi Experts,
    I have a strange issue when i am trying to show an information message on my screen it shows up as a Success message. I am sure about passing the right values to the method report_t100_message of the interface IF_WD_MESSAGE_MANAGER and even though i am passing I to msgty parameter of the above method  it shows up as a success message.
    is there no way to show an Information message in Webdynpro.
    Thanks In Advance,
    Chaitanya.

    Hi,
    If you look into the implementation of this method, you will see that message type S and I are treated the same way and therefore are presented as a "success" message.
    What you could try is a popup to display your message.
    Kind regards,
    Jos

  • Supressing the information message in ALE

    Hi All,
      I created a report which will call this bd10 based on the selection screen parameters. it is executing correctly, but this tcode should be given to end users.
    generally after execution of BD10 , it will give the information message 1 master idoc is setup and after entering this it will show another information message like 1 communication idoc is setup for this. I dont need to display these two messages. <b>how to supress this information message.</b>
    Is it possible?
    Regards,
    vinoth.

    Hi,
    This can be possible,but its beyond a developers rights,this information message will be displayed always.
    if you want to avoid it run in background.
    regards,
    pankaj singh

  • Close Popup on clicking OK button of Information Message Dialog

    JDev 11.1.1.5.0 ADF BC
    I have a popup and a dialog inside it where user inputs some data and clicks Save button.
    I am showing an Information message on click of Save on successful insertion of data into the database.
    What I am looking to achieve is that I want to close the popup window on click of the OK button which is inside the information message dialog that is been shown on successful Saving of data.
    There is already a similar thread Close popup in adf but that doesn't have a correct answer.

    1) Bind the main popup to a bean variable:
    <af:popup id="mainPopup" binding="#{MyBean.myPopup}" ...>
    public class MyBean
      private RichPopup myPopup;
    }2) Add a DialogListener to the <af:dialog> of the information message:
    <af:popup id="infoPopup">
      <af:dialog dialogListener="#{MyBean.infoPopupDialogListener}">
        ... Info message here ...
      </af:dialog>
    </af:popup>3) Use this DialogListener to close the main popup programatically:
      public void infoPopupDialogListener(DialogEvent dialogEvent) {
        myPopup.hide();
    }Dimitar

  • How to raise an information message in Sales order change second screen(pbo

    Hi Experts,
      I need to change data in Sales order header if user entered wrong value while creation of order. If he has not given the correct value then i need to raise one information message on second screen of VA02. How can it possible when enter PRESS button or any action(means in the second screen pbo only).
    Cheers,
    Bujji

    Hi,
    Which field do you want to validate??
    Thanks,
    Naren

  • Information message

    When I start my program I will show an information message about what the program does. Where in my program should I write this message and how?

    Write this information Msg. after
    Start-of-Selection.
    Message "ABout Your Program" type 'I'.
    If it is a dialog Program
    Then write the same in PBO of the screen.
    Hope it works 4 u
    Do rewards...if it helps.
    Regards
    Sachin Dhingra

  • Suppressing Information Message in BDC

    Hi all,
    I want to avoid the Information Messages comming during Recording while doing a BDC in no-screen mode.
    Please help me.
    Thanks & Regards
    GK

    Hi ,
    Thanks for he quick response.
    The information message is comming in the form of a pop-up window. I can for now do write a line of code to avoid this.
    In case in future if that pop-up message does not come, then my output will again get effected.
    Thanks
    GK

  • Catching Information message in Program called using SUBMIT

    Hello All,
    I am calling a report program using below
    SUBMIT program EXPORTING LIST TO MEMORY
    AND RETURN.
    the program called is having one inforamtion message and is coming out after this message appears on screen. I want to capute this information message and need to display in my main program.
    Please let me know how  capture this type of messages in SUBMIT.
    Thanks in advance.
    Regards,
    Ganesh.

    Hi  ,
    DATA: text       TYPE c LENGTH 10,
         lt_selscreen  TYPE TABLE OF rsparams WITH HEADER LINE .
    lt_selscreen-sign = 'I'.
          lt_selscreen-option = 'EQ'.
          lt_selscreen-low = '7100'.
          append lt_selscreen.
    FIELD-SYMBOLS <lt_pay_data>   TYPE ANY TABLE.
    DATA lr_pay_data              TYPE REF TO data.
      cl_salv_bs_runtime_info=>set(    EXPORTING display  = abap_false
                                                 metadata = abap_false
                                                 data     = abap_true ).
    Submit Wage Type Reporter
       SUBMIT ZMR113_NON_MOVING_AGING    WITH SELECTION-TABLE lt_selscreen  with so_werks ='7100'  AND RETURN.
      TRY. 
      cl_salv_bs_runtime_info=>get_data_ref(        IMPORTING r_data = lr_pay_data ).
      ASSIGN lr_pay_data->* TO <lt_pay_data>.
      CATCH cx_salv_bs_sc_runtime_info.
      MESSAGE `Unable to retrieve ALV data` TYPE 'E'.
      ENDTRY.
      cl_salv_bs_runtime_info=>clear_all( ).
    THis Code i used  in my report   it was  Created  by Glen Simpson   Expert Blogger  : it was nice piece  of code  to Gain Access  from Other ALV Report  of SAPGUI
    regards
    Deepak.
    Edited by: Deepak Dhamat on Oct 5, 2011 8:18 AM
    Edited by: Deepak Dhamat on Oct 5, 2011 8:21 AM

  • How to give a status or information message on BSP page screen.

    Hi BSP gurus
    I have a search button on the screen , If user click on search button then system search for the suppliers, If no suppliers found then i need to show a status or information message.
    I am new to BSP , Could you please help me by telling the way how to give status or information message on the screen.
    Many thanks and regards
    Sandeep Sharma

    Hi,
    Search in SDN thre are many wikis posted on how to dispaly messages.
    Here is an example to [Message DIspaly|https://wiki.sdn.sap.com/wiki/x/CIHvB ]
    Hope this helps you
    Regards,
    Rajani

  • Information message-urgent

    I am writing info message in a sales order user exit,
    for some condition types,
    the info message is coming as pop up
    and for some condition types,
    it is showing status.
    message i378(zv2).
    but i always need a pop up,
    please let me know ur inputs.
    thanks.
    ramya

    Ramya,
      Diffrent case happend with me.
    ONe of my selection screen made as pop_up window .Done the validations that screen input fields 
    when i raise status messgae it came as  information message because that screen was small.
    better use below FM
    CALL FUNCTION 'POPUP_TO_CONFIRM'
           EXPORTING
                text_question  = text-008
                text_button_1  = 'YES'
                text_button_2  = 'NO'
           IMPORTING
                answer         = l_answer
           EXCEPTIONS
                text_not_found = 1
                OTHERS         = 2.
      IF l_answer = '1'.  "When Yes
      ELSE. " when "NO"
    ENDIF.
    Don't forget to reward if useful...

  • Batch input session Information message

    Hi,
        Is there any way to display information messages in a batch input session. Suppose I have a batch input session running on a particular transaction.If in a particular screen, I want to display an information message to the user that ' Particular sales order has been created on date xx'. Is it possible.
    Thanks &* Regards,
    Vishnu Priya

    Hello,
    It is not possible in the Batch input Session.
    You can do it by <b>Call transaction</b>. But it not possible to give message at particular screen. Becuase we are only passing screen seq and data for the screen.
    Like,
    Call transaction Va01.
    if something is there,
    message I
    endif.
    regards,
    Naimesh

Maybe you are looking for