Reg: calling selection screen from the second list

Hi all,
How can we call the selection screen from the second screen.
Can any one help me to solve this problem.

HI RJ,
Try .....
case sy-ucomm.
WHEN '&F03'.
LEAVE TO SCREEN '0'.
endcase.
after the FM for grid-display
i m using the same .....
i hav selection-screen..then alv grid screen 1  then again another screen with alv grid display..
bt in my code for first alv grid ...i m using REUSE_ALV_GRID_DISPLAY_LVC
as
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
      EXPORTING
        i_callback_program       = sy-repid
        i_callback_pf_status_set = 'SET_PF_STATUS'(303)
        i_callback_user_command  = 'USER_COMMAND'(304)
        i_grid_title             = 'Reconcilation Report'(305)
        is_layout_lvc            = it_layout
        it_fieldcat_lvc          = gt_fieldcat3[]
      TABLES
        t_outtab                 = gt_msg[].
here i musing set_pf_status to add one pushbutton to the screen. in ur case u can avoid that...
after that
*&      Form  set_pf_status
      text
     -->EXTAB      text
FORM set_pf_status USING extab TYPE slis_t_extab.           "#EC NEEDED
  SET PF-STATUS 'STANDARD_FULLSCREEN'.
*get back to Selection Screen
  case sy-ucomm.
    WHEN '&F03'(328).
      LEAVE TO SCREEN '0'.
  endcase.
ENDFORM.                    "set_pf_status
its working for me..
Thnx
Rohit...
Edited by: Rohit Kumar on Oct 29, 2008 3:20 PM

