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: 

HOW TO LINK THE ZPRINT PROGRAM TO STANARD TRANSACTION F.27...Please Help me

Former Member
0 Kudos

Hi All,

I am developing the object from scratch.I need to display account statement for a particular period.It will be executed from F.27 transaction.This one related to FI Module.

I have a selection screen for print program.configuration also has been done for print program and form .But i don't know how to link the print program to the transaction F.27.weather i have to write any form routines suggest me.

Here my doubt is

when i am executing from transaction (f.27) if i give the input values in the f.27 selection-screen ,how my select statement in the print program gets the data for the input values entered in the f.27.Please help me .this is urgent.

have written the select statement like this.

SELECT BLDAT

XBLNR

WAERS

DMBTR

MWSKZ

FROM BSIK

INTO TABLE IT_BSID

WHERE LIFNR EQ P_VENDOR.

  • AND BLDAT LE P_DATE

AND BUKRS = P_BUKRS.

Here P_VENDOR ,P_DATE,P_BUKRS are the print program selection screen fields.when we execute the transaction it will not display the print program selection screen.then

how this select statement will get the data for the input values entered in the transaction F.27.

it will be great if you answer me soon.

anu

1 ACCEPTED SOLUTION

Former Member
0 Kudos

What is the correspondenc type you are using? Based on the correspondence u can then connect your program in IMG customisation.

You can try...

Financial Accounting->Financial Global setting->Correspondence->Assign program to correspondence..

Hope this helps.

4 REPLIES 4

Former Member
0 Kudos

in SPRO .... find node of F.27

there in the output type you can specify which report n sapscript to call...

use followin data to get data from F.27 to your report

***********************************************************************

  • Standard Routine ENTRY *

***********************************************************************

FORM entry USING return_code us_screen.

CLEAR retcode.

xscreen = us_screen.

PERFORM processing USING us_screen.

CASE retcode.

WHEN 0.

return_code = 0.

WHEN 3.

return_code = 3.

WHEN OTHERS.

return_code = 1.

ENDCASE.

ENDFORM.

***********************************************************************

  • Standard Routine ENTRY_ESR *

***********************************************************************

FORM entry_esr USING return_code us_screen.

CLEAR retcode.

xscreen = us_screen.

PERFORM processing_esr USING us_screen.

CASE retcode.

WHEN 0.

return_code = 0.

WHEN 3.

return_code = 3.

WHEN OTHERS.

return_code = 1.

ENDCASE.

ENDFORM.

***********************************************************************

  • Standard Routine ENTRY_ITALY *

***********************************************************************

FORM entry_italy USING return_code us_screen.

CLEAR retcode.

xscreen = us_screen.

PERFORM processing_italy USING us_screen.

CASE retcode.

WHEN 0.

return_code = 0.

WHEN 3.

return_code = 3.

WHEN OTHERS.

return_code = 1.

ENDCASE.

ENDFORM.

***********************************************************************

  • Standard Routine ENTRY_CH *

***********************************************************************

FORM entry_ch USING return_code us_screen.

CLEAR retcode.

xscreen = us_screen.

header_userexit = 'HEADER_CH'.

item_userexit = 'ITEM_CH'.

header_print_userexit = 'HEADER_PRINT_CH'.

item_print_userexit = 'ITEM_PRINT_CH'.

PERFORM processing USING us_screen.

CASE retcode.

WHEN 0.

return_code = 0.

WHEN 3.

return_code = 3.

WHEN OTHERS.

return_code = 1.

ENDCASE.

ENDFORM.

***********************************************************************

  • Standard Routine PROCESSING *

***********************************************************************

FORM processing USING proc_screen.

PERFORM get_data.

CHECK retcode = 0.

PERFORM form_open.

CHECK retcode = 0.

ENDFORM.

***********************************************************************

  • Standard Routine PROCESSING_ESR *

***********************************************************************

FORM processing_esr USING proc_screen.

PERFORM get_data.

CHECK retcode = 0.

PERFORM form_open.

CHECK retcode = 0.

ENDFORM.

***********************************************************************

  • Standard Routine PROCESSING_ITALY *

***********************************************************************

FORM processing_italy USING proc_screen.

PERFORM get_data.

CHECK retcode = 0.

PERFORM form_open.

CHECK retcode = 0.

ENDFORM.

<b>*In get_data subroutine...

From nast structure you'l get all the reaquired data</b>

0 Kudos

Hi sharayu,

This one is related to FI.No output type will be configured.Its directly called by transaction.

My print program is triggering from transaction but i am not getting data in the output.

i am expecting this is due to some logic missed in print program.

thats in the select statement.

i think Form Entry will not be used.

regards ,

anu

JozsefSzikszai
Active Contributor
0 Kudos

hi Anupama,

SPRO:

Financial Accounting

General Setting

Correspondence

here you can set up

hope this helps

ec

Former Member
0 Kudos

What is the correspondenc type you are using? Based on the correspondence u can then connect your program in IMG customisation.

You can try...

Financial Accounting->Financial Global setting->Correspondence->Assign program to correspondence..

Hope this helps.