Using Submit & Return

Hi Experts,
Can any one tell me if i am calling a program ZXABC using SUBMIT & RETURN, abd if that progrm has few internal tables containing the data it_table1, it_table2 & it_table3, how can i get the data from those tables into the tables through which the program ZXABC is called?
Thanks.
Harshad

Hi Dude,
There are two cross-program memory areas to which ABAP programs have access (refer to the diagram in Memory Structures of an ABAP Program that you can use to pass data between programs.
SAP Memory
SAP memory is a memory area to which all main sessions within a SAPgui have access. You can use SAP memory either to pass data from one program to another within a session, or to pass data from one session to another. Application programs that use SAP memory must do so using SPA/GPA parameters (also known as SET/GET parameters).
These parameters can be set either for a particular user or for a particular program using the SET PARAMETER statement. Other ABAP programs can then retrieve the set parameters using the GET PARAMETER statement. The most frequent use of SPA/GPA parameters is to fill input fields on screens.
ABAP Memory
ABAP memory is a memory area that all ABAP programs within the same internal session can access using the EXPORT and IMPORT statements. Data within this area remains intact during a whole sequence of program calls. To pass data to a program which you are calling, the data needs to be placed in ABAP memory before the call is made. The internal session of the called program then replaces that of the calling program. The program called can then read from the ABAP memory. If control is then returned to the program which made the initial call, the same process operates in reverse. For further information, refer to Data Clusters in ABAP Memory
Edited by: Raghunath Shyamala on May 25, 2009 7:32 AM

Similar Messages

  • How to catch errors in calling program when using SUBMIT ... AND RETURN ?

    Hi ,
    I am calling a report using submit and return statement from a function module. The report has select-options field for a date field. If user enters a date in low, which is greater than high, getting error message "Lower limit is greater than upper limit".
    How to catch this error without endup stoping on selection screen of the report?
    In the documentation, I read :
    Programs called with SUBMIT ... AND RETURN or CALL TRANSACTION cannot propagate exceptions to the caller, because exception objects are bound to the internal mode of a program.
    Is there any way to overcome this?
    Also my aim is to write a validation on the date selection-option to have the date range not more than 20 days.
    I am not sure of how to achieve this. 
    Is there a way to do validation of select-options data before submiting to the report ?
    Is there any standard FM to achieve this task?
    Thank you,
    Surya.
    Edited by: Surya on May 24, 2009 6:08 PM

    Hi Surya ,
    In your function module's code validate the date .
    If the low value of the date less than high and date period is not more than 20 then
    call transaction and in else condition raise exception.
    In your FM write like that - -
    IF   date-low LT date-high AND
                           date_difference LE '20' .
    CALL  TRANSACTION   'transaction'.
    ELSE.
    RAISE  ...........  " Raise the invalid date exception
    ENDIF.
    Regards
    Pinaki

  • How to get spool number when using SUBMIT job

    Hi All,
    I am calling standard program using SUBMIT through JOB as below. Now I need spool number for this job to covert the output to PDF and send to mail. See the below code and guide me.
    CALL FUNCTION 'JOB_OPEN'
      EXPORTING
        jobname          = name
      IMPORTING
        jobcount         = number
      EXCEPTIONS
        cant_create_job  = 1
        invalid_job_data = 2
        jobname_missing  = 3
        OTHERS           = 4.
    IF sy-subrc = 0.
      data: Zscreen type table of RSPARAMS with header line.
       Zscreen-selname = 'PM_AENNR'.
       Zscreen-kind = 'P'.
       ZSCREEN-LOW = '500000000125'.
       APPEND ZSCREEN.
    SUBMIT RCC00130 WITH selection-table Zscreen TO SAP-SPOOL
                        SPOOL PARAMETERS print_parameters
                       WITHOUT SPOOL DYNPRO
                        VIA JOB name NUMBER number
                        AND RETURN.
      IF sy-subrc = 0.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount             = number
            jobname              = name
            strtimmed            = 'X'
          EXCEPTIONS
            cant_start_immediate = 1
            invalid_startdate    = 2
            jobname_missing      = 3
            job_close_failed     = 4
            job_nosteps          = 5

    Hi,
    Do this way, first get print parameters by using function module 'GET_PRINT_PARAMETERS'
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          destination    = 'LP01'
          list_name      = 'TEST'
          list_text      = 'SUBMIT ... TO SAP-SPOOL'
          immediately    = ' '
          line_size      = '1023'
          no_dialog      = 'X'
        IMPORTING
          out_parameters = wa_pri_params
          valid          = w_valid.
    If it returns success then
        IF w_valid EQ 'X'.
          CONCATENATE 'R'                                   
                       w_tabix                                
                       sy-datum+4(4)
                       sy-uzeit INTO
                       wa_pri_params-plist.
        ENDIF.
        SUBMIT rprccc00
               WITH firmennr = w_cid
               WITH bel_clus = 'X'
               WITH testlauf = ' '
               WITH not_lokl = 'X'
               WITH file_in  = w_arc_out
               TO SAP-SPOOL WITHOUT SPOOL DYNPRO
               SPOOL PARAMETERS wa_pri_params AND RETURN.
        COMMIT WORK AND WAIT.
    SELECT rqident
             FROM tsp01
             INTO w_rqident
             UP TO 1 ROWS
             WHERE rq2name = wa_pri_params-plist.
      ENDSELECT.
    CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
        EXPORTING
          src_spoolid     = w_rqident
          no_dialog       = 'X'
          dst_device      = 'LP01'
          pdf_destination = 'X'
        TABLES
          pdf             = t_pdf.
    Hope it solves your problem
    Regards
    Krishna

  • Calling a Report Program In Web Dynpro Using Submit statment

    Hi all,
             Can any one suggest how can i call a report program form Web Dynpro using Submit statment. I tried to call it its showing Field symbols not defined error. Is their any other ways to call Report in a Web Dynpro?. I have posted the error message when i tried using SUBMIT ZRR AND RETURN CONTROL
    Field symbol has not yet been assigned.
    The error occurred on the application server mnghcmsap_HRS_00 and in the work process 1 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Form: CHECKBOX_OUT of program SAPLKKBL
    Form: GEN_LINE_OUT of program SAPLKKBL
    Form: DATA_OUT_SIMPLE of program SAPLKKBL
    Form: LIST_OUTPUT_NEW of program SAPLKKBL
    Form: FIRST_LIST_DISPLAY of program SAPLKKBL
    Module: LIST_DISPLAY of program SAPLKKBL
    Function: K_KKB_LIST_DISPLAY of program SAPLKKBL
    Method: PRINT_BACKEND of program CL_GUI_ALV_GRID===============CP
    Method: SET_TABLE_FOR_FIRST_DISPLAY of program CL_GUI_ALV_GRID===============CP
    Form: PBO of program SAPLSLVC_FULLSCREEN
    Edited by: VINMANO on Jul 22, 2009 2:54 PM

    HI,
    Its possible to call report program from Web dunpro...
    chk out dis link,
    calling report(se38) in webdynpro abap
    By the way are using field symbol anywhere and left it unassigned?
    Thanks,
    Divya.S

  • How to use SUBMIT key word in the program in the program

    Hello Folks,
                     I want use SUBMIT statment in the program for calling the other program. My query is
    I have one report named REPORT1 and I am using the SUBMIT statment in this report to call the second report named as REPORT2. The flow of the program is I excute the first report REPORT1 and entr the value on selection screen of REPORT1, selection screen is having one parameter. then SUBMIT statment comes into picture to call the second report REPORT2 in this second report, I would like to pass the selection screen value of first report REPORT1.
          I want to know how to pass the selection screen value of the first REPORT1  to second REPORT2.
    Anyone please guide me in this regards.
    Thanks & Regards
    Chetan

    Hi Chetan,
    Try this report.
    Create two reports namely ztry, ztry1 as below.
    Run report ztry.
    When you run report ztry,
    ztry1 will get excuted first(through 'submit'),
    getting values from report ztry through 'import' and 'get parameter'.
    Report ztry.
    *Export and Import
    DATA: text(20) VALUE 'Hello',
          mem(20).
    WRITE:/ 'Export and Import' COLOR = 1.
    EXPORT text TO MEMORY ID mem.
    SUBMIT zawi_try AND RETURN.
    WRITE:/ ''' Hello'' exported to ZAWI_TRY successfully '.
    WRITE:/.
    *Set and Get Parameter ID
    DATA: var(20) VALUE 'Master'.
    WRITE:/ 'Set and Get Parameter' COLOR = 1.
    SET PARAMETER ID 'abc' FIELD var.
    WRITE:/ 'Set Parameter ID is success'.
    WRITE:/.
    Report ztry1.
    DATA: text(5),
          mem(20).
    IMPORT text FROM MEMORY ID mem.
    WRITE:/ 'Importing '' Hello'' from ztry:', text color = 1.
    FREE MEMORY ID mem.
    write:/ mem.
    DATA: var(6).
    GET parameter id 'abc' field var.
    write:/ 'Value got through Get Parameter ID from ztry:',var color = 1 .
    Thanks....

  • Create spool for background jobs which uses submit statement

    Hi Gurus,
                 I have a quick question regarding the backgroud jobs. When we run a program in the background , it should create a spool for us, but, the problem comes when I am running a program in the background, its not creating the spool. This program uses SUBMIT statement. This program collects the data and it will submit to the other program and then retuen. In this case, its not creating a spool. Its very important for us to look at the spool for this program. Does anybody cam across this kind of problem? I need ur inputs.
    Thanks in advance, <REMOVED BY MODERATOR>
    Regards,
    Srinivas.
    Edited by: Alvaro Tejada Galindo on Mar 18, 2008 4:31 PM

    hi check this link ...
    Scheduling a submitable program as a background task with the number number in a background request name. After scheduling, the background task is completed by function module JOB_CLOSE and released immediately.
    DATA: number TYPE tbtcjob-jobcount,
          name TYPE tbtcjob-jobname VALUE 'JOB_TEST',
          print_parameters TYPE pri_params.
    CALL FUNCTION 'JOB_OPEN'
      EXPORTING
        jobname          = name
      IMPORTING
        jobcount         = number
      EXCEPTIONS
        cant_create_job  = 1
        invalid_job_data = 2
        jobname_missing  = 3
        OTHERS           = 4.
    IF sy-subrc = 0.
      SUBMIT submitable TO SAP-SPOOL
                        SPOOL PARAMETERS print_parameters
                        WITHOUT SPOOL DYNPRO
                        VIA JOB name NUMBER number
                        AND RETURN.
      IF sy-subrc = 0.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount             = number
            jobname              = name
            strtimmed            = 'X'
          EXCEPTIONS
            cant_start_immediate = 1
            invalid_startdate    = 2
            jobname_missing      = 3
            job_close_failed     = 4
            job_nosteps          = 5
            job_notex            = 6
            lock_failed          = 7
            OTHERS               = 8.
        IF sy-subrc <> 0.
        ENDIF.
      ENDIF.
    ENDIF.
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=backgroundsubmit&adv=false&sortby=cm_rnd_rankvalue
    sy-subrc  Meaning
    0            Background task scheduled successfully.
    4            Scheduling cancelled by user on the selection screen.
    8            Error during scheduling, i.e. when accessing JOB_SUBMIT internally.
    12          Error in internal number assignment.
    regards,
    venkat.
    Edited by: venkat  appikonda on Mar 18, 2008 6:32 PM

  • Problem using Submit statement

    Dear Experts,
    I am trying to use submit statement in a report for transaction ML85. I have used the below code.
    submit RMSRVF00 with FRGCO = 'S1'
                    with FRGGR = 'S1'
                    with listu = 'ENTRY_REL'
                    with ebeln = '4500000309'
                    AND RETURN.
    But when I execute the report the values which I set are not filled and the screens opens with error message as '' Fill in all required entry fields". I am passing values for fields Releasecode - FRGCO, Release group - FRGGR, Purchase Order - EBELN, Scope of list - LISTU.
    Please tell me why this message is coming and values are not set for fields.
    KR,
    Bharath

    hai,
    try like this
    SUBMIT ZVENDOR_REPORT_NEW1 USING SELECTION-SCREEN '100'
                  WITH SELECTION-TABLE TB_OUTPUT
                   WITH P_DATE = SY-DATUM
                   WITH S_ERDAT BETWEEN '01.01.2008' AND '01.06.2008'
                   AND RETURN.
    or you can go in this way using type pools:
    TYPE-POOLS RSDS.
    DATA: TRANGE                        TYPE RSDS_TRANGE,
          TRANGE_LINE                   LIKE LINE OF TRANGE,
          TRANGE_FRANGE_T_LINE          LIKE LINE OF TRANGE_LINE-FRANGE_T,
          TRANGE_FRANGE_T_SELOPT_T_LINE LIKE LINE OF TRANGE_FRANGE_T_LINE-SELOPT_T,
          TEXPR                         TYPE RSDS_TEXPR.
    TRANGE_LINE-TABLENAME = 'TB_OUTPUT'.
    TRANGE_FRANGE_T_LINE-FIELDNAME = 'S_ERDAT'.
    TRANGE_FRANGE_T_SELOPT_T_LINE-SIGN   = 'I'.
    TRANGE_FRANGE_T_SELOPT_T_LINE-OPTION = 'BT'.
    TRANGE_FRANGE_T_SELOPT_T_LINE-LOW    = '01.01.2008'.
    TRANGE_FRANGE_T_SELOPT_T_LINE-HIGH   = '01.06.2008'.
    APPEND TRANGE_FRANGE_T_SELOPT_T_LINE TO TRANGE_FRANGE_T_LINE-SELOPT_T.
    TRANGE_FRANGE_T_SELOPT_T_LINE-SIGN   = 'I'.
    TRANGE_FRANGE_T_SELOPT_T_LINE-OPTION = 'NE'.
    TRANGE_FRANGE_T_SELOPT_T_LINE-LOW    = SY-DATUM.
    APPEND TRANGE_FRANGE_T_SELOPT_T_LINE  TO TRANGE_FRANGE_T_LINE-SELOPT_T.
    APPEND TRANGE_FRANGE_T_LINE TO TRANGE_LINE-FRANGE_T.
    APPEND TRANGE_LINE TO TRANGE.
    CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'
      EXPORTING
        FIELD_RANGES = TRANGE
      IMPORTING
        EXPRESSIONS  = TEXPR.
    SUBMIT ZVENDOR_REPORT_NEW1 VIA SELECTION-SCREEN
                   WITH SELECTION-TABLE TB_OUTPUT
                    WITH FREE SELECTIONS TEXPR AND RETURN.

  • Problem in using Submit

    Hi Experts.
    I am calling another report in my program inside a method using SUBMIT statement.I can't use Export-Import because OO Concept does not support Export-Import inside a method.
    Please tell me how to pass a value stored in a variable using Submit?
    Thanks
    Abhishek

    Hi Abhishek,
    try out this code whether it is helpful.
    CALL FUNCTION 'JOB_OPEN'
    EXPORTING
    jobname = l_jobname
    IMPORTING
    jobcount = l_jobcount
    EXCEPTIONS
    cant_create_job = 1
    invalid_job_data = 2
    jobname_missing = 3
    OTHERS = 4.
    DATA list_tab TYPE TABLE OF abaplist.
    IF sy-subrc <> 0.
    RETURN.
    ENDIF.
    Submit report to job
    SUBMIT rkpep005
    USING SELECTION-SET 'TEST1'
    VIA JOB l_jobname
    NUMBER l_jobcount
    TO SAP-SPOOL WITHOUT SPOOL DYNPRO
    SPOOL PARAMETERS ls_params
    AND RETURN.
    Regards,
    prasad

  • Passing an internal to another program using SUBMIT

    Hi,
       I need to pass one internal table from one program to another which i am calling using SUBMIT. Is there any way to pass this data without using export/import or selection screen.
       If i do use EXPORT is there a retriction to the maximum size i can export?
    Thanks

    Hi Pankaj,
    Consider these two programs I have done using both WITH SELECTION-TABLE and IMPORT/EXPORT.
    In Program 1(ZZTEST_ARUN_1).
    I have two radio buttons. If I select Material the program executes its own code. If I select plant data is fetched and exported to memory. Then it gets the selection parameters of the Program 2(ZZTEST_ARUN_2) through the FM RS_REFRESH_FROM_SELECTOPTIONS. Then I populate the values for selection screen and pass using the
    SUBMIT....WITH SELECTION-TABLE option.
    REPORT zztest_arun_1.
      TABLES: t001w.
      DATA : it_marc TYPE STANDARD TABLE OF marc WITH HEADER LINE,
             it_werks TYPE STANDARD TABLE OF t001w WITH HEADER LINE.
       PARAMETERS material RADIOBUTTON  GROUP  abc.     "Material General Details
       PARAMETERS plant RADIOBUTTON GROUP abc DEFAULT 'X'.      "Material Plant Details
       START-OF-SELECTION.
       IF material EQ 'X'.
    *If Material selected own code executes  
        SELECT * FROM marc INTO TABLE it_marc UP TO 200 ROWS .
         LOOP AT it_marc.
         WRITE :/ it_marc-matnr,
                it_marc-werks.
         ENDLOOP.
       ENDIF.
      IF plant EQ 'X'.
    *If Plant selected data fetched  
        SELECT * FROM t001w INTO TABLE it_werks UP TO 50 ROWS.
    *Exported to Memory
        EXPORT it_werks[] TO MEMORY ID 'TEST'.
    *Declare on selection table type RSPARAMS
        DATA :   stable     LIKE     rsparams OCCURS 0 WITH HEADER LINE.
    *Call this FM to get the Selection screen details
    *of Program ZZTEST_ARUN_2 (it returns Select Options, Parameters..)
        CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
           EXPORTING
             curr_report     = 'ZZTEST_ARUN_2'
          TABLES
             selection_table = stable
          EXCEPTIONS
             not_found       = 1
             no_report       = 2
             OTHERS          = 3.
        IF sy-subrc <> 0.
         MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
         WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
       stable-sign = 'I'.
       stable-option = 'BT'.
    * populate some selection condition
       READ TABLE it_werks INDEX 10.
       stable-low = it_werks-werks.
       READ TABLE it_werks INDEX 40.
       stable-high = it_werks-werks.
       APPEND stable.
    *Submit it then
       SUBMIT zztest_arun_2
           WITH SELECTION-TABLE stable
           AND RETURN.
       ENDIF.
    <b>Second Program.</b>
    REPORT zztest_arun_2.
    TABLES: t001w.
    DATA : it_werks TYPE STANDARD TABLE OF t001w WITH HEADER LINE.
    SELECT-OPTIONS : s_werks FOR t001w-werks.
    *Import the stored data.
    IMPORT it_werks[] FROM MEMORY ID 'TEST'.
    *Display the data based on selection criteria got
    *form ZZTEST_ARUN_1
    LOOP AT it_werks WHERE werks  IN s_werks.
      WRITE : / it_werks-werks,
                it_werks-name1.
    ENDLOOP.
    Regards,
    Arun Sambargi.

  • How to use Submit program of RAIMCOPY for a specific TCode - IM34

    Hi Experts,
    I have to use submit program RAIMCOPY.  but the program intend used in differnt Tcodes (IM27,IM27_Close,IM27_REPEAT,IM34,IM44,IM54,IM64).
    I used the following code but it is some other selection instead of IM34.
    SUBMIT RAIMCOPY VIA SELECTION-SCREEN with PA_PRNAM = gv_improg
                                                 WITH PA_GJAHR = gv_appyear
                                                 with SO_VERSN-LOW = 'G00'
                                                 with P_XVOVR = 'X'
                                                 and RETURN.
    Please help me to write a submit program RAIMCOPY for only IM34.
    Regards,
    Thulasiram.

    Yes at start of report (events LOAD-OF-PROGRAM and INITIALIZATION) the variant / parameters are not yet transfered to program, they are only passed just before the AT SELECTION-SCREEN OUTPUT, so that could have been nice ... before OSS note  927693 - Report variants used incorrectly in program RAIMCOPY which triggers now an error if sy-tcode <> pa_tcode in interactive mode ...
    So either you look for an implicit enhancement option to force again pa_tcode to required value (e.g. stored in memory) and disable effect of the OSS note (*) /or/ you replace the SUBMIT statement with a CALL TRANSACTION with a small BDC data.
    Regards,
    Raymond
    (*) SAP did that for transaction  IMCAOV, 1023920 - IMCAOV: Unberechtigter Abbruch 00368

  • Using Submit statement

    Hi,
    I want to create a delivery from sales order using 'Submit'.
    Is this a correct program? What needs to be populated in the table rspar_tab? Please provide your input.
    data: rspar_tab  TYPE TABLE OF rsparams.
    SUBMIT SAPMV50A USING SELECTION-SCREEN '4001'
    with selection-table rspar_tab.
    Thanks in advance.

    Hi Krishen,
    Why dont u try using the BAPI.
    You can use the BAPI BAPI_DELIVERYPROCESSING_EXEC.
    Check this sample code..
    PARAMETERS: p_vbeln LIKE vbak-vbeln.
    DATA: BEGIN OF t_vbap OCCURS 0,
    vbeln LIKE vbap-vbeln,
    posnr LIKE vbap-posnr,
    kwmeng LIKE vbap-kwmeng,
    matnr LIKE vbap-matnr,
    werks LIKE vbap-werks,
    END OF t_vbap.
    DATA: t_request TYPE STANDARD TABLE OF bapideliciousrequest WITH HEADER LINE.
    DATA: t_created TYPE STANDARD TABLE OF bapideliciouscreateditems WITH HEADER LINE.
    DATA: t_return TYPE STANDARD TABLE OF bapiret2 WITH HEADER LINE.
    SELECT vbeln posnr kwmeng matnr werks
    INTO TABLE t_vbap
    FROM vbap
    WHERE vbeln = p_vbeln.
    LOOP AT t_vbap.
      t_request-document_numb = t_vbap-vbeln.
      t_request-document_item = t_vbap-posnr.
      t_request-quantity_sales_uom = t_vbap-kwmeng.
      t_request-id = 1.
      t_request-document_type = 'A'.
      t_request-delivery_date = sy-datum.
      t_request-material = t_vbap-matnr.
      t_request-plant = t_vbap-werks.
      t_request-date = sy-datum.
      t_request-goods_issue_date = sy-datum.
      t_request-goods_issue_time = sy-uzeit.
      APPEND t_request.
    ENDLOOP.
    CALL FUNCTION 'BAPI_DELIVERYPROCESSING_EXEC'
    TABLES
       request = t_request
       createditems = t_created
       return = t_return.
    READ TABLE t_return WITH KEY type = 'E'.
    IF sy-subrc = 0.
    MESSAGE e208(00) WITH 'Delivery creation error'.
    ENDIF.
    COMMIT WORK.
    READ TABLE t_created INDEX 1.
    Write: / 'Delivery ', t_created-document_numb.

  • Using submit in RFC

    Hi,
    Can we use submit and return in a RFC.
    I have to call this from an external system....
    This submit doesn't work return any list.
    regards,
    jinesh.

    Hi,
    There is no such restriction in RFC as i submitted the report RSCONN1 for mail sending. But what report u r going to submit and what that report will do. If it has front end interactions then it won't work because RFC will work on back ground concepts. Can u be more clear on this?
    Thanks,
    Vinod.

  • How to run batch programs using SUBMIT command without any interaction need

    Hello ABAP gurus,
    I have created a batch program in SE38 which calls many other SE38 Programs (Reports).
    I have used the command SUBMIT to call the sub programs. There are about 15 sub programs that this main batch program is calling.
    It works fine, but after calling each subprogram it stops and I have to manually click on 'Back Button' in green on the sap screen to run the next program in the list. Like this I have to do 15 times to run all the programs in the batch.
    Is there a way to avoid this manual intervention and make the program run all the sub programs on its own.
    Your feedback will be highly appreciated.
    Thanks
    Ram

    Thanks Sampath for the response.
    Yes I am using the option "AND RETURN". So it is coming out of each sub program, and it is at this stage it waits for me to click on 'backward green arrow' to continue to the next.
    Here is the code I have used
      SUBMIT Z_AS_BI_F0005_EXTRACT WITH S_DATE IN S_DATE WITH P_TEST = 'N' AND RETURN.
      SUBMIT Z_AS_BI_DIVISION_EXTRACT WITH S_DATE IN S_DATE WITH P_TEST = 'N' AND RETURN.
      SUBMIT Z_AS_BI_COMPANY_EXTRACT WITH S_DATE IN S_DATE WITH P_TEST = 'N' AND RETURN.
      SUBMIT Z_AS_BI_CUSTOMER_EXTRACT WITH  S_DATE IN S_DATE WITH P_TEST = 'N' AND RETURN.
      SUBMIT Z_AS_BI_BRANCH_EXTRACT WITH S_DATE IN S_DATE WITH P_TEST = 'N' AND RETURN.
      SUBMIT Z_AS_BI_BUS_UNIT_EXTRACT  WITH S_DATE IN S_DATE WITH P_TEST = 'N' AND RETURN.
      SUBMIT Z_AS_BI_ADDRESS_EXTRACT WITH S_DATE IN S_DATE WITH P_TEST = 'N' AND RETURN.
      SUBMIT Z_AS_BI_CUSTOMER_GROUP_EXTRACT  WITH S_DATE IN S_DATE WITH P_TEST = 'N' AND RETURN.
      SUBMIT Z_AS_BI_GROUP_EXTRACT  WITH S_DATE IN S_DATE WITH P_TEST = 'N' AND RETURN.
      SUBMIT Z_AS_BI_PMT_TERMS_EXTRACT  WITH S_DATE IN S_DATE WITH P_TEST = 'N' AND RETURN.
      SUBMIT Z_AS_BI_REGION_EXTRACT  WITH S_DATE IN S_DATE WITH P_TEST = 'N' AND RETURN.
      SUBMIT Z_AS_BI_TERRITORY_EXTRACT  WITH S_DATE IN S_DATE WITH P_TEST = 'N' AND RETURN.
    Any other suggestions or feedback will be appreciated.
    Tks
    Ram

  • How to use SUBMIT on Programme RDDm0001 (SE10)

    Hi All,
    I am trying to call this program using submit with return passing the transport request ID TRKORR
    How can I find out how to successfully call the program?
    thanks

    I was able to do with with BDC...
      DATA lv_dev_task_display LIKE LINE OF gt_dev_task_display.
    *p_ucomm LIKE sy-ucomm
    *p_rs_selfield TYPE slis_selfield.
      REFRESH gt_bdcdata.
    *  IF p_rs_selfield-sel_tab_field EQ 'GT_CURR-STRKORR' OR
    *      p_rs_selfield-sel_tab_field EQ 'GT_TADIR-STRKORR'.
    *    IF p_rs_selfield-value IS NOT INITIAL.
      READ TABLE gt_dev_task_display INTO lv_dev_task_display INDEX p_row.
      IF sy-subrc = 0.
        PERFORM bdc_dynpro      USING 'RDDM0001' '0100'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=SNGL'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'TRDYSE01CM-USERNAME'.
        PERFORM bdc_field       USING 'TRDYSE01CM-USERNAME'
                                      sy-uname.
        PERFORM bdc_field       USING 'TRDYSE01CM-REQ_CUST'
                                      gc_x.
        PERFORM bdc_field       USING 'TRDYSE01CM-REQ_WB'
                                      gc_x.
        PERFORM bdc_field       USING 'TRDYSE01CM-SEL_CHAN'
                                      gc_x.
        PERFORM bdc_field       USING 'TRDYSE01CM-SEL_RELE'
                                      gc_x.
        PERFORM bdc_dynpro      USING 'SAPLSTRH' '1200'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'GV_1200_TRKORR'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=TAKE'.
        PERFORM bdc_field       USING 'GV_1200_TRKORR'
                                      lv_dev_task_display-trkorr.
        CALL TRANSACTION 'SE09' USING gt_bdcdata
                        MODE   'E'.
      ENDIF.

  • How to export to memory using submit statement?

    hi friends,
    There is a standard report RPTQTA10.
    After executing this report using submit statement i want get the result from the QTTRANS itable of RPTQTA10 to our local itab of BSP.
    After this from local itab of BSP i want display some fields of local itba.
    Any solutions plz....
    Regards,
    shankar.

    hi,
    thanks for ur reply.
    but i am getting error like this in IE.
    Note
    The following error text was processed in the system IT3 : Exception condition "CNTL_ERROR" raised.
    The error occurred on the application server itcsvr_IT3_01 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Form: CONSTRUCTOR of program CL_GUI_CUSTOM_CONTAINER=======CP
    Form: PBO of program SAPLSLVC_FULLSCREEN
    Module: PBO of program SAPLSLVC_FULLSCREEN
    Function: REUSE_ALV_GRID_DISPLAY of program SAPLSLVC_FULLSCREEN
    Form: DISPLAY_LIST of program RPTQTA10
    END-OF-SELECTION of program RPTQTA10
    And my BSP code is like this in OnInitialization event.
    SUBMIT rptqta10
             WITH PNPPERNR-LOW = w_pernr
             EXPORTING LIST TO MEMORY AND RETURN.
    data: field(25).
    field-symbols: <fs_tab> type STANDARD table.
    field = '(RPTQTA10)QTTRANS[]'.
    assign (field) to <fs_tab>.
    MOVE <FS_TAB>[] TO it_qttrans[].
    Here it_qttrans is local itab of BSP.
    Regards,
    Shankar.

Maybe you are looking for

  • How to restrict the maximum size of a java.awt.ScrollPane

    Dear all, I would like to implement a scroll pane which is resizable, but not to a size exceeding the maximum size of the java.awt.Canvas that it contains. I've sort of managed to do this by writing a subclass of java.awt.ScrollPane which implements

  • 64-bit version of Adobe Audition 3.0?

    Hi. It appears the 64-bit enthusiasm is growing around the world, even in 3rd World countries! My question is this: Does Adobe have a 64-bit version of Audition to run on Vista Ultimate 64-bit?

  • Maximum number of emails

    Hello there, i just had implemented a small program to send emails via Java mail, and i have a question: - What is the maximum number of e-mails that i can send once i run my servlet? (I mean how many senders i can have in the same time) Thank you fo

  • Forms Central Alternative

    Dear Adobe, I am very unhappy with your decision. The last 4 months I spent building forms which I know will not be able to use anymore. In order to reduce my efforts, I have a few questions: For each form that I generate, I have only one person fill

  • Driver performance with CLOB

    Hi, I use the "thin" driver with Apple's WebObjects and I noticed that when I do a fetch on a table with a CLOB column, it take more than one minute to get the results back when the result set is more than 500 rows. So I did some tests with SQLGrinde