SUBMIT...ALV

Hello,
  I am calling zreport1 giving alvlistoutput in background using SUBMIT zreport1  and return from another zreport. After generating spool output i want the itab alv contents obtain in reuse_alv_list_display to be displayed in zreport. I tried through EXPORT/IMPORT itab, but not getting result.
Please help!
Thanks.

Hi Uma,
First you need to execute second report using SUBMIT statement like...
SUBMIT  zreprt1 WITH role = 'X'
                        WITH f_role IN r_role
                        WITH fdate EQ fdate
                        WITH tdate EQ tdate
        EXPORTING LIST TO MEMORY
            AND RETURN.
Then use FM LIST_FROM_MEMORY to export the data from memory to abaplist internal table.
Then use FM LIST_TO_ASCI to convert data into ASCII format and then modify the table content got from above FM according to your requiremant.
Thanks
Nitesh

Similar Messages

  • Submit  ALV report in Background & exporting list to memory and return

    Dear all,
    I created one Z program (ZPROGRAM2). 
    Here i use SUBMIT ZPRORAM1_ALV exporting list to memory and return.
    call function 'LIST_FROM_MEMORY'.
    call function 'TABLE_COMPRESS' .
    ZPRORAM1_ALV output i send mail.
    This all are working in foreground.
    If i schedule ZPROGRAM2 in background. that SUBMIT ZPRORAM1_ALV statement not working.
    Please give me the Solution.
    Thanks,
    Durai.V

    It is because of the ALV output that you are using. Check the condition sy-batch = 'X' (background processing) and then display a classical report. It will work then.
    Thanks,
    Jayant

  • Submit ALV in webdynpro

    Hello folks, i need to load the information from the result of a ALV in a webdynpro.
    The program aqzzzhr_rc======zhr_rc06====== and the variant CUS&STANDARD.
    I am using this:
      DATA list_tab TYPE TABLE OF abaplist.
      SUBMIT aqzzzhr_rc======zhr_rc06======
           USING SELECTION-SET 'CUS&STANDARD'
           EXPORTING LIST TO MEMORY
           AND RETURN.
      CALL FUNCTION 'LIST_FROM_MEMORY'
        TABLES
          listobject = list_tab
        EXCEPTIONS
          not_found  = 1
          OTHERS     = 2.
      IF sy-subrc EQ 0.
        CALL FUNCTION 'WRITE_LIST'
          TABLES
            listobject = list_tab.
    end.
    My problem is that i cannot see a real information from ALV inside the table list_tab. The info inside says something like RFCRECORD blah blah blah.
    Is there a way to convert this information in real data from ALV?
    Is there a way to access the information stored in memory?
    Thanks in advance!

    Hi Jorge.
    Exporting list to memory exports the result as abap list to memory.
    To use the result in Wd4A ALV you need the result table structure and
    the result itself.
    Maybe you can extend the standard programm in order to export the result table to
    memory. After submiting the report you import the result table and then bind it to a node for the ALV.
    Cheers,
    Sascha

  • Submit...to Spool in background, ALV Grid

    Hello,
    I am trying to using the SUBMIT to SPOOL statement for SAP std. program RKPEP003.
    Now this works well when i execute in the foreground mode but doesnt work in the background mode, it gives an error "Make an Entry in All Required fields"
    RKPEP003 output is ALV Grid, so is this the probable reason or something else becoz the code works fine in the foreground mode
    Thanks in advance
    Minhaj

    Hello,
    Following is my code:
    MOVE:
          'CN_PSPNR'  TO I_SELTAB_WA_ANLAGE-SELNAME,
                    'S'      TO I_SELTAB_WA_ANLAGE-KIND,     " SELECT-OPTION
                    'I'      TO I_SELTAB_WA_ANLAGE-SIGN,
                    'EQ'     TO I_SELTAB_WA_ANLAGE-OPTION,
              'W-000001-01-101' TO I_SELTAB_WA_ANLAGE-LOW,
              'W-000001-01-101'  TO I_SELTAB_WA_ANLAGE-HIGH.
          APPEND I_SELTAB_WA_ANLAGE TO I_SELTAB_ANLAGE.
          MOVE: 'R_BUDAT'  TO I_SELTAB_WA_ANLAGE-SELNAME,
                'S'      TO I_SELTAB_WA_ANLAGE-KIND,      " SELECT-OPTION
                'I'      TO I_SELTAB_WA_ANLAGE-SIGN,
                'BT'     TO I_SELTAB_WA_ANLAGE-OPTION,
                S_DAT  TO I_SELTAB_WA_ANLAGE-LOW,
                E_DAT  TO I_SELTAB_WA_ANLAGE-HIGH.
          APPEND I_SELTAB_WA_ANLAGE TO I_SELTAB_A
    SUBMIT RKPEP003
          WITH selection-table I_SELTAB_ANLAGE
          WITH P_DISVAR = '/5SAP'
          TO SAP-SPOOL
          SPOOL PARAMETERS PARAMS
          ARCHIVE PARAMETERS ARPARAMS
          WITHOUT SPOOL DYNPRO AND RETURN.
    Now this works well in the foreground mode but other otherwise even with JOBNAME AND NUMBER
    Thanks,
    Minhaj

  • Submit Report....and ALV.. PRoblem

    Hi,
    I am using a calling program ZCALL to submit a ZTEST program. Now the ALV_LIST_DISPLAY is used in the submit program ZTEST.
    When I am executing the program ZCALL in foreground i am able to get the ALV outpput.
    but when I am executing ZCALL in background, I am unable to get the ALV output...
    But whn I am executing ZTEST in background I am able to get the ALV....

    Hi Abhay,
    Are you using only SUBMIT or SUBMIT AND RETURN
    if you are specifying RETURN as you are running in backgroung mode there is no one to send the screen back(USING F3 or BACK) to the called program, so it wont display the ALV but just goes back to the calling program.
    Please try describe as clear as possible
    Best Regards
    Ramchander Rao.K
    Edited by: ramchander krishnamraju on Dec 18, 2008 10:04 AM

  • How to submit a ALV report in background

    Can you provide a peice of code to submit an ALV report in background?
    and is it possible to provide a  header information  dynmically, (changing when we say page down) in ALV?

    Hello,
    you can submit in background as a normal report.
    If you want to get the header informations. Handle through events. Events can be handle through registring the Event handler method.
    Eg:
    Events
        CREATE OBJECT eventhandler_object.
    register eventhandler
        SET HANDLER  eventhandler_object->handle_print_top_of_list
         FOR g_o_grid.
    CALL METHOD g_o_grid->set_table_for_first_display
    Reward if helps.
    Thanks,
    KrishnaKumar

  • How to skip the alv list when submit a report by SUBMIT statement?

    Dear Experts,
    I  have  to submit a report(RMVKON00) for a special request in my  add-on program,  I use the following statment:
    SUBMIT RMVKON00
    AND RETURN EXPORTING LIST TO MEMORY.
    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        LISTOBJECT = ABAPLIST_TAB
      EXCEPTIONS
        NOT_FOUND  = 1
        OTHERS     = 2.
    CALL FUNCTION 'LIST_TO_ASCI'
    * EXPORTING
    *   LIST_INDEX               = -1
    *   WITH_LINE_BREAK          = ' '
      TABLES
        LISTASCI                 = LISTASCI_TAB[]
       LISTOBJECT                = ABAPLIST_TAB
    EXCEPTIONS
       EMPTY_LIST               = 1
       LIST_INDEX_INVALID       = 2
       OTHERS                   = 3
    But  it still display the alv list , and I must click  button 'BACK' ,then it return my add on program.
    I hope to skip the alv list  (does not display the alv list ) .
    Would you like to help me?
    Thanks and Best Regards,
    Colin.
    Edited by: Colin on Jan 8, 2010 10:09 AM

    Hi Colin,
    I dont think you would be able to skip the ALV output using SUBMIT. However try changing the value of sy-lsind after the submit statement.
    SUBMIT RMVKON00
    AND RETURN EXPORTING LIST TO MEMORY.
    sy-lsind = sy-lsind - 1.
    If that doesnt work then try using JOB_START JOB_SUBMIT, JOB_CLOSE...
    Thanks,
    Best regards,
    Prashant

  • Avoid ALV output screen in submit statement

    hello,
    I have created one FM.in that FM i am calling one zreport using submit statement as i want to access that zreport's internal table.so i have done that using IMPORT and EXPORT statement and i am getting values in my FM.
    but my problem is when i execute that FM it stops and display the ALV output of zreport and then when i press back button it gives me FM's output.i dont want that ALV output.can anybody help me that how to omit this output screen?
    regards
    soniya s.

    Hi,
    Use option EXPORTING LIST TO MEMORY with statement SUBMIT.
    Regards,
    Nikhil
    Edited by: Nikhil Kayal on May 13, 2009 1:32 PM

  • SUBMIT and RETUTN with ALV output into a interanl table.

    Hello Friends,
    I have one z program which returns ALV output.
    I have to create a one new Z program and in that I want to call this program and want the final output into an internal table into my Zreport.
    I used SUBMIT statement with RETURN but not working.
    can anybody tell me what I missed?
    or
    How can we do this.
    Thanks in advance.
    Suhas

    Hi Suhas,
    In Zreport1.
    Just open the first report program and assign internal table to some memory id like...
    EXPORT it_tab1 to MEMORY ID 'ZNITS'.
    In Zreport2.
    Now create an internal table with the same structure of it_tab1 and write the following in your program...
    SUBMIT Zreport1 WITH SELECTION-TABLE it_input
                                    AND RETURN.
    Note: it_input is of type rsparams and contains all selection parameters for *Zreport1*
    *   Import internal table content from memory id
        IMPORT it_tab1 TO it_tab2 FROM MEMORY ID 'ZNITS'.
        FREE MEMORY ID  'ZNITS'.
    Thanks
    Nitesh

  • How to submit a report withour showing the ALV?

    Hi all,
    I need to make a submit (or any other suggestion is acepted) to the report rkeb0601 (trx KE24), get the result from that execution in an internal table or something, to create a diferent ALV output. I don't want to see the ALV that rkeb0601 is showing when I make the submit.
    Any idea how I can make this?
    Thanks a lot!
    Regards.

    Unfortunatelly I'm working with 4.6c version, so enhacement is not an option. I already search for an user-exit but i didn´t find one.
    The other thing that cames to my mind is to copy rkeb0601 but doing this I also have to copy the report rk2c11000 because it's being called dynamically  from rkeb0601. It seems a lot of work.
    Yes, it seems to be a lot of work but copy is the best option.

  • Submit a program and skip output or dont show the output (alv list)

    hi,
    is it possible to use the submit command and skip output or don't show the output (alv list) ?
    Regrads
    ertas

    Hi all,
    I get the message
    REPORT  ZTEST.
    DATA: jtab TYPE TABLE OF sbook,
          wa_jtab LIKE LINE OF jtab,
          jtab2 TYPE z_incident_li OCCURS 0 WITH HEADER LINE.
    submit Z_INCIDENT_LIST EXPORTING LIST TO MEMORY AND RETURN.
    IMPORT lt_incident_res TO  jtab2 FROM MEMORY ID 'table'.
    LOOP AT jtab2 .
      WRITE / jtab2-RECN.
    ENDLOOP.
    Runtime Errors         RAISE_EXCEPTION
    Date and Time          12.06.2008 17:54:00
    Short text
         Exception condition "CNTL_ERROR" raised.
    What happened?
         The current ABAP/4 program encountered an unexpected
         situation.
    Error analysis
         A RAISE statement in the program "CL_GUI_CONTROL================CP" rais
          exception
         condition "CNTL_ERROR".
         Since the exception was not intercepted by a superior
         program, processing was terminated.
         Short description of exception condition:
         For detailed documentation of the exception condition, use
         Transaction SE37 (Function Library). You can take the called
         function module from the display of active calls.

  • SUBMIT and RETUTN with ALV output

    Hello Friends,
    I have one standard program (RSVTPROT) which returns ALV output.
    I want this output as internal table into my Zreport.
    I used SUBMIT statement with RETURN but not working.
    can anybody tell me what I missed?
    Regards,
    RH

    Hi Ronny,
    ALV output of called Program will not displayed when you use Submit and Return.
    if you want to get the output of it . Identify the final Internal table where all the output of program RSVTPROT will be collected.
    i guess its <gtab> ( Field symbol Table ) .  try to get the same.

  • Problem in Submit Statement of Alv Report

    Hi All Experts,
    i make one report,my requirement is when i execute my report then it displays 100 records, i select 20 records from 100 records
    then based upon 20 records  execute the another report with out slection screen. i know the process through the submit statement,but it doesn't give exact output 20 of 20 based upon selected entries.
    my Code is:SUBMIT ZPS_PROJ_CN41N USING SELECTION-SCREEN '1000' WITH SELECTION-TABLE RSPAR_TAB
                                                            AND RETURN.
    give suggistions and correct syntax of submit statement.
    Thanks.

    Hi,
    = 'EQ ' for parameters
    In for range or selct-options
    SUBMIT  <Report name>
             WITH r_budat IN s_budat           " Selection screen parameters
             WITH kostl   IN s_kostl
             WITH kstar   IN s_kstar
             AND RETURN.
    "With Variant
      SUBMIT <Report Name>
         USING SELECTION-SET 'BPC TEST'             "BPC set is Varaint name for report
               EXPORTING LIST TO MEMORY AND RETURN.
    "capturing the output to another report
    SUBMIT  <Report name>
             WITH r_budat IN s_budat           " Selection screen parameters
             WITH kostl   IN s_kostl
             WITH kstar   IN s_kstar
            EXPORTING LIST TO MEMORY AND RETURN.    
    Prabhudas

  • Update the Billing orders after display/ modifiy in the Editable ALV

    Hi Experts,
    I have created one Editable ALV to display theBilling order with BP details,
    Once user get the ALV output he can modify the content and same will be updated once he hits UPDATE button.
    my requirement is after user hits the UPDATE button a background should be created and update of BO should happen also user user should able to see the status by checking the SPOOL.
    currently i am using the FM crm_order_maintain to update, kindly guide me how to process this step in background for all the entries which are selected in ALV by user.
    i think i can use SUBMIT with JOB_OPEN and JOB_CLOSE, but i need some same code & guidance.
    Thanks in Advance.
    Regards,
    Pradeep

    problem solved

  • Submit in background

    Is there any program to submit in background,  ALV report?
    I tried in job_open and job_close, but nto worked out.

    Hi,
    You need to use the following function modules:
    - JOB_CREATE - create the job
    - JOB_SUBMIT - add a step in the job
    - JOB_CLOSE - to pass the job to the background processing subsystem
    Alternatively, you can use SUBMIT... VIA JOB, which is easier but gives you less control.
    MJ

