UPS Maxicode in Adobe Forms - non-zebra printer
Hey guys,
I have a problem regarding printing an UPS Maxicode on a regular printer (HP Laserjet P3015) in Adobe Forms: It just won't print.
I'm using the "UPS Maxicode" object in the "barcode" library (LCD ES3, Version 10.4). After some research, I found this guide:
UPS maxicode on SAP Adobe forms - Contributor Corner - SCN Wiki
The scripting described there works great for printing the UPS Maxicode on a zebra printer - but the non-zebra printer scripting doesn't work for me.
There isn't much to find about this on google, so I hope you guys can help me. I experimented with printers, device types (i.e. PDF1) and such, but the result remains the same. What else can I try? Am I missing something?
Thanks for your time / help,
Chris
You can find some information about it in this document:
[http://www.tec-it.com/download/PDF/TBarCode6_SAPwin_Manual_EN.pdf]
See chapter 12, see also chapters: 6, 7, 8 and 11.
good luck
Similar Messages
-
Adobe Form - non-Interactive Pdf Print - Access to table cell
Hi experts
I am new to Adobe Print Form (non-interactive flowed form) and I am desparately need your help.
I am merging table data from a context into a table on a form layout and then use function call to generate a print form and send it out as an email. Sofar, everything works fine - except one of the requirement that if , on any row, a cell value in column 1 > 5 (i.e. example), set the font color to red.
I tried all sort of ways (in JavaScript) - but cannot get hold of the cell to check the value. Please show me
1) how to get to the cell in Javascript
2) in What event that I must place the Javascript in
At the moment, I have the form layout as followed:
Data
| Report
| | Table1
| | | Header
| | | | ...........H_Fd1
| | | | ...........H_Fd2
| | | Row
| | | | ...........R_Fd1
| | | | ...........R_Fd2
etc...
There are no reference to "table" object in Adobe lc designer - If you have please also send me some
Thanks
Points will be rewarded for any reply.Hi
JS to fetch a the value of a field in a table is
xfa.resolveNode("form_name.subform_name.table_name.Row1["Row Index"].column_name[0]").rawValue;
You can write the code in the exit or validate event of the second column
Thanks
Gopal -
Digital Signatures in Adobe Forms (Non-Interactive)
Hi everyone,
I need to sign a receipt that will be sent by e-mail. The form is non-interactive, it´s only a simple receipt. This form may be printed or sent by e-mail; in case of being sent it must be signed before sending it. The receiver should be able to open it using Adobe Reader.
I´ve read other posts/help about singatures in Adobe Forms, but none of them of non-interactive forms; I need to know if it is possible to do this if the form is not interactive, and how it can be done.
Thanks!
PabloHi Jinal,
Here it goes:
report fp_pdf_test_07.
* set signature
class cl_fp definition load.
selection-screen begin of block s_files with frame title text-100.
parameters: p_pdf(64) type c lower case obligatory,
p_out(64) type c lower case obligatory.
selection-screen end of block s_files.
selection-screen begin of block s_conn with frame title text-101.
parameters: p_dest type rfcdest default 'ADS' obligatory.
selection-screen end of block s_conn.
selection-screen begin of block s_sig with frame title text-102.
parameters: s_key(64) type c lower case,
s_field(64) type c lower case,
s_reason(64) type c lower case,
s_loc(64) type c lower case,
s_cinfo(64) type c lower case.
selection-screen end of block s_sig.
types: ty_raw(255) type x,
ty_tab type standard table of ty_raw.
data: l_filename_pdf type string,
l_filename_out type string,
l_fp type ref to if_fp,
l_pdfobj type ref to if_fp_pdf_object,
l_pdf type xstring,
l_out type xstring,
l_fpex type ref to cx_fp_runtime.
l_filename_pdf = p_pdf.
l_filename_out = p_out.
perform load_file using l_filename_pdf
changing l_pdf.
* get FP reference
l_fp = cl_fp=>get_reference( ).
try.
* create PDF Object
l_pdfobj = l_fp->create_pdf_object( connection = p_dest ).
* set document
call method l_pdfobj->set_document
exporting
pdfdata = l_pdf.
* set signature
call method l_pdfobj->set_signature
exporting
keyname = s_key
fieldname = s_field
reason = s_reason
location = s_loc
contactinfo = s_cinfo.
* execute, call ADS
call method l_pdfobj->execute( ).
* get result -> l_out
call method l_pdfobj->get_document
importing
pdfdata = l_out.
catch cx_fp_runtime_internal into l_fpex.
perform error using l_fpex 'INTERNAL ERROR'.
catch cx_fp_runtime_system into l_fpex.
perform error using l_fpex 'SYSTEM ERROR'.
catch cx_fp_runtime_usage into l_fpex.
perform error using l_fpex 'USAGE ERROR'.
endtry.
check l_fpex is initial.
* download PDF
data: l_len type i,
l_tab type tsfixml.
call function 'SCMS_XSTRING_TO_BINARY'
exporting
buffer = l_out
importing
output_length = l_len
tables
binary_tab = l_tab.
call method cl_gui_frontend_services=>gui_download
exporting
bin_filesize = l_len
filename = l_filename_out
filetype = 'BIN'
changing
data_tab = l_tab
exceptions
others = 1.
if sy-subrc = 0.
write:/ 'Datei erfolgreich geschrieben'(001).
else.
write:/ 'Fehler beim Schreiben der Datei'(002).
endif.
form error using p_fpex type ref to cx_fp_runtime
p_str type string.
data: l_errcode type i,
l_errmsg type string,
l_string type string.
write:/ '***************************************************'.
write:/ '***', p_str.
write:/ '***************************************************'.
skip 2.
call method p_fpex->get_errall
importing
errcode = l_errcode
errmsg = l_errmsg.
write:/ 'ERROR CODE : ', l_errcode.
write:/ 'ERROR MESSAGE : ', l_errmsg.
l_string = p_fpex->get_text( ).
write:/ l_string.
endform.
form load_file using p_filename type string
changing p_content type xstring.
data: l_rawtab type ty_tab,
l_len type i.
call method cl_gui_frontend_services=>gui_upload
exporting
filename = p_filename
filetype = 'BIN'
importing
filelength = l_len
changing
data_tab = l_rawtab
exceptions
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
not_supported_by_gui = 17
error_no_gui = 18
others = 19.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
perform convert_tab_to_x using l_rawtab l_len
changing p_content.
endform.
form convert_tab_to_x using p_rawtab type ty_tab
p_len type i
changing p_xstr type xstring.
data: l_line type ty_raw,
l_count type i,
l_len type i,
l_rest type i.
describe table p_rawtab lines l_count.
loop at p_rawtab into l_line.
if sy-tabix = l_count.
l_rest = p_len - l_len.
concatenate p_xstr l_line(l_rest) into p_xstr in byte mode.
else.
concatenate p_xstr l_line into p_xstr in byte mode.
add 255 to l_len.
endif.
endloop.
endform.
Good Luck!
Pablo -
Interactive form on Zebra Printer
I am having an issue printing a custom paper type to a zebra printer.
I'm trying to print a 3.5 x 3.5 inch label onto a zebra 6mplus (zpl 1 and zpl2 supported, 203dpi) printer. I have done the following:
1. In adobe lifecycle designer 9.0, I have modified the designer.xdc file to have the following entry:
<medium stock="3.5x3.5" short="252pt" long="252pt"/>
2. Defined a form using the new paper type 3.5x3.5
3. In SAP, copied the standard zpl203.xdc file, renamed it to z_zpl203.xdc and used program RSPO0022 to link the new file
to a new device type ZAZPL203. The modified xdc file has the following entry:
<!-- jsciacca 2011.11.08 3.5 x 3.5 START -->
<medium stock="3.5x3.5" short="252pt" long="252pt" imagingBBox="0pt,1pt,252pt,251pt"/>
<!-- jsciacca 2011.11.08 3.5 x 3.5 END -->
4. In spad I then changed our zebra printer to use the device type ZAZPL203.
When I print, either by testing the form or by using a program, the output appears to come in standard letter (8.5x11) format. Instead of 1 label, I'm getting a blank label, my desired content slightly shifted and then another blank label. If I look at the trace file and I can see that my xdc file is being considered.
Embedding file/stream: z_zpl203.xdc using ID: xdc0 MimeType: Description: Document Services XDC into PDF: /tmp/adobewa_CH9_96403050/DM6513754473347549726.dir/DM-6611375051718293888.tmp
No matter what I do, I can't seem to get the form to come in the format that I specify. Can anyone using interactive forms to Zebra printers offer any advice here?
Thanks,
Joe
Edited by: Joseph Sciacca on Nov 10, 2011 4:46 PMClosed. The printer media was pending calibration.
-
Adobe forms, non-interactive (HR)
Hi,
I'm trying to get in touch with SAP web applications (webdynpro, adobe form, bsp...).
I have the following requirement:
I have to provide a page within the sap enterprise portal to allow the employee to track his presence. In this page the employee has to check a presence/absence flag and in another page he can justify his absence with some reason.
I didn't find a standard functionality to meet this requirement, so I think a new form has to be created.
As additional requirement this form as to be stored as PDF document and it is not needed to store the information contained in the form in the sap backend system. The information contained in the form has to be stored in a non-sap system, so this information should be available as flat file to be imported in the non-sap system.
I'd like to understand the possible scenarios from a technical point of view to create the required functionalities.
ADOBE Interactive Form.
This is a webdynpro (java or abap) that contains the adobe component. The fields of the adobe component are linked to the sap backend system and are editable. The adobe component reads some data from sap bakend system and stores the values filled by the employee via the adobe component in the backend system.
ADOBE non-interactive Form
A webdynpro (java or abap) or a BSP has to be built to create some values, then once the user save/submit the information a PDF document is created with the information created in the previous page.
What is the difference between ADOBE (non-interactive) Form and ADOBE Interactive Form? The difference is that the first one is not editable? There is a big difference in terms of complexity develop an interactive or a non-interactive adobe form?
BSP that generate the PDF as output?
Could you please provide some input/defintion/sample to clarify this topic?
Thanks in advance
MPHi,
I'm trying to get in touch with SAP web applications (webdynpro, adobe form, bsp...).
I have the following requirement:
I have to provide a page within the sap enterprise portal to allow the employee to track his presence. In this page the employee has to check a presence/absence flag and in another page he can justify his absence with some reason.
I didn't find a standard functionality to meet this requirement, so I think a new form has to be created.
As additional requirement this form as to be stored as PDF document and it is not needed to store the information contained in the form in the sap backend system. The information contained in the form has to be stored in a non-sap system, so this information should be available as flat file to be imported in the non-sap system.
I'd like to understand the possible scenarios from a technical point of view to create the required functionalities.
ADOBE Interactive Form.
This is a webdynpro (java or abap) that contains the adobe component. The fields of the adobe component are linked to the sap backend system and are editable. The adobe component reads some data from sap bakend system and stores the values filled by the employee via the adobe component in the backend system.
ADOBE non-interactive Form
A webdynpro (java or abap) or a BSP has to be built to create some values, then once the user save/submit the information a PDF document is created with the information created in the previous page.
What is the difference between ADOBE (non-interactive) Form and ADOBE Interactive Form? The difference is that the first one is not editable? There is a big difference in terms of complexity develop an interactive or a non-interactive adobe form?
BSP that generate the PDF as output?
Could you please provide some input/defintion/sample to clarify this topic?
Thanks in advance
MP -
Adobe form validation with Print button
Hi All,
I have an adobe form with field validation (javascript) already set up but I'm trying to add one more feature to the validation.
Let me explain my initial validation first: I have 18 required fields with their tooltip name having an '*' at the end. Any fields not filled in with this tooltip marker will show up on an alert message when the print button is selected.
There are two fields called IException and Amount that are required but an End User might have additional IExceptions and corresponding Amounts. Therefore I have created 5 textboxes for each but only the first IException and Amount are absolutely required (and I use a '*' within their tooltip). Now if an End User has an additional IExceptions ("IException2") and fills out this field, I need to make it mandatory that "Amount2" would also have to be filled in.
Here is my code: [code]
function validateFields()
var flg = 0
var n = this.numFields
var fArr = new Array();
for(var i = 0;i<n;i++)
var fn = this.getNthFieldName(i);
var f = this.getField(fn);
var tt = f.userName
if(tt.indexOf('*')!=-1 && f.value == f.defaultValue)
flg++;
fArr[fArr.length] = tt;
if(flg>0)
app.alert('There are '+flg+' fields that require a value\n\n'+ fArr,3)
var IException2 = document.getElementById('IException2').value;
var Amount2 = document.getElementById('Amount2').value;
if ((IException2.length >0) && (Amount2.length == 0))
app.alert('Amount is missing')
else
document.ExceptionForm1.print();
validateFields();
[/code]
Currently when one of the require fields is NOT filled in, i receive my first alert message. If all required fields are filled in my print button doesn't work. Also if all required fields are filled in and IException2 is also filled in but Amount2 is not, I don't receive my second Alert message. So my code works up to the "Var IException2 = document....." and I don't know what the issue is.
Thank you for your help in advance.One more question, since I have 4 of these...I'm having trouble getting the button to do exactly what its suppose to based on what's filled in because i think i have my '{ }' messed up and or IF/ELSE statement is wrong...can you please take a look..
function validateFields()
var flg = 0
var n = this.numFields
var fArr = new Array();
for(var i = 0;i<n;i++)
var fn = this.getNthFieldName(i);
var f = this.getField(fn);
var tt = f.userName
if(tt.indexOf('*')!=-1 && f.value == f.defaultValue)
flg++;
fArr[fArr.length] = tt;
if(flg>0)
app.alert('There are '+flg+' fields that require a value\n\n'+ fArr,3)
var a = this.getField('IException2').value;
var b= this.getField('Amount2').value;
if ((a.length >0) && (b.length == 0))
app.alert('Since IException 2 is filled in, Amount 2 is also required')
var c = this.getField('IException3').value;
var d= this.getField('Amount3').value;
if ((c.length >0) && (d.length == 0))
app.alert('Since IException 3 is filled in, Amount 3 is also required')
var e = this.getField('IException4').value;
var f= this.getField('Amount4').value;
if ((e.length >0) && (f.length == 0))
app.alert('Since IException 4 is filled in, Amount 4 is also required')
var g = this.getField('IException5').value;
var h= this.getField('Amount5').value;
if ((g.length >0) && (h.length == 0))
app.alert('Since IException 5 is filled in, Amount 5 is also required')
else
this.print();
validateFields(); -
Adobe Forms : Adjacent Table printing
Hi All,
I have copied standard adobe form PYXXFO_SAP_PAYSLIP_US2 payslip into custom one.
in standard form output in page is as below
EARNINGS
wtno wttext rate number amount
TAX
wtno wttext rate number amount
DEDUCTIONS
wtno wttext rate number amount
What I want to do is print Earnings and Deduction adjacently on same line, can anyone help me in this, please?Hi Santosh,
Change the layout as per your requirement. Wrap the earnings and deductions table in subforms as below:
Subform1
->Subform2(Earnings_table, Earnings_total)
->Subform3(Deductions_table, Deductions_total)
The content type of subform1 should be flowed(Choose it from object->subform->content in subform property).
Flow direction should be Western text.
The content type of subform2 and subform3 should be flowed and flow direction should be top to bottom.
Adjust the size of individual columns of both tables so that they can fit in layout side by side.
Hope it will give you an idea to proceed further.
Regards,
Vaibhav -
Adobe forms -Can we print multiple forms?
i,
Right now my form has an ability to display a single Order with single Header & line items.
Hi,
I want to enhance the functionality to multiple forms prints.I mean I will be having multiple headers and l ine items.
I can fill my internal tables with multiple records data but what are the other form changes should i take care( hierarchy, data, etc...)
In smartforms I was able to do this because there we can define loops.How do we handle it here in adobe forms?
FYI.. I am filling internal table through WD application.Should I do Some context level changes?
Also,
In Dev environment I can see my Bold objects but when i move it to QA they are disappearing & font is also changing.What could be the reason?
rgds
VaraHi Vara,
Re: Adobe Forms
Regards,
Sravanthi -
Setting a Text field in adobe form non editable
Hi Experts,
I have generated a Adobe form using webdynpro java. I have couple text fields. They are binded with some values which a RFC returns. When I see the output These text fiels values which are populated from backend are editable. Can anyone suggest me how to make these text fields non editable.
Thanks,
RajHi Raj,
You have to set the properties of these text field as readonly.
For this you have to select the text field ... Go to the Object Pallete.
There you will see three Tabs Field, Value and Binding.
You have to click on Value Tab and there you have select the Type as Read Only.
If you do not have Object Pallet open .. go to Menu Bar Window and Click Object
This will solve your problem.
Cheers
Satya -
Issue printing labels in Adobe form via Datamax printer
Hi,
We have developed an Adobe form which contains a barcode for the label.
This label gets printed fine when we print it on the printers in the office headquarters.
However, at the plant location where it is supposed to be printed, the labels are not getting printed.
The printer at the plant location is Datamax H-4212.
Any idea what's wrong? Will the Adobe form need to be changed for this?
Please help.
Regards,
AnushaHi,
Which device type do you use to create the spool and print? Only the device types described in the following note are possible with Adobe forms:
685571 - Printing PDF-based forms
I suggest you try with device type PDF1 and SAPPDFPRNT as per SAP note 1444342.
Regards,
Aidan -
Adobe form MICR not printing transit, amount chars
Hi,
I am using MICR Std font in the adobe form and the form is also loaded on printer which has device type TROY MICR.
I can see the numbers in MICR font but I am not able to print special chars. I tried to do that using 'A' 'B' 'C' 'D' as we do in sap-script. Then I tried it with '[or]' '#' '$' and '-' but it just print those chars not special chars.
I hope someone can help me on this.
ThanksJust to document the solution, we had the same problem where we wanted to print the Transit synmbol or Branch Bank Id number,
1. Goto MS word
2. Type the numerals 2446 which is the unicode number for transit symbol, press Alt X on the keyboard it will transform the numbers into the symbol
3. Now create a text field in your Adobe designer and set the font to MICR Std, you would see a [] in the field but on print preview it would come out correctly.
Regards,
Aditya -
What's the business case for using adobe forms for handling print forms
Hi
We are just starting our SAP project and are looking at the possibility to use Adobe forms for generating and printing our forms, like purchase orders, invoices etc.
My Question is:
1. Is this possible / adviseable ?
2. if so - what's the business case in using Adobe forms - <i> We have been looking on the SAP Pricing for adobe interactive form, and in our point of view it's grotesque high</i>
3. What other options do we have - do we need to settle with SAP Script / Smartforms ?
Regards
Morten NielsenHi Morten,
1. Is this possible / adviseable ?
As far I know SAP is going to stop support for SAPScript in coming years (I don't know exact dates). It is pretty much advisable to use Adobe Print Forms.
2. if so - what's the business case in using Adobe forms - We have been looking on the
SAP Pricing for adobe interactive form, and in our point of view it's grotesque high
We can use Adobe Print Forms where ever we can able to use SApscripts/PDF print Forms.
3. What other options do we have - do we need to settle with SAP Script / Smartforms ?
It is better to settle with Adobe forms rather than using SAPscript/Smart forms. One of the main reason for this is maintainance is much easier than SAPscript/Smart forms.
But remember that Java Stack need to be installed in order to use Adobe Forms.
Please visit the below SDN area on Adobe forms for more details.
https://www.sdn.sap.com/irj/sdn/interactiveforms
Thanks
Ramakrishna
Message was edited by:
Ramakrishna Ramisetti -
Printing to Adobe PDF - non-existant print queue or hanging up error
When printing to a pdf, the process is getting stuck in the printing/saving part of the process. As the attached image will show, the pop-up window shows the file name in the Document Name list, but it defaults to the file entitled "06-2013 Newsletter" (my apologies for all the black scribbles; they're there for privacy's sake). I am unable to select the name of the file I'm printing (in this case, "Combined"); it would appear that the pdf is trying to save into a file that already exists. I thought that perhaps the print queue needed to be cleared, but under Devices and Printers, "See what's printing" for the Adobe PDF printer shows nothing in the queue. The task then comes to a standstill and I am unable to continue.
After researching the issue, the only advice I can find is to do a "hard delete" of everything printing or spooling on my server to hopefully "force out" the stuck jobs, but this is not really an option during a busy workday when multiple jobs are printing at any given time. Is there a more simple solution that I am missing?Well, after restarting my machine the print queue was cleared of all the dead jobs, but when attempting to print to PDF it hung up again, and then did the same as before - all subsequent jobs tried to save as the filename of the first job in the queue. Very annoying!
-
Adobe form:How to Print last row of body to next page & printing max7 rows?
Hi,
In ADOBE PDF, Design view, for item level data only 7 row or less should appear in first page for following page if rows are greater than 7 if its less than 7 then last row should be on second page. In design page Below Body Row, user details are 'positioned' so they overlap as soon as item level data exceeds 7.
Using a Static PDF, 7.2. I checked with Pagination property of Item level data, its been set to Place:Following previous and After Continue filling parent. Will putting condition using Form Calc would suffice in condition breaks? What would be condition?
Thanks
MohinderHi,
Solved by changing Condition in Table pane, making one row and increasing Header and footer.
Thanks
Mohinder -
Adobe form -Non Interactive - Line across when we have any entry
Hi,
In my line items I need a horizontal line separtor based on a field.
I mean when there is an entry(ITEM A) I need it to be underlined alll through the form horizontally or a horizaontal separator line.
I have follwoing output
ITEM A 10.00 20.00
40.00 60.00
65.00 80.00
ITEM B 30.00 40.00
70.00 45.00
23.00 22.00
ITEM C 32.00 20.00
221.00 60.00
65.00 80.00
I need output
ITEM A 10.00 20.00
40.00 60.00
65.00 80.00
ITEM B 30.00 40.00
70.00 45.00
23.00 22.00
ITEM C 32.00 20.00
221.00 60.00
65.00 80.00
I am expecting we should do this via javascript.
Any ideas?
Rgds
Vara
Edited by: Vara K on Apr 20, 2009 4:57 PM
Edited by: Vara K on Apr 20, 2009 5:11 PMPetr,
I am following you now.
I have created a group section with both rows.I went into edit alternatives .
Now I have 2 rows with DATA(0) and DATA(1).
Basically I have to use underlined DATA(0) one when field has no value
and other DATA(0) when field has value.
So basically my pop -up box has javascript
Name: DATA[0] Binding : DATA
Expression:
PHCODE.value == ""
Name: DATA[1] Binding : DATA
Expression:
PHCODE.value != ""
Do i need to write something else in expression for this?
Although I don't have value for that rows Now I am getting bottom lines for every row.
If i use null like below I am only getting rows with bottom lines and remaining are disappearing.
Expression:
PHCODE.value == null
Name: DATA[1] Binding : DATA
Expression:
PHCODE.value != null
Is my expression correct?
What is operator for checking not equal to in javascript? is it !=? or !==?
Rgds
Vara
Edited by: Vara K on Apr 23, 2009 6:05 AM
Maybe you are looking for
-
i got new iphone and when i connect it to my pc, it lost all my current data and replaced it with the backup on my computer, which is from april. so i have lost all my calendar information and schedule. does anyone know how i can reverse this and get
-
How to adjust VCORE in MSI Pro-E X58?
Hey guys; I've built my first rig and I'm interested in overclocking the i7 I've bought. I've already read a lot on OC'ing and the potential hazards that come with it. In any case, I own the MSI Pro-E X58 and was looking to OC. I've steadily increase
-
My Macbook Pro (5,3) sporadically goes to sleep when the lid is open and I am actively using it. This problem happens both with OS X 10.7.2 and Windows 7 (64bit), so I don't think it's an OS issue. Has anyone else encountered this? It's still cover
-
On behalf of a friend who I usually do phone support for when he has a problem. This problem has stumped me! Mail 4.5 (1084) Mac OSX 10.6.8 He has mail set to access Gmail (IMAP) and it works fine when sending a normal email, however, when sending an
-
While installing Lion my Bluetooth module disappeared. How can I reinstall it?
While installing Lion my Bluetooth module disappeared. How can I reinstall it?