Problem smartforms Printing
Hi All
I am facing a problem in printing of Fields in smartforms. I am printing fields from work area like thisk
Line Fiels 1 Fiels 1 Fiels 1 Fiels 1 Fiels 1
1 50 3020 abc 44ad abc
60 4521 zyz aasf 4asa
2 90 5665 asdf adf asf
80 7887 afscr eref pop
Sometimes Some fields can be blank like this
Line Fiels 1 Fiels 1 Fiels 1 Fiels 1 Fiels 1
1 50 BLANK BLANK- ad abc
60 4521 zyz aasf 4asa
2 90 BLANK BLANK- adf asf
80 7887 afscr eref pop
Plz ..BLANK MEANS Blank NOT ANY VALAUE
So I want to skip the below fiels to above. So Please how to solve this. because I have fixed the fields like this
I have created a Table line and column and fixed the fields for printing . See following code
wa_itab-field1 and so on
wa_itab-field2 and son
So Plz guide how to do ?
Ram
Edited by: Ram Shanker on Jul 2, 2011 12:02 PM
Edited by: Ram Shanker on Jul 2, 2011 12:25 PM
Hi Ram,
From where you are picking the values. Why there is no values. Is it one line means one record.
Regards,
Madhu
Similar Messages
-
Smartform printing problem across network printers
Hi All!
I am facing problem with printing a smartform. When I give LOCL as printer name I am getting an exact printout but when I use any network printer name I am getting black portions printed over the areas where I have tables.
Can anyone advise me on this.
regards
PraneethModerator message -
When closing old threads, there is no need to add a comment. Adding a pasted answer like "Resolved myself " only brings old threads to the top of the forum list and pushes current ones down. If you do add a comment, please indicate just how the problem was resolved.
Note to potential responders to this post - I just rejected about 40 of your posts today. I didn't see that you had assigned a single point to any of the helpful answers or even a "thank you".
Rob -
Hello experts,
I am having problem in print preview when I am calling a SMARTFORM from a program where I have used selection screen. I don't know what I am doing wrong. Please help me out.
This is the code----
REPORT YL_CN_FI .
TABLES : BKPF, "Accounting Header Data
BSEG, "Accounting Item Data
SKAT, "GL Text
T001W,
ADDR,
YADDR,
BSEC.
DATA : AMT_IN_WRD LIKE SPELL,
AMT_LINE1 LIKE ADDR-LINE0,
AMT_LINE2 LIKE ADDR-LINE0,
GL1 LIKE BSEG-HKONT,
GL2 LIKE BSEG-HKONT,
GLDESC1 LIKE SKAT-TXT50,
GLDESC2 LIKE SKAT-TXT50,
AMT1 LIKE BSEG-WRBTR,
AMT2 LIKE BSEG-WRBTR,
ORD1 LIKE BSEG-AUFNR,
ORD2 LIKE BSEG-AUFNR,
CC1 LIKE BSEG-KOSTL,
CC2 LIKE BSEG-KOSTL,
W_IND,
CNT TYPE N,
TAXCNT TYPE N,
OFFICE LIKE YADDR-ADD6,
TADR_NUM LIKE T001W-ADRNR,
RADI .
--header text--
DATA BEGIN OF TLINES OCCURS 0.
INCLUDE STRUCTURE TLINE.
DATA END OF TLINES.
DATA : HDTEXT LIKE THEAD-TDNAME,
HLINE1 LIKE TLINE-TDLINE,
HLINE2 LIKE TLINE-TDLINE,
HLINE3 LIKE TLINE-TDLINE,
HLINE4 LIKE TLINE-TDLINE,
HLINE5 LIKE TLINE-TDLINE.
DATA : MTEXT LIKE THEAD-TDNAME,
MLINE1 LIKE TLINE-TDLINE,
MLINE2 LIKE TLINE-TDLINE,
MLINE3 LIKE TLINE-TDLINE,
MLINE4 LIKE TLINE-TDLINE,
MLINE5 LIKE TLINE-TDLINE.
DATA: POST_DT LIKE BKPF-BUDAT,
FM_NAME TYPE RS38L_FNAM,
LF_FORMNAME TYPE TDSFNAME.
---- pricing -
DATA BEGIN OF IT_BSEG OCCURS 0.
INCLUDE STRUCTURE BSEG.
DATA END OF IT_BSEG.
DATA BEGIN OF IT_YADDR OCCURS 0.
INCLUDE STRUCTURE YADDR.
DATA END OF IT_YADDR.
DATA BEGIN OF BR_YADDR OCCURS 0.
INCLUDE STRUCTURE YADDR.
DATA END OF BR_YADDR.
--end of internal table declaration--
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETERS OPT_CN RADIOBUTTON GROUP RADI .
PARAMETERS OPT_DN RADIOBUTTON GROUP RADI .
SELECT-OPTIONS DOCNO FOR BSEG-BELNR DEFAULT '0007100000'.
PARAMETERS YEAR LIKE BSEG-GJAHR DEFAULT '2006' .
PARAMETERS COMP LIKE BSEG-BUKRS DEFAULT 'FCL'.
SELECTION-SCREEN END OF BLOCK B1.
--main--
SELECT * FROM BSEG INTO TABLE IT_BSEG
WHERE BUKRS = COMP AND BELNR IN DOCNO
AND GJAHR = YEAR AND KOART = 'D'.
LOOP AT IT_BSEG.
CALL FUNCTION 'Y_ADDRESS' " Customer Address
EXPORTING
VC_FLAG = 'C'
PARTY_CODE = IT_BSEG-KUNNR
IMPORTING
IT_YADDR = IT_YADDR
EXCEPTIONS
OTHERS = 1.
IF IT_BSEG-KUNNR EQ '0000005001' .
SELECT SINGLE * FROM BSEC WHERE BUKRS = IT_BSEG-BUKRS
AND BELNR = IT_BSEG-BELNR AND GJAHR = IT_BSEG-GJAHR.
IF SY-SUBRC EQ 0.
IT_YADDR-ADD1 = BSEC-NAME1.
IT_YADDR-ADD2 = BSEC-NAME2.
IT_YADDR-ADD3 = BSEC-NAME3.
IT_YADDR-ADD4 = BSEC-NAME4.
IT_YADDR-ADD5 = BSEC-ORT01.
IT_YADDR-ADD6 = BSEC-PSTLZ.
ENDIF.
ENDIF.
---- Branch Address -
SELECT SINGLE * FROM T001W
where werks = 'PCAB'.
WHERE WERKS = IT_BSEG-GSBER .
TADR_NUM = T001W-ADRNR.
CALL FUNCTION 'Y_ADDRESS'
EXPORTING
VC_FLAG = 'P'
PARTY_CODE = TADR_NUM
IMPORTING
IT_YADDR = BR_YADDR
EXCEPTIONS
OTHERS = 1.
---- Branch Address -
SELECT BUDAT BLART INTO (BKPF-BUDAT, BKPF-BLART) FROM BKPF
WHERE BUKRS = IT_BSEG-BUKRS
AND BELNR = IT_BSEG-BELNR AND GJAHR = IT_BSEG-GJAHR.
ENDSELECT.
POST_DT = BKPF-BUDAT.
CASE BKPF-BLART.
WHEN 'C1' OR 'D1'. OFFICE = '****'.
WHEN 'C2' OR 'D2'. OFFICE = '*****'.
WHEN 'C3' OR 'D3'. OFFICE = '*******'.
ENDCASE.
PERFORM READ_HEADER_TEXT.
PERFORM GET_ITEM.
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
AMOUNT = IT_BSEG-WRBTR
CURRENCY = 'INR'
FILLER = ' '
LANGUAGE = SY-LANGU
IMPORTING
IN_WORDS = AMT_IN_WRD
EXCEPTIONS
NOT_FOUND = 1
TOO_LARGE = 2
OTHERS = 3.
CONCATENATE AMT_IN_WRD-WORD ' ONLY' INTO AMT_IN_WRD-WORD.
CALL FUNCTION 'RKD_WORD_WRAP'
EXPORTING
TEXTLINE = AMT_IN_WRD-WORD
DELIMITER = ' '
OUTPUTLEN = 70
IMPORTING
OUT_LINE1 = AMT_LINE1
OUT_LINE2 = AMT_LINE2
OUT_LINE3 =
TABLE
OUT_LINES =
EXCEPTIONS
OUTPUTLEN_TOO_LARGE = 1
OTHERS = 2.
IF OPT_CN = 'X'.
PERFORM ITEM_PRINT_CN.
ELSEIF OPT_DN = 'X'.
PERFORM ITEM_PRINT_DN.
ENDIF.
PERFORM INITALIZE.
ENDLOOP.
--end of main--
*& Form GET_ITEM
FORM GET_ITEM.
NETVAL = 0.
MATVAL = 0.
DISVAL = 0.
BEDVAL = 0.
FGTURS = 0.
TAXABLE = 0.
FGTVAL = 0.
ENTRYTAX = 0.
SALTAX = 0.
SURCHG = 0.
SALTOT = 0.
TAXCNT = 0.
CNT = 1.
SELECT HKONT WRBTR BSCHL AUFNR KOSTL
INTO (BSEG-HKONT, BSEG-WRBTR, BSEG-BSCHL, BSEG-AUFNR, BSEG-KOSTL)
FROM BSEG
WHERE BUKRS = IT_BSEG-BUKRS
AND GJAHR = IT_BSEG-GJAHR
AND BELNR = IT_BSEG-BELNR
AND KOART NE 'D'.
CASE BSEG-HKONT.
WHEN '0000600000' OR '0000601000' OR '0000603000' OR
'0000604000' OR '0000606000' OR '0000609000'.
MATVAL = BSEG-WRBTR.
WHEN '0000764100'.
IF BSEG-BSCHL = '50'.
DISVAL = BSEG-WRBTR.
ELSE.
PERFORM GLACC.
ENDIF.
WHEN '0000611000'.
FGTVAL = FGTVAL + BSEG-WRBTR. "Changed on 24.08.2007
WHEN '0000760003'.
FGTURS = BSEG-WRBTR.
WHEN '0000570001' OR '0000570002' OR '0000570003' OR
'0000570000' OR '0000570004' OR '0000570005' OR
'0000570006' OR '0000570007' OR '0000570008' OR
'0000570009' OR '0000570010' OR '0000570011' OR
'0000570012' OR '0000570013' OR '0000570014' OR
'0000570015' OR '0000570016' OR '0000570017' OR
'0000570018' OR '0000570019' OR '0000570020'.
TAXCNT = TAXCNT + 1.
CASE TAXCNT.
WHEN 1. SALTAX = BSEG-WRBTR.
WHEN 2. SURCHG = BSEG-WRBTR.
WHEN 3. SALTOT = BSEG-WRBTR.
ENDCASE.
WHEN '0000571001' OR '0000571002' OR '0000571003' OR
'0000571000' OR '0000571004' OR '0000571005' OR
'0000571006' OR '0000571007' OR '0000571008' OR
'0000571009' OR '0000571010' OR '0000571011' OR
'0000571012' OR '0000571013' OR '0000571014' OR
'0000571015' OR '0000571016' OR '0000571017' OR
'0000571018' OR '0000571019' OR '0000571020'.
TAXCNT = TAXCNT + 1.
CASE TAXCNT.
WHEN 1. SALTAX = BSEG-WRBTR.
WHEN 2. SURCHG = BSEG-WRBTR.
WHEN 3. SALTOT = BSEG-WRBTR.
ENDCASE.
WHEN '0000610000'.
BEDVAL = BSEG-WRBTR.
WHEN '0000491110'.
ENTRYTAX = BSEG-WRBTR.
WHEN '0000764500'.
IF BSEG-BSCHL = '50'.
NETVAL = NETVAL - BSEG-WRBTR.
ELSE.
NETVAL = NETVAL + BSEG-WRBTR.
ENDIF.
WHEN OTHERS.
PERFORM GLACC.
ENDCASE.
ENDSELECT.
IF ENTRYTAX EQ 0.
W_IND = '0'.
ELSE.
W_IND = '1'.
ENDIF.
TAXABLE = MATVAL - DISVAL + BEDVAL + ENTRYTAX + FGTURS.
NETVAL = NETVAL + IT_BSEG-WRBTR.
ENDFORM. " GET_ITEM
*& Form READ_HEADER_TEXT
FORM READ_HEADER_TEXT.
CLEAR : HLINE1 ,HLINE2 ,HLINE3, HLINE4, HLINE5 , HDTEXT .
CLEAR TLINES.
REFRESH TLINES.
CONCATENATE IT_BSEG-BELNR IT_BSEG-GJAHR INTO HDTEXT.
CONCATENATE IT_BSEG-BUKRS HDTEXT INTO HDTEXT SEPARATED BY SPACE.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = '0002'
LANGUAGE = SY-LANGU
NAME = HDTEXT
OBJECT = 'BELEG'
ARCHIVE_HANDLE = 0
IMPORTING
HEADER =
TABLES
LINES = TLINES
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.
LOOP AT TLINES.
CASE SY-TABIX.
WHEN 1. HLINE1 = TLINES-TDLINE.
WHEN 2. HLINE2 = TLINES-TDLINE.
WHEN 3. HLINE3 = TLINES-TDLINE.
WHEN 4. HLINE4 = TLINES-TDLINE.
WHEN 5. HLINE5 = TLINES-TDLINE.
ENDCASE.
ENDLOOP.
EXTRACT TOWARDS TEXT ELEMENT
MTEXT = '0061003423'.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = '0004'
LANGUAGE = SY-LANGU
NAME = MTEXT
OBJECT = 'VBBK'
ARCHIVE_HANDLE = 0
IMPORTING
HEADER =
TABLES
LINES = TLINES
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.
LOOP AT TLINES.
CASE SY-TABIX.
WHEN 1. MLINE1 = TLINES-TDLINE.
WHEN 2. MLINE2 = TLINES-TDLINE.
WHEN 3. MLINE3 = TLINES-TDLINE.
WHEN 4. MLINE4 = TLINES-TDLINE.
WHEN 5. MLINE5 = TLINES-TDLINE.
ENDCASE.
ENDLOOP.
ENDFORM. " READ_HEADER_TEXT
*& Form GET_GLDESC
text
--> p1 text
<-- p2 text
FORM GET_GLDESC USING P1 P2 .
P2 = ''.
SELECT TXT50 INTO (P2 ) FROM SKAT
WHERE SPRAS = SY-LANGU
AND KTOPL = 'FCOA' AND SAKNR = P1.
ENDSELECT.
ENDFORM. " GET_GLDESC
*& Form GLACC
text
--> p1 text
<-- p2 text
FORM GLACC.
IF CNT EQ 1.
GL1 = BSEG-HKONT.
AMT1 = BSEG-WRBTR.
ORD1 = BSEG-AUFNR.
CC1 = BSEG-KOSTL.
PERFORM GET_GLDESC CHANGING GL1 GLDESC1.
CNT = CNT + 1.
ELSE.
GL2 = BSEG-HKONT.
AMT2 = BSEG-WRBTR.
ORD2 = BSEG-AUFNR.
CC2 = BSEG-KOSTL.
PERFORM GET_GLDESC CHANGING GL2 GLDESC2.
ENDIF.
ENDFORM. " GLACC
*& Form INITALIZE
text
--> p1 text
<-- p2 text
FORM INITALIZE.
CLEAR : HLINE1 ,HLINE2 ,HLINE3, HLINE4, HLINE5 , HDTEXT .
IT_BSEG-KUNNR = ''.
MATVAL = 0.
DISVAL = 0.
FGTVAL = 0.
SALTAX = 0.
GL1 = ''. GL2 = ''.
GLDESC1 = ''. GLDESC2 = ''.
CC1 = ''. CC2 = ''.
ORD1 = ''. ORD2 = ''.
AMT1 = 0. AMT2 = 0.
ENDFORM. " INITALIZE
*& Form ITEM_PRINT
text
--> p1 text
<-- p2 text
FORM ITEM_PRINT_CN .
LF_FORMNAME = 'YL_CN_FI'.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING FORMNAME = LF_FORMNAME
variant = ' '
direct_call = ' '
IMPORTING FM_NAME = FM_NAME
EXCEPTIONS NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
error handling
ENDIF.
CALL FUNCTION FM_NAME
ENDFORM. " ITEM_PRINTI did that...actually It was not coming in that page because of the character limitation. The program is not executing. why??
CALL FUNCTION FM_NAME
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = ''
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
POST_DT = POST_DT
OFFICE = OFFICE
HLINE1 = HLINE1
HLINE2 = HLINE2
HLINE3 = HLINE3
HLINE4 = HLINE4
HLINE5 = HLINE5
MLINE1 = MLINE1
MLINE2 = MLINE2
W_IND = W_IND
MATVAL = MATVAL
NETVAL = NETVAL
DISVAL = DISVAL
BEDVAL = DISVAL
FGTURS = FGTURS
TAXABLE = TAXABLE
FGTVAL = FGTVAL
ENTRYTAX = ENTRYTAX
SALTAX = SALTAX
SURCHG = SURCHG
SALTOT = SALTOT
AMT_LINE1 = AMT_LINE1
AMT_LINE2 = AMT_LINE2
GL1 = GL1
GL2 = GL2
GLDESC1 = GLDESC1
GLDESC2 = GLDESC2
AMT1 = AMT1
AMT2 = AMT2
ORD1 = ORD1
ORD2 = ORD2
CC1 = CC1
CC2 = CC2
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
IT_YADDR = IT_YADDR
IT_BSEG = IT_BSEG
BR_YADDR = BR_YADDR
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
IF SY-SUBRC <> 0.
ENDIF. -
Smartform Printing : Error in spool C call: Error from TemSe
Hi! everybody,
I am stating my problem as follows : I have to print a bar-code sticker of size 10 X 7 cms. I have worked on bar-codes before this also. This time the output from a smartform is to be given to a ZEBRA TLP 2844 printer. I initially encountered problems in printing. The data does not fit on to the page.
After a lot of searching I found that ZEBRA was a partner of SAP and that a special device type needs to be created for output from a ZEBRA printer. I did this two times. Each time my steps were as described under.
To create the device type I did the following :
1. I finally found the driver from the ZEBRA website from http://www.zebra.com/id/products/global/en/utilities/sap_device_types.UtilityFile.File.tmp/Zebra_SAP_Device_Types.zip From this I uploaded the driver for 203 DPI zebra printer with IBM code 850 font file name "YZB200.PRI" into the transaction SA38.
2. Then I created a new device ZEB10 in SPAD after assigning my format to the device.
Thereafter, I tried to print my sticker. During this procedure, on selection of the new device type, the fonts automatically changed to ARIAL in the print preview. When I give the print command (Spool request : Print immed = X, Delete after output = X & New spool request = X) it gives an error message Error in spool C call: Error from TemSe.
Since the output had not been issued, I opened the spool request to view its TemSe characteristics. Here I found
Spool Attributes
Output Device ZEB10
Format ZTT Format
Doc. Category SMART
Recipient
Department
Deleted On 19.01.2011
Authorization
Output Attributes
No. of Copies 1
Priority 5
SAP Cover Page Do not print SAP cover page
OS Cover Sheet Print as set at printer
Requested 0
Processed 0 With Problem 0
With Error (Not Printed) 0
Storage Mode Print
TemSe Attributes
Object name SPOOL0000013836
Data type ????????????
Character set 0 -
> Character set of dev type = 1162
Number of parts 0
Record format
Size in bytes 0
Storage location
On seeing SP01
Spool no. Type Date Time Status Pages Title
13836 Smartforms(OTF) 11.01.2011 07:32 + 0 SMART LP01 USERID
I hope this data helps you help me. Please ask for more data if you wish. Also, I have searched vastly for this error on the net have already come across the link http://help.sap.com/saphelp_45b/helpdata/en/d9/4a8f9c51ea11d189570000e829fbbd/frameset.htm but to no use. On the SDN, I have not found a similar thread and that is why I decided to post this problem here, hoping to find a solution. Kindly help.
Regards,
ManasHi Manas,
I am facing the same issue for one of my clients.
Can you please share the solution with me if you have come out with it.
Regards,
Nirmal.K -
Problem in Printing of mutiple form on single click
Hi all
I m wrking on AFS and i had created a page for printing multiple invoice print on single click.
A range of invoice is given as input and get out in the form of print preivew or print wat v choose .
I mean a print pop is open for multiple invoice in a single click.
Problem in printing of multiple form is speed .its going to be slow when click for printing .OR
v can say that creation of multiple page in printing gets more time .Is ther any way to solve this .
Plz suggest me some solution for that .
Regards,
RaviHi
Check if Note 353518 - Selection of outputs takes much time and Note 910976 - Selection of output from billing (VF31) are relevants.
Other suggestion. Do a trace with ST05 and check if you have any bottleneck in the coding that you can have in your Smartform or in your SAPscript, so check in tcode V/40 what form you are using . Also see Note 185530 - Performance: Customer developments in SD.
I hope this helps you
Regards
Eduardo -
I had a problem with print preview of billing document.
HI all,
I had a problem with print preview of billing document which contains two output types ZR1 ZR2..
For the footer text of billing document I maintained the font size as 7,5 pts, But when i go for print preview from output type ZR1 the font size of footer text is very small and looks good for output type ZR2.
If i change the print options-->logical destination of output type ZR1 same as Output type ZR2, the footer text looks good.
I think there is some issue with logical destination in print options for the output type ZR1, how can i resolve it.hi,
for both the output types , r u using same sapscript or smartform?
if yes then, u can control it in output options of smartform and also in sapscript , you can control through if condition.
and if differect sapscript or smartform then you should not get such problem.
you can check the sapscript or smartfrom in TNAPR table. -
Hi Experts,
I have small problem in printing smartforms,my print preview is ok but while taking print it is it is getting cut at right side and bottom of the page.Page size is same(A4) as I have specified in my smart form(DINA4).What might be the problem?
In printer settings also same page format is selected(A4).
What might be the problem?
here are the pics,see the difference in preview and actual print.
Actual Print :
http://i35.tinypic.com/wvzx2t.jpg
Print Preview :
http://i35.tinypic.com/awx9up.jpg
Every helpful answer will be rewarded.
Thanks & Regards,
Rock.
(Request for Moderators : Please don't lock this thread,I know this is wrong section I had already posted this in the correct section,i.e 'Form Printing' but could not get the answer)Hi
I hope you should adjust the window according to the print.please convert the form into PDF format and see the print preview.
I had seen the print preview there is very small gap at the right side corner of the page increase the gap.
while printing A4 printer will take some default spaces in all the corners may be you are not maintaing that space or see the printer if paper is inserted in proper manner.
Better you correct the layout according to the print.
Thanks
Rasheed
Edited by: Rasheed salman on Nov 21, 2008 7:32 AM -
Smartform printing on Dot Matrix printer for continuous stationery
Hi Friends,
I'm throwing my smartform print output on printer using local printer .Now the problem is as i have designed the SF using A4 page size , the output on Dot matrix is my output (WHICH IS 1/3rd OF a PAGE) + rest of empty space which is actually wasting pages.
Settings in SPAD are as follows:
Output device : Lp01
Device type : SWIN
and page format : LINE_21
Format Type : LINE_21
What i want is a restricted output .please let me know the possible solutions and do i need to load the driver for my printer in SAP as well (Printer is : wipro WEP 800 DX)
Thanks and Regards,
Sachin SoniHi,
Change the page settings in the form
-> under the form attributes you can find the page format there you can set up your required format
Thanks,
Nethaji. -
SmartForms Printing Error for Japanese Characters
Hi,
I have an issue with Printing Japanese Characters in the SmartForm.
When I Print Preview the smartform I can see the characters in Japanese but when I Print the actual smartform in the printer, all I get is some junk characters like # and !.
I have the following setting in the smartform.
Multi-Byte functionality enabled
Character set used is Shift JIS
Smartform created in language EN
Translate to All Languages set to true
No restriction on Language Control
Smartstyles used has JPMINCHO fonts only
Default Para is JPMINCHO
Characters formatting has explicit JPMINCHO as font
Login language is JA
Printer is Local Printer with device type JPSAPWIN
When I debug the Smartform function module, the OTF Data Table (within the function) shows characters in Japanese (with codepage 8000) but then I look at the actual spool as a result of processing the function, it comes up as garbled.
Interestingly, I have exactly the same settings on another test smartform to print just 2 columns and it works well.
Not sure where I am going wrong.
Appreciate help on this issue.
Many Thanks
Krishnanhi,
has anyone solved this problem? even i m facing the problem. me restating the problem as below:
in VF02 transaction, for billing document we are trying to print smartform. Our logon languagae is EN and the Output Type langugae is EN. In spool, we are getting the CORRECT format ie the texts that are maintained in Japanese are showing as Japanese characters while the whole smartform is in English format.
Our requirement is to PRINT (from printer) the texts that are maintained in Japanese should get printed in Japanese format. I know that this is problem with printer settings. The printer is printing perfectly fine as other documents in Japanese characters so its ensured that printer is enabled for Japanese.
I suppose some kind of setting needs to be done at SAP end so that printer recognises double-byte character set of Japanese.
Waiting for confirmation/ solution.
Thanks
Debs -
SAPScript / Smartform printing with all #
Hi,
I am facing a strange problem while printing Script and Smart forms.
We are using QM02 transaction to print the deviation form and MRDR form.
Deviation form is a script and MRDR is a smartform.
The problem is, when i executed the QM02 and print any one of the form It was printing fine.
After that if i select the second one to print it was printing all # s.
I tried debugging the script i am getting the message 'Character is not defined in the current font Helve 100'.
Can any one explain, why this is happening?
Thanks,
Omkaram.some of charcter formats are missing , can you check what are missing, and if some cases the values are not coming to display its dispaly the # insted of the data. if you have any space in the database table level that time also display the #.
when you print the scond time there is no values , close the session and start agagin it will display the data. -
Hi Experts
we have configured a output type for VF02 billing and assigned a smartform also. I defined the next page also in the smartform.
Its working for first page only, not working for more pages, not even display the first page also, what could be the reason, pls suggest me, its very urgent.
Thanks in advance.
Regards
RajaramHi,
initially check in preview if it is showing then there is some problem with printer ask the concerned person if u r not even getting it in preview also then call start form function module and assign each page numer there if two pages call 2 times start and end form.
try this this might work.
Regards,
sana. -
Smartform - Printing differently on different printers
Hi Guru's,
I've a problem in printing the smartform to 2 different printers.
1. LOCL - we don't have any problems in printing to the Local Printer.
2.HP Printer (HIITPRT21) - when we print the document using this printer , Header is printing in one page and the Remaining contents (Main Window) is printing in different pages.
I don't think there is a problem with the smartform, because it should print the same way on LOCL as HP Printer Does.
Could you please let me know where the problem is and how to resolve it???
http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=190743231
The above blog is talking about the problems, it is mentioning about the problems with the print controls..how to know which one is causing the problems??
Thanks,
Adi.Moderator message -
When closing old threads, there is no need to add a comment. Adding a pasted answer like "Resolved myself " only brings old threads to the top of the forum list and pushes current ones down. If you do add a comment, please indicate just how the problem was resolved.
Note to potential responders to this post - I just rejected about 40 of your posts today. I didn't see that you had assigned a single point to any of the helpful answers or even a "thank you".
Rob -
Problem with Print button in service confirmation
Hi Experts,
I am facing a problem in service confirmation in pcui.When the system status is completed i am unable to select the print option, as the print button is disabled.
I have assigned action for smartform print in confirmation.I am able to view the print button before changing the status to complete.
The same is working fine in UI.
Can anyone suggest some solution to the problem?
Regards,
PePeHi Ravindar,
This programe BCALV_TEST_GRID_PRINT has used the normal class cl_gui_alv_grid where as I have used CL_GUI_ALV_TREE class.
Regards,
Deepthi. -
Problems by printing in background
Hi experts,
we have a problem by printing a smartform. The problem is in authority check of an object. When we run only the print preview, everything is working fine. But when we run the direct print it looks like, that the authority check is skiped. The direct print is running in background in update task.
Do you know where is the problem?
Thanks,
Pavol.The problem may be with the location of the code for authority check written.
Write it just before calling the FORM.
Or try to debug to know the reason of skipping the code.
Regds,
Anil -
Problem in Print preview of smart forms in different servers.
Print preview is different in different systems(development and Quality) for the same smartform, though everything is same.
both are seen on print preview of locl printer, and I have checked the settings of locl in spad also and this also has no difference, there is absolutely no difference in smartform ,style paragraph format or character format.
Can anyone please let me know what could be the problem.
Help is appreciated.Hi,
check this link it might solve ur problem.
Re: Smartforms Print Preview Problem
it might be the same issue which u r facing with..
Regards,
Sana.
reward poitns if found helpful..
Maybe you are looking for
-
Replacing .pkg files to fix "Error: No valid packages"
Hi all - I've just learned the hard way that I'm not supposed to delete files from the Receipts folder. I've done my due diligence, so I know that I need to replace at least "BaseSystem.pkg", but I have questions; Is it ok, if I'm running 10.4.9, to
-
I bought a JayBird BlueBuds X Premium Bluetooth Headphones in Apple's website. Be careful not to return. Money what time can back to me and I want to continue to buy.
-
How do I do still digital photos on Adobe premier elements 10?
How do I edit and organize still photos on adobe premier elements 10?
-
Problem in cheque printing when using the f-58
my requirement is to print the cheque to my requirement in that i want to print date , vendor name ,ammount and ammount in words in a cheque which will be put into the printer so i have modified the standard layout F110_PRENUM_CHCK in Z_F110_PRENUM_C
-
Message startup disk full (can't find the files)
Newb here so please bear with me on this. I am using Handbrake to rip DVD's to put in iTunes. I transfer them to the external that iTunes is on fine, but I can't find the originals to delete them. The default save to location was a folder called "vou