Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SUBMIT PROBLEM

Former Member
0 Likes
1,640

Hi Experts ,

I am submitting a programme from my calling programme , the called programme generates a list which i want to skip during the execution of the main programme ,how can i skip the out put of the called report from my main programme and continue proceesing .

regards

PRASUN

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,587

Hi,

While using SUBMIT, use the extension EXPORTING LIST TO MEMORY.

Regards,

Amit Mittal.

16 REPLIES 16
Read only

Former Member
0 Likes
1,588

Hi,

While using SUBMIT, use the extension EXPORTING LIST TO MEMORY.

Regards,

Amit Mittal.

Read only

0 Likes
1,587

its not working i tried

Read only

0 Likes
1,587

Hi Prasun,

i have also used "EXPORT TO MEMORY" .. It worked well. (With extension AND RETURN - required)

See the syntax below


  SUBMIT RMDMRPEXTRACT01 WITH SELECTION-TABLE INT_SELTAB
                         EXPORTING LIST TO MEMORY
                         AND RETURN.

Nag

Read only

0 Likes
1,587

Hi Pinaki

i am submitting rmdidoc with mesgtype eq value export list to memory and return , but everytime it is generating a list and i have come back tto the main programme by back button , is there is something i am missing in the sytax.

regards

Prasun

Read only

0 Likes
1,587

Please paste the code

Read only

0 Likes
1,587

hi keshav

Please find the code below

SUBMIT rbdmidoc WITH mestyp EQ 'ZPMM_CONDA_ECC2PMM'

exporting list to memory

AND RETURN.

regards

Prasun

Read only

0 Likes
1,587

Hi Prasuna,

What is rmdidoc? , Could u please paste the exact code for the Submit syntax.

Thanks

Rohit G

Read only

0 Likes
1,587

Hi rohit

I rbdmidoc is a standard programme for idoc processing using message type.

regards

Prasun

Read only

0 Likes
1,587

HI rOHIT

Please find the code below.

SUBMIT rbdmidoc WITH mestyp EQ 'ZPMM_CONDA_ECC2PMM'

exporting list to memory

AND RETURN

regards

Prasun

Read only

0 Likes
1,587

Hi,

Instead of direct submit.

Follow below steps for avoid list display.

1) Open job

2) Submit with job name

3) Close job

Read only

Former Member
0 Likes
1,587

Hi,

[http://erpbuzz.com/abap-submit-statement-calling-one-executable-program-from-another.php]

and use skip statement to skip first or any screen.

Thanks,

Arun

Read only

Former Member
0 Likes
1,587

Hi Prasun,

Please use the EXPORTING LIST TO MEMORY AND RETURN addition with the SUBMIT.

It will resolve your issue.

Please check the code --

SUBMIT  <Report_name> EXPORTING LIST TO MEMORY AND RETURN.

Regards

Pinaki Mukherjee

Read only

Abhijit74
Active Contributor
0 Likes
1,587

Hi,

Instead of displaying a list on the screen, you can store it in ABAP memory using the EXPORTING LIST TO MEMORY addition in the SUBMIT statement:

SUBMIT... AND RETURN EXPORTING LIST TO MEMORY.

i) This statement stores the list in ABAP memory, allowing the calling program to access it once the called program has finished.

ii) You must use the "AND RETURN" addition in this case.

iii) The function group SLST provides function modules for accessing the saved list LIST_FROM_MEMORY.

Thnaks & Regards,

Abhijit

Read only

Former Member
0 Likes
1,587

Hi Prasun,

First of all please check that the program ur submitting is a report or a modulr pool, in case it is a report program then u can use the following code inorder to skip the report list and get the output of report in an internal table:


DATA: BEGIN OF lt_list OCCURS 0 .
        INCLUDE STRUCTURE abaplist .
DATA: END OF lt_list.

DATA: BEGIN OF lt_asci OCCURS 0 , " it should be of type ur list to be exported
                matnr(18)  ,
                mtart(10) ,
               date(1000)   TYPE c,
        END OF lt_asci.

SUBMIT ZZ_TEST05
                   WITH S_MATNR-LOW = ''
                       EXPORTING LIST TO MEMORY
                    AND RETURN.

  CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
      listobject = lt_list
    EXCEPTIONS
      not_found  = 1
      OTHERS     = 2.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
       WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

  CALL FUNCTION 'LIST_TO_ASCI'
   EXPORTING
    LIST_INDEX               = -1
*     WITH_LINE_BREAK          = ' '
*   IMPORTING
*     LIST_STRING_ASCII        =
   TABLES
     listasci                 = lt_asci
     listobject               = lt_list
   EXCEPTIONS
     empty_list               = 1
     list_index_invalid       = 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.

Do reply for any confusion:

Rohit

Code Formatted by: Alvaro Tejada Galindo on Jan 4, 2010 3:56 PM

Read only

0 Likes
1,587

Hi ROHIT,

i am submitting rmdidoc with mesgtype eq value export list to memory and return , but everytime it is generating a list and i have come back tto the main programme by back button , is there is something i am missing in the sytax

reagrds

Prasun

Read only

Former Member
0 Likes
1,587

Hi,

Follow below steps, Instead of direct submitting.

1) Open job

2) Submit with job name

3) Close job

In this process we can avoid list display.

Thanks,