Calling a sub screen in MODULE user_command_9000 INPUT

HI,
PROCESS BEFORE OUTPUT.
MODULE STATUS_9000.
CALL SUBSCREEN subscreen_9220 INCLUDING sy-repid '9220'.
CALL SUBSCREEN subscreen_9240 INCLUDING sy-repid '9240'.
PROCESS AFTER INPUT.
CALL SUBSCREEN subscreen_9220.
MODULE USER_COMMAND_9000.
Inside MODULE user_command_9000 INPUT.
  DATA: ok_code TYPE sy-ucomm.
  CLEAR ok_code.
  ok_code = sy-ucomm.
  CASE ok_code.
    WHEN 'CANCEL'.
      LEAVE PROGRAM.
    WHEN 'ENTER'.
      IF   rb_hdb_code        EQ 'X'
        OR rb_landed_code  EQ 'X'
        OR rb_hawker_code EQ 'X'.
        CALL SCREEN 9221.
      ENDIF.
      IF rb_trade_code EQ 'X'.
       select OPERAND from TE221
       into table t_tt221
       where OPTYP eq 'TQUANT'.
        CALL SCREEN 9222.
      ENDIF.
      IF rb_non_standard_code = 'X'.
        PERFORM GET_DATA.
        CALL SCREEN 9223.
      ENDIF.
<b>    WHEN 'OK'.
      CALL SUBSCREEN subscreen_9240 INCLUDING sy-repid '9240'.</b>
    WHEN OTHERS.
  ENDCASE.
ENDMODULE.                 " USER_COMMAND_9000  INPUT
<b></b>  My question is "when case is OK" then I need to display a subscreen in the same normal screen 9000 as we do in selection screen in a normal report.
Wat needs to be done here .
pls do suggest me. Good answers are appreciated and rewarded.
regards
Mac

Hi Mac
You have to write the " CALL SUBSCREEN" statement both in pbo and pai,
the call subscreen statement should be in flow logic .
so write that statement(in bold) in pai.
do it dynamically by assigning a number and changing it using a dynamic variable.
hope this helps u.
here is an example :
REPORT demo_dynpro_tabstrip_server.
CONTROLS mytabstrip TYPE TABSTRIP.
DATA: ok_code TYPE sy-ucomm,
      save_ok TYPE sy-ucomm.
DATA  number TYPE sy-dynnr.
mytabstrip-activetab = 'PUSH2'.
number = '0120'.
CALL SCREEN 100.
MODULE status_0100 OUTPUT.
  SET PF-STATUS 'SCREEN_100'.
ENDMODULE.
MODULE cancel INPUT.
  LEAVE PROGRAM.
ENDMODULE.
MODULE user_command INPUT.
  save_ok = ok_code.
  CLEAR ok_code.
  IF save_ok = 'OK'.
    MESSAGE i888(sabapdocu) WITH 'MYTABSTRIP-ACTIVETAB ='
                                  mytabstrip-activetab.
  ELSE.
    mytabstrip-activetab = save_ok.
    CASE save_ok.
      WHEN 'PUSH1'.
        number = '0110'.
      WHEN 'PUSH2'.
        number = '0120'.
      WHEN 'PUSH3'.
        number = '0130'.
    ENDCASE.
  ENDIF.
ENDMODULE.
flow logic of the screen 100
PROCESS BEFORE OUTPUT.
  MODULE STATUS_0100.
  CALL SUBSCREEN SUB INCLUDING SY-REPID NUMBER.
PROCESS AFTER INPUT.
  MODULE CANCEL AT EXIT-COMMAND.
  CALL SUBSCREEN SUB.
  MODULE USER_COMMAND.
flow logic of the screen 110
PROCESS BEFORE OUTPUT.
PROCESS AFTER INPUT.
flow logic of the screen 120
PROCESS BEFORE OUTPUT.
PROCESS AFTER INPUT.
flow logic of the screen 130
PROCESS BEFORE OUTPUT.
PROCESS AFTER INPUT.
Regards,
Prasanth
Reward all helpful replies

Similar Messages

  • How to call a sub screen from abap report

    Hellow friends,
    how to call sub screen 1001 prog name SAPLMGD1
    and main program SAPLMGMM screen 4000 of tcode MM02.
    i need to call the sub screen from abap report

    Hi Rajesh,
    You can use FM MATERIAL_MAINTAIN_DIALOGUE to go to subcreen MRP1 in MM02.
    Please check this sample code from other thread and enter 'MRP 1' for p_dytxt.
    REPORT zsritest.
    TABLES mara.
    DATA: lv_bilds LIKE t133a-bilds,
    ls_t130m LIKE t130m,
    ls_rmmg1 LIKE rmmg1,
    lwa_view TYPE mbildtab,
    lwa_auswg TYPE mgauswg,
    lt_views TYPE STANDARD TABLE OF mbildtab INITIAL SIZE 0,
    lt_auswg TYPE STANDARD TABLE OF mgauswg INITIAL SIZE 0.
    PARAMETERS: p_matnr LIKE mara-matnr,
    p_werks LIKE marc-werks,
    p_dytxt LIKE mbildtab-dytxt.
    SELECT SINGLE * FROM mara WHERE matnr EQ p_matnr.
    CHECK sy-subrc EQ 0.
    CALL FUNCTION 'T130M_SINGLE_READ'
    EXPORTING
    tcode = 'MM02'
    kzrfb = 'X'
    IMPORTING
    wt130m = ls_t130m
    EXCEPTIONS
    not_found = 1
    wrong_call = 2
    OTHERS = 3.
    CALL FUNCTION 'BILDSEQUENZ_IDENTIFY'
    EXPORTING
    branche = mara-mbrsh
    materialart = mara-mtart
    tcode_ref = ls_t130m-trref
    * KZRFB = ' '
    IMPORTING
    bildsequenz = lv_bilds
    * KZ_BILDS_CHANGED =
    EXCEPTIONS
    wrong_call = 1
    not_found = 2
    OTHERS = 3.
    CALL FUNCTION 'SELECTION_VIEWS_FIND'
    EXPORTING
    bildsequenz = lv_bilds
    pflegestatus = mara-pstat
    TABLES
    bildtab = lt_views[]
    EXCEPTIONS
    call_wrong = 1
    empty_selection = 2
    OTHERS = 3.
    ls_rmmg1-matnr = mara-matnr.
    ls_rmmg1-werks = p_werks.
    READ TABLE lt_views INTO lwa_view WITH KEY dytxt = p_dytxt.
    CHECK sy-subrc EQ 0.
    lwa_auswg-auswg = lwa_view-auswg.
    APPEND lwa_auswg TO lt_auswg.
    CALL FUNCTION 'MATERIAL_MAINTAIN_DIALOGUE'
    EXPORTING
    irmmg1 = ls_rmmg1
    * IRMMG1_REF = ' '
    KZ_EIN_DARK = 'X'
    t_tcode = 'MM02'
    * FLG_MATNR_RES = ' '
    p_pstat = mara-pstat
    * FLG_STAT_ALL = ' '
    * CALL_MODE2 = ' '
    * IMPORTING
    * MATERIAL_NO =
    * UPDATE_OK =
    TABLES
    iauswg = lt_auswg[]
    EXCEPTIONS
    no_authority = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards,
    Ferry Lianto

  • Call report selection screen in module pool program with tab strip control

    Hi,
    Could anyone explain in detail to call report selection screen in module pool program with tab strip control.
    Thanks
    Mano

    Hi,
    Refer std program:
    demo_sel_screen_in_tabstrip.
    demo_sel_screen_with_tabstrip.
    Call your program with SUBMIT stmt form module program.
    Reward points if this Helps.
    Manish

  • Uploding sub screens in module pool programs

    HI,
       Can any one help in uploading sub screens in module pool program .
    Regards,
    Mahendra.

    Hi
    Debugging of module pool is same as reports, use /h or put breakpoint
    but u shud know what u want to check
    there are generally two event used in module pool
    PBO
    This event is used before displaying the screen,It is used to clear fields table, show table control, tabstrip and most important conditionally modify the scrren .
    PAI
    is used to validate the fields which are entered on the screen with database values and then fetch records from table.
    i mean all values to make available in internal table
    now u would be sure which part u want to debug.
    <REMOVED BY MODERATOR>
    Regards,
    Chandru
    Edited by: Alvaro Tejada Galindo on Feb 19, 2008 6:19 PM

  • Calling a sub screen in an normal screen

    Hi,
    In module pool program i am having a normal screen 9000.
    In this normal screen i have call subscreens depending on the radio buttons the user selects.
    can we do like that. that is if one radio button one sub screen should be triggered and remaining should be deactivated, and if another radio button relavent sub screen should be triggered.
    please do help me its urgent.
    replies with helpful code is much appreciated.
    regards
    Mac

    Hi,
    Try to use this...
    First, put all the objects in the subscreen in the same group number with the same group name.
    Then put a function code to the radio-button that you will use to hide the subscreen.
    And into the PBO of the subscreen,
    insert this code...
      CASE sy-ucomm.
        WHEN <function code>.
          IF <radio_button> = 'X'.
            LOOP AT SCREEN.
              IF screen-group1 = '1'.
                screen-invisible = 1.
                MODIFY SCREEN.
              ENDIF.
            ENDLOOP.
          ENDIF.
      ENDCASE.
    Hope this may help you..
    Enjoy...
    Salem_M

  • How to insert a standard selection screen on moduled program?

    Hi All,
    Selection screen can be easily done in classic report by just simply invoking the event "SELECTION-SCREEN"
    SELECTION-SCREEN BEGIN OF ...
    SELECT-OPTIONS ...
    PARAMETERS ...
    In the case of moduled program, there will be a PBO and PAI, I have a requirement on my 2nd screen where I need to have a selection screen, but the SELECTION-SCREEN event is not applicable for NOT TYPE 1(Executable) Program.
    My Dialog Program Flow:
    Main Screen -> Display Screen (should be SELECTION SCREEN) -> Output (3rd screen)
    What's the best alternative solution on this scenario?
    Thanks.

    Hi All,
    I layout and detailed my question, please see my scenario below:
    screen 9000
    MODULE user_command_9000 INPUT.
      CASE ok_code.
         WHEN 'CREATE'.
            CALL SCREEN 9001.
         WHEN 'DISPLAY'.
             "SHOULD CALL A SELECTION SCREEN HERE
             "AFTER THE SELECTION SCREEN, IS ANOTHER SCREEN FOR OUTPUT
        ENDCASE.
    TOP include
    SELECTION-SCREEN BEGIN OF SCREEN 9003 AS SUBSCREEN.
      PARAMETERS P_PLANT TYPE T001W-WERKS.
      SELECT-OPTIONS: S_MATNR    FOR MARA-MATNR,
                      S_LICHA    FOR MCHA-LICHA,
                      S_LIFNR    FOR LFA1-LIFNR.
    SELECTION-SCREEN END OF SCREEN   9003.
    Questions:
    1. on the PAI of my main screen 9001, how can I call the SUBSCREEN I created using CALL SUBSCREEN?
        the code:
            CALL SUBSCREEN 9001 INCLUDING 'PROG_NAME' '9002',
         is not working / syntax error.
    2. Should I call it like this?
        WHEN 'DISPLAY'.
           CALL SCREEN 9002.
       Screen 9002 PBO
            CALL SUBSCREEN 9001INCLUDING 'PROG_NAME' 9002',
         is not working / syntax error.
    Thanks all.
    Edited by: Jaime Cabanban on Dec 2, 2009 5:29 PM

  • SELECT-OPTIONS in Module Pool Sub-Screen

    Hi,
    I have been working on a Module-Pool Development, in the header portion of the Screen, I have provided a Selection-Screen as a Sub-Screen because the requirement specifies to display a SELECT-OPTION in the Header Area.
    Now the problem is that, when working with the Screen, as soon as I press <ENTER> the Main Screen re-calls the Selection-Screen in the Sub-Screen area and all the entries made in the Selection-Screen are reset/erased.
    Kindly provide a solution either to stop the <ENTER> action to re-call the sub-screen. Or on any alternate method(s) to  provide a SELECT-OPTION on a Module Pool based Screen UI.
    MAIN SCREEN Code:
    *  PROCESS BEFORE OUTPUT
    PROCESS BEFORE OUTPUT.
    *~  Set PF-STATUS and TiTLE for Screen 100
      MODULE status_0100.
    *~  Call the Subscreen Dynamically
      CALL SUBSCREEN subscr1 INCLUDING sy-cprog gv_dynnr1.
      CALL SUBSCREEN subscr2 INCLUDING sy-cprog gv_dynnr2.
    *  PROCESS AFTER INPUT
    PROCESS AFTER INPUT.
    *~  Handle the Exit Commands of Screen 100
      MODULE user_command_0100 AT EXIT-COMMAND.
    *~  Handle the User Command(s) for screen 100
      MODULE user_action_0100.
      CALL SUBSCREEN subscr1.
      CALL SUBSCREEN subscr2.
    So whenever <ENTER> is pressed, the PBO re-calls:
    CALL SUBSCREEN subscr1 INCLUDING sy-cprog gv_dynnr1.
    and the Selection-Screen is reset.
    Regards,
    Nishant Nayyar.

    Haii Nishant,
    This problem was earlier solved by one of the members and after going through it i have now created a select-option in the Subscreen. Just create two input fields, name them as if they were low and high (for convinience as in case of select-option).
    U now need to create a table of type rstabfield.
    Ex: gt_rstab_bukrs type rstabfield.
    Now create a button and assign a Fcode for it. When you click on this button then u need to implement the ranges functionality as in select-option. For that use the following function module:
    CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
    EXPORTING
      TITLE                   = ' '
       TEXT                    = ''
       SIGNED                  = 'X'
       SEARCH_HELP             = 'H_T001'
       TAB_AND_FIELD           = gt_rstab_bukrs
      TABLES
        RANGE                   = rg_bukrs1.
    Hope it helps.
    Best Regards,
    rama

  • Calling Sub screen

    Hi all,
          Iam getting a problem in calling a sub screen.
    Iam getting error as below:
    <b>"." or "ID .....FIELD..." expected after "SUBSCREEN".</b>
    Please go through this code and suggest me
    *& Module pool       Y_MP_SUB_03
    PROGRAM  Y_MP_SUB_03.
    tables : kna1.
    data : begin of itab occurs 0,
            name1 like kna1-name1,
            land1 like kna1-land1,
           end of itab.
    CALL SCREEN 100.
    *&      Module  USER_COMMAND_0100  INPUT
          text
    module STATUS_0100 output.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'TT'.
    CALL SUBSCREEN SUB 'Y_MP_SUB_03' '110' .
    endmodule.                 " STATUS_0100  OUTPUT
    module USER_COMMAND_0100 input.
      case sy-ucomm.
           when 'DISP'.
              SELECT NAME1 LAND1 FROM KNA1 INTO ITAB WHERE
               KUNNR = KNA1-KUNNR.
               APPEND ITAB.
              ENDSELECT.
          WHEN 'EXIT'.
             LEAVE PROGRAM.
      ENDCASE.
    endmodule.                 " USER_COMMAND_0100  INPUT
    *&      Module  STATUS_0100  OUTPUT
          text

    HI,
    u shouldn't use that in module.u have to call that in flow logic.
    PROGRAM ZBHTSTRIP.
    DATA:OKCODE LIKE SY-UCOMM.
    DATA: N1 TYPE I, N2 TYPE I, R1 TYPE I, R2 TYPE I.
    DATA SCRNO(4) TYPE N VALUE 2001.
    CONTROLS TABS TYPE TABSTRIP.
    MODULE USER_COMMAND_1001 INPUT.
       CASE OKCODE.
         WHEN 'ADD'.
           R1 = N1 + N2.
           SCRNO = 2001.
           TABS-ACTIVETAB = OKCODE.
         WHEN 'MUL'.
           R2 = N1 * N2.
           SCRNO = 2002.
           TABS-ACTIVETAB = OKCODE.
         WHEN 'BACK'.
           SET SCREEN 0.
         WHEN 'CLEA'.
           CLEAR: N1,N2.
       ENDCASE.
    ENDMODULE.                 " USER_COMMAND_1001  INPUT
    FORM ON_CTMENU_FORM1 USING MENU1 TYPE REF TO CL_CTMENU.
      CALL METHOD MENU1->LOAD_GUI_STATUS
        EXPORTING
          PROGRAM = 'ZBHTSTRIP'
          STATUS = 'MENU1'
          MENU = MENU1.
      CALL METHOD MENU1->ADD_FUNCTION
        EXPORTING
           FCODE = 'EXIT'
           TEXT = 'EXIT'.
    ENDFORM.
    MODULE STATUS_1001 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
      SET TITLEBAR 'TIT1001'.
    ENDMODULE.                 " STATUS_1001  OUTPUT
    FLOW LOGIC:
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_1001.
    <b>CALL SUBSCREEN SUBA INCLUDING 'ZBHTSTRIP' SCRNO.</b>
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_1001.
    CALL SUBSCREEN SUBA.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_2001.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_2001.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_2002.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_2002.
    rgds,
    bharat.

  • Encapsulated transaction call from a (sub) screen

    Hi all,
    i want to built a customer transaction what calls an amodal window movable over the calling session and i want to display a standard transaction in the underlying original session, e.g. FB03.
    My problem is, that when i have opened the amodal window and i call FB03 afterwards, the amodal window is closed. If i leave FB03 i run trough the PBO of my calling screen and i reopen the amodal window again.
    So: Is there any chance, to encapsulate the called transaction, so that it is displayed in my calling window without terminating the transaction what has called it? From a subscreen? From a container?
    I remember that similar standard functionality may exist in workflows, but i am not sure.
    Thanks in advance for any hints.
    Axel

    HI,
       It is not possible to call a sub screen from a sub screen.
    Rgds
    Umakanth

  • Calling custom dialog screen from Standard Transaction(user Exit)

    Hi, I'm calling Standard Transaction from a Custom Screen. I'm calling a custom screen again with in standard transaction (implemented custom screen thru user exits using macros). But when I click 'continue/cancel' in the custom screen, control is going back to main cutom screen rather go back to standard transaction. Could anyone please help me out how to come back to standard transaction from custom screen rather going back to main cutom screen.
    ***INCLUDE LZ_R_FORWARD_FORWARD_LOADI01 .
    *&      Module  USER_COMMAND_9000  INPUT
    MODULE user_command_9000 INPUT.
      CASE sy-ucomm.
        WHEN 'EXEC'.
          PERFORM validate_popup_data.
          IF flag_error_screen NE 'X'.
            MOVE-CORRESPONDING ZFFL_POPUP to var_ZFFL_POPUP.
            clear flag_return.
            SET SCREEN 0.
            LEAVE SCREEN.
          ENDIF.
        WHEN 'CANC'.
          flag_return = 'X'.
          SET SCREEN 0.
          LEAVE SCREEN.
        WHEN OTHERS.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_9000  INPUT
    *&      Module  exit_9000  INPUT
    MODULE exit_9000 INPUT.
      CASE sy-ucomm.
        WHEN 'CANC'.
    *      MOVE perf_flag TO lbpla_exist_flag.
          flag_return = 'X'.
          SET SCREEN 0.
          LEAVE SCREEN.
      ENDCASE.
    ENDMODULE.                 " exit_9000  INPUT
    Thanks in advance.

    Hi
    So the command SET SCREEN 0. LEAVE SCREEN. should "place" the program just after the calling of the popup so here:
    FUNCTION z_call_screen.
    * Call the Pop up screen
        CALL SCREEN 9000 STARTING AT 35 05.
    "<------------------------- The program should be here after going back from popup 9000
    ENDFUNCTION.
    Is it true?
    Max

  • Sub screen: Handling the Radio button selection?

    Hi,
    Scenario:
    I have a Main screen and a sub screen. From the main screen I am calling the sub screen. On the Sub screen, I have 2 radio button. On the selection of the Radio buttons, I am activating/deactivating few of the screen elements on the sub screen.
    I have grouped the radio button and also tried assigning Function code to it, but in vain..:(
    Issue
    I am not able to handle the event triggered by the selection of the radio buttons?
    Kindly suggest.
    Regards
    s@k

    Hi,
    Are you still have any Issue, Let us know
    In the Main Screen Element List there is a field OK_CODE pass an entry into it
    in the TOP Include
    DATA : OK_CODE type SY-UCOMM. " This captures the OK_CODE from the Screen.
    Since SUb Screen cant have their Own OK_CODE this can be handled in the Main Screen only
    Try in PAI of Sub Screen using OK_CODE if it is not working then Implement the same in PAI of Main Screen
    The system will generate UCOMM for Radio Button since they are in One Group only. Each Radio button cannt have a separate UCOMM assigned. In Screen Painter (if It is Module Pool) assign a FCode for the Radio Button.
    Even if try changing the FCODe Value they still will have the New Changed Value but cannot be changed.
    This automatically triggers PAI . only way to capture it is check
    case ok_code. " Optionally you can omit this
    when  ok_code = 'RAD'.  " This is common for all the Radio BUttons but cant be different
    if r1 = 'X'.
    elseif r2 'X' " Etc.
    endif.
    endcase.
    Ram
    Edited by: Ramchander Krishnamraju on Feb 26, 2010 10:37 AM

  • How can we restrict the sub-screen input field for particluar country?

    Hi all i am having infotype 21 maintained with custom fields for sub-screen 200.
    Out of that custom fields(City , District) They restricted city field not to appear for australian employees.
    and district is sucesfully appearing .
    They have written logic in the sub-screen 200 in PBO.this is reflecting in alll sub-types of 21(alomst 20 subtypes)
    module abc_output.
    If T001P-MOLGA = 'australia'.
    if screen name = 'city'.
    screen-input = 'OFF'.
    screen-invisible = 'ON'.
    endif.
    endif.
    Now the requirement is that this logic should be modified such that this city should appear in 7 sub-type instead of district.
    what should be written can any one guide please .
    regards
    sas

    Hi we can do in this way.
    If T001P-MOLGA = 'australia'
    if p00021-subty ne '7'.
    if screen name = 'city'.
    screen-input = 'OFF'.
    screen-invisible = 'ON'.
    endif.
    endif.
    if p0021-subty = '7'.
    if screen name = 'district'.
    screen-input = 'OFF'.
    endif.
    endif.
    Thanks and closing the thread
    regards
    sas

  • Call Pop-up screen with I/O fields form function module.

    Hello experts,
      I have a Zfunction module with input paramteres i_matnr, i_posnr and i_kwmeng.
      My requirement is to call a pop-up screen with following fields.
      Material - Inputbox for material (Read Only)  " v_matnr
      Item     - Inputbox for Item (Read Only)      " v_posnr
      Quantity - Inputbox for Qty (Read Only)       " v_kwmwng
      Price    - Inputbox for Qty (Change only)     " v_price
      Submit button.
      I created function ZSD_MAT_DATA.
      Added statement CALL SCREEN 0005
    In PBO_0005, (include Prog)
      v_matnr = i_matnr
      v_posnr = i_posnr
      v_kwmeng = i_kwmeng
    1. But it gives me error for not declaration i_matnr. What I am missing here?
    2. Is there anything to make window as pop-up with some specific size?
    Regards,
    RH

    Hi,
    You can use the stanadard FM K_KKB_POPUP_RADIO3
    else like same you can craete a new function accordind to your requirement.
    Hope it helps you.
    Reagrds
    Arbind

  • Regarding call sub screen dynamically

    hi to all,
    Is it possible to call subscreen dynamically means we are calling subscreen like
    PROCESS BEFORE OUTPUT.
    CALL SUBSCREEN SUB INCLUDING 'YSU_SUBSCREEN' '0120'.
    MODULE STATUS_0100.
    suppose we r coding like calls subscreen at the initially whenever display main screen but my requirement is
    i have edesigned 3 or 4 sub screens for vendor,material ..etc for up dation
    i  place the button regarding vendor whenver i press the button vendor that subscreen will display in that i designed insert delete update operations of vendor data like that all the screens
    for this operation can't use tabstrip control
    please provide solution
    thanks and regards,
    surya.

    Hello Surya,
    Based on a particular function code or click of a button it is possible to bring different subscreens into the normal screen's area reserved for calling subscreen
    ........so in the subscreen we need to give fields and structures required to be displayed on clicking a particular button or recieving a condition
    Please check the following
    declare a variable : loc_dynnr type sy-dynnr,
                                loc_repid  type sy-repid .
    assign a default value:
    loc_dynnr  = 120. "First subscreen being called
    loc_repid   = sy-repid. "report id 'YSU_SUBSCREEN'   
    we will be using the statement
    "CALL SUBSCREEN SUB INCLUDING 'YSU_SUBSCREEN' '0120'.
    CALL SUBSCREEN: SUB INCLUDING loc_repid  loc_dynnr.
    so on clicking the button we will have different function codes captured
    case sy-ucomm.
    when 'Button1'.
    loc_dynnr  = 120. "required subscreen to be called
    loc_repid   = sy-repid. "report id 'YSU_SUBSCREEN'   
    when 'Button2'.
    loc_dynnr  = 130. "required subscreen to be called
    loc_repid   = sy-repid. "report id 'YSU_SUBSCREEN'  
    when 'Button3'.
    loc_dynnr  = 140. "required subscreen to be called
    loc_repid   = sy-repid. "report id 'YSU_SUBSCREEN'  
    endcase.
    and in the calling code use...
    CALL SUBSCREEN: SUB INCLUDING loc_repid  loc_dynnr.
    please remember to put default values for loc_repid ,loc_dynnr..otherwise it may dump
    Pls check and revert..rewards if helpful
    also check the following link
    Re: Module Pool Program : Calling Subscreen in a Normal Screen
    Regards
    Byju

  • How to Call a standard screen with in a custom function module

    Hi Guru,
    I am copying a standard function module SWU_WF_TASK_DISPATCH in to Z function module in that they where calling a standard screen.
    Some one help me how to copy or call this standard sceen within the function module.
    Regards
    Paul

    Hi,
               for that you have to create screen from SE51 same number in standard and program name should be the name of Z function group's main program and declare all varriable in function group's top inclue.
    I think copy is not possible u have manually create screen for that.
    Regards
    Gagan

Maybe you are looking for

  • How do you mail merge in the new pages?

    I have a pages document that I merge with an informational spreadsheet for real estate brochures in our office. However, I can't find a mail merge option anywhere in the newest version of pages. Does anyone know a way around this? Any information wou

  • Downloading brushes from a collaborated library.

    Hi I am using a pc, I had a previous adobe account and had made a bunch of brushes and shapes I signed in to that account and clicked collaborate, I entered my new adobe account email and sent the invite. I signed back into my new account and it show

  • How to call stored procedure in ASP pages

    After I migragate MS SQL server database to Oracle 8i database, all the call to stored procedure in ASP has problems. I have been had a problem to find some document about how to call oracle stroed procedure from SQL*plus or using ADO. If anybody can

  • Color Photo

    Every once in a while I see someone has posted a picture to a site where they can get help with a technique. In addition to the black and white question I previously posted, I have a color photo that I really like but it's not a high quality photo. I

  • Ipod touch 4g camera looks..Grainy/static/fuzzy/blurry in low light

    i got a brand new 32gb ipod touch and the picture is terrible in low light but outside its ok, i was in my room with my moms 3rd generation iphone and my 4th generation ipod and her iphone had better quality when i took a picture of my poster, mine l