Similar Messages

  • How to get additional field from the second list base on lookup information column ?

    Hi everyone,
    Currently I created a SharePoint hosted Apps project and I need to know how can I get additional field from the second list base on lookup information column. example List1 Have 2 columns column1 and column2(Lookup Information from list2 (category)),
    List2 have 3 columns title, and category, and color.  so how can get the title and color from list2 base on this lookup information column (SharePoint Hosted apps and Javascript code)? that is possible?
    Best regards,
    ------------------------------------------------------------ ---Tola---

    You can build one custom lookup control. Refer to the following post
    http://www.stuartroberts.net/index.php/2012/10/03/enhanced-lookup-field-part-1/
    Alternatively, try the following solution from codeplex
    http://sp2010filteredlookup.codeplex.com/
    http://filteredlookup.codeplex.com/
    --Cheers

  • Back on a CALL SELECTION-SCREEN from an ALV

    Hi all,
    I have created a program with a normal selection-screen (1000).
    According to the selected values, when I press "Execute" I go to a next selection-screen (2000) with instruction CALL SELECTION-SCREEN 2000.
    Then I display an ALV.
    When I press the back button, I want to go back to screen 2000, but actually I go directly to screen 1000.
    PARAMETERS : p_choic1 RADIOBUTTON GROUP cho DEFAULT 'X'.
    PARAMETERS : p_choic2 RADIOBUTTON GROUP cho.
    SELECTION-SCREEN BEGIN OF SCREEN 2000.
    PARAMETERS : p_table TYPE char10.
    SELECTION-SCREEN END OF SCREEN 2000.
    START-OF-SELECTION.
      IF NOT p_choic1 IS INITIAL.
        CALL SELECTION-SCREEN 2000.
        PERFORM alv_process.
      ENDIF.
    Have you got any idea of what I can do to return to screen 2000 from the ALV after pressing Back button ?
    Thanks.

    Hi,
    Follow below sample code...
    SELECTION-SCREEN BEGIN OF SCREEN 2000.
    PARAMETERS p_mat  TYPE matnr.
    PARAMETERS p_enam TYPE ernam.
    SELECTION-SCREEN END OF SCREEN 2000.
    START-OF-SELECTION.
    set PF-STATUS 'STATUS'.
      WRITE:/ p_mat,
              p_enam.
    AT USER-COMMAND.
      CASE SY-UCOMM.
      WHEN 'S2000'.
          CALL SELECTION-SCREEN 2000.
      WHEN 'EXIT'.
          EXIT.
      ENDCASE.
    Ram.

  • Calling selection screen from another selecton screen.

    Hi guys,
    I want to call default selection screen of one program from default selection screen of another program.
    Is that possible . would appreciate some helpful answers.
    Thanks,
    Venkat.

    it is possiable.
    1.submit
    2. call transcation t_code.
    Syntax
    SUBMIT <prog>.
    For more information about the SUBMIT statement, see Calling Executable Programs (Reports)
    Assume the following simple report:
    REPORT ZDYN3.
    WRITE / 'Dynamic Program!'.
    The following executable program (report) starts, modifies, and restarts ZDYN3:
    REPORT ZMASTER1.
    DATA CODE(72) OCCURS 10.
    DATA LIN TYPE I.
    READ REPORT 'ZDYN3' INTO CODE.
    SUBMIT ZDYN3 AND RETURN.
    DESCRIBE TABLE CODE LINES LIN.
    MODIFY CODE INDEX LIN FROM
    'WRITE / ''Dynamic Program Changed!''.'.
    INSERT REPORT 'ZDYN3' FROM CODE.
    SUBMIT ZDYN3.
    The output of this program is displayed on two subsequent output screens. The first screen displays:
    Dynamic Program!
    The second screen displays:
    Dynamic Program Changed !
    When you use the SUBMIT statement, all modifications made to a program during runtime take immediate effect before they are submitted. In the above example, ZDYN3 is submitted from ZMASTER1 first in its original and then in its modified form, generating different results.
    This is not the case if you change the codes of include programs or subroutines dynamically.
    Assume the following include program:
    INCLUDE ZINCLUD1.
    WRITE / 'Original INCLUDE program!'.
    and an executable program (report) for modifying and including it:
    REPORT ZMASTER2.
    DATA CODE(72) OCCURS 10.
    DATA LIN TYPE I.
    READ REPORT 'ZINCLUD1' INTO CODE.
    DESCRIBE TABLE CODE LINES LIN.
    MODIFY CODE INDEX LIN FROM
                'WRITE / ''Changed INCLUDE program!''.'.
    INSERT REPORT 'ZINCLUD1' FROM CODE.
    INCLUDE ZINCLUD1.
    If you run ZMASTER2, the source code of include program ZINCLUD1 is changed and replaced in the system. However, the last line of ZMASTER2 executes the older version since the runtime object of ZMASTER2 is generated before ZINCLUD1 is modified. Only when ZMASTER2 is run a second time, does the system determine that ZINCLUD1 has been changed. Exactly the same is true if you dynamically modify the source code of a subroutine and call it from within the same program.
    One way to solve this problem is to use the INCLUDE statement within an external subroutine that is called by the program. This allows you to create or modify include programs or subroutines and use the updated versions directly in the same program.
    Assume the following include program:
    INCLUDE ZINCLUD1.
    WRITE / 'Original INCLUDE program!'.
    and an external subroutine:
    PROGRAM ZFORM1.
    FORM SUB1.
         INCLUDE ZINCLUD1.
    ENDFORM.
    The following program reads the include program, modifies it, enters it back into the system, and calls the subroutine.
    REPORT ZMASTER3.
    DATA CODE(72) OCCURS 10.
    READ REPORT 'ZINCLUD1' INTO CODE.
    APPEND 'WRITE / ''Extension of INCLUDE program!''.' TO CODE.
    INSERT REPORT 'ZINCLUD1' FROM CODE.
    PERFORM SUB1(ZFORM1).
    This produces the following output:
    Original INCLUDE program!
    Extension of INCLUDE program!
    In this case, the updated version of the include program is used in the subroutine because its time stamp is checked when the subroutine is called, and not when the calling program is generated.

  • Call selection screen from DYNPRO

    I created a report with std selection screen 1000...
    From this selection screen we reach Dynrpro 9000 with a table control etc etc
    Once a line has been selected and the user click on a specific button a selection screen is called...
    SELECTION-SCREEN BEGIN OF SCREEN 9005.
    SELECTION-SCREEN: FUNCTION KEY 1.
    SELECT-OPTIONS : SO_PERSA FOR L_PERSA,
                     SO_BTRTL FOR L_BTRTL,
                     SO_PERSG FOR L_PERSG,
                     SO_PERSK FOR L_PERSK.
    SELECTION-SCREEN END OF SCREEN 9005.
    Unfortunatly when I try to fill in the range but pressing mutliple line button nothing happens...
    Do you have any clue to solve this issue ?

    what is the purpose of defining a func which is triggered for eac selection field ??
    what is the function of it that you need it and don't want the user to use the available searchoptions  ??
    kind regards
    arthur de smidt

  • Call selection screen from normal screen of modulpool

    Hey gurus,
    I would like to call a selectionscreen when I press a button on my normal screen in modulpool, but it doesn't work.
    I made a modulpool with a normal screen where is that button. In the top include I made a selection screen followingly:
    SELECTION-SCREEN BEGIN OF SCREEN 1001 as SUBSCREEN.
       PARAMETERS: rb1 RADIOBUTTON GROUP ab MODIF ID bl2,
                 rb2 RADIOBUTTON GROUP ab MODIF ID bl2.
    SELECTION-SCREEN END OF SCREEN 1001.
    but it writes out an error when i try to call subscreen 1001.
    What's wrong? How could I achieve my goal?
    Thank you very much.
    Regards,
    Robert

    Hi,
    *& Include ZSELOPT_IN_MP_TOP                                 Module Pool      ZSELOPT_IN_MP
    PROGRAM  zselopt_in_mp.
    TABLES ekko.
    SELECTION-SCREEN BEGIN OF SCREEN 9001 AS SUBSCREEN.
    SELECT-OPTIONS so_ebeln FOR ekko-ebeln.
    SELECTION-SCREEN END OF SCREEN 9001.
    -->Normal Screen(9000) with Subscreen Area 'sub'.
    PROCESS BEFORE OUTPUT.
    * MODULE STATUS_9000.
    call SUBSCREEN sub INCLUDING sy-cprog '9001'.    (Here is your problem, use quotas )
    PROCESS AFTER INPUT.
    * MODULE USER_COMMAND_9000.
    CALL SUBSCREEN sub.

  • I CAN'T MOVE A SELECTED FILE FROM THE SONGS LIST

    I often used to transfer songs from iTunis to my iPhone.
    But since last week, I didn't get to move selected song to any place because as soon as I select a song, it' appears a sign forbidding any movement.
    Even if there isn't any device conected to the PC.
    I didn't realize what has changed and what to do to return to the usual setting.
    Please help me !!!

    try this:
    ImageIcon image = getImageIcon(imagePath, altText);
    private ImageIcon getImageIcon (String path, String desc)
        int MAX_IMAGE_SIZE = 2400; //Change this to the size of
        //your biggest image, in bytes.
        int count = 0;
        BufferedInputStream imgStream = new BufferedInputStream(
         this.getClass().getResourceAsStream(path));
        if (imgStream != null) {
          byte buf[] = new byte[MAX_IMAGE_SIZE];
          try {
         count = imgStream.read(buf);
         imgStream.close();
          catch (java.io.IOException ioe) {
         Debug.print("ERROR: Couldn't read stream from file: " + path, Debug.ERROR);
         return null;
          if (count <= 0) {
         Debug.print("ERROR:  Empty file.", Debug.ERROR);
         return null;
          return new ImageIcon(Toolkit.getDefaultToolkit().createImage(buf));
        else {
          Debug.print("ERROR:  File not found [" + path + "]", Debug.ERROR);
          return null;
      }and open up your jar file and make sure the jpg is in the right location. Good luck.

  • Can we call a selection screen from List output

    Hi Folks,
    Can we call a selection screen from the list output?
    I mean for ex:-
    i am getting the data from MAKT and displaying it in the list output having a button EMAIL.
    When I press that button it should call a selection screen asking the user to enter EMAIL id .
    Thanks,
    K.Kiran.

    Hi
    U can create a dynpro as SELECTION SCREEN and call it using CALL SELECTION-SCREEN statament:
    SELECTION-SCREEN BEGIN OF SCREEN 100.
    PARAMETERS: P_MAIL(80) TYPE C.
    SELECTION-SCREEN END    OF SCREEN  100.
    AT USER-COMMAND.
       CASE SY-UCOMM.
          WHEN 'MAIL'.
              CALL SELECTION-SCREEN 100.
              IF SY-SUBRC = 0. "User press F8
              ELSE.
                " User press exit or back
              ENDIF.
    U can use the addition STARTING AT ..... ENDING AT ..... if you need to show the selection-screen as popup
    Max

  • How to Call another screen using the ABAP Report which is displaying ALV ou

    Hello All,
    I am developing a ABAP report in which I want to transfer the stock from material to another material.
    My Report will include 3 to screens.
    The first sleection screen will display all the material with their stock value.
    When we execute the report I will get the list of materials along with their current stock. On the top of the output screen I want the Execute button. Also , each line of the output should have checkbox or the ALV provides the functionality of editing one cell like that.....Once the user tick the checkbox or the cell....then I want to move to another screen where user can enter the Quantity and then user will tick ok and then I will call one function module so that the material documnet is posted and transfer of posting form material to material is done successfully.
    Could anyone please help me out how to call another screen from the output screen where user can enter the Quantity amount....
    I dont want to use the Dialog programming.....I want to create the simple ALV Abap report.
    Regards,
    Komal Bhutada.

    Hi Raymond,
    Thanks for the input...I will try this in my code .....
    Can you please help me how to insert the checkbox in the ALV Output....so that I can select one of row and then press execute to process further?..
    Thanks for the information.
    Regards,
    Komal.

  • Problem in Call Selection Screen

    Hi,
    I am facing a problem on the call selection screen. The no. of nested screens that can be called by using call selection screen is 50. When the count reaches to 51 it is going to short dump. How can i avoid the dump. What is the system field that captures the nested screens count.
    Thanx in advance,

    Maximum number of nested CALL SCREEN is 50, I think you cannot call 51th screen in a row.
    To avoid short dump you can handle exception <b>DYNP_TOO_MANY_CALL_SCREENS</b> and give error (or information) message 'Maximum number of nested sccreen level is 50' .
      TRY .
          CALL SCREEN 100.
        CATCH cx_root .
          MESSAGE e100(00).
      ENDTRY.

  • How to get back to Selection Screen from Drill Down Screen in ALV

    Hi All
              How can I come back directly to the Selection Screen from the drill down screen of an ALV Report i.e. in an Interactive ALV Report when sy-lsind > 1.
    Thanks
    Kulpreet

    Try to use ....
    SET SCREEN 0.
    LEAVE SCREEN.
    Regards,
    Rich Heilman

  • How to select the vendor from the source list in the PO(me21n) screen ??

    Hi
    How to select the vendor from the source list in the PO(me21n) screen.
    Is there any Sources of Supply tab in the PO just like we have in the PR.
    I don't want a PO raised from a PR which has got the Vendor assigned to it already.
    Or the SAP doesnot provide the option of Source list/Assign source/Sources of Supply .....in the PO.
    Kindly reply

    There is not any facility available for Source Determination in PO. Only you can select the line item and click Menu Environment > Source List and view the list of sources available for the material but you can not chooss and assign. If you wan to assign the vendor then change the vendor already entered in PO and put the desired vendor.

  • How to pass value from the Z Report to the selection screen of the std rep

    Dear Experts,
    i have developed a report and the values are maintained only in internal table based on some condition.  When I execute the report, for example MM60, there is a material number field for multiple selection.
    the report should call the standard transaction and pass the values from the internal table to the multiple selection- material number of the standard transaction.
    the standard transaction should never get executed automatically.  Only the value should get passed from internal table to the standard t code.  Please help.
    regards,
    Shankar

    Hai
    Go through the following Documents
    SUBMIT rep.
    Additions
    1. ... LINE-SIZE col
    2. ... LINE-COUNT lin
    3. ... TO SAP-SPOOL
    4. ... VIA SELECTION-SCREEN
    5. ... AND RETURN
    6. ... EXPORTING LIST TO MEMORY
    7. ... USER user VIA JOB job NUMBER n
    8. ... Various additions for parameter transfer to rep
    9. ... USING SELECTION-SETS OF PROGRAM prog
    Effect
    Calls the report rep . Leaves the active program and starts the new report rep .
    Addition 1
    ... LINE-SIZE col
    Effect
    Prints the report with the line width col .
    Addition 2
    ... LINE-COUNT lin
    Effect
    Prints the report with lin lines (per page).
    Addition 4
    ... VIA SELECTION-SCREEN
    Effect
    Displays the selection screen for the user. In this case, the selection screen is redisplayed after return from the report list display - the user's entries are retained.
    Addition 5
    ... AND RETURN
    Effect
    Returns to the calling transaction or program after the called program has been executed. SUBMIT ... AND RETURN creates a new internal mode .
    Addition 6
    ... EXPORTING LIST TO MEMORY
    Effect
    Does not display the output list of the called report, but saves it in SAP memory and leaves the called report immediately. Since the calling program can read the list from memory and process it further, you need to use the addition ... AND RETURN . Also, since the called report cannot be requested for printing, the addition ... TO SAP-SPOOL is not allowed here. You can read the saved list from SAP memory with the function module 'LIST_FROM_MEMORY' and then (for example) store it in the database with EXPORT . You can process this list further with the function modules 'WRITE_LIST' , 'DISPLAY_LIST' ... of the function group "SLST" .
    Addition 7
    ... USER user VIA JOB job NUMBER n
    Effect
    Schedules the specified report in the job specified by the job name job and the job number n . The job runs under the user name user and you can omit the addition USER user . The assignment of the job number occurs via the function module JOB_OPEN (see also the documentation for the function modules JOB_CLOSE and JOB_SUBMIT . This addition can only be used with the addition ...AND RETURN .
    Note
    When scheduling a report with the SUBMIT ... VIA JOB job NUMBER n statement, you should always use the addition ...TO SAP-SPOOL to pass print and/or archive parameters. Otherwise, default values are used to generate the list and this disturbs operations in a production environment.
    Addition 9
    ... USING SELECTION-SETS OF PROGRAM prog
    Effect
    Uses variants of the program prog when executing the program rep .
    Note
    Important
    The programs prog and rep must have the same SELECT-OPTIONS and PARAMETER s. Otherwise, variants of the program prog may be destroyed.
    Note
    When using this addition, the specified variant vari of the program prog is taken in USING SELECTION-SET vari . On the other hand, all variant-related actions on the selection screen of rep (Get , Save as variant , Display , Delete ) refer to the variants of prog .
    Example
    SUBMIT REPORT01
    VIA SELECTION-SCREEN
    USING SELECTION-SET 'VARIANT1'
    USING SELECTION-SETS OF PROGRAM 'REPORT00'
    AND RETURN.
    Effect
    Executes the program REPORT01 with the variant VARIANT1 of the program REPORT00 .
    Note
    Runtime errors
    LOAD_PROGRAM_NOT_FOUND : The specified program was not found.
    SUBMIT_WRONG_TYPE : The specified program is not a report.
    SUBMIT_IMPORT_ONLY_PARAMETER : Only one value passed to a report parameter.
    SUBMIT_WRONG_SIGN : Invalid value passed to a selection with the addition SIGN .
    SUBMIT_IN_ITAB_ILL_STRUCTURE : Table passed to a selection with WITH sel IN itab had an unexpected structure.
    Try with this Example
    Data: listobject like abaplist occurs 1 with header line.
    CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
    listobject = listobject
    EXCEPTIONS
    OTHERS = 1 .
    IF sy-subrc <> 0.
    message ID '61' TYPE 'E' NUMBER '731'
    with 'LIST_FROM_MEMORY'.
    ENDIF.
    Thanks & regards
    Sreenivasulu P

  • Call a Screen from A selection screen report

    Hi Friends,
       I developed a report (1. Excecutable) and i am calling a screen say 9000 which is having several subscreens. While i am clicking the BACK button it should come to the same selection screen report. How to do this? We can't use LEAVE SCREEN or LEAVE TO SCREEN 0. Because 9000 screen having the subscreen. If i use LEAVE PROGRAM it won't come to selection screen. Instead it will come out of program.
    Please help me.
    Thanks and regards
    Srikanth. S

    hi srikanth,
                    We can come from screen to selection screen of the report by using -- "LEAVE TO LIST PROCESSING".
    If u need some more info plz check below.
    https://www.sdn.sap.com/irj/sdn/forums
    https://www.sdn.sap.com/irj/sdn/forums
    https://www.sdn.sap.com/irj/sdn/forums
    Reward if it is usful,
    Thanks,
    Srikanth.A

  • How to get the values of Select-options from the screen.

    The value of parameter can be obtained by function module 'DYNP_VALUES_READ' but How to get the values of Select-options from the screen? I want the F4 help values of select-options B depending on the values in Select-option A.So I want to read the Select-option A's value.

    Hi,
    Refer this following code..this will solve your problem...
    "Following code reads value entered in s_po select options and willprovide search
    "help for s_item depending upon s_po value.
    REPORT TEST.
    TABLES : ekpo.
    DATA: BEGIN OF itab OCCURS 0,
    ebelp LIKE ekpo-ebelp,
    END OF itab.
    SELECT-OPTIONS   s_po FOR ekpo-ebeln.
    SELECT-OPTIONS s_item FOR ekpo-ebelp.
    INITIALIZATION.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_item-low.
      DATA:
      dyn_field TYPE dynpread,
      temp_fields TYPE TABLE OF dynpread,
      zlv_dynpro TYPE syst-repid.
      zlv_dynpro = syst-repid.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname     = zlv_dynpro
          dynumb     = syst-dynnr
          request    = 'A'
        TABLES
          dynpfields = temp_fields
        EXCEPTIONS
          OTHERS     = 0.
      LOOP AT temp_fields INTO dyn_field.
        IF dyn_field-fieldname EQ 'S_PO-LOW'.
            SELECT * INTO CORRESPONDING fields OF TABLE itab FROM ekpo
            WHERE ebeln EQ dyn_field-fieldvalue.
            EXIT.
        ENDIF.
      ENDLOOP.

Maybe you are looking for

  • Error while data loading in real time cube

    HI experts, I have a problem. I am loading data from a flat file.The data is loading correctly till the DSO but when i am trying to load it into the cube it is giving an error. The cube is  a real time cube for PLANING. I have chnaged the status to a

  • Save pdf form as read only in reader 9

    I've spent the last 2 days looking over the internet and through the various menus on Adobe Acrobat 9 and Adobe Reader 9 and can't find a solution. I've made a form template in acrobat and it is to be opened by staff in my office using reader so they

  • How to set roles from JDBC connections

    Hi guys, I have a jdbc connection which purpose is to run queries based on a string that I construct in my program. My question is: if I have to run a DCL, like: SET ROLE RL_XXX TO USER1; What's the easiest way to do it with my same connection? Thank

  • Problem with screen after update

    hello, I have a BB Passport and I have a problem after the last software update OS 10.3.1.1565 - the screen is flashing when i go into an application... This happens randomly... not every time. First I had this problem with Evernote. I erased everyth

  • HT3775 How to open an .AVI file (movie) with my new Mac

    I'm not able to open an AVI file (movie) with my new iMac, any good advice? thanks gnogno