Wht's the Diff bet AT-USER command and AT-PF STATUS

Can Anybody explain me the diffarence between At user command and At-pf status.
Thanks,
Srik

Hi Srikanth,
AT USER-COMMAND - Event in interactive reporting
This event is executed whenever the user presses a function key in the list or makes an entry in the command field .
Some functions are executed directly by the system and thus cannot be processed by programs. These include:
PICK See variant AT LINE-SELECTION PFn See variant AT PFn /... System command %... System command PRI Print BACK Back RW Cancel P... Scroll function (e.g.: P+ , P- , PP+3 , PS-- etc.)
Instead of this functions, you can use the SCROLL statement in programs.
Since many of these system functions begin with "P", you should avoid using this letter to start your own function codes.
Otherwise, the effect is as for AT LINE-SELECTION ; also, the current function code is stored in the system field SY-UCOMM .
Example
DATA: NUMBER1 TYPE I VALUE 20,
      NUMBER2 TYPE I VALUE  5,
      RESULT  TYPE I.
START-OF-SELECTION.
  WRITE: / NUMBER1, '?', NUMBER2.
AT USER-COMMAND.
  CASE SY-UCOMM.
    WHEN 'ADD'.
      RESULT = NUMBER1 + NUMBER2.
    WHEN 'SUBT'.
      RESULT = NUMBER1 - NUMBER2.
    WHEN 'MULT'.
      RESULT = NUMBER1 * NUMBER2.
    WHEN 'DIVI'.
      RESULT = NUMBER1 / NUMBER2.
    WHEN OTHERS.
      WRITE 'Unknown function code'.
      EXIT.
  ENDCASE.
  WRITE: / 'Result:', RESULT.
After entry of a function code, the appropriate processing is performed under the event AT USER-COMMAND and the result is displayed in the details list.
AT PFn - Event in interactive reporting
Here, n stands for a numeric value between 0 and 99.
This event is executed whenever the user presses a function key that contains the function code PFn in the interface definition. The default status for lists contains some of these functions.
Otherwise, the effect is as for the variant AT LINE-SELECTION . The cursor can be on any line.
To ensure that the chosen function is executed only for valid lines, you can check the current HIDE information. This variant should be used only for test or prototyping purposes, since the default status is not normally used. Instead, you should set a program-specific status with SET PF-STATUS . This should not contain any function codes beginning with " PF ".
Example
DATA NUMBER LIKE SY-INDEX.
START-OF-SELECTION.
  DO 9 TIMES.
    WRITE: / 'Row', (2) SY-INDEX.
    NUMBER = SY-INDEX.
    HIDE NUMBER.
  ENDDO.
AT PF8.
  CHECK NOT NUMBER IS INITIAL.
  WRITE: / 'Cursor was in row', (2) NUMBER.
  CLEAR NUMBER.

