Set pf-status

Hi gurus.
i m created one program with tabstrip. i have give two tab on tabstrip and display data in tablecontrol by using subscreen.
i m given set pf-status 'ABC'.when i run the program i have got
lines on screen and got the message 'a status cannot set in sub screen'. i hav already define in set pf-status in both screen. and also check pf-status active.
i cannot understand where is problem ?
can any one give me any idea about this.
Best Regards
pravin

Hi ,
SET PF-STATUS 'ABC'.
it is Sets a GUI (Graphical User Interface) status pfstat which can be up to 20 characters long. There are many of these statuses in the GUI of a program. Each one describes which functions are available and how you can select these via menus and menu bars or by pressing function keys or pushbuttons.
I think u need to create the new screen and use that one in proper place..
Regards,
Bharani

Similar Messages

  • Set pf status in alv oops concept

    Hi all,
    can any one pls tell me  by using which method or class  i can set the
    pf status......?  
    regards
    cnu

    Fast and Easy way
    As you are using OO ALV, remove any function not needed from the ALV via parameter IT_TOOLBAR_EXCLUDING of method set_table_for_first_display and put your own function in the menu of your dynpro PBO via SET PF-STATUS.
    Nethertheless you can use a more complew way using :
    <b>Changing Standard Functions</b>
    Purpose
    The standard functions are not designed for specific applications. As a result, special knowledge of the data displayed cannot be considered. In individual cases, you may design a standard function - such as sorting by a specific column - more effectively in a specific application.
    Process Flow
    1. Define an event handler method for event before_user_command [Page 108]. This event is triggered after the user has selected a function. This means that the ALV Grid Control passes control to the application before the function is executed. Using event parameter I_UCOMM you can restrict the function code to the function you want to modify.
    2. Implement your own algorithm for the function within the event handler method. In this context, you can call methods of the ALV Grid Control.
    3. Reset the function code to ensure that the standard function is no longer executed:
    CALL METHOD <Instance of the ALV Ccntrol>->set_user_command exporting I_UCOMM = SPACE.
    If you never need specific functions of the tool bar, you can hide them for the entire life-cycle of the control. To do this, you use parameter IT_TOOLBAR_EXCLUDING of method set_table_for_first_display  to pass a table that contains the function codes to be hidden.
    <b>Defining GUI Elements in the Toolbar</b>
    Process Flow
    1. Define an event handler method for event TOOLBAR.
    2. Declare a structure for defining a toolbar element:
    data: ls_toolbar TYPE stb_button.
    3. For a pushbutton, for example, you would fill the following fields:
    CLEAR ls_toolbar. MOVE 0 TO ls_toolbar-butn_type.
    MOVE 'BOOKINGS' TO ls_toolbar-function.
    MOVE icon_employee TO ls_toolbar-icon.
    MOVE 'Show Bookings'(111) TO ls_toolbar-quickinfo. MOVE SPACE TO ls_toolbar-disabled.
    In the butn_type field, you specify the type of the GUI element for the ALV Grid Control. For possible values, see the value range of domain TB_BTYPE.
    4. Use event parameter E_OBJECT to append the new definition to table mt_toolbar:
    APPEND ls_toolbar TO e_object->mt_toolbar.
    5. If you want to define additional elements, go back to step 3.
    6. Call method set_toolbar_interactive, if you want to rebuild the toolbar.
    Result
    In the event handler method of event USER_COMMAND, you can query the function code you specified in field function to implement the associated function.
    See also report BCALV_GRID_05 in development class SLIS.
    Look at this documentation too : <a href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVALV/BCSRVALV.pdf">ALV Gird Control (BC-SRV-ALV)</a>
    Regards

  • Set PF status in popup screen

    Hi ,
    I m creating a ALV report ,in that using set PF status i created push button , in alv output list if i click the push button pop up screen will come in that popup screen it displays the previous PF status, how to add my own PF status in that popup screen
    thanks

    Hi,
    You must have created other screen for the pop up say suppose 9002.
    then we need to write the code in 9002 PBO.
    *&      Module  STATUS_9002  OUTPUT
    *       text
    MODULE status_9002 OUTPUT.
      SET PF-STATUS 'ZNOT3'.
      SET TITLEBAR 'ZTNOT3'.
    ENDMODULE.                 " STATUS_9002  OUTPUT
    Here 'ZNOT3' is is the PF STATUS that ius made according to our need.
    It is recommend that you copy standard status'STANDARD' from function group SALV and modify it accordingly. ALV standard function codes always start with '&'.
    Hope this will help you.
    Thanks,
    Dhanashri.

  • In Standard Report Of ALV How Can Set PF Status.

    In Standard Report Of ALV How Can Set PF Status.
    Thanking in anticipation.

    in the call function module, you pass the PF status parameter.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program       = pgm
       <i> <u>  i_callback_pf_status_set = 'SET_PF_STATUS'</u></i>
          it_fieldcat              = fieldcat
          is_variant               = disvariant
          is_layout                = layout
          is_print                 = print
          i_save                   = 'A'
          it_events                = eventcat
          it_sort                  = sortcat
          i_callback_user_command  = 'USER_COMMAND'
        TABLES
          t_outtab                 = a_output
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
    ENDFORM.                    "LIST_DISPLAY
    FORM SET_PF_STATUS *
    FORM set_pf_status USING extab TYPE slis_t_extab.
      SET PF-STATUS 'ZZSTD'.
    ENDFORM.                    "set_pf_status
    Here double Click on ZZSTD. IT will take you to a different screen and you have to set it.
    Ster.

  • How to call set pf-status in 4.6C system ALV report

    Hi All,
    Am calling set pf-status as
    form MAIN using rt_extab type slis_t_extab
    set pf-status 'MAIN' excluding rt_extab.
    ENDFORM.
    and giving that PF-STATUS name in FM
    "REUSE_ALV_GRID_DISPLAY"
    but in out put my pf-status is not calling.
    Its working fine in ECC 6.0 systems.
    Can any one help me regarding the same
    Thanks in Advance
    Regards
    SAI

    Post relevant portion of your code to analyse. No point in shooting arrows in the dark.

  • Set PF-STATUS and use SY-UCOMM in an Exit FM

    Hi,
    I am working on an Exit function, and I am trying to read the screen status and then the user's actions, so that I could code for the SY-UCOMM. For some reason, my program is not working. Is it possible to add the PF-STATUS and SY-UCOMM to the Exit function to process the user's actions? Please advise.
    Thanks,
    RT

    Hi Ravikumar,
    I was able to use the parameters in the Exit provided in the Exit FM to process the necessary data. I have other requirements where I would have to code in the Exit FM to detect the user's actions and process them within the Exit to manipulate the tables. I added some code specified in the previous post, but it doesn't seem to get the OK_CODE; therefore, no processing of the data was happening when I tested by clicking on the yellow arrow to exit. I am able to determine the OK_CODE though.
    Would you have any sample code suggestions when using the Exit for SET PF-STATUS and SY-UCOMM?
    Thanks so much.
    RT

  • ODS Problem - Could not forcefully set the status of the request

    Hello GURUS!
      We encountered an error while activating an ods object:
    <i>"Request REQU_41H61CY8SUS7IX4787ARFXLOM (activation request ODSR_41I8ZUA35YKRALSBFPBB0GWZQ) is marked as incorrect for data package 000000 (DP 0 is the entry for the entire request, which is the only one to remain in the control table after successful activation)."</i>
    We tried to forcefully set the status to <b>green</b> as what we normally do when this happens but it still stays <b>red</b>.
    Need your help on this!
    Thanks,
    Jeffrey

    Hello JeFFreY,
    how r u ?
    You can delete that failed request, then check the PSA for errors, if errors are there delete the PSA data.
    Carry on a new data load with the option in the Scheduling screen -> PROCESSING tab as ONLY PSA. Now check the data for the errors and change it if error exists. Then give context menu on the request and select Start the Update Immediately. Now see in the ODS. what happens ?
    Best Regards....
    Sankar Kumar

  • Unable to set header status - VBUK-UVALL in USEREXIT_SAVE_DOCUMENT_PREPARE

    Hi,
    I need some advice in setting header status in table VBUK field UVALL in user exit MV45AFZZ - USEREXIT_SAVE_DOCUMENT_PREPARE. I am unable to set this field in this userexit.
    I create an enhancement implementation in user exit USEREXIT_SAVE_DOCUMENT_PREPARE in MV45AFZZ. In my enhancement code, I have a perform statement which is in a Z include program. In my perform statement, I check a condition, if the line item text is not populated, then  I would like to set XVBUK-UVALS to B. In the code, I set the fields as follow :
    XVBUK-UVALS = 'B'
    XVBUK-UPDKZ = 'U'.
    After the sales order is saved, when I checked in table VBUK-UVALS, the field is not updated.
    Could anyone please provide me with some advice on how I could set the status in VBUK-UVALS in the user exit ? Should I be using another user exit ?
    Any advice would be much appreciated.
    Thanks,
    Virginia

    Hi,
    Similiar to the statements given by you add following statements.
    VBUK-UVALS = 'B'
    VBUK-UPDKZ = 'U'.
    Regards
    Vinod

  • 'SET PF-STATUS EXCLUDING fcode' not working in Selection Screen event

    Hi all,
    I am trying to set PF-Status dynamically in Selection Screen based on Radio button.
    For that i have inserted following code under event --> AT SELECTION-SCREEN OUTPUT
    * SELECTION SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECTION-SCREEN SKIP 1.
    PARAMETERS: s_inc  RADIOBUTTON GROUP rad DEFAULT 'X'
                       USER-COMMAND inc MODIF ID mod,
                p_inc(10) MODIF ID m1,
                s_lbr  RADIOBUTTON GROUP rad,
                p_lbr(10) MODIF ID m2.
    SELECTION-SCREEN END OF BLOCK b1.
    *  AT SELECTION-SCREEN OUTPUT
    AT SELECTION-SCREEN OUTPUT.
      REFRESH fcode.
      IF s_inc IS INITIAL.
        APPEND 'CRTE' TO fcode.
        APPEND 'CHNG' TO fcode.
        APPEND 'DISP' TO fcode.
        APPEND 'PRNI' TO fcode.
        APPEND 'CRTL' TO fcode.
        SET PF-STATUS 'STATUS_IN' EXCLUDING fcode.
      ELSE.
        SET PF-STATUS 'STATUS_IN'.
      ENDIF.
    Though s_inc is initial, i can see all the buttons from Status 'STATUS_IN' after execution of above code. EXCLUDING statement is not taking any effect which we normally get in Module pool program.
    Please tell me what went wrong in above code?

    Problem solved ......Thanks Keshav,
    Giving code correction -->
    * SELECTION SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECTION-SCREEN SKIP 1.
    PARAMETERS: s_inc  RADIOBUTTON GROUP rad DEFAULT 'X'
                       USER-COMMAND inc MODIF ID mod,
                p_inc(10) MODIF ID m1,
                s_lbr  RADIOBUTTON GROUP rad,
                p_lbr(10) MODIF ID m2.
    SELECTION-SCREEN END OF BLOCK b1.
    *  AT SELECTION-SCREEN OUTPUT
    AT SELECTION-SCREEN OUTPUT.
      REFRESH fcode.
      IF s_inc IS INITIAL.
        APPEND 'CRTI' TO fcode.
        APPEND 'CHGI' TO fcode.
        APPEND 'DISI' TO fcode.
        APPEND 'DELI' TO fcode.
        APPEND 'PRNI' TO fcode.
        APPEND 'CRTL' TO fcode.
        APPEND 'DATA' TO fcode.
      ELSE.
        APPEND 'CHGL' TO fcode.
        APPEND 'DISL' TO fcode.
        APPEND 'PRNL' TO fcode.
      ENDIF.
      CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
        EXPORTING
          p_status        = 'STATUS_IN'
          P_PROGRAM       = sy-repid
        TABLES
          p_exclude       = fcode

  • How to set window.status when returning to a page with back button/list?

    It is easy enough to set window.status to application-oriented information when loading a page: do it in a function which is the onload handler for the page's body element. But, when returning to this window from another window with the second window's back button, or selecting the first window from the second window's back list, window.status gets set to browser-oriented information, usually the string "Done". Is there any means by which I can set window.status to application-oriented information when returning to the window via another window's back button/list? What would be really great is if there is an event handler like this:
    window.onreturnviaback = onreturn_via_backhandler;
    Any ideas?

    How about:
    - (void)viewWillAppear:(BOOL)animated
    I use that a lot.

  • Setting the status code on 404

    Hi All,
    I have my web.xml file pointing 404 errors to /404.jsp on my web server (Apache/Tomcat).
    The code for 404.jsp is
    <%
    // Set the header response to a 404 and no-caching
    response.setStatus(response.SC_NOT_FOUND);
    response.setHeader("Cache-Control","no-cache");
    %>
    <jsp:include page="/404message.jsp"/>
    404message.jsp contains html and some other jsp scriptlets to display a nicely formatted error page that fits with the look and feel of the web site I am currently working on. I have to set the status like this otherwise the 404 error returns a response of 200 which is no good for the statistics program we run on the site.
    It all seems to work wonderfully except that in the localhost log for tomcat I get the following exception even though everything seems to work fine.
    2005-04-21 16:11:12 ErrorDispatcherValve[alligator]: Exception Processing ErrorPage[errorCode=404, location=/404.jsp]
    java.lang.IllegalStateException: Cannot reset after response has been committed
    at org.apache.catalina.connector.ResponseBase.reset(ResponseBase.java:789)
    at org.apache.catalina.connector.HttpResponseBase.reset(HttpResponseBase.java:812)
    and so on....
    Anybody point me in the right direction on this, any help much appreciated??
    Cheers,
    Beno..

    Just wanted to bring this one back to the front as had a zero response.
    Anyone shed any light on it for me??
    Cheers,
    Beno..

  • How to set the status for a customer plan to RELEASED.

    Hello all,
    I created a program for mass creation of customer plans. But after the creation of a plan, the status should be set to released, so that the user can go about creating the trade promotions for the customer plan. Can anybody tell me how to set the status of a customer plan to RELEASED.
    Thanks,
    Disha.

    Hi Clemens,
    I am not talking about doing it in the CRM_UI transaction..I created a program..which would create the customer plans based on the planning account data provided. I was succesfull in creating the plans, but I am not knowing how to release it, if only anybody can tell me about a Function module or method, which can help me do this, that would be great
    Thanks,
    Disha.

  • Setting Workflow status not working in imported workflow from SPD to Visual Studio

    Hi all,
    I have created SPD workflow and imported in visual studio. When I deploy imported Workflow using visual studio feature I found that Setting Workflow Status action is not working. Do I need to change Set Workflow status activity in Visual studio to make it
    work.
    Rohit Pasrija

    Hi,
    According to your post, my understanding is that Setting Workflow status did not work in imported workflow from SharePoint Designer to Visual Studio.
    I try to reproduce the issue and the result is the same as yours.
    After I import the workflow, choose the .xoml file, the view is as below:
    To troubleshooting the issue, I add a new item to the project and select “Sequential Workflow” in the template.
    After I click the Tool, I find that there don’t have the “SetCustomWorkflowStatus1” activity.
    To set the status of the state, we need to use the “Set State” Activity in the “SharePoint Workflow” toolbar.
    That is the reason why the “SetCustomWorkflowStatus1” activity does no work.
    More information:
    Apply Custom Values to Visual Studio Workflow Statuses
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • How to set 'error' status with DB poll Adapter in OSB

    1. Configured DB Adapter to poll rows with status 'notprocessed' and set the status to 'processed'
    2. Configured FTP Adapter to write fetched rows from DB into a CSV file
    Now my requirement is if any error like FTP server is not available, how to set the status in DB table to 'error'

    Yes Vlad you are right, this will avoid another DB connection created in Error Handler.
    I hope this will provide some lights on the usefulness of "Transaction"
    http://www.nysolutionsltd.com/transaction-handling-in-oracle-service-bus/
    http://kd-blog-tech.blogspot.com.au/2010/12/transaction-management-for-osb-service.html
    Regards
    RK
    Edited by: RK.. on 27/03/2013 17:10

  • Can i set pf-status in print preview of form

    I want to download a smartform in pdf after viewing the print preview .
    For that i want to give a button / menu  in the form print preview page.
    can i set pf-status for that ?

    Hi,
    Please find the Snippet below
    *Calling the Function Module of the SmartForm
      CALL FUNCTION l_fmodule
        EXPORTING
          CONTROL_PARAMETERS = wa_cparam
                         HEADER             = wa_emp
        IMPORTING
          JOB_OUTPUT_INFO    = it_otf_from_fm
        TABLES
          APPRAISALS         = it_emp1
        EXCEPTIONS
          FORMATTING_ERROR   = 1
          INTERNAL_ERROR     = 2
          SEND_ERROR         = 3
          USER_CANCELED      = 4
          OTHERS             = 5.
      IF SY-SUBRC <> 0.
        case sy-subrc.
          when 1.
            message e005.
          when 2.
            message e010.
        endcase.
      ENDIF.
      it_otf[] = it_otf_from_fm-otfdata[].
    *PDF Preview
      CALL FUNCTION 'SSFCOMP_PDF_PREVIEW'
        EXPORTING
                 I_OTF                    = it_otf[]
        EXCEPTIONS
          CONVERT_OTF_TO_PDF_ERROR = 1
          CNTL_ERROR               = 2
          OTHERS                   = 3.
      IF SY-SUBRC <> 0.
        case sy-subrc.
          when 1.
            message e006.
        endcase.
      ENDIF.
    *Converting into PDF Format
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          FORMAT                = 'PDF'
          MAX_LINEWIDTH         = 132
        IMPORTING
          BIN_FILESIZE          = l_bin_filesize
        TABLES
          OTF                   = IT_OTF
          LINES                 = IT_pdf_tab
        EXCEPTIONS
          ERR_MAX_LINEWIDTH     = 1
          ERR_FORMAT            = 2
          ERR_CONV_NOT_POSSIBLE = 3
          ERR_BAD_OTF           = 4
          OTHERS                = 5.
    Function Module 'SSFCOMP_PDF_PREVIEW' will Show the PDF Preview while executing the Driver Program.
    And the 'CONVERT_OTF' Function Module will convert it to the PDF.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          BIN_FILESIZE            = l_bin_filesize
          FILENAME                = l_FULL_PATH
          FILETYPE                = c_bin
        TABLES
          DATA_TAB                = IT_pdf_tab
    The Above function Module will Download the content of smart form in the PDF Format.
    This may help you.
    Thanks and Regards,
    Prakash K

  • Problem While Using SET PF-STATUS

    Hi friends,
    Here im doing a ALV interactive report , in which two buttons are placed DISPLAY  and CHANGE by using SET PF-STATUS ,when ever the user select a record on output and clicks on those button it ill navigate to corresponding transaction, all works fine but here im using Customised application toolbar in which im placing Two Customised Buttons(DISPLAY,CHANGE),standard functions like SORT,PRINT,SEARCH,TOTAL,SUBTOTAL... in the STATUS defined for my program.
    The problem is when Bulk data there in output TOTALSigma) not working and displays a message and another one is SUBTOTAL icon to be displayed after total is done in standard reports but here with Total icon the Subtotal icon is displaying in output.
    i need to get the SUBTOTAL icon only after the TOTAL is done,
    One Solution for this is we can Copy the Staus of Standard program into our customised Status in SE41 tcode, but im not able to get any  Status of STANDARD program along with my Customised icons(DISPLAY and CHANGE)..
    i hope i information provoded for the issue is enough to resolve the problem
    if not let met know for further clarifications needed.
    Regards,
    Niranjan. G

    Hi Niranjan,
    First copy standard status using program SAPLKKBL and status STANDARD_FULLSCREEN into your customized program and add your two buttons and code accordingly. It works.
    Regards
    Venkat

