cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to add UPS MAXI Barcode in the Adobe forms

Former Member
0 Kudos
1,352

Hello Community,

I tried creating UPS MAXI Barcode in the Adobeforms using the below SAP SCN post.

https://wiki.scn.sap.com/wiki/display/Community/UPS+maxicode+on+SAP+Adobe+forms

UPS maxicode on SAP Adobe forms.

But i could not able to get the required barcode. I don't know where i went wrong.

Kindly let me know the procedure on how to display the required barcode in adobeforms.

I applied the below code but still could not able to achieve it:

data.Master_Segment.Carrier_Segment.QR_Segment.UPSMaxicodeBarcode2::initialize - (FormCalc, server)

var gs = "\u001D"

var rs = "\u001E"

var eot = "\u0004"

$.rawValue = concat( [)>rs01gs96gs1Z14647438gsUPSNgs410E1Wgs195gsgs1/1gs16gsNgsgs17gsrseot ).


Thanks in advance.

Regards

Sai Kumar P

View Entire Topic
s_nevskaya
Explorer
0 Kudos

in java script:

  • ; semicolon mean end coding
  • '' for defoult values

1. Create new field - text field (in my example NAME2) and set it invisible (in case of this data not needed in printlabel a set is visible for testing) without binding

1 variant. Using for concatenation + (without any oher separators) .

 data.Page1.head.NAME2::initialize - (JavaScript, server)
 
 var gs = '\u001D';
 var rs = '\u001E';
 var fn = '\u00E8'; 
 var eot = '\u0004';
 const str = '[)>';


this.editValue =     str + rs +  '01' +  gs + '96' + gs  + '1Z14647438' +
 gs +  'UPSN' +  gs + '410E1W' + gs + '195'+ gs + '' + gs
 + '1/1' + gs + '16' + gs + 'N' + gs + '' + gs +'17'+ gs + rs + eot;

this.rawValue = this.editValue;

2 variant. Using function concat allways with separator comma ',' . In your case it was wrong. It is string function. There have to be another coding, for example using constant for prepearing string data

data.Page1.head.NAME2::initialize - (JavaScript, server)
 
 var gs = '\u001D';
 var rs = '\u001E';
 var fn = '\u00E8'; 
 var eot = '\u0004';
 const str = '[)>';
 
this.editValue = str.concat(
rs , '01',
gs , '96',
gs , '1Z14647438',
gs , 'UPSN',
gs , '410E1W', 
gs , '195',
gs , '', 
gs , '1/1',
gs , '16',
gs , 'N', 
gs , '' , 
gs , '17', 
gs , '', 
rs , '', 
eot,);

this.rawValue = this.editValue;

2. Input data-matrix object. Don't forget to clear the default values

for DataMatrix Barcode object set coding

 data.Page1.head.DataMatrixBarCode2::initialize - (JavaScript, server)

this.rawValue = data.Page1.head.NAME2.rawValue;

This is test data 1

This is test data 2