‎2006 Jun 22 8:07 AM
Hi all,
Good afternoon.
I have two applications. one is covering letter and second is purchase order. How can i process these forms in the driver program and plz tell me the sequence of FM.
Thanks in advance
venkat
‎2006 Jun 22 2:29 PM
Hi Venkat
The covering letter may contain all hardcoded content so there is no need for a driver program. But for the PO, you will need one. SMARTFORMS generate their own FMs to populate data and to print them, so you are saved. In the driver program, you will have to capture all the PO data into internal tables and populate them with the variable names in the SMARTFORM.
If you find it useful, please reward me for the same.
Good luck
Karthik Potharaju
‎2006 Jun 22 2:39 PM
hi,
for covering letter mostly use the standard text so no need of driver program, ( u can create standard text in SO10)
for PO after activating the smartform execute it, it generates the FM for this form.
use this FM in driver program.
also u have to use SSF_FUNCTION_MODULE_NAME FM to assign ur smartform to driver program.
cnu
‎2006 Jun 22 3:09 PM
hi
For PO, generate a driver program, where you need to select all the PO data into internal tables and populate them. You need to have the names such that the Smartform recognizes the variables used in driver program. Assign your driver program to your smart form by using SSF_FUNCTION_MODULE_NAME FM.
Hope you will find it useful
Regards,
Richa
‎2006 Jun 22 3:25 PM
HI
GOOD
IN WHICH FORM YOU R GOING TO CALL TWO OF YOUR FORMS, IT IS SMARTFORMS OR SAP SCRIPT FORMS.
IF IT IS A SAP SCRIPT FORM THAN YOUR FUNCTION MODULES SHOULD BE LIKE THIS
OPEN_FORM
WRITE_FORM
CLOSE_FORM
THANKS
MRUTYUN