This website is not affiliated with, sponsored by, or approved by SAP AG.

SMARTFORMS and SPOOL REQUESTS

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

SMARTFORMS and SPOOL REQUESTS

Postby FLIPCRITIC » Tue Oct 22, 2002 9:02 pm

I created an ABAP program which prints out a unique set of FI data through a smartform. The function module which calls the smartform returns two (2) structures:

1. JOB_OUTPUT_INFO (type SSFCRESCL)
2. JOB_OUTPUT_OPTIONS (type SSFCRESOP)

I need to prevent users from using this program to reprint unique sets of FI data. To do this, I would like the function module to return the spool request number that was generated after the smartform was printed, in order to compare it with an existing entry in the spool request table TSP01.

Problem: The smartform function module does not seem to return the spool request number used for printing.

Is there anyway to work around this? Thanks in advance.
Yours Truly,
THE FLIPCRITIC
http://www.grabeh.com/flipcritic
FLIPCRITIC
 
Posts: 40
Joined: Mon Oct 21, 2002 10:23 pm
Location: Philippines

Postby Chaps » Tue Oct 22, 2002 9:05 pm

Hi,

Although I profess that I do not have working knowledge of Smartforms, I wonder why the Sy-Spono cannot help you get the print request id?

Thanks,
Chaps.
Chaps
 
Posts: 32
Joined: Mon Oct 21, 2002 11:01 am
Location: Boston, USA

Postby FLIPCRITIC » Tue Oct 22, 2002 9:14 pm

Tried that already. While debugging, its value was zip.
Yours Truly,
THE FLIPCRITIC
http://www.grabeh.com/flipcritic
FLIPCRITIC
 
Posts: 40
Joined: Mon Oct 21, 2002 10:23 pm
Location: Philippines

Postby FLIPCRITIC » Tue Oct 22, 2002 10:18 pm

Found the solution. The spool request number is returned by the function module under the structure SSFCRESCL in field SPOOLIDS. The field is a TABLE type which only gains value after the smartform is printed.
Yours Truly,
THE FLIPCRITIC
http://www.grabeh.com/flipcritic
FLIPCRITIC
 
Posts: 40
Joined: Mon Oct 21, 2002 10:23 pm
Location: Philippines


Return to ABAP

Who is online

Users browsing this forum: No registered users and 5 guests



cron


This website is not affiliated with, sponsored by, or approved by SAP AG.