GUI status problem

Hi,
I have two screens 1000 & 2000.
I have given execute button ('STRT') in screen 1000.
Once exectued, it is going to screen 2000.
When iam coming back to 2000 to 1000 & execute again(in 1000 screen)...it is not working(not going to screen 2000).That means it is working only one time...
What i have to do to execute always...
points guarnateed
kaki

HI,
In every screen you have to set pf-status,
and handle back and exit in module user_command
when you use
call screen 2000
in screen 2000 you have to use leave to screen 1000, this will destroy 2000 screen and goes to 1000.
so check what you r using
leave to screen 1000
or
call screen 2000.
just to come back to previous screen you also other option
just say
leave to screen 0.

Similar Messages

  • Problem in GUI status

    hi folks ,
    i have created the GUI status for the program .. when i go on the out put screen i am not able to go back or cancel or exit , though i have created the GUI status and activated it as well .
    my program is designed to display the user action on screen and it displays the value in the text field which can only accept output no inputs .
    plz advice .
    Thanks,
    Abhishek .

    Hello,
    Make sure that the function codes in the GUI status are written in capital letters only.Similarly in the PAI of the screen,in the case statement,the function codes have to be written in capital letters.I hope you have written the user-commands as the functionality has to be coded by the developer when he makes the GUI.
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE USER_COMMAND_0100 INPUT.
    case ok_code.
    when 'BACK'.
    leave to screen 100.
    when 'EXIT'.
    leave to screen 0.
    when 'SAVE'.
    ....logic
    ENDCASE.
    endmodule.
    Regards,
    Beejal
    **Reward if this helps

  • Problem in GUI status of ALV Grid

    Hello All Experts,
    I have a following issue.
    Am displaying a report using   REUSE_ALV_GRID_DISPLAY. I have copied the GUI status from standard GUI   STANDARD_FULLSCREEN. Now when i dispaly the report i get  select all ICON just before my first column(Marked in red below). i do not need this icon, i have checked in my GUI status also this icon does not exist. can you please help me how to remove this icon.
    This is how i have declared the field catalog for my first column.
      fieldcatalog-fieldname    = text-013.
      fieldcatalog-seltext_m   = text-014.
      fieldcatalog-col_pos      = 0.
      fieldcatalog-outputlen    = 3.
      fieldcatalog-emphasize  = gc_x.
      fieldcatalog-key            = gc_x.
      fieldcatalog-checkbox   = gc_x.
      fieldcatalog-edit            = gc_x.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
    Am really thankful to your resposes.
    Regards,
    Satish

    i tested with
    REUSE_ALV_GRID_DISPLAY and it works fine as you want
    report ztestalv.
    type-pools:
      slis.
    data:
      i_usr02 type table of usr02,
      afield  type slis_fieldcat_alv,
      sp_group      type slis_sp_group_alv,
      t_listheader  type slis_t_listheader with header line,
      t_layout      type slis_layout_alv,
      t_fieldcat    type slis_t_fieldcat_alv,
      t_spec_groups type slis_t_sp_group_alv,
      event         type slis_alv_event,
      t_events      type slis_t_event,
      g_variant     like disvariant,
      gx_variant    like disvariant,
      g_exit(1)     type c,
      g_save(1)     type c,
      g_repid       like sy-repid,
      msgtyp        like sy-msgty,
      lt_dynpread   like dynpread occurs 1 with header line.
    start-of-selection.
      select * from usr02 into table i_usr02
      up to 200 rows.
    end-of-selection.
      t_layout-detail_initial_lines = 'X'.
      t_layout-detail_popup         = 'X'.
      t_layout-f2code               = 'PIC1'.
      t_layout-get_selinfos         = 'X'.
      t_layout-group_change_edit    = 'X'.
      call function 'REUSE_ALV_FIELDCATALOG_MERGE'
        exporting
          i_structure_name = 'USR02'
        changing
          ct_fieldcat      = t_fieldcat
        exceptions
          others           = 4.
      call function 'REUSE_ALV_GRID_DISPLAY'
        exporting
          i_callback_program       = 'ZTESTALV'
          i_callback_pf_status_set = 'SET_PF_STATUS'
          i_callback_user_command  = 'USR_CMD'
          i_structure_name         = 'USR02'
          is_layout                = t_layout
          it_fieldcat              = t_fieldcat
          it_special_groups        = t_spec_groups
          i_default                = 'X'
          i_save                   = g_save
          is_variant               = g_variant
          it_events                = t_events
        tables
          t_outtab                 = i_usr02
        exceptions
          program_error            = 1
          others                   = 2.
    make sure your field ls_layout-box_fieldname is blank, as you using the checkbox

  • Problem in copying GUI status

    Hi Experts,
    I have created a report using ALV object model in EN language.
    For this report i have copied standard GUI status to ZGUI status in language EN.
    Now when i execute this report in German login. All the texts in ZGUI are displayed in ENGLISH. Where as if i check standard GUI status, it is displayed in login language.
    Please tell why standard texts in ZGUI status are not displayed in logon language or is there any special way to copy GUI status so that they are copied as language dependent.
    Regards

    Just for the record, as i have been digging about this same thing, without finding a clear answer anywhere.
    As translation texts are not copied copying only the status, as hinted somewhere else, you can copy the whole function group into a Z (without the methods).
    Then in the new Zfunction group you can create copies of the standard status adding your customer needs (new menus/buttons), and translating just the new items (for use in external programs).
    Then when creating your alv reports instead of using status from its own program, use the status from this Zfunction group.
    (Using "CL_SALV_MODEL_BASE->SET_SCREEN_STATUS" you can use status from other programs).
    Cheers

  • Add Button to GUI STATUS Application toolbar

    Hi,
    I have to add a button in the application toolbar of a gui status. I have done that many times before, but I never got into trouble like this time....
    When I open the Gui status and the tree for the application toolbar, I can see already set buttons. When I now click on change (a modification warning comes) and press the plus-icon, it is possible to enter a new item. But everything I´m typing, I get the message Function code XXXX has not been assigned to a function key. I have never got this before....
    When I now go to SE41 and enter a new function key, I can´t use it either afterwards as a button in the application toolbar.
    In the tree of the function keys, I can´t change anything...
    What can I do here? The program name is SAPMZLCG, so it has been modified sometimes. But how can I change the GUI STATUS now to add a new button?
    Thank you!

    You need to goto the application toolbar and the add your text to the items and click below the text you will get one popup which will ask for static text and dynamic text. select statictext and then add all the information like text name and if you want to add an icon you can do it aswell. the there will be another popup for fuction attributes where you will be able to find some options loke fuction types and reaction need to select all that and then click on the ok button and save check and activate the same and after that activate and check whether the button is visible or not. once the button is visible then you need to check for the ok_code and sy_ucomm and then insert the fuctionality of the button.
    I hope this might solve your problem.

  • GUI status items are not displayed

    Hi all,
    Some parts of gui status are not displayed but some of them are displayed.
    What is the problem?
    Thanks.
    deniz.

    Hi snehi chouhan,
    I have created a program and two gui statuses for this.
    One of them is set at first display of report but not all items.
    Thanks.

  • GUI status for report

    Hi,
        I had created GUI status for output list in one report. its status is active in program but in report output this created status is not activated (Menu bar, application toolbar). Has anybody face this kind of problem before?
    Regards,
    Dilip

    hi,
    use command
    SET GUI-STATUS 'menu1' -> double click on menu1 ->select menu bar radio button from available radio buttons -> click on expand butt0n -> select required buttons n give function codes n select user-command optionfor those buttons ->activate -> back ->activate the report prgm.
    i think in our case you didn't activated the menu painter screen. check it once n dont forget to assign f.code n to give user-command after giving static text for buttons that u will use in prgm.
    if helpful reward some  points.
    with regards,
    suresh babu aluri.

  • Use standard GUI status in customer GUI status without extra programming

    Hi,everyone.
    I have a problem in my development.
    now, I'm developing my own dialog program. And I need use my own GUI status.
    there are some buttons on application tool bar.when I click some buttons on the
    application tool bar,the program will do something according to the function code.
    But now, I also need the standard tool bar in the screen too.yeah,I know I can input function code
    to the buttons of the standard tool bar and the buttons of standard tool bar will be bright and can
    be clicked. But when I click the button on the standard tool bar like 'back', the program will not
    return to the previous screen .
    so, what I want to know is how can I make the buttons bright and achieve the functionality provided
    by the standard tool bar without extra programming.

    HI,
    you can use Tcode SE41 ( MENU PAINTER ) to copy the status of a standard program.
    to go back to the screen from where you come from like the standard BACK button.
    in PAI
    module go_back.
    in abap source code the module looks like this
    module go_back.
    case sy-ucomm.
    when 'BACK'.
    LEAVE TO SCREEN O.
    endcase.
    endmodule.
    to by pass the screen validations the above code should be written in
    MODULE MNAME AT EXIT-COMMAND.
    in the PAI.
    Thanks and regards
    Ramchander Rao.Krishnamraju

  • Setting GUI Status on CL_SALV_TABLE

    Hi All,
    I'm calling CL_SALV_TABLE in a method in the popup mode:
    *    Set popup display
      lo_alv->set_screen_popup( start_column = 10
                                      end_column   = 200
                                      start_line   = 5
                                      end_line     = 30 ).
    My problem is that I can't link a GUI status to this as the status can only be linked to a program, function module etc.
    I have added a new GUI status to a FM in the same package but I'm getting an object not found exception.
    lo_alv->set_screen_status( pfstatus = 'CTRL_POPUP'
                                    report = sy-repid
                                    set_functions = lo_alv->c_functions_all ).
    Anybody know a workaround for this besides moving the ALV into a program and calling that from the object. I'd prefer to keep all my code in this one object if I can help it.
    Cheers,
    Gregor

    You can refer to any GUI status for which is created in any other program.
    For, example:
    lo_alv->set_screen_status( pfstatus = 'SALV_STANDARD'
                                    report = 'SALV_DEMO_TABLE_FUNCTIONS'
                                    set_functions = lo_alv->c_functions_all ).
    So, you can use any dummy program which can hold the GUI status for you.
    Regards,
    Naimesh Patel

  • GUI status in OOPS in ALV

    Hi Gurus,
      Am developing the ALV report in OOPS. In that report am displaying 2 grids one after the other. My problem here is am getting the tool bar separately for the 2 grids. So i disabled the tool bar for two grids in layout. And i copied the standard gui status SLVC_FULLSCREEN into that report. Now am getting the tool bar. But i did nt get the button events. The buttons are clickable but the functionality is not doing. How to get the functionalites for the ZSLVC_FULLSCREEN. Please guide me some suggestions how to copy the functionalites for those.
    Points will be awarded
    Thanks
    Ravi

    check the all function codes of the buttons in ZSLVC_FULLSCREEN GUi status
    and write u r functionality in your progrm in at user-command subroutine.
    case sy-ucomm.
         when 'xxx'
               do something.
         when 'yyy'
               do something.
    endcase.

  • GUI status name in BHTML

    Hello,
    I am looking for a way to get the GUI status in a BHTML file.
    I am writing my own generator for ITS, and there I need the currently active GUI status or the name of it.
    I tried to get it with
    `<tags `PF-STATUS` `~CURRDYNPRO` />`
    but that didn't help. I only got something like that:
    <tags  ZTOP_GENERATOR_TEST_0100 />
    The name `PF-STATUS` is not translated, the `~CURRDYNPRO` is ZTOP_GENERATOR_TEST_0100
    I saw some code like ~CURRDYNPRO.name but I could not figure out some kind of sub-value for the status.
    I am working here with a NetWeaver 7.01 with EHP1 and integrated ITS.
    Hope anyone can help me...
    Thanks a lot.
    Greetings,
    Georg
    Edited by: Georg Bergen on Dec 18, 2009 11:06 AM

    Hi Edgar,
    No, I am referring to the GUI Status object that defines all the button actions available on a screen. In WebSAPConsole there is no problem to use it, but in ITS I did not find an easy way.
    Currently I figured out a workaround adding a new I/O field to the screen with the name 'SY_PFKEY', and it works fine, but I don't want to manipulate the screen itself, so this is only my last resort.
    Georg

  • Mass activation of gui status

    Hi All,
    This is swapnil. We are getting problem in producation.
    In Application toolbar many standard tcodes are just displaying only push buttons not icons. If we activate that perticular GUI Status it is getting activated.
    Please let us know as soon as posible as this is seviour issue.....
    Thanks and Regards,
    Swapnil

    Can't think of anything but LSMW.

  • GUI status upload and download....

    Hi experts,
        I am working upgradation project have problem with GUI status. How to upgrade GUI status from 4.6c to 6.0 ECC, Is there any upload and down load options.
    Thanks & Regards.
    Kk

    Hi,
    check this doc
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c08e5899-1444-2a10-e489-ef6ffbf13146
    Regards,
    Anirban

  • Storage area for GUI status Z_FI_UPLOAD_FIDOC 100 too small

    Hi,
    I have created a program for uploading and posting open items aso. I've gathered items in an internal tables and tried to display on ALV list with tree for correct and incorrect items. When table contains more than 1000 items ( not all in one document but 2 items for every single doc), ALV displays but after awhile I get the error message 'Storage area for GUI status Z_FI_UPLOAD_FIDOC 100 too small' and next step process leaves the program to initial SAP screen without dump. Error doesn't occur when item lines less than 1000. The detailed message is:
    +Storage area for GUI status Z_FI_UPLOAD_FIDOC 100 too small
    Message no. 00261
    Diagnosis
    The memory area of the basis software for the GUI status is too small for the requested status.  The following is stored in this area:
    Administration information in fixed length
    Menu structure, F keys and push buttons of a status
    The texts of the complete interface (not just of the status)
    The active and the requested Excluding list (SET PF-STATUS... EXCLUDING ...).
    System Response
    Termination as presumably the system is unable to continue processing.
    Procedure
    A short-term solution might consist of leaving off the EXCLUDING for the current SET PF-STATUS...
    Clear up the interface affected: in the Menu Painter (Transaction SE41), choose Utilities -> Unused objects.
    If it is an interface with a large number of statuses, it may be possible to take the interface apart.
    This is often possible for interfaces belonging to a function group that supplies GUI statuses for multiple programs (these programs call up function modules of the group that mainly contain a SET PF-STATUS command).
    If the above solutions will not work, your system administrator will have to enlarge the profile parameter "ztta/cua_area".
    Note that profile parameter "ztta/short_area" must be at least 6 times as large as "ztta/cua_area".+
    There is no unused object in my GUI. Is it connecting with number of items or should I ask system admin to enlarge mentioned parameters?
    Thanks for quick reply in advance,
    György
    Message was edited by:
            György Jakabovics

    Now I know what the problem was.
    Message was edited by:
            György Jakabovics
    Message was edited by:
            György Jakabovics

  • DISABLE button(FCODE) from the GUI-Status

    Hi people,
    Can anyone help me out with this... I need to manipulate the PF-STATUS and 'DISABLE' some of the buttons. I am already using the
    'SET PF-STATUS 'STATUS_100' EXCLUDING lt_off_commands.' but instead of hiding the buttons I would rather diable them so that they are visible on the toolbar but could not be used.
    TIA,
    ZAM

    Hello ZAM,
    There's a standard way to do that. When you Create / Edit a GUI status in the Menu Painter, you can choose whether you want the disabled function codes to be hidden or to be displayed as grayed out.
    Follow the menu path <i><b>Goto>Attributes>Pushbutton Assignment</b></i>. You will get a pop-up with three options. The default option is <i><b>Hide all</b></i>. Just choose <i><b>Display all</b></i> on this pop-up and activate the GUI status. Your functionality is achieved.
    If this helps, please reward the points and close the thread. Otherwise, please get back with the problem you might be facing in doing so.
    Regards,
    Anand Mandalika.

Maybe you are looking for