cancel
Showing results for 
Search instead for 
Did you mean: 

Sap Script form

Former Member
0 Kudos

Dear All,

We are generating a PDF417 (2D) barcode through SAP script.

The barcode contains data having more than one fields i.e. 5 fields.

Each field needs to be <<tab>> separated followed by an <<enter>> delimiter after the last field.

We are not able to pass the tab value through SAP in a variable where we are concatenating the four fields.

We are able to do so using a VB script with chr(9) as the tab value to be substituted, but this does not work through SAP.

Can you please help as to how do we generate a tab value and an enter value through SAP.

Regards,

Rahul Shukla

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Solved

Former Member
0 Kudos

Hello rahul,

you can generate a TAB by using the ABAP class CL_ABAP_CHAR_UTILITIES.

For your TAB delimiter you can do the following coding:

concatenate field1 fields2 into field3 separated by CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.

For Enter you can use CL_ABAP_CHAR_UTILITIES=>CR_LF.

If you need more samples please check the class or enter CL_ABAP_CHAR_UTILITIES in the forum search.

Hope this helps.

Frank

Message was edited by: Frank Brackmann