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.

Similar Messages

  • Setting pf-status on selection screen isue...

    Hello Gurus,
    I have a sample code as below. Now when I execute this one system automotically creates a default application tool bar, menu bar, etc.
    Now, I have a requirement where I have to add a custom button in application toolbar but the other default stuff should work as it is like back buttin, variant button.
    How can I do this ? I defined a pf-status creating anew program and tried to use as follows but it does not show the new pf-status.
    SELECTION-SCREEN COMMENT /1(50) COMM1.
    SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
        parameters:
                max_res(8) default '20'.
    SELECTION-SCREEN END OF SCREEN 100.
    SELECTION-SCREEN: BEGIN OF TABBED BLOCK tab_block FOR 5 LINES,
      TAB (20) tab1 USER-COMMAND tabpush1
      DEFAULT SCREEN 100,
      END OF BLOCK tab_block.
    start-of-selection.
    set pf-status 'INDEXSCREEN' OF PROGRAM 'ZINDEX'.
    Please help.
    Regards,
    Rajesh.

    hi,
    In your program, just use
    Set PF-STATUS 'TEST'.
    Double click on TEST, it forward navigates to a new screen where you need to give values for function keys i.e. if any required application tool bar buttons, you have icons over there which show BACK , CANCEL  and exit.
    Just fill the blanks with the above values.
    In your program use the statement AT USER-COMMAND.
    check for sy-ucomm value using.
    CASE sy-ucomm.
    WHEN 'FC05'. " This is ex. function code you assign to a key in the application toolbar for custome button
    PROCESS.
    when 'BACK' OR 'CANCEL' OR 'EXIT'.
    LEAVE TO SCREEN 0.
    ENDCASE.
    Thanks and regards
    Sharath

  • Where will i use SET-PF-STATUS?

    HOW TO CREATE MENUBAR,TITILE BAR,APPLICATION? IN MY PROGRAM BELOW.......
    REPORT YINTERACTIVEPROGRAM02 NO STANDARD PAGE HEADING.
    TABLES:YEMPLOYEE,YEMPLOYEEDB.
    TYPES: BEGIN OF TY_EMPLOYEE,
            EMP_ID TYPE YEMPLOYEE-EMP_ID,
            EMP_NAME TYPE YEMPLOYEE-EMP_NAME,
            EMP_ADDR TYPE YEMPLOYEE-EMP_ADDR,
            EMP_PROFILE TYPE YEMPLOYEE-EMP_PROFILE,
          END OF TY_EMPLOYEE.
    DATA:I_EMPLOYEE TYPE STANDARD TABLE OF TY_EMPLOYEE WITH HEADER LINE.
    START-OF-SELECTION.
      SELECT * FROM YEMPLOYEE INTO CORRESPONDING FIELDS OF TABLE I_EMPLOYEE.
      LOOP AT i_EMPLOYEE.
        WRITE: I_EMPLOYEE-EMP_ID,'               ',
               I_EMPLOYEE-EMP_NAME,'        ',
               I_EMPLOYEE-EMP_ADDR,'       ',
               I_EMPLOYEE-EMP_PROFILE.
               HIDE:I_EMPLOYEE-EMP_ID.
               SKIP.
      ENDLOOP.
    TOP-OF-PAGE.
      WRITE: 'PRODUCT INFORMATION'.
      SKIP.
      WRITE: 'EMPLOYEE ID      ',
             'EMPLOYEE NAME    ',
             'EMPLOYEE ADDR                        ',
             'EMPLOYEE PROFILE'.
      ULINE.
    END-OF-PAGE.
      WRITE: 'ENJOY'.
    END-OF-SELECTION.
    AT LINE-SELECTION.
      CHECK SY-LSIND = 1.
      WINDOW STARTING AT 10 5
             ENDING AT   99 12.
      WRITE: 'YOU HAVE SELECTED ITEM:'.
      ULINE.
      WRITE: 'EMPLOYEE ID      ',
             'EMPLOYEE NAME    ',
             'EMPLOYEE ADDR                  ',
             'EMPLOYEE PROFILE'.
      ULINE.
      SKIP.
      WRITE:SY-LISEL.
      ULINE.
      SELECT * FROM YEMPLOYEEDB WHERE EMP_ID = I_EMPLOYEE-EMP_ID.
        WRITE:'EMP_AGE  '.
        WRITE:'EMP_GENDER'.
        SKIP.
        WRITE:YEMPLOYEEDB-EMP_AGE.
        WRITE:'         '.
        WRITE:YEMPLOYEEDB-EMP_GENDER.
      ENDSELECT.
      IF SY-SUBRC <> 0.
        WRITE:  'NO DATA FOR SELECTED ITEM'.
      ENDIF.

    Hi,
    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. For further information about this, refer to the Menu Painter documentation.
    Each status has a name which may be up to 8 characters long.
    Setting a status makes the functions contained therein selectable.
    This method allows you to vary the available functions according to the current screen, list level and/or previous program flow.
    The current status is stored in the system field SY-PFKEY.
    A status remains valid for the duration of a transaction or until you set a new status.
    Note
    You can use a namespace prefix with status names.
    Example
    Event in program:
    START-OF-SELECTION.
      SET PF-STATUS 'MAIN'.
      WRITE SY-PFKEY.
    AT USER-COMMAND.
      CASE SY-UCOMM.
        WHEN 'F001'.
          SET PF-STATUS '0001'.
          WRITE SY-PFKEY.
      ENDCASE.
    Produces a list (contents MAIN) with a GUI framework which allows you to select functions assigned to the the status MAIN. If you choose the function code F001 (e.g. from the menu or by pressing a pushbutton), you trigger the event AT USER-COMMAND. This generates a secondary list (contents 0001) with a GUI framework which allows you to select functions assigned to the status 0001. On returning from the secondary list to the basic list the status MAIN is reactivated.
    Example
    PBO module:
    MODULE PBO_100 OUTPUT.
      SET PF-STATUS 'S001'.
    ENDMODULE.
    Displays the screen 100 with a GUI framework which allows you to select functions assigned to the status S001.
    Note
    If you want to set a status for a screen, you must do so during the PBO event. The system always searches for the status pfstat in the GUI of the main program of the current program group . (However, see also the addition OF PROGRAM progname.)
    Example
    PROGRAM PROGRAM1.
    PERFORM UP1 IN PROGRAM PROGRAM2.
    PROGRAM PROGRAM2.
    FORM UP1.
    SET PF-STATUS 'ABCD'
    ENDFORM:
    The status ABCD of program PROGRAM1 is activated if PROGRAM1 is the program specified in the transaction definition.
    Notes
    If no GUI is defined in the list processing (or it is deactivated with SET PF-STATUS SPACE), the system supplies a standard user interface.
    This statement converts the contents of the field pfstat to type C. The converted value is used to search for the desired status. Since the conversion employs the standard conversion rules as for MOVE, you should use a field of type C for pfstat to avoid unwanted conversions. In this case, a field of type I with a value of 12 would give the key ' 12 '.
    Addition 1
    ... EXCLUDING f ... EXCLUDING itab
    Effect
    Deactivates one or more of the status functions, so that they cannot be selected. Specify the appropriate function codes using one of the following:
    a field f or a literal which contains a function code
    an internal table itab which contains several function codes
    This method allows you to modify the selectable functions of a status easily at runtime.
    Example
    DATA: itab TYPE TABLE OF sy-ucomm.
    APPEND 'DELE' TO itab.
    APPEND 'PICK' TO itab.
    SET PF-STATUS 'STA3' EXCLUDING itab.
    Sets the status STA3 which renders the functions with the function codes DELE and PICK inactive.
    Addition 2
    ... IMMEDIATELY
    Effect
    List processing: The status becomes effective for the last list displayed and is not flagged for the next secondary list. In screen processing, this addition has no effect because every status becomes immediately effective anyway.
    Example
    Event in program:
    START-OF-SELECTION.
      SET PF-STATUS 'MAIN'.
      WRITE SY-PFKEY.
    AT USER-COMMAND.
      CASE SY-UCOMM.
        WHEN 'F002'.
          SET PF-STATUS '0002' IMMEDIATELY.
          EXIT.
      ENDCASE.
    Selecting the function F002 in the basic list (contents MAIN, status MAIN) redisplays the basic list, but this time with the status 0002.
    Note
    Without the addition ... IMMEDIATELY, the old status MAIN becomes active again.
    Addition 3
    ... OF PROGRAM progname
    Effect
    The system does not look for the status pfstat in the GUI of the main program of the current program group, but in the program whose name is specified in the field progname.
    Note
    Only use this addition if the status contains no dynamic texts.
    Since the system searches for the texts in the program to which the status belongs (that is, in program progname) the calling program will not be able to fill the dynamic texts. External statuses containing dynamic texts should be assigned to a function group, and activated by a function module that both fills the dynamic text fields and sets the status.
    Example
    DATA PROGR LIKE SY-REPID.
    MOVE 'TESTPROG' TO PROG.
    SET PF-STATUS 'ABCD' OF PROGRAM PROG.
    The system activates the status ABCD of program TESTPROG.
    Note
    You can use the OF PROGRAM addition in conjunction with the EXCLUDING itab and IMMEDIATLEY additions.
    Regards,
    PRitha.
    Reward if helpful

  • 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

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

  • Help needed on ALV variant with new GUI screen is created by set PF status

    Hi Gurus,
    I have created a new GUI screen for ALV grid display thru set pf-status, since i need two buttons on application toolbar.
    have been passing parameters to alv_grid_display FM for display-*
    i_save            = 'A'
    is_variant        = gwa_variant
    I have an ALV variant selection paramter on selection screen.
    Please guide me with some pointers on how to implement ALV variant selection thru selection screen.
    Many Thanks,
    Madan

    Hi,
    Search default variant for the report
      CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
           EXPORTING
                i_save     = 'A'
           CHANGING
                cs_variant = i_variant1
           EXCEPTIONS
                not_found  = 2.
    If default variant is found , use it as default.
    Else , use the variant LAYOUT1.
      IF sy-subrc = 0.
        p_var = i_variant1-variant.
      ELSE.
        p_var = 'LAYOUT1'.
      ENDIF.
    endform.                    " SUB_VARIANT_INIT
    *&      Form  SUB_CHECK_PVAR
    Once the user has entered variant, check about its existence
    FORM SUB_CHECK_PVAR.
    If the name of the variable is not blank, check about its existence
    if not p_var is initial.
      clear i_variant.
      i_variant-report = sy-repid.
      i_variant-variant = p_var.
      CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'
             EXPORTING
                  I_SAVE     = 'A'
             CHANGING
                  CS_VARIANT = I_VARIANT.
    If no such variant found , flash error message
         if sy-subrc ne 0 .
          message e398(00) with 'No such variant exists'.
         else.
    If variant exists , use the variant name to populate structure
    I_VARIANT1 which will be used for export parameter : IS_VARIANT
    in the function module : REUSE_ALV_GRID_DISPLAY
           clear i_variant1.
           move p_var to i_variant1-variant.
           move sy-repid to i_variant1-report.
         endif.
    else.
       clear i_variant.
    endif.
    ENDFORM.                    " SUB_CHECK_PVAR
    *&      Form  SUB_VARIANT_F4
    Display a list of various variants of the report when the
    user presses F4 key in the variant field
    form SUB_VARIANT_F4.
    i_variant-report = sy-repid.
    Utilising the name of the report , this function module will
    search for a list of variants and will fetch the selected one into
    the parameter field for variants
    CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
           EXPORTING
                IS_VARIANT         = I_VARIANT
                I_SAVE             = 'A'
                I_DISPLAY_VIA_GRID = 'X'
           IMPORTING
                ES_VARIANT         = I_VARIANT1
           EXCEPTIONS
                NOT_FOUND          = 1
                PROGRAM_ERROR      = 2
                OTHERS             = 3.
      IF SY-SUBRC = 0.
        P_VAR = I_VARIANT1-VARIANT.
    ENDIF.
    endform.                    " SUB_VARIANT_F4
    Thanks
    Ashu

  • I am not able to close the popup screen which i created using module pool

    Hi,
    I had written the following code in my PBO of the screen
    PROCESS BEFORE OUTPUT.
    MODULE status_0300.
      MODULE call_list_0300.
    PROCESS AFTER INPUT.
      MODULE exit AT EXIT-COMMAND.
    MODULE USER_COMMAND_0300.
    *&      Module  call_list_300 OUTPUT
    MODULE call_list_0300 OUTPUT.
      LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
      SET PF-STATUS '300'.
      SUPPRESS DIALOG.
      PERFORM get_document_text.
    ENDMODULE.
    *& FORM get_document_text.
    FORM get_document_text.
    ENDFORM
    when i execute... since the screen is directed to list processing, when i click the close button the popup window is not getting closed
    what should i do to close the list processing screen

    If your screen is popup screen than your PF-Status must be type of "Dialog Box".
    Than you will get the buttons at the bottom part of your pop-up which will allow you to interact with your PAI.
    Regards,
    Naimesh Patel

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

  • Popup screen not working after upgrade to APEX 3.0

    Hi,
    I have upgraded my APEX installation from version 1.6 to version 3. My application has some popup screens that are displayed when a user presses a button. These popups have now stop working and when you press them, the user is presented with the login page.
    I suspect this is because I am not passing the SESSION value in the URL when the page is displayed. The following code is the javascript that is called from one of the buttons :-
    function sa_popup2() {
    var field_value = document.getElementById("f22@0").value;
    if ( document.getElementById("f22@0").value != "" ) {
    var enqNo = document.getElementById("P17_ENQUIRY_NO") ? document.getElementById("P17_ENQUIRY_NO").value : -1;
    var enqLineNo = wwv_flow.f02[0].value;
    var str=document.getElementById("P17_PROCESS_CHRG_INCL").value;
    var outstring = str.replace(/%null%/,"");
    windowAddress = 'f?p=200:228:::::P228_CUS_ID,P228_ENQ_STATUS,P228_PROCESSING_CHRG,P228_ENQUIRY_NO,P228_ENQUIRY_LINE_NO:'+document.getElementById("P17_CUS_ID").value+','+document.getElementById("P17_ENQ_STATUS").value+','+outstring + ',' + enqNo + ',' + enqLineNo ;
    w = open(windowAddress,"winhelp","Scrollbars=1,resizable=1,width=500,height=350");
    You can see from the above that when the windowaddress variable is set it does not include the session value. In APEX 1.6 when the popup is displayed the SESSION is automatically populated in the URL, but in APEX 3 it is not populating.
    Is there a way I can get this to continue working without changing my javascript function. This approach has been used throughout my applications, and I do not want to have to change the code if I don't need to.
    Rgds
    Paul

    Hi Paul,
    Yes, as you suspect, it's the fact that you're not passing the session across. I would definitely recommend recoding to include the session.

  • How to set PF status title in module pool.If we are executing it in VA01

    Hi all!
    I a executing my screen in module pool.I set the title for my screen.While i a executing i am getting title in the screen like pf status title only. But if i am executing that screen through VA01.I am not getting title and at the same time it is capturing the VA01 title.But i want the title as the se51 pf status screen title.Plz give me the solution

    Hi,
    I think you should assign your program at the
    'Output types' using tcode: NACE.
    thanks|
    Mahesh

  • 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

  • Data is not saving in to DB from POPUP screen.

    Hi,
    I am opening a popup screen on button click and On the popup screen, I have added the VO as form with submit button.
    On the popup fetchlistener, I calling a bean method to invoke the createInsert action as follows.
    public String createSubs() {
    System.out.println("Inside Action Event*********************");
    try{
    AdfFacesContext adf = AdfFacesContext.getCurrentInstance();
    BindingContainer bc = getBindings();
    oracle.binding.OperationBinding opb = bc.getOperationBinding("Create");
    opb.execute();
    }catch(Exception e){
    e.printStackTrace();
    return "";
    public BindingContainer getBindings() {
    return BindingContext.getCurrent().getCurrentBindingsEntry();
    When I am clicking on submit button in popup screen, data is appearing on the mainpage table but the same is not saving in the database. One more I have observed that doDML is not calling means SOP's are not comming from doDML method in the entity class.
    Please do the needful, its an urgent issue to reslove.
    Thanks in Advance,
    user5802014

    HI,
    Can you please specify that for your attributes CreatedBy and CreationDate , are you using automatic insert value from your entity or not? Or you are passing default values programatically in doDML() method.
    I guess for every new row your are using User name for CreatedBy field and current date for CreationDate field,
    Why don't you set these field at the time of creation of new row, Override Create() method in your entity bean and then you can set these fields to there default values. and now you should remove Mandatory property to unchecked for these fields in entity also.
    like i'm doing here - I'm setting sequence number as default to field insertedLineNo
        protected void create(AttributeList attributeList) {
            SequenceImpl seq = new SequenceImpl("NUMBER_SEQ", getDBTransaction());
            Number seqNum = seq.getSequenceNumber();
            setInsertedLineNo(seqNum);
            super.create(attributeList);
        }Hope this will help you, and let me know if this helps you.
    Fizzz...

  • I am working with Acrobat XI and when I try to add text to geopdf file I get a popup screen that says this is a secured document and editing is not permitted. How do I fix this?

    I am working with Acrobat XI and when I try to add text to a geopdf file I get a popup screen that says this is a secured document and editing is not permitted. How do I fix this?

    I figured it out...needed to use comment tool set, not the editing tool set.

  • Need help on POPUP screen  in web ui

    Hi Experts,
    I have created popup screen in the eh_onsave method .Now it is triggering, in this popup it is displaying YES, NO and CANEL buttons. But i want to change the standard buttons descriptions. how to do ?
    I have created custom buttons and displaying as  ACCEPT, REJECT AND CHANGE on the popup screen. if I click any button on the popup is returning same event id, i have seen in debugging custo_btn .
    below is my code.
    ls_button-id = 'ACCEPT'.
      ls_button-text = 'Accept'.
      ls_button-on_click = 'ACCEPT'.
      ls_button-on_select = 'ACCP'.
      append ls_button to lt_buttons.
      clear ls_button.
      ls_button-id = 'REJECT'.
      ls_button-text = 'Reject'.
      ls_button-on_click = 'REJECT'.
      append ls_button to lt_buttons.
      clear ls_button.
      ls_button-id = 'CHANGE'.
      ls_button-text = 'Change'.
      ls_button-on_click = 'CHANGE'.
      append ls_button to lt_buttons.
      clear ls_button.
      call method comp_controller->window_manager->create_popup_2_confirm
        exporting
          iv_title          = 'Vary Item Proposal'
          iv_text           = lv_text
          iv_btncombination = if_bsp_wd_window_manager=>co_btncomb_custom
          iv_custombuttons  = lt_buttons
        receiving
          rv_result         = gv_confirm_popup.
      gv_confirm_popup->set_on_close_event(  iv_view = me
                                             iv_event_name = 'CONFIRM_POPUP_CLOSED' ).
      gv_confirm_popup->open( ).
    ethod EH_ONCONFIRM_POPUP_CLOSED.
    Added by wizard: Handler for event 'CONFIRM_POPUP_CLOSED'
    INCLUDE: crm_object_types_con.
    DATA: lv_answer TYPE string.
    lv_answer = GV_confirm_popup->get_fired_outbound_plug( ).
    CASE lv_answer. "Here i am getting the same id for any button.
    WHEN cl_gs_ptc_bspwdcomponent_cn01=>co_event_yes.
    WHEN cl_gs_ptc_bspwdcomponent_cn01=>co_event_no.
    WHEN OTHERS.
    ENDCASE.
    Please help me.
    Thanks,
    Venky

    Hi Venky
    Try to Implement the below lines along with other lines while building the button, apart from that check ON_CLIENT_CLICK also (instead of on_click use the on_client_click)
    ls_button-enabled = 'X'.
    More over I checked your code in the CASE statement you are using the stanadrad constants like co_event_yes , but you are setting the event with other names pls check that also.
    now your code will look like this
    ls_button-id = 'ACCEPT'.
    ls_button-text = 'Accept'.
    ls_button-enabled = 'X'.
    ls_button-on_client_click = 'ACCEPT'.
    ls_button-on_select = 'ACCP'.
    append ls_button to lt_buttons.
    clear ls_button.
    hope this helps.
    Thanks & Regards
    Raj
    Edited by: bmsraj on Sep 21, 2011 7:06 PM

Maybe you are looking for

  • Locking when using a component as an object in the application scope...

    I have a component that I am building right now that hold application settings that are stored in a database table. The settings are maintained in a structure "variables.settings" within the component and can only be accessed by get and set methods.

  • The case structure is not working well on comaring two strings using true or false string matching VI

    I need an execution of commands after the reply from the instrument matches with the string I provided for that i used true or false string match VI on which the true string the matching command and the string is the reply from the instrument. And I

  • Sales Document Filed in F-37 and F-29 T.codes

    Hi All My client is using SAP R/3 4.6C Version. When i'm posting a document in F-37 or F-29 (Customer Down Payment Request or Customer Down payments) I want to link the down payment to the Sales Document. For that I need the Sales Document Field and

  • Can One Export Contacts w/ iPad2?

    The first thing I wanted to do when I purchased my iPad 2 wasto export my contacts from Backup Assistant to my brand new iPad 2. Only problem is the export feature on the website doesn't seem to be available on my iPad. How can I do this? All I want

  • Apple HD 23" Screen

    I have a 23" Apple HD Screen connected to my Mac Mini (G4) and for unknown reasons and randomly the screen powers down and back up again. Any ideas why this might happen? Anyone else have this issue?