‎2005 Nov 09 8:42 AM
Hi frnds,
I have created a form and a print program. Now a output message is to be created for this. we nwwd to give three parameters for this.
1. Print program name.
2. Form name.
3. Form routine.
SO please tell me wots this form routine.?
My form and print program is ready.
points assured...
Madan...
‎2005 Nov 09 8:57 AM
Hi,
Tell we for waht process(PO or invoice) you are going to assin.
‎2005 Nov 09 8:46 AM
Assign print program name: Your Abap Code
Assign the Form Routine
Form routine name will be the subrotine, Where the open for processing, closes form is written.
(If u need I will send u the sample code)
Assign the SAP sCript for Form Name
‎2005 Nov 09 8:48 AM
hey bala,
please do that......
i mean send the sample code....
my id ' madanwrites@yahoo.co.in '
points assured....
‎2005 Nov 09 8:57 AM
HI Madan,
When you assign a Print program(Processing orogram where you get the data for your SAPSCRIPT), to a output type the subroutine in that program is dynamically called from the transaction in which you issue the output.
The form in which the actual code is there to get the data and which calls the script function MOdules is the
Form Routine name.
EG: for FORM MEDRUCK
PROGRAM: SAPFM06P
FORM ROUTINE: ENTRY_MAHN
FORM: MEDRUCK
FORM ENTRY_MAHN looks something like this..
form entry_absa using ent_retco ent_screen.
data: l_druvo like t166k-druvo,
l_nast like nast,
l_from_memory,
l_doc type meein_purchase_doc_print.
l_druvo = '4'.
clear ent_retco.
call function 'ME_READ_PO_FOR_PRINTING'
exporting
ix_nast = nast
ix_screen = ent_screen
importing
ex_retco = ent_retco
ex_nast = l_nast
doc = l_doc
changing
cx_druvo = l_druvo
cx_from_memory = l_from_memory.
check ent_retco eq 0.
call function 'ME_PRINT_PO'
exporting
ix_nast = l_nast
ix_druvo = l_druvo
doc = l_doc
ix_screen = ent_screen
ix_from_memory = l_from_memory
ix_toa_dara = toa_dara
ix_arc_params = arc_params
ix_fonam = tnapr-fonam "HW 214570
importing
ex_retco = ent_retco.
endform.
Regards,
Ravi
‎2005 Nov 09 8:49 AM
Hi,
When an output message is triggered, the system runs the form routine from the print program. Something like:
perform (form_routine) in program (print_program) if found.
inside the form routine you should call the function modules to print your SAPscript (call function 'OPEN_FORM' and so on...)
Regards, Manuel
‎2005 Nov 09 8:54 AM
Try to look program SAPFM06P form ENTRY_NEU. print routine fo purchase orders)
routine ENTRY_NEU reads Purchase orders data from DB and then calls the sap-script.
Manuel
‎2005 Nov 09 8:57 AM
Hi,
Tell we for waht process(PO or invoice) you are going to assin.