‎2005 Dec 13 5:51 PM
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..
‎2005 Dec 13 6:05 PM
Hi,
your report is using a Logical database. Try to check select options from logical DB program.
Regards, Manuel
‎2005 Dec 13 6:05 PM
Can you explain what is exactly you are doing...
regards
vijay
‎2005 Dec 13 6:11 PM
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
‎2005 Dec 13 6:17 PM
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.
‎2005 Dec 13 7:35 PM
In the attributes of this program (ZSD00205), is there a logical database? If so, which one?
Rob
‎2005 Dec 13 8:05 PM
‎2005 Dec 13 8:12 PM
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.
‎2005 Dec 13 8:34 PM
Does the (Z) report work if you execute it on-line with the same parameters?
Rob
‎2005 Dec 13 11:34 PM
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
‎2005 Dec 14 12:21 AM
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
‎2005 Dec 13 6:06 PM
‎2005 Dec 13 6:06 PM
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?