Module pool ( call multiple screens )

hi abapers,
in module pool program ,
iam call one screen  into another screen .
ex : screen no . 100
       iam designed table control  with some column  fields .
iam call one of column field of table control into another screen,
at that time last record value of that field will comes to the other screen.
but i want, what of the selected value of field value comes to the other call screen number.

Hi Raj,
Use  GET CURSOR FIELD FNAME  VALUE FVAL.
Whis is a syntax for system can identify yhe record i.e we can able to select one record from screen 100 is transferred to screen 120.
FNAME ---> Field Name
FVAL----->Value Which is selected from that Value (screen 100)..
Regards
Ranga

Similar Messages

  • Dialog Programming(module pool):call a screen to subscreen area.

    Hi experts,
    I want to call a screen created in the function group into my
    subscreen area of current screen of main program.
    I have done the below way :
    1. Created a screen 100 in the module pool program z_bpmodule.
    2.created a subscreen area SUB in screen 100.
    3. I hav created function group :zfungroup
    and  a screen 300,a function module Z_EXPORT_FUN for exporting the data to the screen 300 from report.
    Now my prog is lik below :
    PROGRAM  Z_SUBSCREEN1.
    DATA : ZMATNR LIKE MARA-MATNR.
    DATA : DYNNR LIKE SY-DYNNR .
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE STATUS_0100 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
      SET TITLEBAR 'TITLE'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  EXPORT_DATA  OUTPUT
          text
    MODULE EXPORT_DATA OUTPUT.
    CALL FUNCTION 'Z_EXPORT_FUN'
                              EXPORTING Z_INPUT = ZMATNR.
    ENDMODULE.                 " EXPORT_DATA  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE USER_COMMAND_0100 INPUT.
    CASE SY-UCOMM.
    WHEN 'EXP'.
    DYNNR = '0300'.
    *ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    and the flow logic is lik this :
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    MODULE EXPORT_DATA.
    CALL SUBSCREEN SUB INCLUDING SY-REPID ' 0300'.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0100.
    CALL SUBSCREEN SUB.
    Now the main problem is i am not able to call the screen from function group to subscreen area...
    kindly provide the solution.....
    Thanks a lot in adv ....
    Brahma.

    I am just getting the main screen and the subscreen is not at all displaying .....
    but when i perform the PAI .. I am getting the dump ..
    Short text
        Dynpro does not exist
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "Z_SUBSCREEN1" had to be terminated because it has
        come across a statement that unfortunately cannot be executed.
    What can you do?
        Note down which actions and inputs caused the error.
        To process the problem further, contact you SAP system
        administrator.
        Using Transaction ST22 for ABAP Dump Analysis, you can look
        at and manage termination messages, and you can also
        keep them for a long time.
    Error analysis
        The system attempted to use dynpro 0000 in program "Z_TX1".
        This dynpro does not exist.
    How to correct the error
        Probably the only way to eliminate the error is to correct the program.
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "DYNPRO_NOT_FOUND" " "
        "Z_SUBSCREEN1" or "Z_SUBSCREEN1"
        "EXPORT_DATA"
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
        2. Corresponding system log
           Display the system log by calling transaction SM21.
           Restrict the time interval to 10 minutes before and five minutes
        after the short dump. Then choose "System->List->Save->Local File
        (Unconverted)".
    3. If the problem occurs in a problem of your own or a modified SAP
    program: The source code of the program
       In the editor, choose "Utilities->More
    Utilities->Upload/Download->Download".
    4. Details about the conditions under which the error occurred or which
    actions and input led to the error.
    hope i have given the full information.
    Thanks a lot.

  • Call multiple screens from LSMw

    Hi
    i want to call multiple screens from lsmw
    I need to call a three transaction from LSMW wich are subzequent steps for data entry.
    1) first tcode to be called is eprodcust which creates some master data and using this master data and some fields of data creatd i need to call two more tcodes first iq01 to create meter and save then eg31 tcod to feed data.
    Please suggest where in lsmw can i give options for suc hscnerio and call of subsequent screens.
    regards
    Edited by: Prieti_V on Nov 8, 2011 8:28 PM

    Hi Priti ,
    we have few options to handle such cases , to avoid Locked Problems what you can do is
    -->write BDC program within LSMW to create installation ( this will be created within step of 11 Convert Data ).
    -->Based on the above BDC results ,run another BDC within LSMW to create Device.( this will be created within step of 11 Convert Data ).
    -->third BDC records , let SAP do it thru LSMW or can you do it convert data step itself.
    this approch needs lots of codes , so in worst case and if you dont want to break the loadings the follow this.
    *Better to find any BAPI which will do creation of installation ,devices
    regards
    Prabhu

  • Dynamic variant calling multiple screens

    Hi all,
    The concerned issue is that i am trying to execute a report( which on execution throws a selection screen) from a program using 'submit' statement passing a variant. along with it iam creating a dynamic varinat using FM RS_CREATE_VARIANT, the variant is being made, but on execution , the program throws an error meassage " invalid variant called'.
    This is because the varinat is calling multiple screens , although only one screen number is passed in teh FM,( screen no 0170).
    Please tell me the possible solution fr this .
    Cheers,
    Thanks in advance.

    Hi,
    first try to pass only the static variant with the submit statement and c whether its working properly.
    and than check for dynamic variant..
    c the difference and let me know what happens ??
    thanks
    ravi aswani

  • Module Pool with Selection Screen

    I have a module pool in which I've created a sub screen to accommodate select-options.
    SELECTION-SCREEN BEGIN OF SCREEN 1010 AS SUBSCREEN.
    select-options: r_matnr for mara-matnr.
    selection-screen end of screen 1010.
    I've put this selection screen in an include of the module pool.
    Now I can't seem to see my variable, r_matnr, in the program. How to I pass the value to the program and what have I done wrong. Perhaps where I placed the selection-screen.
    Any help would be appreciated.
    PS... I can see my screen but when I put the debug on, no value is in r_matnr.
    Thanks Marianne

    Hi Mariane,
    Placing the selection screen declarations in an include does not make any issues. Can you please check your code. For your reference, I am placing a simple piece of code, in which I am also calling a selection screen from within a module pool and displaying the output of the select options. Execute this code and check what is the difference between your code and this.
    REPORT zabi_test04.
    INCLUDE zabi_test04_i001.
    INCLUDE zabi_test04_i002.
    START-OF-SELECTION.
       CALL SCREEN 9000.
    *&      Module  STATUS_9000  OUTPUT
    *       text
    MODULE status_9000 OUTPUT.
       SET PF-STATUS 'STAT9000'.
       SET TITLEBAR 'TL1'.
    ENDMODULE.                 " STATUS_9000  OUTPUT
    *&      Module  USER_COMMAND_9000  INPUT
    *       text
    MODULE user_command_9000 INPUT.
       save_ok = ok_code.
       CLEAR ok_code.
       CASE save_ok.
         WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
           LEAVE PROGRAM.
         WHEN '&SELECT'.
           lv_dynnr  = '1001'.
           CALL SCREEN 9001.
       ENDCASE.
    ENDMODULE.                 " USER_COMMAND_9000  INPUT
    *&      Module  STATUS_9001  OUTPUT
    *       text
    MODULE status_9001 OUTPUT.
       SET PF-STATUS 'STAT9001'.
       SET TITLEBAR 'TL2'.
    ENDMODULE.                 " STATUS_9001  OUTPUT
    *&      Module  USER_COMMAND_9001  INPUT
    *       text
    MODULE user_command_9001 INPUT.
       save_ok = ok_code.
       CLEAR ok_code.
       CASE save_ok.
         WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
           LEAVE TO SCREEN 0.
         WHEN '&EXECUTE'.
           WRITE s_matnr-low.
           LEAVE TO  LIST-PROCESSING.
       ENDCASE.
    ENDMODULE.                 " USER_COMMAND_9001  INPUT
    *&  Include           ZABI_TEST04_I001
    TABLES : mara.
    DATA : ok_code    TYPE sy-ucomm,
            save_ok    TYPE sy-ucomm,
            lv_dynnr   TYPE sy-dynnr VALUE '1001'.
    *&  Include           ZABI_TEST04_I002
    SELECTION-SCREEN BEGIN OF SCREEN 1001 AS SUBSCREEN.
    *PARAMETERS p_werks  TYPE t001w-werks.
    SELECT-OPTIONS s_matnr FOR mara-matnr.
    SELECTION-SCREEN END OF SCREEN 1001.
    Regards,
    Abijith

  • Bad Pool Caller - Blue Screen of Death

    Windows Blue Screens of Death (BSoDs) happen whenever your computer encounters something it doesn’t know how to process, so it shuts itself down to prevent any damage. Sometimes BSoDs happen once and you don’t see them again when you restart — however, this isnt always the case and a BSoD may show up repeatedly.
    In this article we will look at issues causing a bad_pool_caller BSoD. What has happened is that a thread in the laptop's processor has made a bad pool request. This means that it’s asking to use resources that are unavailable, nonexistent, or in use by another thread. It could also mean that the pool header is corrupted — regardless of the particular error, it, like most BSoDs, is caused by driver issues.
    Drivers are what makes your computer work. Every device connected to your computer, and nearly every component inside it has a software driver that determines how Windows interacts with your device. When driver issues are encountered- which is fairly common on new operating systems like Windows 8 — it can cause a lot of problems, but, fortunately, sometimes there is an easy fix.
    Recently Connected and Installed Device
    Try to determine which device was last connected or installed before an error appeared. Often this can be a new peripheral device. Go to Device Manager (in the Control Panel) and find the driver for the recently connected peripheral device driver. From there, you can get Windows to search for updates, you can disable it, or you can uninstall it entirely. You can also disconnect the problem device and perform a system restore to before the device was connected and supporting software was installed.
    Recently Installed Program
    If your drivers aren’t the problem, a recently installed program may be the issue. If you can determine what program you installed that started this, uninstall it or perform a system restore to before the program was installed, and, after a restart, you should be good to go.
    System Restore
    Windows 7 and earlier
    Windows 8
    Any further issues that cannot be resolved may require your computer to be repaired.

    Every time we try to connect his Nano it causes the PC to crash with this Bad Pool Caller message.
    is the BADPOOLCALLER citing a specific file, Laurita? if so, what is it called? (exact spelling please.)
    if it's not citing a specific file, let's try getting a minidump to the Apple engineers for a look.
    To set up your machine to capture a minidump, right click on "My Computer", select "Properties", select the "Advanced" tab, select the "Startup and Recovery" Settings button, select "small memory dump" from the popup. When it crashes, look for the MiniDump file. It's usually in the folder "C:\WINDOWS\Minidump" and is called something like Mini<number>-<number>.dmp.
    Find that file and send it as an attachment to this email address.
    in the email to Roy, be sure to include the following information:
    - A link to the thread on Apple Discussions where the issue is being discussed
    - The username you are using in the thread
    - The version of iTunes you are using or trying to use
    - the version of Windows you are using (mention service packs)
    - A concise description of the issue you are seeing
    - The exact text of the error message you are seeing

  • Module Pool MP000200_CE in Screen Modifications

    Hello,
    My query is regarding screen modifications table T588M. When the module pool MP000200_CE is used? I know it is used when the Concurrent Employment is active and we have activated Concurrent Employement in our system but when I go to the system - status in IT0002 and check the screen number, it shows MP000200 and not MP000200_CE.
    How to activate the screen MP000200_CE for IT0002?
    Thanks.

    For the infotype 0002 for the modulepool MP000200_CE, only screens
    2007 and 2010 are needed. concerning the infotype 0002: the corresponding modulepool (MP000200 or MP000200_CE) will be read according to the country and the table T582ITD. If no entry exists for this country then the modulepool MP000200 will be used for the infotype 0002.

  • How to create a Drop down with values in Module Pool for a screen field.

    Hi all,
    I have created a Screen on which one field is created Say Bank Name. I would like to give some spcific value for this fileld where user can select only seeing in drop down cann't enter.
    Can anyone tell how can we do it ?

    Hi,
    The selected value key will be stored in the parameter.
    eg: Refer below code. Here if i select Vinod then po_name will be 1. After this read i_values WITH this key and get the actual value.
    PARAMETERS: po_name(30) TYPE c VISIBLE LENGTH 20 AS LISTBOX.
    TYPE-POOLS: VRM.
    DATA: i_values TYPE vrm_values,
          wa_values LIKE LINE OF i_values.
    AT SELECTION-SCREEN OUTPUT.
      wa_values-key = '1'.
      wa_values-text = 'Vinod'.
      APPEND wa_values TO  i_values.
      wa_values-key = '2'.
      wa_values-text = 'Kumar'.
      APPEND wa_values  TO i_values.
      wa_values-key = '3'.
      wa_values-text = 'Reddy'.
      APPEND wa_values  TO i_values.
      CALL FUNCTION 'VRM_SET_VALUES'
           EXPORTING
                id              = 'PO_NAME'
                values          = i_values
           EXCEPTIONS
                id_illegal_name = 1
                OTHERS          = 2.
    START-OF-SELECTION.
    READ TABLE i_values INTO wa_values WITH KEY key = po_name.
    MOVE wa_values-text TO w_name. " This will be ur actual value.
    Thanks,
    Vinod.
    Edited by: Vinod Reddy Vemuru on Jul 8, 2008 4:16 PM

  • MODULE POOL and selection screen

    Hello Friends,
                           I need some help in ABAP. Please give me the overview, how to go about it?
    My scenerio is:
    I want to write an ABAP code which will  display drop down list(list will have few years mentioned in it) on the first screen.
    Thn after selecting the year I would like to display months corresponding to that year(it can be in the same screen or some other screen). Now when the user enters some details as per the months, he should het some output after execution(on the same screen or the other).
    Please help me with it, so that I can proceed with my deelopment.
    Looking forward for your reply.
    Regards,
    Lokesh
    Edited by: LOKESH_SAP on Mar 9, 2010 10:48 AM
    Edited by: LOKESH_SAP on Mar 9, 2010 10:48 AM

    Hi,
    Use this link, simple steps to learn to display data in ALV Grid.
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/learn%252bto%252bdisplay%252bdata%252bin%252balv%252bgrid
    That was a basic sample code to display data in first alv, now follow the below steps to make it interactive.
    When you double-click on any cell of alv grid, use this code to fetch the data of the line that you currently clicked, its working:-
    When you double click on the ALV grid line, you will have sy-ucomm = '&IC1'.
    So when you define a i_callback_user_command for the FM reuse_alv_grid_display, and create it as:-
    FORM command USING ucomm LIKE sy-ucomm selfield TYPE slis_selfield.
      DATA : ok_code TYPE sy-ucomm.
      ok_code = ucomm.
      CASE ok_code.
        WHEN '&IC1'. "for double click on alv grid line
          " your code
      ENDCASE.
    ENDFORM.
    As you have used selfield TYPE slis_selfield, the field selfield will hold all the values.
    To know on which row you have clicked and to retain that line, use code:-
    Suppose you are currently displaying data from internal table itab and corresponding to it you have work area wa.
    Now to know the field name that you clicked, use:-
    selfield-fieldname " will fetch you the name of field that you clicked
    Now using the work-area and the name of field that you clicked, you can easily make out the details of the field i.e., field name and field value and you can code as per your requirement.
    Now here you can create a new field catalog and call another FM 'REUSE_ALV_GRID_DISPLAY' to display further information in the next grid based on the value obtained when user double clicks a cell.
    Hope this helps you.
    Thanks & Regards,
    Tarun Gambhir

  • Module Pool Programming - noninput screen

    Hi Folks,
    I have a requirement where i need to have check box.When check box is checked screen fields should be enabled else it should be disabled. Please suggest me.
    If the checkbox is checked fields should become mandatory.
    Please suggest

    PROGRAM  ZSRK_025                                .
    DATA : F1 LIKE VBAP-VBELN,
           F2 LIKE VBAP-POSNR,
           F3 LIKE VBAP-NETWR.
    DATA : CH1,
           CH2,
           CH3.
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE STATUS_0100 OUTPUT.
      IF CH1 EQ 'X'.
        LOOP AT SCREEN.
          IF SCREEN-NAME = 'F1'.
            SCREEN-INPUT = 1.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          IF SCREEN-NAME = 'F1'.
            SCREEN-INPUT = 0.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
      IF CH2 EQ 'X'.
        LOOP AT SCREEN.
          IF SCREEN-NAME = 'F2'.
            SCREEN-INPUT = 1.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          IF SCREEN-NAME = 'F2'.
            SCREEN-INPUT = 0.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
      IF CH3 EQ 'X'.
        LOOP AT SCREEN.
          IF SCREEN-NAME = 'F3'.
            SCREEN-INPUT = 1.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          IF SCREEN-NAME = 'F3'.
            SCREEN-INPUT = 0.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    PROCESS BEFORE OUTPUT.
      MODULE STATUS_0100.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0100.

  • Selection- screen in module pool

    hi all,
            how to create selection screen in module pool programing,
    in screen attributes of module pool, 4 screens are present, but selection screen radio button has been disabled.
    how to work by using selection screen radio button.
    Regards
    Suprith

    HI Suprith,
    You ll find a LAYOUT button on the application tool bar just click that button sceen painter sceen will be opend there you have to design your selection screen. Letf side of the sceen painter you see the options use the options as per your requiment and activate . If you  are using module pool program go to SE93 create the t-code and give the program name and the screen name which you have created in se51.
    hope this will help you...
    reward if useful
    regards,
    sunil kairam.

  • Making a screen in module pool program web based

    I have developed a module pool program with screens and flow logic. I want to make that application web based. Is there any option to make it web based or I have to write the fresh application in bsp. Please suggest

    Sucheta,
    You unfortuantely need to re-write that application as BSP.  If you separated your business logic from the screen logic, then all you will need to do is rewrite the screen logic and not the whole application.
    Take care,
    Stephen

  • Dynamic variant calling multiple selection screens

    Hi all,
    The concerned issue is that i am trying to execute a report( which on execution throws a selection screen) from a program using 'submit' statement passing a variant. along with it iam creating a dynamic varinat using FM RS_CREATE_VARIANT, the variant is being made, but on execution , the program throws an error meassage " invalid variant called'.
    This is because the varinat is calling multiple  screens , although only one screen number is passed in teh FM,( screen no 0170).
    Please tell me the possible solution fr this .
    Cheers,
    Thanks in advance.

    Hi,
    first try to pass only the static variant with the submit statement and c whether its working properly.
    and than check for dynamic variant..
    c the difference and let me know what happens ??
    thanks
    ravi aswani

  • Sharing Screen in Module Pool

    My Requirement is an application to be developed in Module Pool where one screen will be responsible for create,change and display.Let's talk abt an application to create sales order using  module pool,this  application will have 1 screen where user will input all the required data to create sales order and same screen will be used for displaying and changing sales order . Help is appreciated.

    The same screen will be used.
    But in Background what is happening...?
    If it is create they open the Fields for Input.
    if it is change they open the fields for edit/input
    if is display then it will be in Display mode.
    We can achieve that using LOOP AT SCREEN and modify the screen fields.
    If you take the same example
    T180-TRTYP contents 'H',  "Creation
    T180-TRTYP contents 'A',  "Display
    T180-TRTYP contents 'V',  Change
    in sales order creation based on the parameter TRTYP , the screens will be changed from Display to Change etc.
    According to the Parameter value the coding is done in side sales order application.

  • How can i decleare select-options in module pool table control?

    Hi everybody!!
    Can anyone tell me how can I decleare select-options in module pool table control screen?. I have declared it in a screen with a table control but a dump is triggered due to an error when generating the selection screen.
    Regards...

    My suggestion will be try to use fm
        call function 'FREE_SELECTIONS_DIALOG'
    Please search this forum you can find lot of threads related to this.

Maybe you are looking for