cancel
Showing results for 
Search instead for 
Did you mean: 

F-58 Check printing problem in house bank wise

Former Member
0 Kudos

I have 5 house bank.And their layout is different.I have modified from standard layout for each house bank format.How can I call house bank wise without using the Alternative form field in f-58 tcode.

How can I call these layout in standard program

thanks

kumar n

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi ,

I am also facing the same problem . Can you tell me what to be done to take print out for different bank without mentioning the form name in alternative coloumn? Is there any configuration has to be done?

Regards

Shiba Prasad Dutta

Former Member
0 Kudos

Hi,

You copy the standard layout and make modification with different name like zbank1, zbank2, zbank3...and while running F-58, screen no 130 , there u can give the alternate form name field.

Once u give ur desired bank layout name there it will give u output.

Thanks

kumar n

Former Member
0 Kudos

Yes I know that but your question was

How can I call house bank wise scripts without using the Alternative form field in f-58 tcode?

So I think there is no other way to configure it except in F-58 alternate form field.

Any way thanx for the reply.

Regards

Shiba Prasad Dutta

Former Member
0 Kudos

answered

Former Member
0 Kudos

Try to create a blank form that doesn't print anything and inside the blank form call an external program passing the required values like this:

/: PERFORM zprint IN PROGRAM zprinting

/: USING &VBDKR-VBELN&

/: USING &VBDPR-POSNR&

/: USING &KOMVD-KWERT&

/: CHANGING &ZSTK&

/: CHANGING &KWERT&

/: ENDPERFORM

report zprinting.

FORM FUEL_CHARGE_COUNT TABLES IN_TAB STRUCTURE ITCSY

OUT_TAB STRUCTURE ITCSY.

CALL FUNCTION 'OPEN_FORM'

EXPORTING

ARCHIVE_INDEX = ' '

ARCHIVE_PARAMS = ' '

DEVICE = 'PRINTER'

DIALOG = ' '

FORM = 'zcheque' <----


another lay out HERE

LANGUAGE = SY-LANGU

OPTIONS = ITCPO

MAIL_SENDER = ' '

MAIL_RECIPIENT = ' '

EXCEPTIONS

CANCELED = 1

DEVICE = 2

FORM = 3

OPTIONS = 4

UNCLOSED = 5

MAIL_OPTIONS = 6

ARCHIVE_ERROR = 7

MORE_PARAMS_NEEDED_IN_BATCH = 8

OTHERS = 9.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

ELEMENT = 'check'

WINDOW = 'MAIN'

EXCEPTIONS

ELEMENT = 1

FUNCTION = 2

TYPE = 3

UNOPENED = 4

UNSTARTED = 5

WINDOW = 6

BAD_PAGEFORMAT_FOR_PRINT = 7

OTHERS = 8

endform.