Call alv from screen painter

hello all expert,
i have requirement display alv report in screen painter. select options and report display on same screen.
iam taking custom control for display alv report .but when i click on button alv not displayed in custom control.
plz help me anyone /
there is no hurry.
Thanks in advance,
   sandeep.
Edited by: Thomas Zloch on Jan 22, 2011 1:00 PM - urgency reduced

Thanks for reply ,
now i write my code in  pbo and pbi event but report not displayed yet.
now this is the code.
*& Report  ZTEST_SCREEN1                                               *
REPORT  ZTEST_SCREEN1                           .
DATA :
  gr_EBELN TYPE RANGE OF EKKO-EBELN,
  grs_EBELN LIKE LINE OF gr_EBELN.
DATA:
  gs_fieldcatalog TYPE lvc_s_fcat OCCURS 0,
  gv_fcat LIKE LINE OF gs_fieldcatalog,
  gs_layout TYPE lvc_s_layo.
TYPES :
  BEGIN OF gty_item,
    mandt LIKE EKKO-mandt,
    EBELN LIKE EKKO-EBELN,
    lifnr LIKE EKKO-lifnr,
    matnr LIKE EKPO-matnr,
   desc_text LIKE zEKPO-desc_text,
  END OF gty_item,
  BEGIN OF gty_EKKO,
    mandt LIKE EKKO-mandt,
    EBELN LIKE EKKO-EBELN,
    lifnr LIKE EKKO-lifnr,
  END OF gty_EKKO,
  BEGIN OF gty_EKPO,
    EBELN LIKE EKPO-EBELN,
    matnr LIKE EKPO-matnr,
  END OF gty_EKPO.
DATA :
  gs_item TYPE gty_item,
  gt_item TYPE TABLE OF gty_item.
DATA :
  gs_EKKO TYPE gty_EKKO,
  gt_EKKO TYPE TABLE OF gty_EKKO,
  gs_EKPO TYPE gty_EKPO,
  gt_EKPO TYPE TABLE OF gty_EKPO.
DATA :
  g_Container TYPE scrfname VALUE 'CC_CONTAINER_GRID',
  g_Custom_Container TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
  g_Grid TYPE REF TO CL_GUI_ALV_GRID.
DATA :
  OK_CODE LIKE sy-ucomm,
  SAVE_OK LIKE sy-ucomm.
START-OF-SELECTION.
call screen 100.
*&      Module  STATUS_0100  OUTPUT
      text
MODULE STATUS_0100 OUTPUT.
  SET PF-STATUS 'MAIN'.
  SET TITLEBAR 'TITLE'.
  IF g_Custom_Container IS INITIAL.
"Create CONTAINER object with reference to container name in the screen
    CREATE OBJECT g_Custom_Container EXPORTING CONTAINER_NAME =
    g_Container.
    " Create GRID object with reference to parent name
    CREATE OBJECT g_Grid EXPORTING I_PARENT = g_Custom_Container.
    PERFORM u_prepare_fieldcatalog.
    gs_layout-ZEBRA = 'X'.
    "gs_layout-edit = 'X'. " Makes all Grid editable
    " SET_TABLE_FOR_FIRST_DISPLAY
    CALL METHOD g_Grid->SET_TABLE_FOR_FIRST_DISPLAY
      EXPORTING
        is_layout = gs_layout
      CHANGING
        it_fieldcatalog = gs_fieldcatalog
        IT_OUTTAB = gt_item. " Data
  ELSE.
    CALL METHOD g_Grid->REFRESH_TABLE_DISPLAY.
  ENDIF.
ENDMODULE.                 " STATUS_0100  OUTPUT
*&      Module  USER_COMMAND_0100  INPUT
      text
MODULE USER_COMMAND_0100 INPUT.
CASE OK_CODE.
    WHEN 'EXIT' OR 'BACK' OR 'CNCL'.
      LEAVE PROGRAM.
    WHEN 'LIST'.
      PERFORM u_filter_EKKO.
    WHEN OTHERS.
  ENDCASE.
ENDMODULE.                 " USER_COMMAND_0100  INPUT
*&      Form  u_filter_EKKO
      text
-->  p1        text
<--  p2        text
FORM u_filter_EKKO .
     REFRESH gt_EKKO.
  Define Range Criteria
  grs_EBELN-SIGN   = 'I'.
  grs_EBELN-OPTION = 'EQ'.
