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 Statement with No Message

Former Member
0 Likes
4,393

I have use SUBMIT statement which is calling another report & i am exporting its output.

But some times it generate message which comes from the Called Program.

I dnt want this message to come in Calling program.How can i control that.

Viru.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,142

SUBMIT rm07docs VIA SELECTION-SCREEN AND RETURN exporting list to memory.

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

listobject = t_list

EXCEPTIONS

not_found = 1.

7 REPLIES 7
Read only

Former Member
0 Likes
2,142

Hi Virendra

You can do this

SUBMIT ZPROGRAM EXPORTING LIST TO MEMORY.

so you can manipulate the list display according to your need.

You this link for more details on Submit:

http://sapdevelopment.co.uk/reporting/rep_submit.htm

Regards

Neha

Read only

0 Likes
2,142

SUBMIT RMCB0300 WITH SL_WERKS-LOW = P_WERKS

WITH SL_LGORT = 'C001' WITH SL_LGORT = 'Q001'

WITH SL_LGORT = 'R001' WITH SL_LGORT = 'T001'

WITH SL_MTART = 'ROH'

WITH SL_SPMON-LOW = P_FPERIOD

WITH SLV_NO = 'YMC.9'

WITH SL_SPMON-HIGH = P_FPERIOD EXPORTING LIST TO MEMORY AND RETURN .

Calling Program - ZTEST.

Here SUBMIT is generating "No data exists for chosen selection" Message no. M5017.

I dnt want to display this message if i used ZTEST.How can i control that.

Read only

0 Likes
2,142

Hi

Have you tried this:

SUBMIT

RMCB0300 WITH SL_WERKS-LOW = P_WERKS

WITH SL_LGORT = 'C001' WITH SL_LGORT = 'Q001'

WITH SL_LGORT = 'R001' WITH SL_LGORT = 'T001'

WITH SL_MTART = 'ROH'

WITH SL_SPMON-LOW = P_FPERIOD

WITH SLV_NO = 'YMC.9'

WITH SL_SPMON-HIGH = P_FPERIOD.

EXPORTING LIST TO MEMORY.

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

listobject = itab_list

EXCEPTIONS

not_found = 4

OTHERS = 8.

Regards

Neha

if you do this you can

Read only

0 Likes
2,142

Thanx Neha,

I have used the same code.

But the problem is that ,the message gets generate in the SUBMIT program not in Calling Program.

Is their ay command to control this message .

Viru.

Read only

Former Member
0 Likes
2,143

SUBMIT rm07docs VIA SELECTION-SCREEN AND RETURN exporting list to memory.

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

listobject = t_list

EXCEPTIONS

not_found = 1.

Read only

0 Likes
2,142

But it is taking me to selection screen,which i dnt want.

I want to pass parameters from by calling program.

thanx,

Dheeraj Nadamwar

Read only

0 Likes
2,142

Hi Virendra,

did your problem solved?

PLease share the solution with me as I am facing same problem.

rgds,

Madhuri