cancel
Showing results for 
Search instead for 
Did you mean: 

NO OUTPUT COMES after Print Preview in Smartform

Former Member
0 Kudos

SAP Screen goes into Hang mode after " PRint Preview "............ONly thing is that there are 13 Materials in this smartform...

where as in smartforms with 4-5 it is gettin generated...........i debugged ..but not getting the exact issue coz all the 13 Material No.s are fetched ......i am selecting the Printer as LP01 by using the statement....wa_outopt-tddest = 'LP01'.

Pls advice me on the same.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

sdf

Former Member
0 Kudos

check all the text elememts and then check in debugging where it is getting stuck.

Former Member
0 Kudos

Please check all teh text elements where it is getting stuck in debugging and then delete the text element and remake it.

Former Member
0 Kudos

well, if your process/computer goes to hang mode after the preview, you probably have some bad coding in your driver program, AFTER the form call.

Besides did you try to print it without goinf to the print preview first?

Former Member
0 Kudos

yes..i printed wiht the same printer by which i am taking the Print Preview....still it goes in hang mode and results in TIME OUT>....

Former Member
0 Kudos

Actually...the programming was done like this...for fetching those material no.s dat is 13 in this case......

FORM %CO4.

DATA: T1_MBLNR LIKE MSEG-MBLNR,

T2_MBLNR LIKE MSEG-MBLNR,

T_GRUND LIKE MSEG-GRUND.

BREAK-POINT AT NEXT APPLICATION STATEMENT.

select matnr maktx

from makt

into table i_makt

for all ENTRIES IN i_mseg

where matnr = i_mseg-matnr.

SELECT SINGLE MBLNR FROM MSEG

INTO t1_mblnr

WHERE MBLNR = WA_MSEG-LFBNR

AND ( BWART = '103'

OR BWART = '122' ).

loop at i_mseg into wa_mseg WHERE BWART = '122'.

select SINGLE grtxt FROM t157e INTO g_grtxt

WHERE spras = 'EN'

AND bwart = '122'

AND grund = wa_mseg-grund.

wa_final-matnr = wa_mseg-matnr.

read table i_makt into wa_makt with key matnr = wa_mseg-matnr.

if sy-subrc = 0.

wa_final-maktx = wa_makt-maktx.

endif.

wa_final-meins = wa_mseg-meins.

wa_final-qty = wa_mseg-erfmg .

wa_final-grtxt = g_grtxt.

wa_final-doi = wa_mkpf-budat.

wa_final-po = wa_mseg-ebeln.

WA_FINAL-BWART = WA_MSEG-BWART.

WA_FINAL-sgtxt = WA_MSEG-sgtxt.

WA_FINAL-dmbtr = WA_MSEG-dmbtr.

WA_FINAL-waers = WA_MSEG-waers.

append wa_final to i_final.

endloop.

select single exnum from j_1iexchdr

into t_exnum1

where rdoc = wa_mseg-lfbnr.

ENDFORM.

former_member196079
Active Contributor
0 Kudos

Hi

you triggered the preview with the same printer

taht you will use for the real print?

regards

Former Member
0 Kudos

This message was moderated.

kesavadas_thekkillath
Active Contributor
0 Kudos

Please be precise with your reply and donot use short forms.