Report without a selection-screen, just a dynpro

Hi experts,
I wrote a small report, which reads out a file. After this I want to display it in a tablecontrol of my dynpro. In the dynpro there is a button to push the data of the tablecontrol in the R/3 via BDC.
Now I have the problem of a automatic generated Selection-Screen. Which has some fields of my used variables (e.g. file-name, file-typ) and even maybe 10 fields (input-fields and checkboxes) from the BDC program.
The fact is that it is not possible to use this code, simply without any "START-OF-SELECTION" statement:
REPORT ZMM_REPORT01.
TABLES: mseg.
TYPES:  BEGIN of input_struk,
          matnr TYPE mseg-matnr,
          erfmg TYPE mseg-erfmg,
        END   of input_struk,
       tt_input TYPE TABLE OF input_struk.
DATA: it_input TYPE tt_input.
DATA: wa_input LIKE LINE OF it_input.
CALL SCREEN 100.
The error is: "Statement 'CALL SCREEN 100' couldnt be reached."
If I use the program-type M for PROGRAM and not type 1 for REPORT. Then fails with the necessary INCLUDE statement of the BDC program.
Regards,
Steffen

ok, if I decode your big letters, I have to put the CALL SCREEN at the end of my program.
so I do that but I didn't work . error: the call-statement could be reached.
REPORT ZMM_REPORT01.
TABLES: mseg.
TYPES:  BEGIN of input_struk,
          matnr TYPE mseg-matnr,
          erfmg TYPE mseg-erfmg,
        END   of input_struk,
       tt_input TYPE TABLE OF input_struk.
DATA: it_input TYPE tt_input.
DATA: wa_input LIKE LINE OF it_input.
PARAMETERS: fname TYPE rlgrap-filename DEFAULT 'c:lagerver.dat',
            ftype TYPE rlgrap-filetype DEFAULT 'ASC',
            bwart TYPE MSEG-BWART DEFAULT 201,
            werks TYPE MSEG-WERKS DEFAULT 2000,
            lgort TYPE MSEG-LGORT DEFAULT 2500,
            kostl TYPE COBL-KOSTL DEFAULT 201300.
START-OF-SELECTION.
* PBO Module
MODULE pbo_0100 OUTPUT.
  SET TITLEBAR 'TITLE_100'.
  SET PF-STATUS 'SCREEN_100'.
  PERFORM z_daten_input.
  PERFORM z_convert_dummy.
ENDMODULE.
* PAI Module
MODULE pai_0100 INPUT.
  IF sy-ucomm = 'BACK' OR
     sy-ucomm = 'EXIT' OR
     sy-ucomm = 'CANCEL'.
     LEAVE PROGRAM.
  ELSE.
  DATA: l_date TYPE sy-datum.
  >THE BDC PROGRAM statements<
  ENDIF.
ENDMODULE.
FORM z_daten_input.
DATA: filename TYPE string,   " UNICODE
      result   TYPE boolean.
      filename = fname.
REFRESH: it_input.
CALL METHOD cl_gui_frontend_services=>file_exist
  EXPORTING    file       = filename
  RECEIVING    RESULT     = result.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD
EXPORTING
   filename                      = filename
   filetype                      = 'ASC'
   READ_BY_LINE                  = 'X'
   REPLACEMENT                   = '#'
CHANGING
   data_tab                      = t_dummy[].
ENDFORM.
FORM z_convert_dummy.
  LOOP AT T_DUMMY.
    wa_input-matnr = T_DUMMY-VAR+0(11).
    wa_input-erfmg = T_DUMMY-VAR+33(5).
    APPEND wa_input TO it_input.
  ENDLOOP.
ENDFORM.
*&spwizard: declaration of tablecontrol 'TC_FILE' itself
controls: TC_FILE type tableview using screen 0100.
*&spwizard: output module for tc 'TC_FILE'. do not change this line!
*&spwizard: update lines for equivalent scrollbar
module TC_FILE_change_tc_attr output.
  describe table IT_INPUT lines TC_FILE-lines.
endmodule.
CALL SCREEN 100.

