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

smartform archiving

Former Member
0 Likes
1,106

I have a problem archiving the output from a smartform. Within the printing program, the function that calls the smartform needs to be called 3 times. The reasoning behind this is related to grouping information on different sheets. Every time the smartform is called, the following parameters are passed:


(first call) 
control_parameters-no_open=' '
control_parameters-no_close='X'

(second call)
control_parameters-no_open='X'
control_parameters-no_close='X'

(third call)
control_parameters-no_open='X'
control_parameters-no_close=' '

This is all needed for the way in which we show the data. The rest is done as usual. In every call to the smartform, I pass the parameters:


archive_index 
archive_parameters

Note that before passing the above parameters, I set the following, in order to request archiving:


output_options-tdarmod = nast-tdarmod. 

In conclusion, when I call the smartform once, the archiving works well. However, when I call it more than once, no archiving takes place. An interesting point to note is that from transaction vf02 (Change Billing Document) the above behaviour occur (no archiving). However, if I use transaction vf31 (output from billing) I am able to archive all three calls to the smartform. Any ideas? Thanks.

Alvaro

I have a problem archiving the output from a smartform. Within the printing program, the function that calls the smartform needs to be called 3 times. The reasoning behind this is related to grouping information on different sheets. Every time the smartform is called, the following parameters are passed:


(first call) 
control_parameters-no_open=' '
control_parameters-no_close='X'

(second call)
control_parameters-no_open='X'
control_parameters-no_close='X'

(third call)
control_parameters-no_open='X'
control_parameters-no_close=' '

This is all needed for the way in which we show the data. The rest is done as usual. In every call to the smartform, I pass the parameters:


archive_index 
archive_parameters

Note that before passing the above parameters, I set the following, in order to request archiving:


output_options-tdarmod = nast-tdarmod. 

In conclusion, when I call the smartform once, the archiving works well. However, when I call it more than once, no archiving takes place. An interesting point to note is that from transaction vf02 (Change Billing Document) the above behaviour occur (no archiving). However, if I use transaction vf31 (output from billing) I am able to archive all three calls to the smartform. Any ideas? Thanks.

Alvaro

4 REPLIES 4
Read only

Peter_Inotai
Active Contributor
0 Likes
1,041

May be it's a bug in vf02. I would open an OSS message for his after checking if there is any relevant OSS note.

Peter

Read only

0 Likes
1,041

Peter,

Thanks for your message. The problem regarding from where the output was triggered was fixed. I have another question though. We need to make several calls to the smartform function. As of now, it creates an archive for every call to the function. We would like to have it create only one archive, independently of the number of function calls. Thanks again.

Regards,

Alvaro

Read only

former_member597836
Discoverer
0 Likes
1,041

Hi there, I am trying to get my smartform to archive. What exactly are you using in the structures ?

archive_index

archive_parameters

Any help would be greatly appreciated.

Thanks

TonyC

Burton Snowboards

Read only

Former Member
0 Likes
1,041

Alvaro,

May i know how you overcome this problem in smartforms while archiving a billing document using the parameters no_open no_close as i have same problem now and dont know how to rectify it.

Thanks,

Ram.