How to inactive the push button on tool bar of alv report

hi masters,
i m working on the ALV interactive report, in this report i have to do 2 different operation on 2 screen.
eg.- on first screen i have the push button for 'data' and on second screen i will have the push button for 'upload'.
in this i don't want to give the 'upload' button on first screen and same i don't want to give the 'data' button on 2nd screen.
i tried with using the 2 different gui status and 2 different PF-STATUS but its not working.
anyone can tell me how i can deactivate the 'upload' button on first screen and how i can do same for 'get' buttton on 2nd screen.
regards,
vicky

HI Vicky ,
                  if u want an interactive ALV report , there are lot of forums already having the solution for that , but let me give u the solution anyway.
In the function module "REUSE_ALV_GRID_DISPLAY" , import parameters
     I_CALLBACK_PF_STATUS_SET          = 'FLIGHT'
     I_CALLBACK_USER_COMMAND           = 'BUTTON_CLICK'
has to be supplied to this function module . The PF status is where u hav created the two buttons , that PF status has to be given here .If the user clicks on the button then it is handled by the form routines . Inside the sub-routine based on the button the user has selected u could perform the action.
FORM FLIGHT    USING RT_EXTAB TYPE SLIS_T_EXTAB.
  SET PF-STATUS 'FLIGHT' EXCLUDING RT_EXTAB.
ENDFORM.
Here the "Flight" is the PF_status .
FORM BUTTON_CLICK USING UCOMM type SY-UCOMM
                       SELFIELD type SLIS_SELFIELD.
  CASE UCOMM.
    WHEN 'BUTTON!' .
write ur code for button 1.
  WHEN "BUTTON"
  *Write ur code for button2 .
end case.
endform.
for any queries reply back.
regards

