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

Changing an output type for SmartForms

Former Member
0 Likes
2,252

Hi all,

I have a picklist that I changed from SAPScript to SmartForm. I am trying to edit the output type EK00 to use the SmartForm. I am using V/38 to edit EK00 but I can't figure out the right properties. Right now I have the FM name (/1BCDWB/SF00000017) as the Layout Module, the SmartForm name (ZPCC_PICKLST_STD) as the SmartForm. Also, under Pricessing 1, I have the print program (ZRVADEK01), FORM routine as (SMARTFORM_PRINT) and Form as (ZPCC_PICKLST_STD). Is there anything else that I need to change? When I try to use EK00 it is still looking for a SAPScript instead of a SmartForm.

Regards,

Davis

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,018

Remove the entry in Layout Module and remove the entry under Form.

All you should need is the Smart Form and then under Processing 1 you need the Program and Form Routine.

12 REPLIES 12
Read only

Former Member
0 Likes
2,019

Remove the entry in Layout Module and remove the entry under Form.

All you should need is the Smart Form and then under Processing 1 you need the Program and Form Routine.

Read only

0 Likes
2,018

Matt, thanks for the reply. I just tried what you posted and it still gives me an error. I get a popup that says "WRITE_FORM is invalid, OPEN_FORM is missing.

Could my problem be that the old SAPScript and the new SmartForm have the same name? Below is the configuration:

Layout Module: <b>nothing there</b>

SmartForm: <b>ZPCC_PICKLST_STD</b> (name of the smartform)

Processing 1:

Program: <b>ZRVADEK01</b>

FORM routine: <b>SMARTFORM_PRINT</b>

Regards,

Davis

EDIT: I do not have any SAPScript functions (open_form, close_form, etc...) in the print program. I took the preconfigured print program for SDPIK_L (preconfigured picklist) and added our custom logic.

Message was edited by:

Davis

Read only

0 Likes
2,018

When you go to V/38 and double click on EK00 are there any Programs or Form Routines filled in under the General Data tab?

Read only

0 Likes
2,018

Matt, no there are not.

Regards,

Davis

Read only

0 Likes
2,018

Hmmm... and your Program ZRVADEK01 has a Form called 'SMARTFORM_PRINT'?

And there is no mention of WRITE_FORM in ZRVADEK01?

Read only

0 Likes
2,018

Matt, you are correct with both questions. I have SMARTFORM_PRINT in ZRVADEK01 and no mention of WRITE_FORM.

Regards,

Davis

Read only

Former Member
0 Likes
2,018

Matt, you pinpointed the problem. When I was copying the code from our old print program to the new one I overwrite most of the SMARTFORM_PRINT code and included WRITE_FORM.

I am going to edit the code and hope that it works.

Thanks for all of your help!

Regards,

Davis

Read only

Former Member
0 Likes
2,018

Hi Davis,

Please try this in transaction V/38.

Layout Module: nothing there

SmartForm: ZPCC_PICKLST_STD (name of the smartform)

Processing 1:

Program: ZRVADEK01

FORM routine: ENTRY

Regards,

Ferry Lianto

Read only

0 Likes
2,018

Ferry, do I use FORM routine: <b>Entry</b> or <b>SMARTFORM_PRINT</b>?

Regards,

Davis

Read only

Former Member
0 Likes
2,018

Hi Davis,

You need to use FORM routine: Entry.

This form routine will call form routine SMARTFORM_PRINT at the end after getting all the required data for smartform and perform user exits (if any).

Regards,

Ferry Lianto

Read only

0 Likes
2,018

Ferry,

His print program is ZRVADEK01 not SMARTFORM_PRINT.

Davis,

It seems like the norm is to use ENTRY for the Form Routine name, but I'm pretty sure you can call it whatever you want to.

Read only

0 Likes
2,018

Thanks to all for your help. All of this could have been avoided had I paid attention to my code a little more.

Thanks again for all the help,

Davis