Similar Messages

  • Select criteria without using SELECTION SCREENs

    Hi everybody,
    I have a report with a single screen, 4 fields for search criteria and 2 alv grids for the output.
    I search db tables with a select statement.
    Is it possible to define a select statement that searches for 3 out of 4 criteria, if the fourth input field isn't filled it?
    Because right now the select statement doesn't return any data if I leave one parameter blank.
    And how can I provide the possibility to define more than one search criteria of one kind withour adding several input fields on the screen?
    For example: Data created on 20070101 and 20070105.
    I know that most of this can be done with selection screens, but is there a possibility to do this without a selection screen?
    Best regards
    Tobias

    You should use SELECT-OPTIONS on your selection screen.  This allows the user to enter all kinds of possiblities, including leaving something blank.  Then in your SELECT statement, you use the IN operator.
    select-options: s_datum for sy-datum.
    select * into table itab
               from ztable
                      where datum IN s_datum.
    If you truly do not want to use a Selection-screen, you could hard code values in the SELECT statement or create a range using the RANGE statement.  The RANGE statement works exactly like SELECT-OPTION statement but without the selection-screen.
    Regards,
    Rich Heilman

  • Calling another  report by passing selection screen parameter

    Hi,
    I have created a report "ZREPA" with selection screen parameter say, "creator".
    Nw, i hv to call that report "ZREPA" from another report say "ZREPB" by passing an value to the selection screen field "creator".
    Can anyone tell me how to resolve this??
    Thanks,
    Aaru.

    Hi,
    You can call one selection screen from other selection screen program using SUBMIT command.
    The syntax is as follows -
    codeSUBMIT... VIA SELECTION-SCREEN
    USING SELECTION-SET <var>
    WITH <sel> <criterion>
    WITH FREE SELECTIONS <freesel>
    WITH SELECTION-TABLE <rspar>.[/code]
    e.g.
    The following executable program (report) creates a selection screen containing the parameter PARAMET and the selection criterion SELECTO:
    codeREPORT demo_program_submit_rep1.
    DATA number TYPE i.
    PARAMETERS paramet(14) TYPE c.
    SELECT-OPTIONS selecto FOR number.[/code]
    The program DEMO_PROGRAM_SUBMIT_REP1 is called by the following program using various parameters:
    REPORT demo_program_submit_sel_screen NO STANDARD PAGE HEADING.
    DATA: int TYPE i,
    rspar TYPE TABLE OF rsparams,
    wa_rspar LIKE LINE OF rspar.
    RANGES seltab FOR int.
    WRITE: 'Select a Selection!',
    SKIP.
    FORMAT HOTSPOT COLOR 5 INVERSE ON.
    WRITE: 'Selection 1',
    / 'Selection 2'.
    AT LINE-SELECTION.
    CASE sy-lilli.
    WHEN 4.
    seltab-sign = 'I'. seltab-option = 'BT'.
    seltab-low = 1. seltab-high = 5.
    APPEND seltab.
    SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
    WITH paramet eq 'Selection 1'
    WITH selecto IN seltab
    WITH selecto ne 3
    AND RETURN.
    WHEN 5.
    wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
    wa_rspar-sign = 'E'. wa_rspar-option = 'BT'.
    wa_rspar-low = 14. wa_rspar-high = 17.
    APPEND wa_rspar TO rspar.
    wa_rspar-selname = 'PARAMET'. wa_rspar-kind = 'P'.
    wa_rspar-low = 'Selection 2'.
    APPEND wa_rspar TO rspar.
    wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
    wa_rspar-sign = 'I'. wa_rspar-option = 'GT'.
    wa_rspar-low = 10.
    APPEND wa_rspar TO rspar.
    SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
    WITH SELECTION-TABLE rspar
    AND RETURN.
    ENDCASE.
    => To leave a called program, you can use SUBMIT .... AND RETURN. by choosing F3 or F15 from list level 0 of the called report.
    Regards,
    Omkaram.

  • The language selection screen just comes up over and over again.  I'M FED UP!  I have done the system restore several times to no avail.  WHAT DO I DO?

    I upgraded my ATV and now when I select English during language selection, it goes no where.  The language selection screen just comes up over and over again.  I'M FED UP! 
    I have done the system restore several times to no avail. 
    WHAT DO I DO?

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.
    If the issue continues, take the device to Apple for evaluation.

  • BEx Report Performance with selection-screen input

    Hello Gurus,
    My Bex report is working fine when the report had run with out PLANT filter in the selection-screen but when report had run with plant in the selection-screen , report running for forever.
    Please let me know what I need to do improve the performance.
    Saleem.

    Hi Saleem, Just a few thoughts;
    1. Check the M-table in RSD1 for 0PLANT. In Table View edit any blank or null values. Run the same restrictions you apply in the query at Info provider level > Display Data. If there's any lapse; you can judge where exactly the problem lies.
    2. If you are using Infocube & that your master is >20% fact; you can declare the Info object as 'Line Item Dimension'.
    3. Create Variants. Esp. if you are running the query for same set of data. Try Variable Preselection: You can restrict both the values + varaiables in the filter level. When you execute the values will be visibly pre-selected in selection screen.
    4. As discussed in previous messages, running a SQL trace using RSRT may prove useful.

  • Is there a way to use 'GET PERNR' without the selection screens?

    I would like to use the GET PERNR event in a batch program without using the default selection screens.  I would like to be able to use my own selection screen and parameters, but only get them along with the default selection options for payroll period.  I've tried removing the screen number from the attributes screen, but still get these options.  Is this possible?

    hi Kiran,
    report Category is a Pushbutton on the Attributes popup, it only appears if you use PNP logical DB.
    this is from SAPHelp: "Report Category
    Category used for HR reports that use the PNP logical database. It controls the type and number of fields that appear on the selection screen of an evaluation report."
    hope this helps
    ec

  • How to use a parameter  of a report program from selection screen in a dialog program

    how to use a parameter value(entered ) of a report program from a selection screen in a dialog program.
    I have to fetch the value entered in the parameter of report program and display it in a dialog program

    Hi Aasim,
    Just mention like below in your ABAP report.
       PARAMETERS: p_aufnr TYPE aufnr MEMORY ID ord.
    and mention the same memory ID name in the module pool screen property it automatically populates the value to and fro

  • Selection Screen in Web Dynpro Application

    Hi,
    I have to develop one application, in which I need to create first view as Selection Screen and second as result screen,
    Please advise how to create selection screen in ABAP web dynpro?
    Thanks!
    Piyush

    I am not sure whether your requirement is like this or not:
         (1).In 1st screen, there are a few input fields which you can input the value as what you want.
         (2). After you input your data, you press "Enter" or press the Button(if in your view there is one button), then 2nd screen will be displayed to show the result, which is retrieved from DB using the selection/Condition in 1st screen.
    This is just simple in WD4A.
    A little summary:
         (1).In 1st view, you can bind your input fields with the context.
         (2).In the "Enter" event or "Button" action, you can "Fire the outbound plug" which is navigated to the "Inbound plug" of 2nd view
         (3).In the "WDDOINT" of 2nd view, you can use the 1st-view's Context(You can declare the context in component controller, and map it in 1st and 2nd views), then Retrieve data from DB or other places.
    I think, you can take a reference to the Document "Net 310", which is the standard course of WD4A.
    Goodluck.Best wishes!

  • Regarding execution of smartforms without a selection screen.

    Hi ,
        I would like to know whether it is possible to generate a smart form, by calling a function module in a report program without the option of selection screen.Can anyone suggest me in this regard.
    Thanks in advance,
    Shwetha Korlepara.

    Hi,
    You can do if the smartform generated does not require any input from selection screen.
    Check these links.
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-img.com/smartforms/smartform-tutorial.htm
    Get back in case of any clarifications.Kindly reward points by clicking the star on the left of reply,if it helps.

  • Report with two selection screen

    Hi,
    I have one requirement for report.
    When we execute the report then it should have two parameter (sales org, document number)
    After pressing F8 it should display another screen or same screen with display customer name, city for that document and screen should have  2 more parameters (New customer kunnr).after pressing F8 program functionality should work.
    Please suggest.

    please create 2 reports as given below.-
    REPORT  ZSZP_00007.
    parameters a(5) .
    parameters b(5) .
    parameters c(5) .
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF screen-name = 'A' or screen-name = 'B' .
      get parameter id 'aaaaaaaaaaa' field a.
      get parameter id 'bbbbbbbbbbb' field B.
    screen-input = 0.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    start-of-selection.
    your logic
    REPORT  zszp_00005.
    PARAMETERS a(5).
    PARAMETERS b(5).
    START-OF-SELECTION.
      SET PARAMETER ID 'aaaaaaaaaaa' FIELD a.
      SET PARAMETER ID 'bbbbbbbbbbb' FIELD b.
    your logic
    SUBMIT zszp_00007 VIA SELECTION-SCREEN.
    i hope this approach will solve your problem.
    thanks
    Swanand

  • Query on editing standard report ,adding dynamic selection screen

    Hi All to Abap Guru's,
    I am facing this requirement for the first time ..
    My requirement is to add dynamic selections on the selection screen of a predefined report and make some changes in the output..
    I want to change the standard prog for the t-code "FBL5N"
    this t-code contains LDB so plz help me out..this is an urgency......
    based on this I have more 5 requiremnts if u could help
    me out in the first object then other four I can manage my self..
    so plz give me the idea how to approach this requirement ..
    awaiting for u r reply...
    and whoever it may be plz give u r contact number(requesting)...so that i can be in touch with u...
    regards,
    Ravi V Ganji

    Hi Ravi,
    From the transaction itself you can find out the corresponding program name.
    Make an Zcopy of this program and do the changes as per the requirement, means you can add Select-options or Parameters and change the program logic accordingly.
    Find out where the WRITE statements are happened , add/ remove the fields according to the user requirement.
    If find successful create a transaction code for it(SE93).
    I think it will solve your problem.
    Regards,
    Antony Thomas

  • Adding posting date in report mb52 in selection screen

    Hi all,
    We have a requirement of adding the posting date in the selection screen and based on which the report has to be displayed.
    We have copied the standard program and added the posting date in the selection screen but could not find where to include the search based on posting date.
    Could anyone guide to resolve this issue.
    Thanks in advance,
    Neela

    Hi,
    I have added the posting date in selection screen and in the form data_selection i have also joined table bsim to extract values to the internal table t_mat.
    But the results are not perfect. Should i do any changes elsewhere in d program.
    Can anyone help me in resolving d issue.
    Thanks in advance,
    Neela.

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

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

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

  • Can't open documents - File select screen just flashes and then disappears

    In Adobe Creative Suite 3 Design Standard - When I open Photoshop, Illustrator, etc. and then try to open a document from one of these programs, the screen where you would select the file to open just flashes and then disappears. This locks me out of the program because it is waiting for a response from me - I can't even exit the program. I have to go to the Task List and close the program from there. This is a new issue - Have had Creative Suite for a while. Does not happen in Word, Excel, etc. I have already tried removing and reinstalling the software - No change. I have minimized all other windows - Still cannot access the file selection screen.

    If you have an LCD monitor, make sure it is running at its maximum resolution. After the dialog disappears, try pressing Alt + Spacebar, then M and see if you can find it on the edge of the screen and move it in by pressing arrow keys, press one a few times, then the opposite to bring it back if it didn't show up.

  • Problem in getting parameter value from selection screen in web dynpro abap

    Hi,
    I am facing problem in getting parameter value from selection screen.
    Please find my code below:
    DATA LT_PAR_ITEM TYPE IF_WD_SELECT_OPTIONS=>TT_SELECTION_SCREEN_ITEM.
    FIELD-SYMBOLS:<FS_PAR_ITEM> LIKE LINE OF LT_PAR_ITEM,
                                 <FS_OBJ_USAGE>    TYPE REF TO data.
      WD_THIS->M_HANDLER->GET_PARAMETER_FIELDS( IMPORTING ET_FIELDS = LT_PAR_ITEM ).
      LOOP AT LT_PAR_ITEM ASSIGNING <FS_PAR_ITEM>.
        CASE <FS_PAR_ITEM>-M_ID.
          WHEN `OBJ_USAGE`.
             ASSIGN <FS_PAR_ITEM>-M_VALUE->* TO <FS_OBJ_USAGE>.      
    [ Here, sy-subrc is 4,  <FS_OBJ_USAGE> is not assigning.]
        ENDCASE.
      ENDLOOP. 
    So, can any one solve this problem.
    Thanks in advance,
    Radhika

    Hi Radhika,
    Try using GET_RANGE_TABLE_OF_SEL_FIELD...
    Please Refer below code..
       DATA: NODE_FLIGHTS TYPE REF TO IF_WD_CONTEXT_NODE.
      DATA: RT_CARRID TYPE REF TO DATA.
      DATA: ISFLIGHT TYPE TABLE OF SFLIGHT.
      DATA: WSFLIGHT TYPE SFLIGHT.
      FIELD-SYMBOLS: <FS_CARRID> TYPE TABLE.
    Retrieve the data from the select option
      RT_CARRID = WD_THIS->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD( I_ID = 'S_CARR_ID' ).
    Assign it to a field symbol
      ASSIGN RT_CARRID->* TO <FS_CARRID>.
      CLEAR ISFLIGHT. REFRESH ISFLIGHT.
      SELECT * INTO CORRESPONDING FIELDS OF TABLE ISFLIGHT FROM SFLIGHT
                           WHERE CARRID IN <FS_CARRID>.
      NODE_FLIGHTS = WD_CONTEXT->GET_CHILD_NODE( NAME = `FLIGHTS` ).
      NODE_FLIGHTS->BIND_ELEMENTS( ISFLIGHT ).
    Thanks,
    Regards,
    Kiran

Maybe you are looking for

  • Numbers help!

    I've just found out that a completely password protected excel file opened in numbers loses all of the protection and displays previously hidden sensitive data. When I click to open the excel file on my iPad it won't open it but gives me the option t

  • Project Name - Internal Number Range

    Dear All, When we create a solman project, manually we give the project name. Want to know whether it is possible to give a internal number range from which the project number should be picked automatically when we create a project. Thanks and Regard

  • What are the recommended plug-ins for HDR and Black and White?

    What HDR and Black and White plug-in software does anyone suggest for Aperture 3?

  • (SOLVED)Joystick in flash in firefox

    Hi everybody, I'm really happy using Arch, it's really amazing, all it's fine about it. But I want to play flash games in firefox with a joystick, is there any way to do that? Arch is working great and the joystick too with all the games but no the f

  • Multiple Pre-Sets

    I would like to be able to create multiple pre-sets that I can switch on the fly. For example, my first pre-set could be my camera fairly large and my PowerPoint small but at the touch of a single button (or key or mouse click) they would instantly b