Similar Messages

  • How to display the header data on different position in alv report

    hi all,
    how to display the header data on different position in alv report.
    for example ,
    customer                                                   name
      xxxx                                                         xxxx
                     vendor        name     street 
                      xxxx         xxxx      xxxxx
    pls   help me .

    hi
    as per my understanding you need to trnasfer header internal table data  to pdf..
    please check the following links for internal table to pdf..
    Convertion of Internal table data to PDF
    This link is related to ur issue
    Re: how to insert the calling of the FM: OTF to PDF
    Thanks

  • How to add the push button on the apllication tollbar of IL02 tcode

    Hi Friends,
    I have to add the push button on the application tool bar of the IL02.when that push button is pressed then some operation to be performed.Could you please suggest how to add.Is there any screen exit if yes what is that.
    With out screen exits if there is any way ?
    Thanks and regards,
    shyla

    HI Vicky ,
                      if u want an interactive ALV report , there are lot of forums already having the solution for that , but let me give u the solution anyway.
    In the function module "REUSE_ALV_GRID_DISPLAY" , import parameters
         I_CALLBACK_PF_STATUS_SET          = 'FLIGHT'
         I_CALLBACK_USER_COMMAND           = 'BUTTON_CLICK'
    has to be supplied to this function module . The PF status is where u hav created the two buttons , that PF status has to be given here .If the user clicks on the button then it is handled by the form routines . Inside the sub-routine based on the button the user has selected u could perform the action.
    FORM FLIGHT    USING RT_EXTAB TYPE SLIS_T_EXTAB.
      SET PF-STATUS 'FLIGHT' EXCLUDING RT_EXTAB.
    ENDFORM.
    Here the "Flight" is the PF_status .
    FORM BUTTON_CLICK USING UCOMM type SY-UCOMM
                           SELFIELD type SLIS_SELFIELD.
      CASE UCOMM.
        WHEN 'BUTTON!' .
    write ur code for button 1.
      WHEN "BUTTON"
      *Write ur code for button2 .
    end case.
    endform.
    for any queries reply back.
    regards

  • How to suppress the Push button in a custom screen

    Hi,
       Is there any procedure to suppress a Push button in a custom Screen based on a condition.
    For eg: If Material is not initial.
                then display the Continue button.
             else not.
              endif.

    Hi,
      If the push button is not on the application toolbar, then follow the below procedure...
    1. Assign the MODIF-ID for the button in the screen. Assume that MODIF-ID for the button is SC1.
    2. In the PBO of the screen add the below code...
    IF not MATERIAL is INITIAL.
    LOOP AT SCREEN.
       IF SCREEN-GROUP1 = 'SC1'
        SCREEN-OUTPUT = 1.
        SCREEN-ACTIVE  = 1.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
    ELSE.
    LOOP AT SCREEN.
       IF SCREEN-GROUP1 = 'SC1'
        SCREEN-OUTPUT = 0.
        SCREEN-ACTIVE  = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
    ENDIF.
    Regards,
    Vara

  • Hide the Save button in tool bar in pdf form

    Hi All,
    I need to hide the save button in the tool bar in pdf form out put. I need not hide the print button, hand tool and etc.
    I have seen some forum threads,but i am not able to get the answer.
    I have refered this links
    http://help.sap.com/saphelp_nw04/helpdata/en/e1/fd9841e2ebb05fe10000000a1550b0/frameset.htm
    How to hide tool bar from Adobe Form
    The above link contains some scripts,The code id used for hide the hole tool bar not only save button.
    I need to hide only save button in the tool bar.
    How to hide the save button in the tool bar ?
    Thanks and regards,
    Boopathi M

    Adobe Designer 7.1 uses XFA 2.4
    If you can upgrade to Adobe desinger 8.2 to be abel to use XFA 2.8 you can code in the following way:
    Write the following code in the preSave method
    if (do_not_save_condition == 1) then
      xfa.event.cancelAction = 1
    endif
    Adobe Quote
    cancelAction specifies whether to cancel a forthcoming action.
    This property applies only to the following scripting events: prePrint, preSubmit, preExecute, preOpen, and preSign.
    The user experience is determined by the scripting event that contains the cancelAction reference:
    u2022  preOpen - The drop-down list does not expand to display the list of values. 
    u2022  preSubmit - Form submission does not occur. 
    u2022  preSign - The form is not digitally signed. 
    u2022  prePrint - No print dialog boxappears, and the form is not printed. 
    u2022  preSave The form is not saved. The user experience is that no action occurred. 
    Edited by: Reema Shahbazkar on Sep 10, 2008 7:54 PM
    Using this, the save button will still be visible but, you can prevent the form from being saved.

  • Push button application tool bar

    Hi All,
    i have a push button on application tool bar , i need to disable that button , where can i do this.
    Kindly suggest.
    Thanks&Regards.
    Ramu

    Hi,
    You can use the excluding addition in the SET PF-STATUS command..
    EX.
    DATA: ITAB_CODE LIKE SY-UCOMM OCCURS 0 WITH HEADER LINE.
    Dummy condition..
    IF SY-SUBRC = 0.
    A & B will be the function code that you gave in the menu painter..
    ITAB_CODE = 'A'.APPEND ITAB_CODE.
    ITAB_CODE = 'B'. APPEND ITAB_CODE.
    THis will remove the function codes A & B from the menu bar.
    SET PF-STATUS EXCLUDING ITAB_CODE.
    ENDIF.
    Re: Menu Bar - Urgent
    Regards
    Sudheer

  • How to enable the "Cancel button" so you can stop a report while loading ...

    I have seen that some reports have a Cancel button located just below "the loading ..".
    How can I enable that button in MS Reporting service 2005?

    The following mechanism responds to any of the following events: <Esc> key, Close icon ('x'), Cancel button
    JavaScript part:
    function popupClosedListener(event){
                  var source = event.getSource();
                  var popupId = source.getClientId();
                  var params = {};
                  params['popupId'] = popupId;
                  var type = "serverPopupClosed";
                  var immediate = true;
                  AdfCustomEvent.queue(source, type, params, immediate);
    }JSF part:
             <af:popup ....>
                  <af:clientListener method="popupClosedListener"
                                           type="popupClosed"/>
                  <af:serverListener type="serverPopupClosed"
                                          method="#{myBean.serverPopupClosedMetod}"/>
            </af:popup>Finally, Java part:
    public void serverPopupClosedMetod(ClientEvent event){
    }

  • How to resolve the error in bdc call transaction in ALV report

    Dear Experts, i am executing the alv report program and in alv report program one bdc is there..
    after executing output is showing in alv format but one button is there (update master)..when i am clicking update button the bdc is run but is not updated in the material master..after executing my bdc is not updated in mm02.
    how to resove it?
    CALL TRANSACTION 'MM02' USING BDCDATA MODE MODE
                                                              UPDATE 'S'
                                                      MESSAGES INTO MESSTAB.

    Hi Kaustav,
    Looking at the code you attached, it appears to me that your BDC (Form  USER_COMMAND) is not executed at all as you haven't passed the 'USER_COMMAND' in FM REUSE_ALV_GRID_DISPLAY for ALV display.
    You must pass the importing parameter  I_CALLBACK_USER_COMMAND of this FM as 'USER_COMMAND', only then this form will be executed and your BDC will run.
    Thereafter, in case your BDC update fails, you can put a break-point in the form (at CALL TRANSACTION statement) and analyze the message table MESSTAB.
    Hope it helps.
    Regards,
    Sapeksh

  • Problem with refresh button in tool bar in ALV

    hello experts,
                              I am displaying a report using OOPS ALV. Here i am deleting one row. After deleting the row, if i clicked on REFRESH button in the tool bar, it should display the table newly with all updations which i made. wat is the code to perform dis.
                                                      thanks in adance,

    in normal ALV we can refresh using     sel-refresh = 'X'.
    in OOPS ALV
    IF wa_toolbar-function = '&REFRESH'.
            wa_toolbar-function = 'REFRESH'.
            wa_toolbar-disabled = gc_x.
            MODIFY e_object->mt_toolbar FROM wa_toolbar
                              TRANSPORTING function disabled.

  • How to display the editable fields in output of an ALV report?

    Hi all,
    I have a requirement of displaying values in ALV Grid format and above this grid display i have to put some fields , that are editable.
    I know making ALV grid fields as editable, but here requirement is to display some fields before displaying the ALV grid dispaly and to enable these fields editable to user and when printing this the values entered by user also has tobe printed.
    Please help me on solving this problem? Is it possible to do this with ALV function modules?
    Thanks,
    Vamshi.

    Hi all,
    Thanks for your replies.
    But this is not  my requirement. I mentioned in my question that i too know how to edit the fields in ALV grid report.
    Here my requirement is .
                                             name :_____________
                                             amount:____________
    alv grid display
    Like above i need to display.  after name the user can be enter value and after amount also the user can be enter some value at output . But this is not the header of ALV .
    Is this possible in classical ALV or Classical report? If not please specify alternative?
    Thanks,
    Vamshi.

  • How to Disable the Push button in CRM_BSP_FRAME

    Dear Experts,
            In the BSP application "CRM_BSP_FRAME" i want to Disable the Pushbutton "NEW"
    according to the User i.e For Few Users it should be Enabled and for the Few Users it should be Disabled.How to Do this Could you please send me the Document.
    It is very Urgent Requirement.Please help me to solve this Problem.
    Thanks in Advance.
    Regards,
    Ashok.

    Hi Ashok,
    I'm not sure what yo need exactly, but I f you want to enable/disable button try to do this:
    <%
    data: disable_button type string.
    if sy-uname = 'ELI'.
        disable_button = 'X'. "True
    else.
        disable_button = ' '. "False
    endif.
    %>
    <crmic:button id="new"
                         disabled = "<%=disable_button %>" />
    Good Luck
    Eli Steklov
    Please reward Points if It Heleped

  • How to make the push buttons Iconic in the web

    hai Folks,
    I deploying my form on the web but I am unable to view the
    buttons which are made iconic. I used the gif files as iconic,
    but I dont get the icon in the button when i deploy on the web.
    Please help me out...
    Thanks
    Jayakumar
    null

    You need to set the virtaul path of the directory that
    containsthe gif filles in the listener configuration
    example n:\myapps\gif\ /web_gifs/
    then in the registry of the application server
    for FORMS50_PATH add n:\myapps\gif
    Hope this helps,
    Sunder
    Jayakumar (guest) wrote:
    : hai Folks,
    : I deploying my form on the web but I am unable to view the
    : buttons which are made iconic. I used the gif files as iconic,
    : but I dont get the icon in the button when i deploy on the web.
    : Please help me out...
    : Thanks
    : Jayakumar
    null

  • Creating buttons on title bar using alv

    hi all good morning,
    can any one help me in making a button on title bar of ALV report. Till now i have used only one function of ALV i,e REUSE_ALV_GRID_DISPLAY. it is showing proper out put but i want to make some action using my own button on the final ALV result displayed like save change etc.

    Hi,
    How to add button to ALV toolbar using REUSE_ALV_LIST_DISPLAY?
    In the program which calls ALV using REUSE_ALV_LIST_DISPLAY,
    I have to add a new button.
    I saw the demo program BCALV_GRID_08, which is written using ABAP-Controls.
    In that example, the button is added using TOOLBAR event of cl_gui_alv_grid.
    Could you help me to implement the same logic using REUSE_ALV_LIST_DISPLAY parameters.
    you should copy the 'STANDARD' GUI status from program SAPLKKBL using transaction SE90 >Programming SubObjects> Gui Status.
    Execute this transaction to get to next screen. select status using checkbox. click on GUI Status --> Copy.
    Enter your Z program name and the name you what for this status - you can keep it as 'STANDARD' to be simple.
    Then you can edit the new status to add or delete buttons. This will also bring in the standard SAP ALV functionality such as sorting/subtotaling etc...
    When you call 'REUSE_ALV_GRID_DISPLAY' make sure you pass it the new status name.
    an example of one of mine:
    call function 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    i_callback_program = 'ZSDBOLST_REPORT'
    i_callback_pf_status_set = 'STANDARD' <----
    i_callback_user_command = 'USER_COMMAND'
    i_structure_name = 'I_BOLACT'
    i_grid_title = 'BOL Action Report'(031)
    is_layout = gs_layout
    it_fieldcat = gt_fieldcat[]
    i_save = 'A'
    is_variant = v_variant
    TABLES
    t_outtab = i_bolact
    EXCEPTIONS
    program_error = 1
    others = 2.
    I just tried the same procedure ,but my entire application toolbar disappeared and a lock icon appears next to the application toolbar in my copied pf-status.
    Could you advice what might have gone wrong ?
    As identified with the FM's help you can do the following.
    1). Using SE80 (I think) you can copy a GUI status from one program to another. It mentions which one in the FM's help.
    2). Create a form named like so:
    Code:
    Form Set_pf_status
    Notes: Called by FM REUSE_ALV_GRID_DISPLAY
    FORM set_pf_status USING rt_extab TYPE slis_t_extab.
    SET PF-STATUS 'ZSTANDARD'.
    ENDFORM. "Set_pf_status
    In the above case the GUI status copied was named ZSTANDARD and adjusted accordingly, adding and removing the desired buttons. A button was added called '%DELETE'.
    3). Create the following report:
    Code:
    Form User_command
    Notes: Called by FM REUSE_ALV_GRID_DISPLAY
    Detects whether the icon/button for
    'Return Tag Deletion' has been pressed. If it has then
    detect whether any rows have been highlighted and then
    set the delete flag.
    FORM user_command USING r_ucomm LIKE sy-ucomm
    rs_selfield TYPE slis_selfield.
    DATA: li_count TYPE I.
    IF r_ucomm EQ '%DELETE'.
    LOOP AT %g00 WHERE mark EQ 'X'.
    ADD 1 TO li_count.
    ENDLOOP.
    IF li_count GT 0.
    gc_delete_flag = 'X'.
    r_ucomm = '&F03'. "Back arraow
    ELSE.
    MESSAGE W000 WITH 'Please highlight the rows to be deleted!'.
    ENDIF.
    ENDIF.
    ENDFORM. "User_command
    As I've added an extra button to indicate which records should be deleted I need to identify a form to be called to process when this button is chosen.
    Then when you call the ALV function you to specify the following extra details:
    Code:
    call function 'REUSE_ALV_GRID_DISPLAY'
    exporting i_callback_program = gc_repid
    I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
    I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
    i_grid_title = lc_grid_title
    is_layout = lc_layout
    it_fieldcat = gt_fieldcat
    it_sort = sort
    i_save = l_save
    is_reprep_id = l_bbs_id
    is_variant = l_variant
    tables t_outtab = %g00
    exceptions program_error = 1
    others = 2.
    The parameters in capitals are the extra ones that need to be added.
    Regards,
    Satish

  • How to automatically off the push button

    how can i set the push button to be off automatically after meet certain condition.
    i attached simple example just to represent this problem
    Solved!
    Go to Solution.
    Attachments:
    ex.vi ‏7 KB

    smercurio_fc wrote:
    I think the user is actually asking how to stop the outer loop if the Stop button is pressed or the iteration count reaches 10.
    To poster: You need an OR condition on the outer loop's conditional terminal. One OR input comes from the Stop button. The other comes from the case structure. In the False case you wire out a False Boolean constant. In the True part you wire out a True. You could also wire the OR input to the Boolean control directly since this amounts to the same thing.
    Code comments:
    Do not create greedy loops. Use a small delay so you don't starve the CPU.
    I think you want the inner loop's condition terminal to be "Continue if True".
    You can use the Increment function rather than using an Add function and a constant of 1.
    You don't actually need the inner loop at all. You can use a Feedback Node.
    Adding to these comments it is important to note that if you read the value of a button to control stopping a loop you should always ensure that you read it AFTER you execute all of your code in the loop. If you don't you can easily end up with an "off-by-one" execution since the button will get read very early in the loop iteration and it will use that value when deciding if the loop should exit or not. It won't use the value of the button at that instance in time (end of teh loop iteration).
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • How can I resolve the push button dot issue in oracle forms 10g..?

    Hi All,
    We have migrated to forms6i to forms10g, in 6i all the push button labels are displaying properly, but in 10g forms its giving dots like this … after displaying some characters. I guess its width problem but how come its changing in 10g alone.
    Kindly give me any workaround to resolve this issue
    Thanks in Advance
    Thangaraj.

    Hi All,
    We have migrated the forms 6i to forms 10g R2.We are facing push button issue like,the lable is displayed in the button is reduced.Assume the button's label name is Cancel.Actully it is displaying like Can.....Due to Java used in forming the buttons.We have forms count nearly 300.We have diffent size buttons.
    We have solution like
    1.Manually
    2.PC Creation
    3.Java Class and Jar Files
    4.JDAPI
    5.basejini.htm
    The method five,we have tried.But there is no changes after this changes also.
    Can you guys please let us know the correct menthod(with steps 1 by 1) to do this in quickly.
    2.There are look and feel 2 types oracle and generic,rather than this do we have any other type.We are looking for any cusrtomized settings in config files.
    Thanks in Advance.
    Regards,
    GR