Similar Messages

  • Whats the diff bet Automatic Req Grouping & Grouping of SC for followondocs

    Hi Friends
    What is the diff bet Automatic Requirement Grouping and Grouping of SC for follow on documents
    Regards
    Vinny

    Yes you are right, but the complete process is as below:
    -> First Sourcing Should be activated in the SRM
    -> Then when users creates SC with source of supply (or depending on sourcing config) the SC is moved to Sourcing Cockpit.
    -> Then in the sourcing cockpit, the requirements are completed and submitted for grouping.
    -> And then if the program BBP_SC_TRANSFER_GROUPED is executed, then the grouping happens for the follow on document.
    Note: The technical scenario is also to be considered.
    Hope this answers your question.
    Regards
    Kathirvel

  • What is the Diff bet partner functions and business partner?

    Hi friends
    what is the Diff bet partner functions and business partner
    Regards
    Abirath

    Hi,
    In SRM there are different Partner functions like REQUESTER, GOODS RECIPIENT, VENDOR ,LOCATION.
    All the org units or users in SRM will have a unique identification number called Business Partner Number maintained in table BUT000.
    The users can have differnt partner functions in differnt documents and accordingly mainatained in table CRMD_PARTNER.
    Hope this will give you some infomation.
    Regards,
    Sheetal.

  • What is the diff bet XI and Business connector, backend contracts & Goa?

    hi friends
    what is the diff bet XI and Business connector ,diff bet backend contracts and goa
    i know that XI(for new customers) and business connector for existing customers
    do u think xi and Business Connector perform the same task
    Regards
    Vinny

    Hi Vinny,
    As Khan told, business connector is old technolgy and it has almost same functionlities like in XI.
    both are mainly used for converts idoc's into xml format....
    GOA: Global outline agreemnts mainly used when srm is having multiple backend systems. with reference to GOA ,  we can create local contracts in backend systems ...
    Thanks
    Ravi

  • What is the diff bet CCM catalog and MDM catalog?

    Hi Friends
    What is the diff bet CCM catalog and MDM catalog?
    Thanks & Regards
    Kanni

    Hello,
    CCM & SRM-MDM are SAP Catalog Content Management solutions.
    In basic terms, MDM is latest solution & will be replacing CCM. All new features like service hierarchies are included in MDM 3.0.
    CCM: upload, manage, and search in procurement catalogs.
    http://help.sap.com/saphelp_ccm20/helpdata/en/index.htm
    MDM: Search, compare, and procure products from suppliers.
    It provides:
    Catalog content management functions, such as the import of catalog structures or data, the transfer of catalog items to a procurement application, and search functions
    Procurement catalogs
    Supplier catalogs in a Web-based environment
    The SRM-MDM Catalog is based on functions provided by SAP NetWeaver Master Data Management (SAP NetWeaver MDM) and bundles together in one specific application those SAP NetWeaver MDM functions required for catalog content management.
    http://help.sap.com/saphelp_srm70/helpdata/en/45/ddd04f8c6e2e97e10000000a155369/frameset.htm
    Hope this helps.
    Thanks
    Ashutosh

  • Diff bet multi user and single user installation

    Hi,
    what is the diff betweeen single user and multi user installation,please let me know advantages and disadvantages also .
    Regards

    Hi,
    what is the diff betweeen single user and multi user installationSingle user installation is having one user who owns all the application/database tier files. When you do an installation, you run RapidWiz as this user.
    Multi-user installation is having two different users (applmgr user who owns the application tier files, and oracle user who owns the database tier files). When you do the installation, you run RapidWiz as root user.
    On Windows, you cannot have multi-user installation. So, the above is valid on Unix/Linux.
    More details can be found in the Concept manual --> http://www.oracle.com/technology/documentation/applications.html
    please let me know advantages and disadvantages also .I always prefer multi-user installation as you just source the application/env file in the user's profile (in the applmgr/oracle profile) and the file is sourced once you login as that user. For single user installation, you will have to be sure that you source the proper env file manually each time you want to switch between the application and the database (just imagine if you try to shutdown/startup the database after sourcing the application env file, or trying to use any database executable file like export/import/sqlplus ..etc, you will end up using the application tier executable files).
    Regards,
    Hussein

  • What is the differ bet reference and template

    hi this is koti,
    let me know the diff bet reference and template?

    Please search forum before you post. This topic has been discussed many times

  • What is the diff bet workitem & internal msg.what does internal msg contain

    hi friends
    what is the diff bet workitem and internal messages. What does Internal Message contain
    thanks
    Vinny

    Hi Vinny,
    Workitem is nothing but some action is required for that particular item.
    Internal message is nothing but just for information purpose.
    Per example if employee create a shopping cart then it goes to approver ..from approver poin of view this SC his work item.
    Thanks
    Ravi

  • What is the diff bet RFX and Bidding Engine?

    Hi Friends
    What is the diff bet RFX and Bidding Engine
    Regards
    Surya

    Hi Surya
    Bidding engine is the component in SAP SRM that we use to conduct RFx adn Live Auctions.
    You can do RFx and Auctions both in SAP SRM and SAP E-Sourcing.
    Inside SRM RFx is also called Bid Invitation.
    In SAP E-Sourcing its called RFx (x could be I=Information, P=Proposal, Q=Quotation)
    Bidding engine is the engine that powers sourcing.
    Hope this clears your doubts
    Regards
    tridip chakraborthy

  • What is the diff bet RFQ and Bidinvitation?

    Hi Friends
    What is the diff bet RFQ and Bidinvitation?
    Regards
    Surya

    Hi Surya
    I have answered this in the previous thread of yours
    RFQ and bid invitation are the same, only that Q will be quotation.
    In SAP terminology RFQ are genertally used in the back end application SAP R/3 (SAP MM)
    RFx (x could be I=Information, P=Proposal, Q=Quotation)
    Hope this clears your doubts
    Regards
    tridip chakraborthy

  • What is the diff bet condition class and condition type.

    Hello Gurus
    What is the diff bet condition class and condition type.
    I have seen so many threads on this but not getting the exact usefullness.
    Difference between Condition class and Condition Category
    What is the difference between condition class and condition category?
    Condition class and condition category etc.
    As per the knowledge i gained condition class tells the type of the condition ie either price , discount ,taxes etc.
    Then please tell me why we require cond category.Please give a business scenario where we can justify it use.

    Hi shiva
                      Difference between Condition Category and Condition Class
    Condition Category -
    It is the Classification of conditions as per the categories ,Say  for example Freight condition types  you have the same conditon category
    Condition class  -
    It classifies the condition types as price , discounts , taxes , discount etc
    Regards
    Srinath

  • What is the diff b/w Sap Scripts and Smart Forms

    Hi,
          Whats the diff b/w SAP Scripts and Smart Forms..
             I need the internal explanation for both Smart Forms and SAP Scripts mean when we execute what happens whether Print Program r Forms starts execution 1st  and SIMILARLY FOR SMARTFORMS WHETHER FM'S  R FORMS.
    Thanks & Regards,
    Gopi.

    Hi
    Difference with SMARTFORMS vs. SapScript(SE71)
    The Following are the differences :-
    a) Multiple page formats are possible in smartforms which is not the case in SAPScripts
    b) It is possible to have a smartform without a main window .
    c) Labels cannot be created in smartforms.
    d) Routines can be written in smartforms tool.
    e) Smartforms generates a function module when activated.
    f) Unlike sapscripts (RSTXSCRP), you cannot upload/download Smartform to your local harddisk.
    It was said that it was provided in CRM 3.0 version, but not available in R/3. You can download smartforms into Local PC in a XML format. In the same way you can upload this XML format into Smartform. From the smartform editor itself you can call download option, if you are working in CRM 3.0 environment.
    In R3 also, you can download into XML format. However, it's not sure about uploading. Refer to the program 'SF_XSF_DEMO'.
    In 4.7 Enterprise, other have seen this utlity which is completey missing in 4.6c. There is functionality to downlaod a complete form or only a particular node. (Utilities -> Download form). It will create a XML file and save it in the hard disk.
    For others, if you want to download/upload the Smartforms source, you will need the help from the Basis people. What you can do is to create a Transport and then FTP down to your local harddisk. When you need the Smartform source in another system, you have FTP up the Smartforms file back to the SAP server. Finally, the Basis team, will tp it into your system.
    g) The protect and endprotect command in sapscript doesn't work with smartforms. For example on a invoice: First data of position no 80. is printed on page one, other data of position no 80 is printed on page 2. And there's nothing you can do about it. Actually, there is something you can do about it. By using a folder node and checking the 'protect' checkbox, everything in that folder will be page protected.
    check out this link:
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    Reward points if helpful.
    Regards,
    Swathi.

  • What is the diff b/w transactional cube and std cube

    What is the diff b/w transactional cube and std cube

    Hi Main differences,
    1) Trasactional infocube are optimized for writing data that is multiple user can simultaneously write data into it without much effect on the performance where as the std infocube are optimized to read the data ie.e through queries.
    2) transactional inofcubes can be loaded through SEM process as well normal laoding process.Std can be loaded only thorugh normal loading process.
    3) the way data is stored is same but the indexing and partionong aspects are different since one is optimized for writing and another one for reading.
    Thanks
    Message was edited by:
            Ajeet Singh

  • User-command and pf-status

    Hi can anybody please give tell me what is the user-command and what is pf-status.
    please provide me a sample code how to create these step by step.
    and how to copy standard pf-status to user defined one.
    thanks in advance
    kp

    hi,
    The Standard List Status
    As with normal screens, you can define your own GUI status for lists and attach it to a list level using the SET PF-STATUS statement. If you do not set a particular GUI status, the system sets a default list status for the list screen in an executable program. In other programs, for example, when you call a list from screen processing, you must set this status explicitly using the statement
    SET PF-STATUS space.
    This default interface always contains at least the functions described in the Standard List section.
    Unlike normal dialog statuses, the default list status is affected by the ABAP program.
    If you define event blocks in your program using the event keywords AT LINE-SELECTION or AT PF]
    This statement sets the status  parameters. To display an ampersand character ‘&’, repeat it in the title ‘&&’.
    Examples
    Example for dialog status in a list.
    REPORT demo_list_menu_painter.
    START-OF-SELECTION.
      SET PF-STATUS 'TEST'.
      WRITE:  'Basic list, SY-LSIND =', sy-lsind.
    AT LINE-SELECTION.
      WRITE:  'LINE-SELECTION, SY-LSIND =', sy-lsind.
    AT USER-COMMAND.
      CASE sy-ucomm.
        WHEN 'TEST'.
          WRITE:  'TEST, SY-LSIND =', sy-lsind.
      ENDCASE.
    This program uses a status TEST, defined in the Menu Painter.
    Function key F5 has the function code TEST and the text Test for demo.
    Function code TEST is entered in the List menu.
    The function codes PICK and TEST are assigned to pushbuttons.
    The user can trigger the AT USER-COMMAND event either by pressing F5 , or by choosing List ® Test for demo, or by choosing the pushbutton Test for demo.The user can trigger the AT LINE-SELECTION event by selecting a line.
    Example of setting a dialog status for the current list
    REPORT demo_list_set_pf_status_1.
    DATA: fcode TYPE TABLE OF sy-ucomm,
          wa_fcode TYPE sy-ucomm.
    START-OF-SELECTION.
      wa_fcode = 'FC1 '. APPEND wa_fcode TO fcode.
      wa_fcode = 'FC2 '. APPEND wa_fcode TO fcode.
      wa_fcode = 'FC3 '. APPEND wa_fcode TO fcode.
      wa_fcode = 'FC4 '. APPEND wa_fcode TO fcode.
      wa_fcode = 'FC5 '. APPEND wa_fcode TO fcode.
      wa_fcode = 'PICK'. APPEND wa_fcode TO fcode.
      SET PF-STATUS 'TEST'.
      WRITE: 'PF-Status:', sy-pfkey.
    AT LINE-SELECTION.
      IF sy-lsind = 20.
        SET PF-STATUS 'TEST' EXCLUDING fcode.
      ENDIF.
      WRITE: 'Line-Selection, SY-LSIND:', sy-lsind,
           / '                SY-PFKEY:', sy-pfkey.
    AT USER-COMMAND.
      IF sy-lsind = 20.
          SET PF-STATUS 'TEST' EXCLUDING fcode.
        ENDIF.
        WRITE: 'User-Command, SY-LSIND:', sy-lsind,
             / '              SY-UCOMM:', sy-ucomm,
             / '              SY-PFKEY:', sy-pfkey.
    Suppose that the function codes FC1 to FC5 are defined in the status TEST and assigned to pushbuttons: The function code PICK is assigned to function key F2 .
    When the program starts, the user can create detail lists by selecting a line or choosing one of the function codes FC1 to FC5. For all secondary lists up to level 20, the user interface TEST is the same as for the basic list:
    On list level 20, EXCLUDING ITAB deactivates all function codes that create detail lists. This prevents the user from causing a program termination by trying to create detail list number 21.
    Example of setting a dialog status for the current list
    REPORT demo_list_set_pf_status_2.
    START-OF-SELECTION.
      WRITE: 'SY-LSIND:', sy-lsind.
    AT LINE-SELECTION.
      SET PF-STATUS 'TEST' IMMEDIATELY.
    After executing the program, the output screen shows the basic list and the user interface predefined for line selection (with function code PICK).
    When you choose Choose, the user interface changes. However, since the AT LINE-SELECTION processing block does not contain an output statement, the system does not create a detail list: The status TEST is defined as in the previous example.
    Example: Titles of detail lists.
    REPORT demo_list_title .
    START-OF-SELECTION.
      WRITE 'Click me!' HOTSPOT COLOR 5 INVERSE ON.
    AT LINE-SELECTION.
      SET TITLEBAR 'TIT' WITH sy-lsind.
      WRITE 'Click again!' HOTSPOT COLOR 5 INVERSE ON.
    Regards,
    Sreevani.

  • *when we use at user -command and give smaple code fro at user-command*

    Hi experts,
    i am new to abap can any body tell me when we use AT USER-COMMAND and give a sample code for that.
    point will be rewarded.
    thanks.

    Hi,
    AT USER-COMMAND  is a list Event.This Event is triggered when user make an action on the Application Toolber Or Menubar.
    Here is the Program.
    START-OF-SELECTION.
      SET PF-STATUS 'TEST'.
      WRITE:  'Basic list, SY-LSIND =', sy-lsind.
    AT LINE-SELECTION.
      WRITE:  'LINE-SELECTION, SY-LSIND =', sy-lsind.
    AT USER-COMMAND.
      CASE sy-ucomm.
        WHEN 'TEST'.
          WRITE:  'TEST, SY-LSIND =', sy-lsind.
      ENDCASE.
    This program uses a status TEST, defined in the Menu Painter.
    Function key F5 has the function code TEST and the text Test for demo.
    Function code TEST is entered in the List menu.
    The function codes PICK and TEST are assigned to pushbuttons.
    The user can trigger the AT USER-COMMAND event either by pressing F5 , or by choosing List -> Test for demo, or by choosing the pushbutton 'Test for demo'.The user can trigger the AT LINE-SELECTION event by selecting a line.
    Hopr This Will help You.
    Regards,
    Sujit

Maybe you are looking for