Maybe you are looking for

  • Just bought 1T ext hard drive for back up, addl storage, boot backup?

    I am a NOVICE. Just purchased 1T ext hard drive for backups and additional storage for music, docs, photos, etc. Should I partition, and also include boot? Does this mean 3 equal partitions? Or how much should be dedicated to boot drive? In case you

  • Row-Based Only option for post processing operator

    Hi, Have a question on the role of the "Row-base Only" option for post processing operators. I am trying to understand how a post-processing operation can be done in a row-based mode. A coded PLSQL procedure in a post processing operator is expected

  • Selecting from list - Urgent

    I need to select a CODE from available list of codes from table2 and insert the selected code into table1 but before I do the insertion, I need to make sure that unique constraint is satisfied. In other words,no 2 same codes should be selected from t

  • Newbie - Setup Xserve with Mac Os X 10.6 for small group

    I already have infrastructure with DNS, DHCP, file storage etc.... I have a small group of users that will use Macs with OS 10.6 and a new Xserve. I only wnt them to autthenticte to OD on Xserve and thats it. And so I can see logs og their logins.. I

  • Error in OAF page (Definition CLOSE_PO_FLAG of type Attribute not found)

    Hi All, In OAF, When we go to receive a requisition order, on that page for a column called PO Close, below this column in the value text, I am getting the below error: Error You have encountered an unexpected error. Please contact the System Adminis