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 and GET

Former Member
0 Likes
1,267

HI,

I am writing a function module to run an ABAP program and the ABAP program has "GET VBAK" statement. When I try to debug the program, its not executing these statements. So I am not getting the values in my function module.

Please let me know if there is any specific parameter which needs to be used with SUBMIT. I went to the ABAP progrram and the passed value is populated..

12 REPLIES 12
Read only

manuel_bassani
Contributor
0 Likes
1,240

Hi,

your report is using a Logical database. Try to check select options from logical DB program.

Regards, Manuel

Read only

Former Member
0 Likes
1,240

Can you explain what is exactly you are doing...

regards

vijay

Read only

0 Likes
1,240

I am trying to create a report. The ABAP program is creating a report in forground. I am trying to make it in Batch or create an external interface. For that we write a function module which will call this ABAP program and write the output into spool.

This is my statement in the Function module

SUBMIT ZSD00205

WITH DD_VKORG EQ VKORG

WITH AUART EQ AUART

WITH DD_ERDAT EQ ERDAT

WITH TRVOG_1 EQ space

WITH TRVOG_2 EQ space

WITH TRVOG_3 EQ space

WITH TRVOG_4 EQ space

WITH TRVOG_5 EQ space

TO SAP-SPOOL

WITHOUT SPOOL DYNPRO

DESTINATION 'LOCL'

IMMEDIATELY ' '

KEEP IN SPOOL 'X'

NEW LIST IDENTIFICATION 'X'

AND RETURN.

I am going to execute the function module using Lighthammer reporting tool.

Message was edited by: rvn nvr

Read only

0 Likes
1,240

Not sure what Lighthammer reporting tool is... but your solution sounds more complicated then it needs to be.

Why not just run ZSD00205 as a background job in SAP job scheduling (or with whatever job scheduler you might have)?

The background job can create the spool on it's own.

Read only

0 Likes
1,240

In the attributes of this program (ZSD00205), is there a logical database? If so, which one?

Rob

Read only

0 Likes
1,240

Rob,

Yes I have teh attribute as "VAV" in the ABAP prog.

Read only

0 Likes
1,240

For debugging the System generated code i.e the program behind the logical database you need to put the break point inside the logical database selection program and activate system debugging in the debug menu. While in debug menu goto Settings ->System debugging and click. it will swoth on the system debugging . Now you can debug the program.

Hope this helps.

Read only

0 Likes
1,240

Does the (Z) report work if you execute it on-line with the same parameters?

Rob

Read only

0 Likes
1,240

Yes. When I run the ABAP program alone with the same parm its working. I put that in Debug mode and it works.

I have created 3 other func module like this and it all works and surprisingly they dont have Logical databse.. This is the only one which has that and thats where we have the problem.

Please help

Read only

0 Likes
1,240

Hi rvn

try this...

save the selection screen values of the program to a variant and modify your submit statement to use the variant..

SUBMIT ZSD00205 USING SELECTION-SET vari.

Regards,

Suresh Datti

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,240

What is the sumbitted program?

Regards,

Rich Heilman

Read only

Former Member
0 Likes
1,240

GET <NAME> is command syntax for calling a logical database.

There is a SAP supplied program "under" that command that reads tables like VBAK, etc.

Why have a func module that simply calls a program? What is your requirement for the func mod?