on 04-08-2010 7:48 AM
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.
sdf
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
check all the text elememts and then check in debugging where it is getting stuck.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please check all teh text elements where it is getting stuck in debugging and then delete the text element and remake it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Hi
you triggered the preview with the same printer
taht you will use for the real print?
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.