grs_EBELN-low    = '6000000004'.
grs_EBELN-high   = ekko-ebeln.
  APPEND grs_EBELN to gr_EBELN.
CHECK gr_EBELN[] IS NOT INITIAL.
  SELECT mandt EBELN kunnr
    FROM EKKO INTO TABLE gt_EKKO
    WHERE EBELN IN gr_EBELN.
  CHECK gt_EKKO[] IS NOT INITIAL.
  SELECT EBELN matnr
    FROM EKPO INTO TABLE gt_EKPO
    FOR ALL ENTRIES IN gt_EKKO
    WHERE EBELN EQ gt_EKKO-EBELN.
  IF gt_EKKO[] IS NOT INITIAL.
    LOOP AT gt_EKPO INTO gs_EKPO.
      READ TABLE gt_EKKO INTO gs_EKKO WITH KEY EBELN = gs_EKPO-EBELN.
      gs_item-mandt = gs_EKKO-mandt.
      gs_item-EBELN = gs_EKKO-EBELN.
      APPEND gs_item TO gt_item.
      CLEAR gs_item.
      CLEAR gs_EKKO.
      CLEAR gs_EKPO.
    ENDLOOP.
  ENDIF.
ENDFORM.                    " u_filter_EKKO
FORM U_PREPARE_FIELDCATALOG .
  CLEAR gv_fcat.
  gv_fcat-fieldname = 'MANDT'.
  gv_fcat-tabname = 'EKPO'.
  gv_fcat-col_pos = 0.
  gv_fcat-coltext = 'MANDT'.
  gv_fcat-no_out = 'X'. " Do not Display Column
  INSERT gv_fcat INTO TABLE gs_fieldcatalog.
  CLEAR gv_fcat.
  gv_fcat-fieldname = 'EBELN'.
  gv_fcat-tabname = 'EKPO'.
  gv_fcat-col_pos = 1.
  gv_fcat-coltext = 'EBELN'.
  INSERT gv_fcat INTO TABLE gs_fieldcatalog.
  CLEAR gv_fcat.
  gv_fcat-fieldname = 'ERDAT'.
  gv_fcat-tabname = 'EKPO'.
  gv_fcat-col_pos = 2.
  gv_fcat-coltext = 'ERDAT'.
  INSERT gv_fcat INTO TABLE gs_fieldcatalog.
  CLEAR gv_fcat.
  gv_fcat-fieldname = 'KUNNR'.
  gv_fcat-tabname = 'EKPO'.
  gv_fcat-col_pos = 3.
  gv_fcat-coltext = 'KUNNR'.
  INSERT gv_fcat INTO TABLE gs_fieldcatalog.
  CLEAR gv_fcat.
  gv_fcat-fieldname = 'MATNR'.
  gv_fcat-tabname = 'EKPO'.
  gv_fcat-col_pos = 5.
  gv_fcat-coltext = 'MATNR'.
  INSERT gv_fcat INTO TABLE gs_fieldcatalog.
ENDFORM. " U_PREPARE_FIELDCATALOG

