2007 Oct 04 8:09 AM
HI GURUS?
I have created a very simple smart form & it's application program but when in nace t-code i gave it's app program name and smart form name in processing routines then it ask for it's form routines name.
i have no idea abt form routines so pls tell me how to create it's form routine & if required then also give source code and if it possible to use exitsing one then how to use ? pls step by step.
regards,
HI GURUS?
I have created a very simple smart form & it's application program but when in nace t-code i gave it's app program name and smart form name in processing routines then it ask for it's form routines name.
i have no idea abt form routines so pls tell me how to create it's form routine & if required then also give source code and if it possible to use exitsing one then how to use ? pls step by step.
regards,
2007 Oct 04 8:13 AM
for which transaction/application area hav u created smartform?
2007 Oct 04 8:19 AM
form routine is the subroutine name in your application prgram ..................such that in this particular routine u r form will going to trigger..........
consider a scenario
u hve developed a smart form in 'SMARTFORMS' transaction as 'zpurchaseorder'.
if u want to assign it to standard printprogram .....
oneway of doing this is .....
goto nace
select EF ( application type)
click on output type ...select outtype NEU( new po printout) and click on processing routines ... in the screen u will find
MEDIUM : 1
SHORTTEXT : Print output
PROGRAM : sapfm06p
FORMROUTINE :entry_neu
FORM :
SMARTFORM : zpurchaseorder
give it and save it ..it will ask for request number give u r own request number and save it .....then u r smartform n program name in TNAPR table it would be there ....then go to me22n n check with print preview
another way of doing this is
goto SE38
give 'RSNAST00' ( Selection Program for Issuing Output )
in this program search the fields sform ,pgnam,ronam(these r the fields for formname,programname,routine name) ........
search for sform in program rsnast00 u will find in line no: 816
859 tnapr-sform = nast-pfld3.
keep a break point here.
when u hit on printpreview in me22n it will take u into debugger editor with rsnast00 program ....where u can assign u r program name,smartform name,routine name .............(remember u need assign u r smartform name)
ok
like this u can assign u r zsmartform to u r printprogram .
unless and untill u give it nace or rsnast00(runtime) u wont find the zsmartform entry in tnapr table ....
i hope u r clear now
rewards would be helpful
2007 Oct 04 8:20 AM
2007 Oct 04 8:21 AM
Printing program should start with some routine. Like ENTRY in many standard printing programs. Just reorganize your program in a way that processing starts from some subroutine and define it's name in NACE
2007 Oct 04 8:30 AM
Hi Anuj,
As you said you have created a smartform of your own.But in nace you can find standard routines,program name etc.As your smartform is not a standard one you will not have processing routines etc.Usually we create a smart form for PO or Sales Order etc.,and create a print program for that smartform.Which is assigned in nace for the respective processing routine of PO or Sales order.So if you are desiging a smartform of your own you dont have to mention that in nace.You will assign only if you have to get a form for the standard tcode.Hope i am clear.
Reward points if helpful.
Regards,
Harini.S
2007 Oct 04 9:59 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |