Call Subscreen in ALV

Hi Experts,
I have to call a subscreen MRP1 of MM03 with corresponding value on click of a materials number in my interactive ALV report.
When we Open MM03 it askes for subscreen, if we select MRP1 it askes for Plant entry & then it opens the MRP1 subscreen, I need tht screen to be open on click of a material Number.
DO anyone have any idea regarding this?
Regards,
Nik

Hi Eswar,
I used the CALL TRANSACTION & passed the paramenter matnr. But it is not skipping any screen. It shows th e1st screen of MM03 with the materials Number i am passing. Code is as below.
IF rs_selfield-fieldname  = 'MATNR'.
    SET PARAMETER ID 'MAT' FIELD gt_final-MATNR.
    CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
It skipps the ALV screen only & give me the MM03 screen with the material Number.
I dont want MM03 screen I want the subscreen MRP1, which comes after selecting MRP1 & passing the plant in MM03 for a material.
I tried the BDC code you had given. as it was for MM03 only I did a BDC for MM03 by passing plant also.
I added the code in my report But it askes for me to pass OK code, means says to press enter when i am execution the report & clicking on the material. It opens MM03 with OK code pop up.
Code is as below:
IF rs_selfield-fieldname = 'MATNR'.
    SET PARAMETER ID 'MAT' FIELD gt_final-MATNR.
    GET PARAMETER ID 'MAT' FIELD p_matnr.
    Perform BDC_CALL_MRP1.
FORM BDC_CALL_MRP1 .
*START-OF-SELECTION.
  PERFORM bdc_dynpro USING 'SAPLMGMM' '0060'.
  PERFORM bdc_field USING 'BDC_CURSOR' 'RMMG1-MATNR'.
  PERFORM bdc_field USING 'BDC_OKCODE' '=AUSW'.
  PERFORM bdc_field USING 'RMMG1-MATNR' p_matnr.
  PERFORM bdc_dynpro USING 'SAPLMGMM' '0070'.
  PERFORM bdc_field USING 'BDC_CURSOR' 'MSICHTAUSW-DYTXT(09)'.
  PERFORM bdc_field USING 'BDC_OKCODE' '=ENTR'.
  PERFORM bdc_field USING 'MSICHTAUSW-KZSEL(09)' 'X'.
  PERFORM bdc_dynpro USING 'SAPLMGMM' '0080'.
  PERFORM bdc_field USING 'BDC_CURSOR' 'RMMG1-WERKS'.
  PERFORM bdc_field USING 'BDC_OKCODE' '=ENTR'.
  PERFORM bdc_field USING 'RMMG1-WERKS' 'BP22'.
  CALL FUNCTION 'MATERIAL_BTCI_SELECTION_NEW'
    EXPORTING
      material                  = p_matnr
      materialart               = 'ROH'
      selection                 = 'D' " --> MRP Data
      tcode                     = 'MM03'
    TABLES
      btci_d0070                = bdcdata1
    EXCEPTIONS
      material_not_found        = 1
      material_number_missing   = 2
      material_type_missing     = 3
      material_type_not_found   = 4
      no_active_dynpro_selected = 5
      no_authority              = 6
      OTHERS                    = 7.
  APPEND LINES OF bdcdata1 TO bdcdata.
  CALL TRANSACTION 'MM03' USING bdcdata MODE 'A'.
CLEAR p_matnr.
ENDFORM.                    " BDC_CALL_MRP1
start new screen *
FORM bdc_dynpro USING program dynpro.
  CLEAR bdcdata.
  bdcdata-program = program.
  bdcdata-dynpro = dynpro.
  bdcdata-dynbegin = 'X'.
  APPEND bdcdata.
ENDFORM.                    "prepare_attachment
insert field *
FORM bdc_field USING fnam fval.
  CLEAR bdcdata.
  bdcdata-fnam = fnam.
  bdcdata-fval = fval.
  APPEND bdcdata.
ENDFORM.                    "prepare_attachment
Could you please tell me how to solve this problem. if i resolve this we can then call the MRP1 directly
Regards,
Nik

