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

Form Routine

madan_ullasa
Contributor
0 Likes
2,189

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...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,192

Hi,

Tell we for waht process(PO or invoice) you are going to assin.

6 REPLIES 6
Read only

Former Member
0 Likes
1,192

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

Read only

0 Likes
1,192

hey bala,

please do that......

i mean send the sample code....

my id ' madanwrites@yahoo.co.in '

points assured....

Read only

0 Likes
1,192

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

Read only

manuel_bassani
Contributor
0 Likes
1,192

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

Read only

0 Likes
1,192

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

Read only

Former Member
0 Likes
1,193

Hi,

Tell we for waht process(PO or invoice) you are going to assin.