Handling new function code in customised gui status of report

I have a very simple report, YRPT1, which write a few lines to the list. I have created a new gui status and set it in my report. In se41, I also added a new function code 'TERM' in the application toolbar. If I am not wrong, i need to handle this new function code in the PAI section of the simple report. So my question is, where is the PAI section of this simple report?

In selection screen, the user action is to be handler in
"AT SELECTION-SCREEN" event.
Code should be like this
tables sscrfields.
at selection-screen.
case sccrfields-ucomm.
endcase.

Similar Messages

  • Reading all function code of a pf-status

    Hi,
    I need to read all the function code of a pf-status. Any idea if there's any table or function module to do that?

    Hi
    Try fm RS_CUA_GET_FUNCTIONS
    Max

  • Function Code +CUS1 in GUI AEND for IW37, what is it's purpose?

    Hi All,
    We have added our own button to the IW37 "List of Order Operations" screen (the ALV grid).  In going through our upgrade, I noticed a function code of +CUS1.  Should I use this instead of adding our core modification,  and if so, how?
    Regards,
    Greg

    Greg,
    Have a look at user-exit ICSV0001 (Display of geographic location data) via TCode SMOD.
    PeteA

  • Doubt on GUI status in Report

    Hi Friends,
    I have created a GUI Status for a Report program.
    I have written the functionalities for Application Tool bar.
    But i have not written any thing for my Functional Keys having Standard Tool bar will the keys in the standard tool bar will work as normal or it will get deactivated.
    Reward is sure.
    Thanks,
    Gokul

    Hi Gokul,
    If you are setting a PF status for a report then menu items and functional keys in the standard toolbar gets deactivated and depending upon ur requirement u can activate keys.
    And if you want to activate the functional keys  back, exit and cancel give the function codes as BACK, %EX and RW respectively in the PF Status you have defined and Activate the PFstaus.
    Now these functional keys start working normally and you need not write any code for these to work.
    If you want clarifications futher let me know.
    Reward me if useful.
    Regards
    Sandhya

  • 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.

  • Gui status (AT USER-COMMAND) trigger at first

    Hello all,
    I wrote a basic list  shown below.
    In it , AT USER-COMMAND and AT LINE-SELECTION events are used all.
    when i double click on line in the list, I think the at line-selection should be trigger at first. but  in fact ,the AT USER-COMMAND trigger.
    and the sy-ucomm get the first button value in the GUI-STATUS BAR(There's only one button on it).
    how can i solve it .
    any answers should be appreciated.
    START-OF-SELECTION.
      SET PF-STATUS 'ZSATMM24F1'.
      write :  \ 'aaaaaaaaaaaa'
      write :  \ 'aaaaaaaaaaaa'
      write :  \ 'aaaaaaaaaaaa'
      write :  \ 'aaaaaaaaaaaa'
    AT USER-COMMAND.
      CASE sy-ucomm.
        WHEN 'TO_a'.
          PERFORM to_a.
      ENDCASE.
    AT LINE-SELECTION.
      write : 'test'.
    best regards,
    daniel.

    Please make sure to add the fcode PICK to the F2 function code in your gui status and try again.
    Regards,
    Rich Heilman

  • 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

  • Pf status and function codes

    Hi,
    I have a report where in i have to add a new icon with a tick symbol along with the existing execute icon ie f8.I have copied the status of the program into another before adding the new icon and to that i have added the new icon and function code.
    i have used set pf-status in the initialisation event.Now when i give the select options and press f8 it enters into the program but sy-ucomm is still empty and does not do the desired functionality.If i click the icon for test run it does not enter the program itself.Can anyone help me out on this.
    The status is activated in se41.
    Points will be rewarded.
    Please help.
    Regards,
    Sowmya.

    hi,
    just try like that used in the report: demo_list_at_user_command
    like:
    START-OF-SELECTION.
      WRITE: 'Basic List',
           / 'SY-LSIND:', sy-lsind.
    TOP-OF-PAGE.
      WRITE 'Top-of-Page'.
      ULINE.
    TOP-OF-PAGE DURING LINE-SELECTION.
      CASE sy-pfkey.
        WHEN 'TEST'.
          WRITE 'Self-defined GUI for Function Codes'.
          ULINE.
      ENDCASE.
    AT LINE-SELECTION.
      SET PF-STATUS 'TEST' EXCLUDING 'PICK'.
      PERFORM out.
      sy-lsind = sy-lsind - 1.
    AT USER-COMMAND.
      CASE sy-ucomm.
        WHEN 'FC1'.
          PERFORM out.
          WRITE / 'Button FUN 1 was pressed'.
        WHEN 'FC2'.
          PERFORM out.
          WRITE / 'Button FUN 2 was pressed'.
        WHEN 'FC3'.
          PERFORM out.
          WRITE / 'Button FUN 3 was pressed'.
        WHEN 'FC4'.
          PERFORM out.
          WRITE / 'Button FUN 4 was pressed'.
        WHEN 'FC5'.
          PERFORM out.
          WRITE / 'Button FUN 5 was pressed'.
      ENDCASE.
      sy-lsind = sy-lsind - 1.
    FORM out.
      WRITE: 'Secondary List',
           / 'SY-LSIND:', sy-lsind,
           / 'SY-PFKEY:', sy-pfkey.
    ENDFORM.
    When you run the program, the system displays the following basic list with a the page header defined in the program:
    You can trigger the AT LINE-SELECTION event by double-clicking a line. The system sets the status TEST and deactivates the function code PICK. The status TEST contains function codes FC1 to FC5. These are assigned to pushbuttons in the application toolbar. The page header of the detail list depends on the status.
    Here, double-clicking a line no longer triggers an event. However, there is now an application toolbar containing five user-defined pushbuttons. You can use these to trigger the AT USER-COMMAND event. The CASE statement contains a different reaction for each pushbutton.
    For each interactive event, the system decreases the SY-LSIND system field by one, thus canceling out the automatic increase. All detail lists now have the same level as the basic list and thus overwrite it. While the detail list is being created, SY-LSIND still has the value 1.
    Regards,
    Renjith Michael.

  • Gui status standard - new button

    Hi gurus,
    I have added a new button to a standard gui status: 0101 of function group CEI0. Everything seems ok, but when I start the transaction (CU50) I can't see the new button. Should I do some other operation to see the modification I have done?
    Thanks a lot
    Guido

    Hi
    It should be a gui for a popup, I don't believe It can deactive your new functions at runtime, but try to check what's happens as soon as that gui is set in PBO.
    Max

  • Disabling the function keys in GUI status

    Hi Experts,
                    I want to disable/hide the function keys in the gui status based on some condition in a module pool.Please tell me how to achieve that.
    Regds
    Abbhishek

    Hi Abhishek,
    Please check the follwoing links to enable/disable function keys in module pool.
    [http://www.saptechies.com/pf-status/|http://www.saptechies.com/pf-status/]
    [http://www.sap-img.com/abap/common-used-of-dialog-screen-for-display-change-delete.htm|http://www.sap-img.com/abap/common-used-of-dialog-screen-for-display-change-delete.htm]
    [http://sapabap.iespana.es/sap/tips/dinamically_set_pfstatus.htm|http://sapabap.iespana.es/sap/tips/dinamically_set_pfstatus.htm]

  • Gui status - Add status for F1

    Hi,
    My requirement like this way.
    I need to create a Gui status add FCODE to key F1. But if you expand the "Function Keys" icon in Gui status screen and scroll all the way right , you can find a function key option with icon ? . But this FCODE entry is in disable mode.
    But if you check SAP standard program SAPLLMOB and check gui status LOGON. You can find SAVE has been entered .
    Please don't suggest copy the standard gui status and use .
    Any other suggestion?

    I've tried but it did not worked for me.
    I've create a screen with 2 buttons: Button BACK and Button NEXT. The Function Codes are 'BACK' and 'NEXT' also.
    I've also created a brand new status gui and added this funtion codes to key F1 and F2.
    Result: when I press F1 key during screen execution, it opens a help window....
    Something is missing? Can you explain why do not works for me?

  • Reg: GUI Status

    Hi,
    Am calling a screen 104 from the main screen, using the following statement..
        CALL SCREEN 104 STARTING AT 10 5.
    It is including the GUI status of the main screen. But I dont want any GUI status for the screen 104. I need only Title bar. How can I exclude the previous GUI status? Is it like by creating the new GUI status( without any buttons ) or is there any other efficient way to do this?
    Regards,
    SAP Lover

    Hi,
    The GUI status of a selection screen is generated by the system. The SET PF-STATUS statement in the PBO event of the selection screen has no effect on the standard GUI status. If you want to use your own GUI status for a selection screen or deactivate functions in the standard GUI status in exceptional cases, you can use one of the following function modules in the PBO event of the selection screen:
    RS_SET_SELSCREEN_STATUS
    Sets another GUI status defined in the same ABAP program, or deactivates functions of the standard GUI status.
    RS_EXTERNAL_SELSCREEN_STATUS
    Sets a GUI status defined in an external function group. You must use the SET PF-STATUS statement to set the status in a special function module in this function group. You must pass the name of the function module that sets the status as a parameter to the function module RS_EXTERNAL_SELSCREEN_STATUS.
    For further information, refer to the function module documentation.
    REPORT demo_sel_screen_status.
    DATA itab TYPE TABLE OF sy-ucomm.
    PARAMETERS test(10) TYPE c.
    AT SELECTION-SCREEN OUTPUT.
      APPEND: 'PRIN' TO itab,
              'SPOS' TO itab.
      CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
           EXPORTING
                p_status  = sy-pfkey
           TABLES
                p_exclude = itab.
    In this example, the Print and Save as variant functions are deactivated. To find out the function codes of the standard GUI status, choose System ® Status and double-click the GUI status field.
    regards,
    preet
    reward if useful..

  • BDT Function Code for button

    Hello Folks ,
    Iv'e Created a new screen using BDT technology and added a button inside screen .
    how can i handle the function code within this screen in a way that i won't have system messeage "Unknown function code XXX" while clicking on this button.
    tanks in advance.
    Herzel .

    Hi,
    You need to implement for your button a function module for the BDT event FCODE. You can have a look at the fms *_BUPA_EVENT_FCODE, to get an idea on how to implement it.
    Thanks and warm regards,
    Smita.

  • Register Function Code in Screen Exit

    Dear ABAPers,
    I always find difficulty when create button in screen exit. In all cases, the function code of the button need to be registered in certain table. For example when I create button in screen exit for Material Master MM01/02/03, I need to register the new function code in table V_T133E and V_T133D using SM30. I know where to register the function code that time since the error message point me where to register the function code.
    Now I working on another screen exit and need to add button on the screen. They are enhancement QQMA0001for screen IW21/22/23. Right now I have no clue where to register function code and it keep showing error "Requested function ZBMIT is not available here". ZBMIT is new function code for new button I add in the screen.
    Could anybody give advice to where should I register the function code. Moreover it's highly appreciate if there is any advice how I can find direction generally when I create button in screen exit.
    Thanks
    Regards
    Hadi Wijaya

    You should declare the function code in the table T185 & T185F.
    Use the transaction SM30 with the view table V_T185. You must only fill the first 2 radio buttons.
    The program is the standard program is your in the case of an exit subscreen or the mailn program of the transcation.
    Regards,
    Christophe d'Argembeau

  • 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

Maybe you are looking for

  • Movement type in third party order

    dear expert pls tell me what is the movement type is used in third party order. from vicky

  • Correct Choice of the QUARTER Bridge Type

    Hello, We have to measure 80x SG (strain gauge) channels with 20x NI-9237 modules in 3x cDAQ-9188 chassis. The CEng guy wants to use a passive SG for temperature compensation in all channels (although not needed because we use self compensating SGs i

  • Using nLite on WinXP installation w/ Parallels?

    Hi. Has anyone tried using nLite to compress Windows XP prior to installation on their Mac (running XP under Parallels)? I'm thinking of trying it, but before going through the process, I'm wondering how easy it is and if it provides any noticeable p

  • ORA-31640: unable to open dump file "/restore/psdwh/exp_dataONLY_iccs_25062

    Hi, Version 11203 I am trying to import schema into exadata machine using impdp. The impdp is failed to open dump file. Starting "ICCS"."SYS_IMPORT_FULL_01": userid=iccs/******** full=y TABLE_EXISTS_ACTION=APPEND DIRECTORY=EXP_FOR_EXADATA PARALLEL=4

  • How to use WS-Security?

    Where can I find the security info about a WebService, so I can invoke the service with conforming to the security demand, in WSDL, WSDD or other place? What's the standard way? Thanks.