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.

Similar Messages

  • Extending resource status and reason code category

    Hi Experts,
    I have a couple of questions regarding the extensibility of status and reason codes in ME15.0 in the context of machine integration:
    1. Is it save to add new status fields (records) in WIP.STATUS for STATUS_GROUP="RESOURCE"? Is there any impact, if a resource doesn't match one of the predefined status values?
    2. The "logResourceStatusChanged" service creates entries in WIP.RESOURCE_TIME_LOG but not in WIP.RESRCE. That way, it is possible to get different status values in both tables at a given time. Do you see any negative impact resulting from this data inconsistency?
    The service "ChangeResourceStatusRequest" is not suitable in our case, since it doesn't provide a timestamp as input parameter for the status change. And even if it would, the prevention of a "sfc complete" when the status is "unscheduled down" is inconvenient for our customer. The scenario is, that the customer wants to complete the quantity produced until the machine broke down (assume lot production).
    3. Is it possible to add new "categories" in addition to the predefined values in WIP.REASON _CODE? What is the impact?
    regards,
    Georg

    Hi Georg,
    I cannot give you a precise yes/no answer - so this is just to share some info.
    - I've heard about some customer who implemented custom statuses. When a new status simply was added in the database, it did not affect a core functionality. But I do not know what happens if this status is assigned to a resource and then a core fucntionality is triggered. There might be some validation which could fail. But it is easier to test specific cases as how you are going to use SAP ME, and I doubt any developer will be happy to run a full analysis of code to answer your question.
    - The new statuses need to be considered for loading via IDAT and adding into LocaleSpecificText properties file.
    - As to custom categories of reason codes, I guess there are only few places where system behavior is tightly connected to specific predefined reason codes. So, I'm inclined to believe that adding reason codes and categories will not harm.
    Regards,
    Sergiy

  • Alv status standard function codes

    Hello,
    I have developed an not OO ALV.
    I want to put the sort standard button. Does anybody know the function code i have to put in the status?
    Thanks

    Hi,
    Goto SE41, create a pf-status for your alv report program.
    On the next screen, click menu EXTRAS --> click option ADJUST TEMPLATES and select radiobutton LIST VIEWER --> you will get all standard buttons of alv in the pf-status.
    Delete the unwanted buttons and also you can add new buttons if reqd.
    Activate pf-status --> and apply in alv program.
    Hope this helps you.
    Regards,
    Tarun

  • Function Codes Automatically Recognised by ABAP

    Hi,
    I am studying Interactive Report these days, and found that there are some function codes automatically recognised by ABAP, for instance, function code BACK which associated with function key F3 has the functionality of BACK, and function code RW which associated with F12 has the functionality of CANCEL.
    The material that I looked through gives 7 function codes, are there just 7 function codes that could automatically recognised by ABAP? If the answer is no, is there an official list that show all the function codes?
    Thanks a lot.
    Best Regards!
    Stephanie HE

    Hi,
    Welcome to SDN,
    To my knowledge there are no list of function codes execpt standard menu bar function codes...
    So if you like to know the function code in any SAP Screen then you just enter '/h' in the command text box and the press enter so that debugging is switched on.
    Now press any icon or any key so that it will take you into debugging.... in the debugging screen enter SY-UCOMM in the text box and press enter so that you can capture the function code of that particular button.
    This process do help during interface program ( BDC PROGRAM and also INTERACTIVE LIST PROGRAMMING to check with User defined push buttons )
    Hope this would be helpful.
    Revert back if any suggestions or clarifications needed.
    Regards
    Narin Nandivada.

  • How to translate function codes from GUI-status into other language ?

    Hello experts,
    I've a programm called mrs - multi resource scheduling.
    This programm has texts in english and german.
    Now I want to translate the text also in italian.
    When I opne the programm in se80, in path GUI-status
    there are the ui-elements (Function codes).
    When I open them in english, I get the texts in english, when
    I open them in german , I get the texts in german.
    Openeing in italian shows me the english texts.
    Changing them into italian I get message:
    You can only maintain the object in modification
    lang. German (DE) in this system
    If I proceed in translating the german text in italian, I get italian texts instead of german.
    Some ideas ?
    Thanks Gerd

    Use [SE63|https://www.sdn.sap.com/irj/scn/advancedsearch?query=se63&cat=sdn_all].([Translating Objects Directly|http://help.sap.com/saphelp_nw04/Helpdata/EN/41/71601b3ab0f34a8e00aa01338c68f3/content.htm]) else work on a system where italian language is installed.
    Regards

  • What is excatly the fastpath of function codes in pf-status

    Hi friends,
    I would like to know what is excatly the fastpath of function codes in pf-status. I thought
    at first that I can choose a letter and in my program press Alt+letter and the function code
    will be executed but it did not work for me.
    Please help me.
    Regards,
    Udi.

    Hi aRs,
    Thank you for answering me.
    Is the fastpath is also for buttons or only for menus?
    Regards,
    Udi.

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

  • All Icons and their function codes

    Hi all!
    How can we find all the available icons and their related function codes? I have watched PRINT icon having different function codes in different ALV reports.
    Edited by: Jayasri P. on Jan 7, 2008 12:44 PM

    Hello.
    In order to use them in the GUI status of your ALV do the following:
    go copy the status "STANDARD_FULLSCREEN" of the program "SPLKKBL" to your program and change it.
    If you go to your own status now, under "Application Toolbar", you can define there your own function codes and use them in your code. As far as the icon is concerned, when you will first set the function code, the system will pop-up a screen in which you can define the icon you want to assign to that function code. You just have to do an F4 on the respective field of the pop-up and a new pop-up will show you all the available standard icons of the system that are available for use in your own GUI status. There, the name of each icon (for example, ICON_OKAY, or ICON_CANCEL etc) can be used to display icons in standard ABAP lists. In this case you have to add in your report the following line
    TYPE-POOLS: ICON.
    and then write something like this:
    write:/ icon_okay as icon.
    Reward please if it help.
    Regards,
    George

  • 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

  • GUI Status Function Code search

    I used ALV to list a report. On the Application Tool Bar, I added few push button.  One of them, I want to let user check the box, and then click, and select all other records but not checked records. I want to use the button invert_line. And I am trying to search for function code of a icon "ICON_INVERT_LINE". Hoping that it(SAP) already took care of it just like Select All, and I don't need write any code in program.
    For example, for "Select All", the function code is "&ALL", for "Deselect All" is "&SAL".
    I need use the function of Invert Line, any documents include the function code for it? Any tips?
    Appreciate your help.

    hi
    you can alternate between 'MALL' and 'MALO' as the function codes.
    thanks.

  • Deactivating function code of pf-status

    experts,
    how to deactivate a function code in the report when the report consists of a pf-status.
    what is the default pf-status for a report

    1) Deactivating f_code for status:
    SET PF-STATUS your_status EXCLUDING f_code.
    2) If you want to get standard status use:
    SET PF-STATUS space.
    Alternatively go to SE41-> write program name -> choose your status ->
    from menu choose Extras->Adjust Template-> choose List Status.
    System will activate any necessary functions for you:)
    You can choose other templates i.e. for LIST VIEWER (ALV) or TREE STATUS.
    Pls reward if helpfull.
    Best Regards,
    Marcin

  • Shopping cart line status and codes

    I am using SRM 4.0 , I need a list of all Shopping cart line status and codes. Where can i find that infomation

    Hi,
    Regarding only to shopping cart status, it can be the following:
    At header level:
    I1039 - Doc incomplete
    I1131 - Template
    I1009 - Held
    I1040 - Deleted
    I1038 - Doc complete
    I1106 - Shopping cart ordered
    I1023 - Transaction completed
    I1015 - Awaiting approval
    I1129 - Approved
    I1016 - Approval rejected
    I1138 - Resubmission
    At item level:
    I1111 - Item in transfer process
    I1112 - Error in transmission
    I1113 - Follow-on document created
    I1114 - Item in deletion process
    I1139 - Change of an external requirement
    I1114 - Follow-on document deleted
    I1116 - Deletion failed
    Kind regards,
    Ricardo Cavedini

  • IDOC message type and message code and function?

    Hai...
      anyone can explain with example what is IDOC message type and message code and function? how it is used?
    regards,
    prabakaran

    Hi
    An IDoc type can be implemented for various "logical" messages; one message can also be assigned to different IDoc types (m:n relationship).
    The message is defined by the values for message type (required), message code (optional) and message function (optional). These three fields belong to the key fields in the partner profiles, which are used, for example, to determine inbound processing. If the 'Message type' field is not maintained (e.g. in the case of a control record from Release 2.1, in which MESTYP did not exist), the IDoc Interface uses the value from STDMES (EDI message type).
    If possible, the descriptions of the message type should be linked to the corresponding EDI message type.
    The message ORDERS (= message type) identifies purchase orders (outbound) and sales orders (inbound).
    Message code or Process Code for Inbound Processing
    Code which identifies a process type.
    The process type determines which process is used to convert an IDoc to an SAP document.
    Process code for outbound processing
    Code which identifies the type of data which is to be sent via the IDoc interface.
    Using the process code, the IDoc interface finds the application selection module which converts the SAP document into an IDoc.
    The process code is only used with applications which perform outbound processing via Message Control (NAST).
    Thanks & Regards
    Kishore

  • Function Code can not be selected

    Dear expert,
    Please help me, there is a uploader For MIGO, USer is uploading data using this uploader, Sometimes when user try to upload data, he gets a message on status BAR:
    Function cannot be selected, When i Double Click on that Message i Get Following Information:
    Message NO: 00255
    Diagnosis
    You entered an Inactive function code
    You can trigger this by:
    inputting directly in the OK code field
    inputting the fastpath of an inactive menu function
    choosing an inactice function key, or even by
    choosing enter, if enter has an inactive function
    In batch input a function code is included in field BDC_OKCODE of the session, as long as this function Code is not assigned to Enter
    As well as activating function codes stastically in the menu painter(Transaction SE41), they can also be deactivated dynamically using the excluding addition with PF-STATUS.
    Now one more thing i want to tell you is when user just open MIGO directly and try to enter some data and get back before saving and then Execute uploader then user can upload data without any error,
    Kindly tell me what shoul i do to remove this error permanently
    Thanks in advance
    Regards
    Shelly Malik

    There is an error in this uploader, it should not call this command which is not available on that screen. What is this uploader? If it's a custom abap program, you must debug it.

  • How to track the standard function code eg. PRI

    Dear All,
    I have a requirement that says that I will execute a report. Now when the user will click on the print button may be customized or can be taken from menu (Standard PRI) I want to update a table when the printout has been taken. I am not able to track down the print functionality through AT USER-COMMAND. Can anyone please help me out.
    Thanks and regards,
    Atanu

    open the standard program in se80
    check the standard menu items in GUI status.
    check the function code there..
    regards.
    santhosh reddy

Maybe you are looking for

  • Evaluation of modules and teaching staff

    Within SAP HCM Training and Event Management/Learning Solution there is an option to evaluate the courses and trainers in the learning portal. Is this functionality also available for SLcM by means of integration or does SLcM have its own functionali

  • Batch Processing error: Object variable or With block variable not set - 91

    We are experiencing the following error when trying to execute the FDM Batch Processing of files in our UAT environment. This error is not occuring in our DEV environment. I have seen this error before when the data file had been left open and FDM co

  • Don't want QuickTime to open .tif files in IE

    How do I stop QuickTime from trying to open .tif files for me in Internet Explorer? My company has a web site where I can look at engineering drawings in .tif format. I used to be able to left-click on a link and have a window open that gave options

  • How to turn off shadow clipping in photoshop?  Not in ACR

    I have CS5, it crashed and when I restarted program, all the actions were missing and now in photoshop there is a clipping warning in shadows, like dark blues.  I know how to turn off clipping in ACR but this is in Photoshop.  Any ideas what is going

  • Reducing a large PDF file

    I'm trying to shrink a large PDF document. I've tried the "reducing file size" option- but that didn't seem to substantially reduce the overall size. Any recommendations?