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

driver program

Former Member
0 Likes
451

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

4 REPLIES 4
Read only

former_member189629
Active Contributor
0 Likes
423

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

Read only

Former Member
0 Likes
423

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

Read only

Former Member
0 Likes
423

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

Read only

Former Member
0 Likes
423

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