Similar Messages

  • Printout from screen painter

    Hi,
    From the ABAP program am getting the input and fetch the value from the table and passing to Screen painter by 'call screen' command. The screen have some standard formats, again I have to give some input value and validate against already fetch the value from the table. If the validation is correct means I have to print the screen as displaying in the screen.
    But when I click the print icon at the output screen I can get the printout of  input screen of the ABAP program.
    How can I print the output from  screen painter?
    My program is as blow:
    Parameters:
                   pr_wrk like vbrp-werks obligatory,
                   pr_vbl like vbrk-vbeln obligatory,
                   pr_mat like vbrp-matnr obligatory,
                   pr_lsz(10) type n.
    select ..... from vbrk
          where vkorg eq pr_wrk
          and   vbeln eq pr_vbl.
    select ....
    compute
    call screen 103
    module user_command_0103 input.
      line_count = sy-loopc.
      data : ok_code like sy-ucomm.
      case ok_code.
        when 'PRINT'.
          call function 'GET_PRINT_PARAMETERS'
            exporting
              destination            = 'LOCL'
              copies                 = count
              list_name              = 'TEST'
              list_text              = 'PDI OS'
              immediately            = 'X'
              release                = 'X'
              new_list_id            = 'X'
              expiration             = days
              line_size              = 70
              line_count             = 55
              layout                 = 'X_65_80'
              sap_cover_page         = 'X'
              cover_page             = 'X'
              receiver               = 'SAP*'
              department             = 'System'
              sap_object             = 'RS'
              ar_object              = 'TEST'
              archive_id             = 'XX'
              archive_info           = 'III'
              archive_text           = 'Description'
              no_dialog              = ' '
            importing
              out_parameters         = params
              out_archive_parameters = arparams
              valid                  = valid.
          if valid <> space.
            submit zpdi_report using selection-set 'DATA' to sap-spool
              spool parameters params
              archive parameters arparams
              without spool dynpro.
          endif.
    Kindly help me.
    Regards,
    S. John

    Assuming the call to 'GET_PRINT_PARAMETERS' is successful (you did not check the return code), then you need to use
    IF VALID EQ 'X'.

  • How to show screen design in .srf (from Screen Painter) using SDK?

    How to show screen design in .srf (from Screen Painter) using SDK?

    You need to use the LoadBatchActions method of the Application object to load .SRF files.
    John.

  • How to delete invisible fields from screen painter SE51?

    Dear all,
    How to delete/remove invisible fields from screen painter SE51?
    Thanks.

    HI,
    just go to screen painter-->layout in change mode.
    the invisible fields will be looking faded
    click on that and press the DEL button.
    that will be deleted.
    <b><REMOVED BY MODERATOR></b>
    vivekanand
    Message was edited by:
            Alvaro Tejada Galindo

  • Calling list from Screen

    I am new in the field of SAP ABAP. So please tell me how to "call list from screen 100". please give small prg. for this

    see below
    This section describes how to switch from screen processing to list processing. It contains a short technical introduction, followed by a recommended procedure.
    Switching Between Screen and List Processing
    Screen processing always involves a screen sequence that you start either using CALL SCREEN or a transaction code. During screen processing, the ABAP program is controlled by the dialog processor. In the ABAP program, the PBO and PAI modules are executed as they are called from the screen flow logic.
    To pass control from the dialog processor to the list processor, you must include the following statement in one of the dialog modules:
    LEAVE TO LIST-PROCESSING [AND RETURN TO SCREEN <nnnn>].
    You can include this statement in either the PBO or the PAI event. Its effect is to start the list processor and display the basic list after the PAI processing of the current screen. The basic list contains any list output from all PBO and PAI modules that have been executed up to that point.
    If detail lists are defined in the corresponding event blocks of the ABAP program (AT LINE-SELECTION, AT USER-COMMAND), user actions on the basic list will lead to the detail list, and further interaction will lead to further list levels.
    You can leave list processing in two ways:
    By leaving the basic list using the Back, Exit, or Cancel function.
    By using the following statement during list processing:
    LEAVE LIST-PROCESSING.
    In both cases, control returns from the list processor to the dialog processor. Each time this occurs, the entire list system is initialized. Any subsequent list output statements in PBO and PAI modules apply to an empty basic list.
    By default, the dialog processor returns to the PBO processing of the screen from which the list processor was called. The optional addition AND RETURN TO SCREEN allows you to specify a different screen in the current screen sequence at whose PBO event you want to resume processing. In particular, the statement
    LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
    can be used to end the current screen sequence and return to the point from which it had originally been called.

  • How to enter values in ztable from screen painter

    Hi guys,
    I have a scenario,where i have to enter values in ztable for the values entered in  screen painter.The screen painter is supposedly having 10 columns. i enter the value in the grid(table) and when i save, the records have to be inserted into ztable created by me. how to go through the problem. kindly help in  giving a flow for the problem .If anybody has gone through this scenario please help out.
    Thankx in advance
    Regards
    Navin

    if ur entering one record at a time from sreen to table then
    u have to use ,
    in pai module of the screen u have to code,
    case sy-ucomm.
    when 'SAVE'.
    ztable-roll = ztable-roll.
    ztable-name = ztable-name.
    insert ztable/modify ztable.
    ENDCASE.
    if ur screen is having a table control
    then u have to create a loop inside a module.
    like
    loop at tabcontrol_name
    module insert_data.
    endloop.
    and in the doubleclked module,
    move-corresponding ztable to ztable.
    insert ztable.
    Note : in both cases u have selected input fields as from
    table/dictionary in the screen.
    Regards

  • Problem in creating selection screen from screen painter

    hi ,
          i am working with screens i have created a screen and in that wehn i click report button it has to ask for select options for dates.from there i will write a select quesry based on selection dates ...how to call a selection screen from screen.i created an include and in that include i used select options.but it is showing error message .guide me how to do it ?

    Hi..
    Here for your problem,
    I have created a button with function code 'CLICK' in screen no 1000.
    when I click on the button I am capturing the ok_code and displaying the selection screen.
    ok_code = sy-ucomm.
    case:ok_code.
    when 'CLICK'.
             SELECTION-SCREEN BEGIN OF SCREEN 500 TITLE title.
             SELECT-OPTIONS: P_DATE for sy-datum.
             SELECTION-SCREEN END OF SCREEN 500.
    title = 'Input Date'.
    CALL SELECTION-SCREEN '0500'.
    endcase.
    You can also have them as subscreen by providing the required parameters in the selection screen.
    Hope this solves your problem.
    Warm Regards,
    Bhuvaneswari.

  • How to add a search help on a screen field from screen painter

    Hi,
    I would like to add an existing Search Help on a screen field in Screen painter.
    Of course it's possible to just click on th screen field and in the property box, I just have to set the name of teh search help.
    The problem is that I need the screen field to be grey and user musn't be able to change the field value if he doens't use the search help.
    I'm not allowed to modify the existing search help or to built it on my own from source code, I must use the existing one.
    Do you have an idea on how to do so?
    Regards,
    Morgan

    Dropdown Box:
    In the screen painter for that field goto properties -> Dropdown ->select listbox.
    Option 1:
    Instead let that field be in change mode and if user enters any wrong entry which is not there in the table give a error messgae.
      CHAIN.
        FIELD addr1_data-country.
        MODULE modify_screenfields1.
      ENDCHAIN.
    MODULE modify_screenfields1 INPUT.
      CASE sy-ucomm.
        WHEN 'ENTER' OR 'EXECUTE'.
          IF NOT addr1_data-country IS INITIAL.
            SELECT SINGLE landx FROM t005t INTO lws_landx WHERE
                                          land1 = addr1_data-country
                                      AND spras = 'EN'.
            IF sy-subrc <> 0.
              MESSAGE e000(zo_spa) WITH text-022.  " Invalid Country code
            ELSE.
              t005t-landx = lws_landx.
            ENDIF.
          ELSE.
            CLEAR: t005t-landx.
          ENDIF.
       ENDCASE.
    ENDMODULE.                 " modify_screenfields1  INPUT
    Option 2: Other than if u want the way u like, let that field be greyed out. don't attach the search help.
    In the PROCESS ON VALUE-REQUEST.
      FIELD addr1_data-region MODULE region_pov.
    MODULE region_pov INPUT.
    Using the F4IF_INT_TABLE_VALUE_REQUEST table value request show the search help.
    also make that field input enabled.
    ENDMODULE.                 " region_pov  INPUT
    I think this will solve ur problem.
    Regards,
    Prakash.
    Message was edited by: Prakash Ramu

  • ALV in screen painter

    Hi Expers,
    I need to have a ALV with 2 buttons. I used se41 for adding the buttons and se51 for the screen. In my se51 my layout is just blank.
    But the alv grid is not showing Its just a blank screen with 2 buttons.
    MODULE LIST OUTPUT.
    DATA:  R_CONTAINER  TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
            R_GRID       TYPE REF TO CL_GUI_ALV_GRID.
    DATA:  gv_success_log TYPE c,
            gv_error_log   TYPE c.
       TYPES: BEGIN OF typ_logs,
                   ZROW          TYPE ZLOGS_UPLOAD_APPRAISAL-ZROW,
                   ZMESSAGE      TYPE ZLOGS_UPLOAD_APPRAISAL-ZMESSAGE,
                   ZSTATUS       TYPE ZLOGS_UPLOAD_APPRAISAL-ZSTATUS,
                   ZCHANGEDBY    TYPE ZLOGS_UPLOAD_APPRAISAL-ZCHANGEDBY,
                   ZCHANGEDDATE  TYPE ZLOGS_UPLOAD_APPRAISAL-ZCHANGEDDATE,
                END OF typ_logs.
       DATA: it_report_error_log TYPE TABLE OF typ_logs,
             it_report_success_log TYPE TABLE OF typ_logs,
             it_report_log TYPE TABLE OF typ_logs,
             wa_report_log TYPE typ_logs.
       wa_report_log-zrow = '134'.
       wa_report_log-zmessage = 'asdasda'.
       wa_report_log-zstatus = 'E'.
       wa_report_log-zchangedby = 'ascalica'.
       wa_report_log-zchangeddate = '01/01/2013'.
       APPEND wa_report_log TO it_report_error_log.
       CREATE OBJECT r_container
         EXPORTING
           container_name = 'CONTAINER'.
       CREATE OBJECT r_grid
         EXPORTING
           i_parent = r_container.
       IF gv_error_log = 'X'.
         CALL METHOD r_grid->set_table_for_first_display
           EXPORTING
             i_structure_name = 'ZERRORLOGS'
    *        is_layout        = is_layout
           CHANGING
             it_outtab        = it_report_error_log.
       ELSEIF gv_success_log = 'X'.
         CALL METHOD r_grid->set_table_for_first_display
           EXPORTING
             i_structure_name = 'ZERRORLOGS'
    *        is_layout        = is_layout
           CHANGING
             it_outtab        = it_report_success_log.
       ELSE.
         CALL METHOD r_grid->set_table_for_first_display
           EXPORTING
             i_structure_name = 'ZERRORLOGS'
    *        is_layout        = is_layout
           CHANGING
             it_outtab        = it_report_log.
       ENDIF.
    ENDMODULE.                 " LIST  OUTPUT
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'ZSTATUS'.
      SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    MODULE USER_COMMAND_0100 INPUT.
      CASE sy-ucomm.
         WHEN 'BCK'.
           LEAVE TO TRANSACTION 'ZTWEAKED_APPRAISAL'.
         WHEN 'ERRORLOG'.
           gv_error_log = 'X'.
           CALL METHOD r_grid->free( ).
           FREE r_grid.
           CALL METHOD r_container->free( ).
           FREE r_container.
           CALL SCREEN 100.
         WHEN 'SUCCESSLOG'.
           gv_success_log = 'X'.
           CALL METHOD r_grid->free( ).
           FREE r_grid.
           CALL METHOD r_container->free( ).
           FREE r_container.
           CALL SCREEN 100.
       ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT

    Hi Here is the code:
    REPORT  ZTWEAKED_APPRAISAL_MIGRATION." MESSAGE-ID ZMSG_HR_APPRAISAL.
    INCLUDE ZTWKHR_APPSAL_MIGRATION_TOP_V3.
    INCLUDE ZTWKHR_APPSAL_MIGRATION_MTD_V3.
    INCLUDE ZTWKHR_APPSAL_MIGRATION_SCR_V3.
    TABLES:ICON,SSCRFIELDS.
    START-OF-SELECTION.
       SET HANDLER: o_handler->handle_novalue       FOR ALL INSTANCES,
                    o_handler->handle_exist         FOR ALL INSTANCES,
                    o_handler->handle_noselection   FOR ALL INSTANCES,
                    o_handler->handle_noreference   FOR ALL INSTANCES.
       CALL METHOD: o_upload->get_appraisal_type( lv_rb1 = rb_1
                                                  lv_rb2 = rb_2
                                                  lv_rb3 = rb_3
                                                  lv_rb4 = rb_4
                                                  lv_rb5 = rb_5 ).
       CALL METHOD: o_upload->get_data_from_file( gv_path = p_fup ). "asc(add gv_path)
       IF it_item[] IS INITIAL.
          CALL METHOD o_upload->raise_novalue.
       ENDIF.
       CALL METHOD: o_upload->get_itab_from_excel. " process data
       CALL METHOD: o_upload->display_logs.
    "ASC *****************************************
    CALL SCREEN 100.
    END-OF-SELECTION.
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'ZSTATUS'.
      SET TITLEBAR 'XXX'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    MODULE LIST OUTPUT.
    DATA:  R_CONTAINER  TYPE REF TO cl_gui_custom_container,
            R_GRID       TYPE REF TO cl_gui_alv_grid.
    DATA:  gv_success_log TYPE c,
            gv_error_log   TYPE c.
    DATA: it_report_error_log TYPE TABLE OF ZERRORLOGS,
           it_report_success_log TYPE TABLE OF ZERRORLOGS,
           it_report_log TYPE TABLE OF ZERRORLOGS,
           wa_report_log TYPE ZERRORLOGS.
    *TYPES: BEGIN OF typ_report_log,
    *          counter         TYPE zreport_log-counter,
    *          choic           TYPE choic,
    *          pernr           TYPE pernr_d,
    *          type            TYPE BAPI_MTYPE,
    *          Message         TYPE BAPI_MSG,
    *          startdate       TYPE pa0001-begda,
    *          enddate         TYPE pa0001-endda,
    *          recordrow       TYPE zreport_log-counter,
    *       END OF typ_report_log.
    *DATA: it_report_log         TYPE STANDARD TABLE OF typ_report_log,
    *      it_report_error_log   TYPE STANDARD TABLE OF typ_report_log,
    *      it_report_success_log TYPE STANDARD TABLE OF typ_report_log,
    *      wa_report_log         TYPE typ_report_log.
    *  wa_report_log-zrow = '0001'.
    *  wa_report_log-zmessage = 'asdasda'.
    *  wa_report_log-zstatus = 'E'.
    *  wa_report_log-zchangedby = 'ascalica'.
    *  wa_report_log-zchangeddate = '01/01/2013'.
    *  APPEND wa_report_log TO it_report_log.
    *  APPEND wa_report_log TO it_report_error_log.
    IF r_container IS INITIAL.
       CREATE OBJECT r_container
         EXPORTING
           container_name = 'CONTAINER'.
       CREATE OBJECT r_grid
         EXPORTING
           i_parent = r_container.
       IF gv_error_log = 'X'.
         CALL METHOD r_grid->set_table_for_first_display
           EXPORTING
             i_structure_name = 'ZERRORLOGS'
    *        is_layout        = is_layout
           CHANGING
             it_outtab        = it_report_error_log.
       ELSEIF gv_success_log = 'X'.
         CALL METHOD r_grid->set_table_for_first_display
           EXPORTING
             i_structure_name = 'ZERRORLOGS'
    *        is_layout        = is_layout
           CHANGING
             it_outtab        = it_report_success_log.
       ELSE.
         CALL METHOD r_grid->set_table_for_first_display
           EXPORTING
             i_structure_name = 'ZERRORLOGS'
    *        is_layout        = is_layout
           CHANGING
             it_outtab        = it_report_log.
       ENDIF.
    ENDIF.
    ENDMODULE.                 " LIST  OUTPUT
    MODULE USER_COMMAND_0100 INPUT.
      CASE sy-ucomm.
         WHEN 'BCK'.
           LEAVE TO TRANSACTION 'ZTWEAKED_APPRAISAL'.
         WHEN 'ERRORLOG'.
           gv_error_log = 'X'.
           CALL METHOD r_grid->free( ).
           FREE r_grid.
           CALL METHOD r_container->free( ).
           FREE r_container.
           CALL SCREEN 100.
         WHEN 'SUCCESSLOG'.
           gv_success_log = 'X'.
           CALL METHOD r_grid->free( ).
           FREE r_grid.
           CALL METHOD r_container->free( ).
           FREE r_container.
           CALL SCREEN 100.
       ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT

  • Copy screens from screen painter

    Hi guys,
    I was just wondering if there was a way to copy screens from one program to the other?
    Me and a colleague are working on the same project, but since we can't both work in the same program at the same time, we have devided the work. But we will be working in a different program, and making screens in a different program.
    So, if we want to merge the two programms into one, we will have to add all the screens. So, is there a way to just copy them?
    Best regards.

    create different program and create screens in that program.
    now to merge them go to se51, choose copy form status button on top of screen  and give ur program name and screen no and copy them to target program and screen.
    now you can use that screen by calling in that program with call screen statement.
    reward if useful

  • Call transaction from screen

    Hi experts,
    I have a screen where I can call another transaction. My problem is if I call another transaction, how can I know what was the previos program. So I need to pass the program name with call transaction somehow.
    I did'nt find the relevant information in syst.

    Hi
    Try like this
    call transaction         <t-code>
              using     (bdc table)
              mode     (display mode)
              update ( update mode)
              messages into message itab.
    The  bdc table must be declared like bdcdata
    The (display mode) determines how the transaction will be processed:    u2018Au2019 (display all), u2018Eu2019 (display errors only), or u2018Nu2019 (no display)
    The (update mode) :  u2018Su2019 (synchronous) or A (asynchronous).
    Regards
    ABG.

  • Calling Alv Report From Mobile

    Hi All,
    I need some information to cal a alv report from mobile. I created one report ans can see the selection screen in gui after calling. Here the screen is really big i need to adjust the size because it may take more load and time if i call from a mobile . Is it possible to call the same from mobile or do i need any separate application to call this from mobile. Please *** you valuable suggestions.
    Regards
    Madhu.

    Hello Madhu,
    What is your system details?
    Kernel and BASIS?
    Device OS & Browser?
    What are the GUI Configuration settings of the ITSMobile Service?
    What ITSMobile Generation STYLE was used?
    Perhaps useful notes:
    1037715  ITSmobile: Supported screen elements
    1309633  ITSmobile: custom OMRT controls auto-recognized at runtime
    1312835 ITSmobile: page navigation in ALV Grid on Windows Mobile
    1668784 ITSmobile: new features for ALV Grid
    Regards,
    Oisin

  • Call Transaction from Program by Skipping Initial Screen & Pass the Value

    Hi All,
    Can anybody help me to call a transaction from my program. I do not want to display the initial screen of the transaction but that TCODE should get opened by passing the values to the parameter of the initial screen.
    For Example, in my program I want to call 'SE38' and in that, my Program of Name 'ZTEST' should get opened. So I need to call Transaction SE38, but I donot want to display initial screen of that. Instead of that, I want to put the value of Program 'ZTEST' and thus my program should get opened.
    Sandip

    Hello Sandip,
    Since you have not made any references to Batch Processing, I shall tell you the normal way to do it. First look at the code below and execute it.
    set parameter id 'DTB' field 'VBAK'.
    call transaction 'SE16' and skip first screen.
    There are a few things that you need to keep in mind before you use this statement:
    1. All mandatory input fields of the initial dynpro must be filled completely and with the correct values by the SPA/GPA parameters.
    2. For the initial dynpro, in the Screen Painter the own dynpro number must not be specified as the next screen number. However, if the next screen can be reached from the first screen by just hitting the Enter key, this will work.
    The following will not work as you expect, because the next screen in the transaction cannot be reached by just hitting the Enter Key.
    set parameter id 'RID' field 'ZTEST'.
    call transaction 'SE38' and skip first screen.
    Regards,
    Anand Mandalika.
    Please reward points if this helps.

  • Syntax for calling 1000 screen(abap o/p screen) from screen 200.

    Hi all,
    i need to change the SAP program relating to the transaction QA32.i have already changed the program & i added 2 screens in this program by using CALL SCREEN syntax.
    my problem is
    when i execute YQA32 (copy of QA32 with modification) transaction, i am getting the output in the screen 1000.when i double click on any material on that screen (1000), the control will go to screen 200 (CALL SCREEN 200).
      everything is going fine. but in screen 200, i have putted a 'BACK' push button. if i will press 'BACK' on screen 200, it should go to screen 1000 which is normal ABAP output screen(here,the output screen of YQA32).
    if i will put syntax like LEAVE TO SCREEN 1000 OR LEAVE PROGRAM OR LEAVE SCREEN, IT IS NOT WORKING. the control is directly going to program if i will add LEAVE PROGRAM.
    what syntax i need to use to come to screen 1000 from screen 200 in the BACK user command of screen 200.plz suggest.
    Thanks & Regards
    pabitra

    Hi joseph,
    thanks for ur help.The output of QA32 transaction  is comming on the sap standard selection screen '1000'. i am not creating this screen.i just modified sap program relating to transaction QA32 & named it as YQA32.This program is ALV designed.u can check transaction QA32.
      when i will put some data in the selection screen of YQA32 then i will go for execute, then my output comes on screen 1000 which is standard abap screen.i have not created screen 1000. from screen 1000, my control goes to other screen 200 by CALL SCREEN 200 statement.
    so when  i want to back to screen 1000 from screen 200 , i am writting LEAVE TO SCREEN 1000  in the  'BACK' user command of screen 200.but error is comming as screen 1000 does not exist.so plz suggest any syntax for this BACK operation.
    Regards
    pabitra

  • 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

Maybe you are looking for