Application Development 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: 

Submit sentence

former_member204025
Participant
0 Kudos
326

Hi guys!

I'm triying to use a Submit in my z program, in order to process a standard program, this program shows a report at the end of its execution, but i don't want to see the repórt, I just want it to get the internal table and process it in order to work in my Z program.

Is there any posibility to do this? I used the SUBMIT sentence, but it shows me the report, i'll appreciate your help.

Best regards,

Gabriela.

1 ACCEPTED SOLUTION

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Kudos
216

Hello,

I used the SUBMIT sentence, but it shows me the report

You can't achieve this using SUBMIT statement!

A couple of questions:

1. What is the program you're SUBMIT'ting?

2. Which version of SAP are you using?

If > ECC6.0, you can check for implicit enhancement spots & EXPORT the internal table to some memory cluster. In the calling Z-program you can IMPORT the internal table.

Hope you get my point.

BR,

Suhas

7 REPLIES 7

Former Member
0 Kudos
216

Hi Gabriela,

Try using the addition EXPORTING LIST TO MEMORY in your SUBMIT statement. This will not display the output list but export the output list to the ABAP memory. You can read this list from memory in your Z program using the function module LIST_FROM_MEMORY and process further.

Press F1 on SUBMIT statement for more information on how to use.

Regards,

Immanuel.

Edited by: Immanuel T A on Oct 26, 2010 5:50 AM

0 Kudos
216

Hi Immanuel,

I tried with that but I see a list of ABAPLIST type, how can i get the normal format that allows to me to see the info on that table?

Thanks.

Gaby

0 Kudos
216

Hi,

You can use FM LIST_TO_ASCI to convert data into readable format.

Thanks

Nitesh

0 Kudos
216

Hi NItesh, and after using that FM, should I loop that table and get the values that I need right?

0 Kudos
216

Hi,

Yes you need to loop the internal table and split the work area at '|' and collect the data into some internal table.

Thanks

Nitesh

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Kudos
217

Hello,

I used the SUBMIT sentence, but it shows me the report

You can't achieve this using SUBMIT statement!

A couple of questions:

1. What is the program you're SUBMIT'ting?

2. Which version of SAP are you using?

If > ECC6.0, you can check for implicit enhancement spots & EXPORT the internal table to some memory cluster. In the calling Z-program you can IMPORT the internal table.

Hope you get my point.

BR,

Suhas

0 Kudos
216

Hi Suhas!

Why can't I use the submit sentence?

Thanks!

Gaby