cancel
Showing results for 
Search instead for 
Did you mean: 

Reg forms and smartforms

Former Member
0 Kudos

Hi All,

I have a very basic question it's like how did the data will come to the print program of a standard form?They use any select statements inside the driver program?Usually we will trigger the form printing from transactios like VA01,VA02 and all how the data flow between transaction, print program and layout?from print program it will go using write_form fun module i think.

Thanks&Regards

Mahesh

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi mahesh,

if you look at the print program you will understand it easily.. The data will come directly from the transaction, lets say you are ruuning the Va03 script, the data will be there in the va03, so that will be stored in the structures in the runtime so these strucuures will be used in the Printprograms, if at all the data is not available in the structure then we write the selsects

Regards

Sudheer

Former Member
0 Kudos

Hi,

Outtypes are the main link where the Printprogram and Smartforms will be linked. And the link between the Printprogram and smartform is Form interface in the form. A function module will be there to call the smartform.

Br,

Laxmi

former_member181962
Active Contributor
0 Kudos

HI Mahesh,

Ths flow of data is as follows:

Transaction->Print Program->Script/smartform

1) From transaction to Print program.

The data gets transferred by the use of configuration in NACE transaction from the transaction to the PP. The communication structure NAST will have the Object Key information(Eg: PO Number in case of PO transaction).

2) The print program in turn has some select statements/ function module calls to get all the Object related data.

3) It would call the OPEN_FORM/WRITE_FORM function modules to transfer the data to the form.

Regards,

Ravi

Former Member
0 Kudos

Hi!

You're right they may use selects in the standard printer programs. However sometimes they are not using select. In the standardd transaction they put the relevant data into ABAP memeory (using EXPORT command), and in the printer program they retrieve it using the IMPORT command.

But mostly it is not important, where the data come from. You have to copy the standard printer programs and then you only have to modify a few things and not to rewrite everything.

Regards

Tamá