Maybe you are looking for

  • Error while opening workbook

    Hello All, I am logging into doscoverer with some reponsbility. While I am trying to open a workbook. It is displaying me with some message like "Item xxxx used by the work book is missing do you like to continue". what might be the reason behind thi

  • As soon as the IPOD starts to synch with ITUNES, it makes ITUNES close

    My brand new 5th Gen IPOD Video makes ITUNES (7.02) close immediately after the start of the synch process. A pop window appears stating that ITUNES HAS TO CLOSE...... Can someone help !!!!

  • RFC connection - SAP CRM to SAP R/3

    Hello all,               We have a requirement in the project, where client is already using SAP R/3 ERP system, and is going for CRM for e-commerce. Now as they have most of the development already done in R/3, they want to use some Function Module

  • Can't drag and drop in Lilghtroom

    I'm using XP Pro. Duel core. 4 GB ram. Drag and drop works in every other program but not in Lightroom. I know at least one other person with the same problem. Adobe tech support didn't have any idea what to do. Any thoughts? Thanks

  • Using LabView, Arduino, and Easy-Driver to control a Stepper Motor

    Hello fair folks of the LabView forums! I am a humble engineering student in need of some advice and input on a project I am working on. I’ve also done a fair amount of reading on the LabView forums with people trying to use LabView and Arduino to co