Maybe you are looking for

  • Names of attributes aren't case sensitive in ldif

    Hi I am using Netscape Directory Server version 4.16 on Solaris. I want to export the data to another ldap (Openldap). In the ldif file, all attributes are in lower case, and in Openldap's schema they are in lower and upper case (ex : createtimestamp

  • I Need Help In Deleting Table row by clicking on "Delete" button inside the

    Dear all, first i'm new to Swing i have created table with customized table model, i fill this table using 2d array, this table rows contains JButtons rendered using ButtonRenderer.java class and action listeners attached by the AbstractButtonEditor.

  • Problem Accessing RSS FEED

    I have an feed of this fomat and i am trying to create a reader in flex. I have used the datagrid to display the contents of the feed like title, link, description. I am using an http request and parsing the result object using e4x api. I am able to

  • VAT 50% & balance on hold account

    Hi, VAT is applicable for one asset purchase. i.e for capital items. So VAT input 50% will be eligible to claim in current year and balance % to be booked in to VAT on Hold account. This is to be automated without transfer posting.(journal  posting)

  • Podcast Image Problem!!!

    I am trying to start a new podcast using Blogger and Feedburner. http://retrorejects.blogspot.com/ http://feeds.feedburner.com/RetroRejects I uploaded the image in Feedburner and it appears in the iTunes Store Page: https://itunes.apple.com/gb/podcas