Similar Messages

  • Problem in Calling Subscreens

    Hi,
    my main screen number is 1001 and in that screen i have a tabstrip with subscreens 1002,1003,1004,1005,1006.Each tab has an ALV...
    When i click on excute button in my main screen 1001 then i need to call all the subscreens and all the ALV's should be displayed.
    My coding...
    Module user-command 1001.
    Case Sy-ucomm.
    When 'EXCE'.
    CALL SUBSCREEN TAB_SCA INCLUDING sy-repid '1002'.
    CALL SUBSCREEN TAB_SCA INCLUDING sy-repid '1003'.
    CALL SUBSCREEN TAB_SCA INCLUDING sy-repid '1004'.
    CALL SUBSCREEN TAB_SCA INCLUDING sy-repid '1005'.
    CALL SUBSCREEN TAB_SCA INCLUDING sy-repid '1006'.
    endcase.
    endmodule.
    but error is displayed as "," or "ID ... FIELD ..." expected after "SUBSCREEN".
    Guys Please let me know if someone knows the solution.
    Regards,
    Chaithanya.

    Hi,
    In PAI event, you should not use INCLUDING SY-REPID SCREEN_NO
    This is causing error.
    Wrting CALL SUBSCREEN TAB_SCA only once is enough as you are displaying
    multiple subscreens in same subscreen area.
    Regards,
    Vishal
    Edited by: Vishal Jadhav on Dec 9, 2008 3:54 PM

  • Call tcode from alv report and passing  group of values

    hi all .
    i want to call tcode from alv report and passing an internal table or group of values to a selection option of that t code ? how
    ex. passing group of GL to fbl3n and display the detials of all .
    thank you

    Dear,
    You have done a small mistake
    --> rspar_line-option = 'EQ'.
         rspar_line-HIGH = PDATE-HIGH.
    u r passing "high" value and in "option u r passing "EQ" so how it will work!!!
    So if u r passing only 1 date or more dates like 01.01.2010 , 15.02.2010 , 10.03.2010 then pass
    rspar_line-selname = 'SO_BUDAT'.
    rspar_line-kind = 'S'.
    rspar_line-sign = 'I'.
    rspar_line-option = 'EQ'.
    rspar_line-LOW = PDATE-HIGH.
    APPEND rspar_line TO rspar_tab.
    or if u r passing low & high date means in range like 01.01.2010 to 30.01.2010, then pass
    rspar_line-selname = 'SO_BUDAT'.
    rspar_line-kind = 'S'.
    rspar_line-sign = 'I'.
    rspar_line-option = 'BT''.
    rspar_line-LOW = PDATE-LOW.
    rspar_line-HIGH = PDATE-HIGH.
    APPEND rspar_line TO rspar_tab.
    try above code , hope it helps...
    i think u cannot use "call transaction using bdcdata" in ur case bcoz as u said in ur 1st post u want to display the details of all but still if u want to use then u should pass all parameters in  loop.
    PROGRAM
    DYNPRO
    DYNBEGIN
    FNAM
    FVAL
    ex:-
    LOOP AT GT_TEMP INTO GS_TEMP.
    CLEAR bdcdata_wa.
    bdcdata_PROGRAM = 'SAPXXXX'.
    bdcdata_DYNPRO = '1000'.
    bdcdata_DYNBEGIN = 'X'.
    bdcdata_wa-fnam = '''.
    bdcdata_wa-fval = ''.
    APPEND bdcdata_wa TO bdcdata_tab.
    CLEAR bdcdata_wa.
    bdcdata_PROGRAM = ''.
    bdcdata_DYNPRO = ''.
    bdcdata_DYNBEGIN = ''.
    bdcdata_wa-fnam = 'SD_SAKNR'.
    bdcdata_wa-fval = GS_TEMP-GLACCOUNT.
    APPEND bdcdata_wa TO bdcdata_tab.
    CLEAR bdcdata_wa.
    bdcdata_PROGRAM = ''.
    bdcdata_DYNPRO = ''.
    bdcdata_DYNBEGIN = ''.
    bdcdata_wa-fnam = 'BDC_OKCODE'.
    bdcdata_wa-fval = 'XXX'.
    APPEND bdcdata_wa TO bdcdata_tab.
    ENDLOOP.
    try above code if u r using call transaction...
    Edited by: mihir6666 on Jul 9, 2011 3:10 PM
    Edited by: mihir6666 on Jul 9, 2011 3:11 PM
    Edited by: mihir6666 on Jul 9, 2011 3:13 PM

  • Calling subscreen on click of radio button

    Hi,
    I am creating a module pool program , in which on click of a radio butto to 'YES' a subscreen should appear ( on the main screen) with few fields so that the user can input values of it.
    But I am having proble in calling the subscreen in PAI event.Actually I think it should be something like this
    Module user_command.
      case sy-ucomm.
       when rb_yes = 'X'
        { CALL SUBSCRREN CODE
    ENDIF.
    Can this be done? I f yes how? I only know how to call subscreen in PBO, but the syntax for calling subscrren is different in PAI i think.

    Hi,
    Try doing this.
    This is your flow logic in the main screen  to call the Subscreen's PBO
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0110.
    CALL SUBSCREEN TAB1_REF1 INCLUDING 'ZTRIAL' '0111'.
    In the PAI of the main screen,
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0110.
    CALL SUBSCREEN TAB1_REF1.
    Assign a function code to your radio button.
    Layout -> Attributes -> Function Code
    In the TOP include,
    DATA: v_dynnr type sy-dynnr.
    In module USER_COMMAND_0110.
    if p_rad = 'X'.
       v_dynnr = '0111'.
    else.
      v_dynnr =  ' '
    endif.
    You can check this for your reference
    [http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dbabfe35c111d1829f0000e829fbfe/content.htm]

  • Calling subscreen in module pool

    Hi friends,
                    I am trying to call sub-screen in module pool.
    but it is giving me an error as  "." or "ID ... FIELD ..." expected after "SUBSCREEN".
    i am using followning statement
    CALL SUBSCREEN SUB  INCLUDING SY-REPID '0101'.
    OR
    CALL SUBSCREEN SUB. (SUB is screen i have created in layout).
    I tried it a lot, but not able to solve it.
    Kindly help me.

    Hi Kiran,
    <li>Subscreen concept is like this. You have one main screen. You want another screen which has to be displayed on main screen when you run main screen.
    <li>First we need to create subscreen area on main screen. Goto layout and click subscreen element and place on main screen and name to that subscreen area as SUB.
    <li>Now create another screen type subscreen. place fields on that and write logic.
    <li> Check REPORT demo_dynpro_subscreens.
    Thanks
    venkat.O

  • Call Transaction in ALV GRID Display

    Hi All,
    i have an ALV list .( list of Invoices) i want to call  trans.
    VF03 from clicking the line .
    i have also used User Command, events  in ALV function .
    as mention below , but cant able to call transaction.
    in ALV line is selected but not working or moves to another Tcode as VF03 with parameter id .
    please help me in this , if any body can ?
    thanks in advance
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          I_INTERFACE_CHECK        = G_INTERFACE_CHECK
          I_CALLBACK_PROGRAM       = GV_REPID
          IT_FIELDCAT              = GT_FIELDCAT[]
          I_DEFAULT                = 'X'
          I_SAVE                   = 'A'
          IS_LAYOUT                = LAYOUT_IN
          IS_VARIANT               = VARIANT_DETAIL
          IT_EVENTS                = EVENTCAT
         I_CALLBACK_PF_STATUS_SET = 'SET_STATUS'
          I_CALLBACK_USER_COMMAND  = USER_COMMAND
          I_GRID_TITLE             = 'Tax Report : GRN'
        I_CALLBACK_TOP_OF_PAGE   = 'page_header'
        I_BACKGROUND_ID          = 'ALV_BACKGROUND'
        IS_PRINT                 = ALV_PRINT
        IMPORTING
          ES_EXIT_CAUSED_BY_USER   = LS_EXIT_BY_USER
      TABLES
        T_OUTTAB                 = IT_VBRP
      EXCEPTIONS
        PROGRAM_ERROR            = 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-SGV4.
      ENDIF.
    Nitin

    HI,
    check the sample code which call the transaction VA02.
    type-pools: slis.
    types: BEGIN OF TY_KNA1,
    KUNNR TYPE KUNNR,
    NAME1 TYPE NAME1,
    ORT01 TYPE ORT01,
    END OF TY_KNA1.
    TYPES: BEGIN OF TY_VBAK,
    VBELN TYPE VBELN,
    ERNAM TYPE ERNAM,
    ERDAT TYPE ERDAT,
    NETWR TYPE NETWR,
    WAERK TYPE WAERK,
    END OF TY_VBAK.
    *&--WORK AREA & TABLE DECLARATION--
    DATA: W_KNA1 TYPE TY_KNA1.
    DATA: T_KNA1 TYPE STANDARD TABLE OF TY_KNA1 INITIAL SIZE 1.
    DATA: W_VBAK TYPE TY_VBAK.
    DATA: T_VBAK TYPE STANDARD TABLE OF TY_VBAK INITIAL SIZE 1.
    *&--FIELDCAT TABLE & WORK AREA--
    DATA: W_FCAT TYPE SLIS_FIELDCAT_ALV.
    DATA: T_FCAT TYPE SLIS_T_FIELDCAT_ALV.
    DATA: W_FCAT1 TYPE SLIS_FIELDCAT_ALV.
    DATA: T_FCAT1 TYPE SLIS_T_FIELDCAT_ALV.
    *&--EVENT TABLE AND WORK AREA--
    DATA: W_EVENTS TYPE SLIS_ALV_EVENT.
    DATA: T_EVENTS TYPE SLIS_T_EVENT.
    DATA: W_EVENTS1 TYPE SLIS_ALV_EVENT.
    DATA: T_EVENTS1 TYPE SLIS_T_EVENT.
    *&--COMMENT TABLE & WORK AREA--
    DATA: W_COMMENT TYPE SLIS_LISTHEADER.
    DATA: T_COMMENT TYPE SLIS_T_LISTHEADER.
    DATA: W_COMMENT1 TYPE SLIS_LISTHEADER.
    DATA: T_COMMENT1 TYPE SLIS_T_LISTHEADER.
    APPENDING FCAT -
    W_FCAT-COL_POS = 1.
    W_FCAT-FIELDNAME = 'KUNNR'.
    W_FCAT-SELTEXT_M = 'CUST. NO'.
    W_FCAT-HOTSPOT = 'X'. "HOT SPOT HAND SYMBOL
    W_FCAT-EMPHASIZE = 'C119'. "FOR COLORING THE COLUMN 1
    APPEND W_FCAT TO T_FCAT.
    CLEAR W_FCAT.
    W_FCAT-COL_POS = 2.
    W_FCAT-FIELDNAME = 'NAME1'.
    W_FCAT-SELTEXT_M = 'CUST. NAME'.
    APPEND W_FCAT TO T_FCAT.
    W_FCAT-COL_POS = 3.
    W_FCAT-FIELDNAME = 'ORT01'.
    W_FCAT-SELTEXT_M = 'CITY'.
    APPEND W_FCAT TO T_FCAT.
    W_FCAT1-COL_POS = 1.
    W_FCAT1-FIELDNAME = 'VBELN'.
    W_FCAT1-SELTEXT_M = 'ORDER NO'.
    W_FCAT1-EMPHASIZE = 'C519'.
    APPEND W_FCAT1 TO T_FCAT1.
    CLEAR W_FCAT.
    W_FCAT1-COL_POS = 2.
    W_FCAT1-FIELDNAME = 'ERNAM'.
    W_FCAT1-SELTEXT_M = 'NAME OF PARTY'.
    APPEND W_FCAT1 TO T_FCAT1.
    W_FCAT1-COL_POS = 3.
    W_FCAT1-FIELDNAME = 'ERDAT'.
    W_FCAT1-SELTEXT_M = 'DATE'.
    APPEND W_FCAT1 TO T_FCAT1.
    W_FCAT1-COL_POS = 4.
    W_FCAT1-FIELDNAME = 'NETWR'.
    W_FCAT1-SELTEXT_M = 'ORDER VALUE'.
    APPEND W_FCAT1 TO T_FCAT1.
    W_FCAT1-COL_POS = 5.
    W_FCAT1-FIELDNAME = 'WAERK'.
    W_FCAT1-SELTEXT_M = 'CURRENCY'.
    APPEND W_FCAT1 TO T_FCAT1.
    *&--APPEND COMMENTRY--
    W_COMMENT-TYP = 'H'.
    W_COMMENT-INFO = 'CUSTOMER DETAILS'.
    APPEND W_COMMENT TO T_COMMENT.
    CLEAR W_COMMENT.
    *&--APPEND EVENTS TABLE--
    W_EVENTS-NAME = 'TOP_OF_PAGE'.
    W_EVENTS-FORM = 'TOPPAGE'.
    APPEND W_EVENTS TO T_EVENTS.
    W_EVENTS-NAME = 'USER_COMMAND'.
    W_EVENTS-FORM = 'SUB2'.
    APPEND W_EVENTS TO T_EVENTS.
    W_EVENTS1-NAME = 'TOP_OF_PAGE'.
    W_EVENTS1-FORM = 'TOPPAGE1'.
    APPEND W_EVENTS1 TO T_EVENTS1.
    CLEAR W_EVENTS1.
    W_EVENTS1-NAME = 'USER_COMMAND'.
    W_EVENTS1-FORM = 'SUB3'.
    APPEND W_EVENTS1 TO T_EVENTS1.
    SELECT-OPTIONS: CUSTNO FOR W_KNA1-KUNNR.
    SELECT KUNNR
    NAME1
    ORT01 FROM KNA1 INTO TABLE T_KNA1
    WHERE KUNNR IN CUSTNO.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = SY-REPID
    *I_BACKGROUND_ID =
    I_GRID_TITLE = 'CUSTOMER DETAILS'
    IT_FIELDCAT = T_FCAT
    IT_EVENTS = T_EVENTS
    TABLES
    T_OUTTAB = T_KNA1 .
    FORM TOPPAGE.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    IT_LIST_COMMENTARY = T_COMMENT
    I_LOGO = 'LOGO_ALV'.
    ENDFORM. "END OF TOPPAGE SUB.
    FORM SUB2 USING UCOMM LIKE SY-UCOMM FIELDS1 TYPE SLIS_SELFIELD.
    READ TABLE T_KNA1 INTO W_KNA1 INDEX FIELDS1-TABINDEX.
    SELECT VBELN
    ERNAM
    ERDAT
    NETWR
    WAERK
    FROM VBAK
    INTO TABLE T_VBAK
    WHERE KUNNR = W_KNA1-KUNNR.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = SY-REPID
    *I_BACKGROUND_ID =
    I_GRID_TITLE = 'LIST OF ORDERS'
    IT_FIELDCAT = T_FCAT1
    IT_EVENTS = T_EVENTS1
    TABLES
    T_OUTTAB = T_VBAK.
    ENDFORM. "END OF SUB2.
    FORM TOPPAGE1.
    *&--APPEND COMMENTRYOF SECONDRY SCREEN--
    W_COMMENT1-TYP = 'H'.
    W_COMMENT1-INFO = 'LIST OF ORDERS'.
    APPEND W_COMMENT1 TO T_COMMENT1.
    W_COMMENT1-TYP = 'S'.
    W_COMMENT1-KEY = 'CUSTOMER'.
    W_COMMENT1-INFO = W_KNA1-KUNNR.
    APPEND W_COMMENT1 TO T_COMMENT1.
    CLEAR W_COMMENT.
    W_COMMENT1-TYP = 'A'.
    W_COMMENT1-INFO = W_KNA1-NAME1.
    APPEND W_COMMENT1 TO T_COMMENT1.
    CLEAR W_COMMENT1.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    IT_LIST_COMMENTARY = T_COMMENT1
    I_LOGO = 'LOGO_ALV'
    REFRESH T_COMMENT1.
    ENDFORM. "END OF TOPPAGE1
    FORM SUB3 USING UCOMM LIKE SY-UCOMM FIELDS1 TYPE SLIS_SELFIELD.
    READ TABLE T_VBAK INTO W_VBAK INDEX FIELDS1-TABINDEX.
    SET PARAMETER ID 'VBAk' FIELD W_VBAK-VBELN.
    CALL TRANSACTION 'VA02' AND SKIP FIRST SCREEN.
    ENDFORM.
    reward if useful.
    thanks and regards.

  • Call subscreen

    Hi
    CALL SUBSCREEN is used only in  the flow logic but not in the actual program. I want to know the reason why it is not used in the  actual program. please help me.
    POINTS WILL BE GIVEN.
    thanks,
    S.Gangi Reddy.

    hi,
    Subscreens allow you to embed one screen within another at runtime. The term subscreen applies both to the screen that you embed, and the area on the main screen in which you place it. This section is about subscreen areas. The actual screens that you embed are called subscreen screens. When you use a subscreen, the flow logic of the embedded screen is also embedded in the flow logic of the main screen. Using subscreens on screens is like using includes in ABAP programs.
    Subscreens are screens which can be embeded into another screen. These can be used and created with both selection screen as well as screen painter.
      They differ from normal screens in the way that that they don't have OK_CODE field of ther own and there PBO and PAI transfer data to the ABAP program in which these screens were created and the cannot have module calls which change status or leave screen and module call AT EXIT-COMMAND AND E type function codes.
    Subscreens allow you to embed one screen within another at runtime. The term subscreen applies both to the screen that you embed, and the area on the main screen in which you place it. This section is about subscreen areas. The actual screens that you embed are called subscreen screens. When you use a subscreen, the flow logic of the embedded screen is also embedded in the flow logic of the main screen. Using subscreens on screens is like using includes in ABAP programs.
    In screen painter(SE51) choose the subscreen tool button and draw a subscreen area on the screen,this subscreen area will be used to hold the subscreen at run time.To make a subscreen select the attribute screen type as subscreen and specify the size of the subscreen according to the size of the subscreen area in which it will be placed.
    We use ABAP statement to embed and start the flow logic of the subscreen area in the PBO of a screen. A subscreen can contain another subscreen.
    Hope this answers you, Do reward.
    Edited by: Runal Singh on Feb 8, 2008 5:36 PM

  • To call subscreen in another screen

    hi
    How to call a subscreen if i check certain checkbox.please help

    Hi,
    In screen painter(SE51) choose the subscreen tool button and draw a subscreen area on the screen,this subscreen area will be used to hold the subscreen at run time.To make a subscreen select the attribute screen type as subscreen and specify the size of the subscreen according to the size of the subscreen area in which it will be placed.
    We use ABAP statement to embed and start the flow logic of the subscreen area in the PBO of a screen. A subscreen can contain another subscreen.
    CALL SUBSCREEN subscreen_area INCLUDING program screen_number.
    A similar call should also exist in PAI of screen.It will also call the PAI modules of the subscreen and will transfer data from subscreen to ABAP program.
    CALL SUBSCREEN subscreen_area.
    open T.code : ABAPDOCU
    path:BC ABAP Prg ->ABAP User dialog ->Screen ->Complex screen element - >Subscreen.
    You will get sample prg, Run it.You can get lot of sample prg in T.Code ABAPDOCU.
    Regards,
    Raj.

  • Facing problem with call subscreen area in standard infotype

    Dear SAP Guru's,
    I have enhanced standard infotype 0185 from PM01, in assign enhancement tab it create multiple screens ,
    my program name ZP018500, screen number 0200 generated,
    on  0200 screen i need to display two subscreens tfor that
    i have created subscreen area  on srcreen 0200 which is already a subscreen.
    and i am calling two subscreen 0201 and 0202 on that  subscreen area.
    while creating entries for 0185 infotype  my screen keep going in continious loop for call subscreen statement on 0200 screen number.
    roll in fail, session terminated error coming because of this.
    is it correct to create subscreen area on subscreen and calling subscreen on that.
    Guide me to solve the issue.
    Thanks and Regards,
    Syed

    Dear Gopal,
    Thanks for the reply,
    But i can't make 0200 screen as normal screen because it is automatically generated by system while enhancing the standard infotype,
    Please let me know any other solution.
    Regards,
    Syed Taj

  • How to call subscreen and provide selection screen in subscreen

    Hi experts,
    please anybody suggest me how to call subscreen in module pool screen and provide selection screen in that sub screen.
    please tell me how to design this subscreen in module pool screen.
    adevanced
    thank you
    regards
    vijay krishna

    Hi,
    If you need to have select-options in module pool then follow these steps:-
    To implement select-options in module pool, first design two input/output fields (textboxes) for the low and high value of the field and name it as <field_name>-low and <field_name>-high.
    Create a button next the high value textbox and keep its sutaible function code.
    Now, to call the pop-up on this button click, we have to call the same pop-up as in standard      select-options. For this we have to use the function module COMPLEX_SELECTIONS_DIALOG.
    For this FM we have to pass the table name, field name and the range for the field whose range needs to fill when using the popup screen.
    To pass the table name and field name details into the FM, we have to declare as:
    DATA : tab TYPE rstabfield.
    This structure comprises of table name and field name.
    Pass these details in program as:-
    u2003
    *-- clear table and field details
      CLEAR tab.
    *-- append for range depending on the button clicked
    *   either for sales order or line item
      CASE sy-ucomm.
        WHEN 'VBELN'.
          tab-tablename = 'VBAP'.
          tab-fieldname = 'VBELN'.
    *--To call the popup screen for the field use code:-
      CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
        EXPORTING
          title             = text-002  u201Ctitle text
          text              = ' '
          signed            = 'X'
          search_help       = v_shelp u201Csearch help if required
          tab_and_field     = tab u201Ctable and field name details
        TABLES
          range             = r_vbeln u201Crange for the associated field
        EXCEPTIONS
          no_range_tab      = 1
          cancelled         = 2
          internal_error    = 3
          invalid_fieldname = 4
          OTHERS            = 5.
    Hope this helps you.
    Regards,
    Tarun

  • Calling an existing ALV report in WD4A

    Im going to try to call an existing ALV report using WD4A.
    Was wondering if anybody has used the "SUBMIT <report> EXPORTING LIST TO MEMORY" option to get the results table, then after IMPORTING from memory, display this in ALV in Webdynpro abap?

    I was able to acomplish the following way...
    My WD4A component has an assistance class, has a method fetch_results, in that method, I pass my selection criteria which calls a function.
    The function does this...
      SUBMIT  REPORTXYZ
      USING SELECTION-SET lv_variant
      AND RETURN
        WITH pnppernr IN pnppernr
        WITH pnpbegps EQ act_begda
        WITH pnpendps EQ act_endda
        WITH pnpbegda EQ act_begda
        WITH pnpendda EQ act_endda
        WITH pnptimed EQ blank
        WITH p_layout EQ '/MGR SEP'
        WITH p_portal EQ 'X'.
    My p_portal parameter is a flag that REPORTXYZ will use to export the it_output to memory.
    I then import that table to the function module which returns to WD4A alv.
      IMPORT zit_output TO tbl_output FROM MEMORY ID
        lv_flag.

  • Call subscreen dynamically

    Hi all
    I need to call subscreen from user exit screen depend on user data.
    i can't write "if ... endif" on proccess.
    how should i do it?

    Hi
    Use the below statment
    CALL SUBSCREEN <SUBAREA>  INCLUDING <PROGRAMNAME> V_DYNPRO.
    This v_dynpro need to be fill with the screen number you wanna call before you use the above statment .
    Include a Module find_screen before a call and in that use if condition .If you face any issue with this  then assign the value v_dynpro(Screen number) before PBO start ,such as PAI of other screen from which this screen is called or if it is called from report such as call screen number . Then fill the v_dynpro before the call screen .
    Hope this answer helps.
    Cheers
    J.

  • Error in call subscreen..   CALL SUBSCREEN ref1.

    Hi Guru's
    i am trying to use tabstrip. initially i have created the program using tabstrip control wizard. but now the same code i am writing using tabstrip control.
    But while clicking 2nd tab i am getting errot as " Invalid field format (screen error)"
    my code is
    REPORT  ytest2.
    DATA: g_tabst_act TYPE sy-ucomm.
    CONTROLS: tabstrip_control TYPE TABSTRIP.
    DATA: BEGIN OF tabst,
          prog    TYPE sy-repid VALUE 'YTEST2' ,
          screen  TYPE sy-dynnr,
          press_t TYPE sy-ucomm VALUE 'TAB2',
          END OF tabst.
    CALL SCREEN 100.
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'ST'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE user_command_0100 INPUT.
      CASE sy-ucomm.
        WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
          SET SCREEN 0.
        WHEN OTHERS.
          tabst-press_t = sy-ucomm.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Module  ACTIVATE_TABSTRIP  OUTPUT
          text
    MODULE activate_tabstrip OUTPUT.
      g_tabst_act = tabst-press_t.
      tabstrip_control-activetab = g_tabst_act.
      CASE g_tabst_act.
        WHEN  'TAB1'.
          tabst-prog   = sy-repid.
          tabst-screen = '1001'.
        WHEN  'TAB2'.
          tabst-prog   = sy-repid.
          tabst-screen = '1002'.
      ENDCASE.
    ENDMODULE.                 " ACTIVATE_TABSTRIP  OUTPUT
    screen flow logic is
    PROCESS BEFORE OUTPUT.
      MODULE status_0100.
      MODULE activate_tabstrip.
      CALL SUBSCREEN ref1 INCLUDING tabst-prog tabst-screen.
    PROCESS AFTER INPUT.
      MODULE user_command_0100.
      CALL SUBSCREEN ref1.
    Element list is..
    +           TABSTRIP_CONTROL     Tab     1     1     78     78     23
    -           TAB1     Push     1     1     4     4     1
    -           TAB2     Push     1     2     4     4     1
    -           REF1     Subsc     3     2     73     73     20
                                                                                    OK     0     0     20     20     1      OK
    Can you please help me why i am geting this error.

    Hi,
    Check have you done this .....
    "As this is done for you by the wizard, but if you are creating tab control manually you must do this....
    *&SPWIZARD: OUTPUT MODULE FOR TS 'DEAL_TABS'. DO NOT CHANGE THIS LINE!
    *&SPWIZARD: SETS ACTIVE TAB
    MODULE DEAL_TABS_ACTIVE_TAB_SET OUTPUT.
      DEAL_TABS-ACTIVETAB = G_DEAL_TABS-PRESSED_TAB.
      CASE G_DEAL_TABS-PRESSED_TAB.
        WHEN C_DEAL_TABS-TAB1.
          G_DEAL_TABS-SUBSCREEN = '0101'.
        WHEN C_DEAL_TABS-TAB2.
          G_DEAL_TABS-SUBSCREEN = '0102'.
        WHEN C_DEAL_TABS-TAB3.
          G_DEAL_TABS-SUBSCREEN = '0103'.
        WHEN C_DEAL_TABS-TAB4.
          G_DEAL_TABS-SUBSCREEN = '0104'.
        WHEN OTHERS.
    *&SPWIZARD:      DO NOTHING
      ENDCASE.
    ENDMODULE.
    *&SPWIZARD: INPUT MODULE FOR TS 'DEAL_TABS'. DO NOT CHANGE THIS LINE!
    *&SPWIZARD: GETS ACTIVE TAB
    MODULE DEAL_TABS_ACTIVE_TAB_GET INPUT.
      OK_CODE = SY-UCOMM.
      CASE OK_CODE.
        WHEN C_DEAL_TABS-TAB1.
          G_DEAL_TABS-PRESSED_TAB = C_DEAL_TABS-TAB1.
        WHEN C_DEAL_TABS-TAB2.
          G_DEAL_TABS-PRESSED_TAB = C_DEAL_TABS-TAB2.
        WHEN C_DEAL_TABS-TAB3.
          G_DEAL_TABS-PRESSED_TAB = C_DEAL_TABS-TAB3.
        WHEN C_DEAL_TABS-TAB4.
          G_DEAL_TABS-PRESSED_TAB = C_DEAL_TABS-TAB4.
        WHEN OTHERS.
    *&SPWIZARD:      DO NOTHING
      ENDCASE.
    ENDMODULE.
    Hope it helps you,
    Regards,
    Abhijit G. Borkar

  • Calling subscreen which is part of tabstrip control

    I am trying to call a subscreen which is part of a tab control, but i keep getting the error message:  "." or "ID....FIELD..." expected after SUBSCREEN.  Here is the code: 
    CALL SUBSCREEN tab2 including zd_tabstrip 102.
    What is my mistake?

    CALL SUBSCREEN....... statement will not work inside any module. So, you need to set the screen number and than you have to set the subscreen with that screen.
    Try like:
    In your code:
    CASE ok_code.
    WHEN 'EDIT'.
    CLEAR ok_code.
    LOOP AT itab INTO wa_itab.
    IF wa_itab-mark = 'X'.
    SELECT SINGLE * FROM zdstats WHERE zplayer = wa_itab-zplayer.
    W_DYNNR = '0102'.
    ENDIF.
    ENDLOOP.
    endcase.
    In your flow logic:
    PROCESS BEFORE OUTPUT.
      CALL SUBSCREEN tab2 including zd_tabstrip W_DYNNR.
    PROCESS AFTER INPUT.
      CALL SUBSCREEN tab2.
    Regards,
    Naimesh Patel

  • Calling Subscreen using tabstrip control

    Hello all,
    I need to create a tabstrip with 2 tabs.
    when i click on the first tab i need to have 4 fieldnames from EKKO.
    when i click on the second tab i need to have 2 fieldname from EKPO
    I have created a Tabstrip control with 2 tabs.
    Subcreen area is also created in this tabstrip control.
    And i have created 2 subscreens for the 2 tabs.
    but i am not able to call the subcreens.
    Can someone tell me how to do this.
    Thanks
    Harish

    Hi Harish,
    Chekc this
    Calling subscreen in tabstrip
    hope it helps.
    Thanks!

Maybe you are looking for