cancel
Showing results for 
Search instead for 
Did you mean: 

Spool - text not printing for 1st run

Former Member
0 Kudos

Hi Experts,

I am sending the Sap SCRIPT layouts from my print program to a spool request.

When i execute my print program directly (without going to debuggng mode), some part of the texts (headings.. etc) are NOT seen on the layout.

But when i run the print program via debugging mode and later turn the debug off then i am able to see the complete text on the layout from the spool.

Please tell me what more i should have to do have complete texts on my layout on the direct exec of my print prgram?

Thanks

Dany

Accepted Solutions (0)

Answers (1)

Answers (1)

Pawan_Kesari
Active Contributor
0 Kudos

Is it possible for you to paste some part of you code here. For example call to FM

OPEN_FORM, START_FORM, END_FORM and CLOSE_FORM

Former Member
0 Kudos

Hi Pawan,

The code is huge and is enclosed in loops.any ways the sample is here

call function 'OPEN_FORM'

exporting

application = 'TX'

archive_index = ' '

archive_params = ' '

device = 'PRINTER'

dialog = ' '

form = space

language = sy-langu

options = zoption

importing

language = sy-langu

exceptions

others = 1.

zoption has :

zoption-tddest = usr01-spld.

zoption-tdimmed = 'X'.

zoption-tddelete = 'X'.

zoption-tdprogram = sy-cprog.

loop at itab.

call function 'START_FORM'

exporting

form = w_form

language = sy-langu

startpage = 'FIRST'.

another loop contains the call to main windows

loop.

endloop.

call function 'END_FORM'

importing

result = zitcpp

exceptions

unopened = 1

bad_pageformat_for_print = 2

others = 3.

endoop

call function 'CLOSE_FORM'

importing

result = zitcpp

exceptions

unopened = 1

bad_pageformat_for_print = 2

send_error = 3

others = 4.

zitcpp has :

zitcpp-tddest = usr01-spld.

zitcpp-tdimmed = 'X'.

zitcpp-tddelete = 'X'.

zitcpp-tdprogram = sy-cprog.

zitcpp-tdnewid = ' '.

Can you please help me with this?