Application Development 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: 

Zsmartform to be written under standard tcode

Former Member
0 Kudos

Hi All,

i have to add my custom smartform in a program in a program SAPFM06P,

i don't know where i have to write my program, so that it will call my zsmartform.

Please tell me where should i write my program code.

1 ACCEPTED SOLUTION

former_member187748
Active Contributor
0 Kudos

Hi Srikant,

in the program SAPFM06P, there will be a include

INCLUDE fm06pe02.

just double click this include, you will get

form entry_neu using ent_retco ent_screen.

*********you have to write your code here, to call your custom smartform.

endform.

Please revert, still if you have any queries.

2 REPLIES 2

former_member187748
Active Contributor
0 Kudos

Hi Srikant,

in the program SAPFM06P, there will be a include

INCLUDE fm06pe02.

just double click this include, you will get

form entry_neu using ent_retco ent_screen.

*********you have to write your code here, to call your custom smartform.

endform.

Please revert, still if you have any queries.

Former Member
0 Kudos

Hi Srikanth,

I am not sure on your requirement! do you want to use the program with scripts as well as smart forms?

By the way this program is generating the forms with the scripts preview!

Include FM06PE02: is the responsible to print the forms

call function 'ME_READ_PO_FOR_PRINTING'


call function 'ME_PRINT_PO' : You need to change the FM according to your requirement!

better to copy the FM ME_PRINT_PO to  ZME_PRINT_PO.


Inside the FM  do the relevant changes:


Use the existing routines like
* docu: Kopfdaten ausgeben


   perform print_header tables doc-xaend
                        changing ex_retco.


and change the print controls as required for smart forms!