'&' symbol is not printing in smartform output.
Hi,
I am facing problem while printing '&' symbol using READ_TEXT FM in smartforms .
I have maintained header text in PO header in that text am using special characters like
"&" , <5 and >5 . While displaying this data in out put it is giving junk characters like
>(>&<)< and >(>5<)<.
i have changed editor also but no use .
Regards,
Rakhi
Moderator Message: Cross-posting is not allowed in the forums
Edited by: Suhas Saha on Jul 5, 2011 3:59 PM
Hi,
try Note 447596.
Jshree
Similar Messages
-
'AND' symbol is not printing in smartform output.
Hi all,
I am facing problem while printing '&' symbol using READ_TEXT FM in smartforms . I have maintained header text in PO header in that text am using special characters like "&" , <5 and >5 . While displaying this data in out put it is giving junk characters like .
i have changed editor also but no use .
Regards,
RakhiHi,
try Note 447596.
Jshree -
Text from text module is not appearing in smartform output
Hi Experts,
We are using text modules in one of our smartform to print the sender text . The name of this text module is being dynamically determined during the execution and is coming correctly but still the the text inside the text module is not appearing in the output. We checked one more similar form which is working on the similar logic but calling a different text module , there it is working perfectly. I have tried all the possibilties like changing the window size, changing the fonts and other parameters of the text module but still its not appearing . This seems to be something unusual as in both the smartforms(one with text appearing from module and one without the text) the logic is exactly similar for getting the text module name. The name is getting determined in both the cases correctly and the text modules are also maintained in same manner for both these forms but text is appearing on one and not on other.
Kindly help if any one of you have also faced similar issue.
RegardsHi Priyank,
There could be various reasons....
Wrong language for example
An easy way to prove this is, put the text direct into the smartforms and see, if it pops up immediately.
If so, you have to really debug this spot and see if the pased name is correct. (Copy paste it in the debugger, to be really sure, there could be a space in fornt or in the end...)
If that doesn't help, you have to share more details. Your question is not that very specific. You know
~Florian -
Purchase Order Changes not printing in Smartform
Hi friends,
first time whenever i create PO smartform printing after if i change quantity and save smartform is not prinitng with the lastest changes?
please help methanks for your reply
first time when i create PO smartform is printted and also i ma bale to see in messages tab with green color entry..
after PO changing in ME22n there is no scond entry in messages tab and not printted.
i have maintained condition record, and i am able to create printout when i create a new PO.
but chnages its not happening please help. -
Page data not printed in smartform...
I have a smartform in which I want to print some data in the last page. So after the NEXT Page, I inserted the following nodes
1. Page node - LAST. Its next page is also set as LAST. The next page of NEXT page is also set as LAST.
2. Page window. window type - main window.
3. Program lines node. Here I fetch data from some tables a create an internal table with 2 columns of data. I am not able to debug this code during runtime and so I cannot confirm
if data is being fetched here !!! How to do that ??
4. Loop node - Here I loop thr the internal table populated in the program lines and store in a structure , say ST_TEMP.
5. Under loop node I have the TEXT node where I display the data as:
&ST_TEMP-COL1& &ST_TEMP-COL2&
Now the issue is data is not printed on this page. What could be wrong ? I tried inserting a hard break point in the program lines but control did not stop there.
Is there any way I can figure out what can be wrong ?
thnks>
> Looks like the last page is not called !!! I can see data only on one page and it shows page 1 of 1.
>
> "make sure ST_TEMP is filled with data" how do I do this ?? My program line node has the data filled in the internal table it_temp and the loop node has the data transferred to st_temp for every row. How can I debug the program lines code ??
> > Have a break <username> in the program lines. and check it_temp has data in it.
> "use a command and call the last page at end of the loop on internal table"...how to do this ?
> > like program lines there is a "command line" do a little search on SDN for more info on how to use command lines for next page.
> -
Tax is not coming in print preview (smartform output) of PO
Hello Experts,
I am faicng problem that Tax amount is coming in print preveiw only when i click on Taxes button in invoice tab.
If i dont click on Taxes button it is not coming even though it is present in the PO.
Please help me out in this issue.
I have debugged the code. Tax values are coming from std program SAPLMEPO.But i am not able to find the include in that program which is fetching this value( Values of KOMV structure).
Does anyone have idea which include is working behind this?Hi,
This might be because of the CODE ISSUE either in the PROGRAM OR SMARTFORM .
Please cehck the code , if you dont have access check with the ABAPer to debgg and identify the issue.
regards,
santosh -
Japanese Kanji is not printing in SMARTFORM eventhough it is showing in PP
Hi All,
I have a very peculier problem with smart form. When we are trying to print Quotation and Sales Order seperately in the SAME printer Kanji data(Material description VBAP-ARKTX) is not getting printed for Sales Order but it is printing for Quotation. This Sales Order is created with respect the same Quotation. So SO hase same materials and same descriptions. When we check print preview in both the Forms we could able to see kanji data. But when we are trying to print or even trying to download using program RSTXPDFT4 kanji description is not coming in SO but it is coming in Quotation.
only the difference we found between these smart forms is SMARTSTYLES.
For Quotation used a style with TIMES type and
For SO used a style with HELVE.
I tried to change SO style to TIMES still it didnt work..
I read in SDN reply that for style with HELVE we need to maintain font "JPMINCHO" in form.
Can anybody explain where and how to maintain this font in the form.
Thanks in advance.
PurushothamHi,
If you use a non unicode device type like JPSAPWIN, you need to maintain font like JPMINCHO in the smartstyle for the paragraph and character formats that are used for the Japanese texts in the smartform. You should also use a smartform with language key JA.
If you have a Unicode system and you create the spool via unicode device type SWINCF, then the font or the form language is not important. So can you try again creating the spool via device type SWINCF and check the result?
Regards,
Aidan -
Customer PO number to be printed in smartform output
Hi,
My requirement is to print customer PO number on the o/p of a smartform based on the delivery number.
The delivery number is already being printed in the o/p.When I checked in debugging mode,this delivery number is being looped twice.The set of values which are coming in the second loop are being printed in the o/p.These set of values are coming in ls_stages-vbeln field(ls_stages is a work area).
Now to get customer PO number,I need to loop ls_stages-vbeln field.How can I do that?
Regards,
HemaHi,
Your document output depends on Output program attached to your output condition type.
So if the field Customer Material Number/ Part Number ( VBAP - KDMAT) is to be printed for the document output.
Ask your abap consultant to add this field in the output program and form
Field name
VBAP - KDMAT
regards,
Ashish -
Barcode not printing in pdf output
Hi,
Iam working on report which has to display barcode.
When i run the report iam getting barcode displayed in RTF output but its not displaying in PDF format ouput.
Can you please suggest?
Thanks,
Nishiplz see http://www.oracle.com/technetwork/middleware/bi-publisher/learnmore/demo-library-toc-173301.html
- External Fonts
- Font Mappings (for PDF output) -
Job pages not printing in Smartforms
Hi Guys ,
Actually Im trying to print Job pages in smartforms ..it is showing job pages below 9 that is single digit ..
But if the Job pages is double digit i.e., from 10 ..it is printing '*' ...
Can u please llet me know the solution .
Thanks & regards ,
Sandeep Thota .Hi,
Try using &SFSY-FORMPAGES(3CZ)&
Check this link
Issue in displaying the total number of pages in smartform.
Regards -
Text element is not getting printed in the output
Hi all,
I'm trying to print address from table KNA1in address window through a text element.
The corresponding code being :
In Delivery Prg,
Data : lv_kna1 type STANDARD TABLE OF kna1,
lv_adr6 type STANDARD TABLE OF adr6.
DATA : WA_ADR6 TYPE ADR6.
SELECT SINGLE * FROM KNA1 WHERE KUNNR = VBPA-KUNNR.
SELECT SINGLE * FROM ADR6 INTO WA_ADR6 where ADDRNUMBER = kna1-adrnr.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'DELIVERY_ADDRESS'
WINDOW = 'DELIVADR'
and calling the same text element 'DELIVERY_ADDRESS' as follows in the Script:
/E DELIVERY_ADDRESS
/: IF &LV_KNA1-TELF1& <> &SPACE&
IL Tel.: &LV_KNA1-TELF1&
/: ENDIF
/: IF &LV_KNA1-TELFX& <> &SPACE&
IL Fax : &LV_KNA1-TELFX&
/: ENDIF
/: IF &LV_ADR6-SMTP_ADDR& <> &SPACE&
IL E-mail : &LV_ADR6-SMTP_ADDR&
/: ENDIF
But,this text element is not printing in the output.
Any pointer on this would be of great help.
Regards,
Vamsee Priya.yes, it is.
I'm trying to get the e-mail address from adr6 table with the corresponding address number from table kna1.
so I created two tables as below:
Data : lv_kna1 type STANDARD TABLE OF kna1,
lv_adr6 type STANDARD TABLE OF adr6.
DATA : WA_ADR6 TYPE ADR6.
SELECT SINGLE * FROM KNA1 WHERE KUNNR = VBPA-KUNNR.
SELECT SINGLE * FROM ADR6 INTO WA_ADR6 where ADDRNUMBER = kna1-adrnr.
now, I'm trying to fill e-mail adress from lv_adr6. but the problem is lv_adr6 is not getting filled.
data is coming to work area wa_adr6.
SAP is not allowing me to write the below statement:
SELECT SINGLE * FROM ADR6 INTO LV_ADR6 where ADDRNUMBER = kna1-adrnr.
Now, will any move-corresponding statement from work area to its table works?? Is that logically correct?? -
Convert spool (which is for smartform output) to PDF?
how to Convert spool which is for smartform output to PDF?
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF' is not working for smartform output,
if i use this there will be error spool not contain list output?
than whats the function module or way to convert spool contain smartform output to pdg?
regards,hi,
use this instead
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZNAK_SMARTFORM_CORRESPONDENCE'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
fm_name = func_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
printer-getotf = 'X'.
printer-no_dialog = 'X'.
CALL FUNCTION func_name
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
control_parameters = printer
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
validity = ls_smart-validity
lifnr = ls_smart-lifnr
name1 = ls_smart-name1
pstlz = ls_smart-pstlz
regio = ls_smart-regio
stras = ls_smart-stras
smtp_addr = ls_smart-smtp_addr
IMPORTING
DOCUMENT_OUTPUT_INFO =
job_output_info = printer1
JOB_OUTPUT_OPTIONS =
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
t_otf[] = printer1-otfdata.
DATA gt_tline like TABLE OF tline occurs 0 with header line.
CALL FUNCTION 'CONVERT_OTF_2_PDF'
EXPORTING
USE_OTF_MC_CMD = 'X'
ARCHIVE_INDEX =
IMPORTING
bin_filesize = w_file
TABLES
otf = t_otf
doctab_archive = gt_docs
lines = gt_tline
EXCEPTIONS
ERR_CONV_NOT_POSSIBLE = 1
ERR_OTF_MC_NOENDMARKER = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
How to Convert spool which is for smartform output to PDF?
how to Convert spool which is for smartform output to PDF?
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF' is not working for smartform output,
if i use this there will be error spool not contain list output?
than whats the function module or way to convert spool contain smartform output to pdg?
regards,<b>Procedure</b>
When we activate the Smartform the system generates a Function Module. The function module name we can get from Smartfrom screen from menubar
Environment => Function Module_Name . In a report we can get this Function module name by calling a Function Module standard SSF_FUNCTION_MODULE_NAME. This function module at runtime calls the FM generated by smartform, which in turn is then used to pass data from the report to Smartform. In the report given below the FM generated is /1BCDWB/SF00000152 . In this FM we can see CONTROL_PARAMETERS in import tab. This is of type SSFCTRLOP. We need to set the GETOTF of this to be X. Setting this field will activate the OTF field in smartform.
In export tab of the FM generated by smartform we can see a parameter JOB_OUTPUT_INFO which is of type SSFCRESCL. The SSFCRESCL is a structure of having one of fields as OTFDATA. OTFDATA in turn is a table of type ITCOO. ITCOO has two fields TDPRINTCOM and TDPRINTPAR. TDPRINTCOM represents command line of OTF format data and TDPRINTPAR contains command parameters of OTF format data.
In every Smartform output in OTF format, TDPRINTCOM begins and ends with //. EP represents the end-of-page value for TDPRINTCOM field.
In addition we need to set few fields at the place where we call this FM(generated by smartform) in our program. While calling this FM we should set control_parameters, output_options, user_settings and job_putput_info fields as shown in program.
Once these settings are done we can call Function Module CONVERT_OTF to convert the OTF data of smartfrom output to PDF data format. Once these are done we can call method cl_gui_fronted_services=>file_save_dialog to specify the directory path where we want to save the output PDF file. After this we can call Function Module GUI_DOWNLOAD to download the PDF file on our local system.
<b>Here is a sample code of program to perform the function.</b>
SAMPLE CODE
[code]*&---------------------------------------------------------------------*
*& Report ZAMIT_SMART_FORM_PDF *
REPORT ZAMIT_SMART_FORM_PDF .
data: carr_id type sbook-carrid,
cparam type ssfctrlop,
outop type ssfcompop,
fm_name type rs38l_fnam.
DATA: tab_otf_data TYPE ssfcrescl,
pdf_tab LIKE tline OCCURS 0 WITH HEADER LINE,
tab_otf_final TYPE itcoo OCCURS 0 WITH HEADER LINE,
file_size TYPE i,
bin_filesize TYPE i,
FILE_NAME type string,
File_path type string,
FULL_PATH type string.
parameter: p_custid type scustom-id default 1.
select-options: s_carrid for carr_id default 'LH' to 'LH'.
parameter: p_form type tdsfname default 'ZAMIT_SMART_FORM'.
data: customer type scustom,
bookings type ty_bookings,
connections type ty_connections.
start-of-selection.
***************** suppressing the dialog box for print preview****************************
outop-tddest = 'LP01'.
cparam-no_dialog = 'X'.
cparam-preview = SPACE.
cparam-getotf = 'X'.
select single * from scustom into customer where id = p_custid.
check sy-subrc = 0.
select * from sbook into table bookings
where customid = p_custid
and carrid in s_carrid
order by primary key.
select * from spfli into table connections
for all entries in bookings
where carrid = bookings-carrid
and connid = bookings-connid
order by primary key.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting formname = p_form
* variant = ' '
* direct_call = ' '
importing fm_name = fm_name
exceptions no_form = 1
no_function_module = 2
others = 3.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
exit.
endif.
* calling the generated function module
call function fm_name
exporting
* archive_index =
* archive_parameters =
control_parameters = cparam
* mail_appl_obj =
* mail_recipient =
* mail_sender =
output_options = outop
user_settings = SPACE
bookings = bookings
customer = customer
connections = connections
importing
* document_output_info =
job_output_info = tab_otf_data
* job_output_options =
exceptions formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
others = 5.
if sy-subrc <> 0.
* error handling
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
tab_otf_final[] = tab_otf_data-otfdata[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
* ARCHIVE_INDEX = ' '
* COPYNUMBER = 0
* ASCII_BIDI_VIS2LOG = ' '
IMPORTING
bin_filesize = bin_filesize
* BIN_FILE =
TABLES
otf = tab_otf_final
lines = pdf_tab
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL METHOD cl_gui_frontend_services=>file_save_dialog
* EXPORTING
* WINDOW_TITLE =
* DEFAULT_EXTENSION =
* DEFAULT_FILE_NAME =
* FILE_FILTER =
* INITIAL_DIRECTORY =
* WITH_ENCODING =
* PROMPT_ON_OVERWRITE = 'X'
CHANGING
filename = FILE_NAME
path = FILE_PATH
fullpath = FULL_PATH
* USER_ACTION =
* FILE_ENCODING =
* EXCEPTIONS
* CNTL_ERROR = 1
* ERROR_NO_GUI = 2
* NOT_SUPPORTED_BY_GUI = 3
* others = 4
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*************downloading the converted PDF data to your local PC********
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = bin_filesize
filename = FULL_PATH
filetype = 'BIN'
* APPEND = ' '
* WRITE_FIELD_SEPARATOR = ' '
* HEADER = '00'
* TRUNC_TRAILING_BLANKS = ' '
* WRITE_LF = 'X'
* COL_SELECT = ' '
* COL_SELECT_MASK = ' '
* DAT_MODE = ' '
* CONFIRM_OVERWRITE = ' '
* NO_AUTH_CHECK = ' '
* CODEPAGE = ' '
* IGNORE_CERR = ABAP_TRUE
* REPLACEMENT = '#'
* WRITE_BOM = ' '
* TRUNC_TRAILING_BLANKS_EOL = 'X'
IMPORTING
filelength = file_size
TABLES
data_tab = pdf_tab
* FIELDNAMES =
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22
IF sy-subrc <> 0.
ENDIF.
[/code]
Thanks and Regards,
Pavankumar -
Output Tray 2 does not work when we print a smartforms document immediately
Dear printer specialists,
we've the following issue:
We are printing the same smartforms document in different plants. One plant decided to get the print output into output tray 2 of the printer (lower tray), so we've copied the standard device type into a z-device type and made the SPAD set-up with a preselection for the tray 2 (lower tray). The new device type has been assigned to the output device. Now we made a test and released the print-output for an immediate printing. The output was printed as before in tray 1 (upper tray). When we restart the output from the spool (SP01), the output will be printed in tray 2. Why does this not work, when we print immediately ? Does anyone know how to solve this problem ? (We don't want to change the smartforms document.)
Thany you for every information to solve this problem.
Kind regards, WolfgangHI,
Check if there is a different tra setting in the smartform itself.
/nsmartforms -> <Form> -> Pages and Windows -> FIRST, NEXT, TERMCOND -> field Resource Name
Regards,
Aidan -
Smartform output ( printout ) is not the same as the preview
Dear Freinds,
I have developed smartform , iam able to get data
very much clear font and the design . However when i running the smart form through repot to give print using the Output Device Locl or LP01. I can see the output is not coming in the printout which is there in Print Preview.
The Print Preview as below :
Print preview the below is the data:
ID : _____________QTY :____________
Address :_________Pincode :____________
Final printout in the paper (when using the output device
Locl or LP01) the data is coming as below
Name : _______ QTY :____________
Address : ___________ Pincode :____________
we can the see the above printing is not correct , as the lines are coming short when
compared to print preview and it is looking as broken lines....
I have used underline for printing the lines using the Paragraph Format from Smart Styles.
Please could you tell me what changes i have to do so that the line should stretch and touch the Qty
, in the printpreview data is coming correctly i can see the line touches till the Qty.
. Please suggest me what i have missed in the smartforms..
thanks & regards
madhuri
Edited by: madhuri_2000 kumari on Oct 29, 2008 8:50 AMDear Neeraj,
The actual problem is the when i have in the ouput as below :
Name : &wafinal-Name&__________ Designation : &wafinal-Job&________
so iam getting data for Name : Madhuri______ Designation: Supervisor -
> this data
is coming for me correctly when i see in the Print preview.
As in the page the two fields Name and Designation are in the same line i want the underline which is the under Madhuri should extend till the text Designation , but i found in the print preview it is coming
correctly , however in the printout it is coming ast Name : Madhuri______ Desgination: Supervisor______.
i can see there is a gap coming between end of the underline of the Name and the Designation.
Actually my requirement is i wan to have
Name : _____________________________Designation:_________________________________
in first row. But in the printoverview iam ble to see exactly the same above however when i take printout i can the output as
Name : ______________________ Designation:____________________________
I have done in the smartform as per below :
I have used the Table > in the table i have used the Main Area> in the Main area i have created in Row1 and created a cell> Splited the Cell in two > so Row1 is having two cells> in the first cell i have created one text and given in the text area as Name : &Wa_final-Name&____ and in the second cell i have created another text and given in the text area as Designation : &wa_final-Job&________.
So i am not able to extend the underline of the Name : &Wa_final-Name&____ till Designation: &wa_final-Job&________, however iam able to see in the printout and only not getting truncated inthe
printout.
please could let me know how and where i went wrong in getting extended till Designation.
Regards
Madhuri.
Maybe you are looking for
-
Global temp tables difference in oracle 10g and 11g
Hi All, we are planning to upgrade metasolv applications from 6.0.15 (currently suing 10g) to 6.2.1(currently using 11g).We are using the Global temp tables in 10g .i just want to know is there any impact if we upgrade the Global temp tables from 10g
-
New feature phones anytime soon?
Are there going to be any new feature phones anytime soon? I haven't seen any that I like, and am just wondering if there will be any new ones in the near future. Most of the ones sold now are absolutely worthless and the rest (theres only 1 or 2 of
-
Error ArrayIndexOutOfBoundsException while performing VO substitution.
Hi, We are getting ArrayIndexOutOfBoundsException while performing substitution against one standard oracle VO (oracle.apps.csf.portal.task.server.MaterialInstallEOVO). Following are the steps which we have performed: 1. Created a new XXVO by Extendi
-
hi, i am trying to validate an xml document against a schema document abnd am getting some strange validation errors. i am using xerces to parse. here are my java classes:- //---------------------------------------- class Validation------------------
-
Why Can't Safari do what Internet Explorer does in Windows
Why can't Safari developers fix Safari and the mac os to run Sirius Satellite stream the way in which Internet Explorer runs it. I had to download Firefox and run Sirius from it because Safari and Snow Leopard won't run Sirius. If Apple wants to be t