Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to move the Barcode on report to right side.

Former Member
0 Kudos
101

Hi,

I am able to print the Barcode on the Report but not able to move to right side, i have tried like...

FORMAT COLOR OFF INTENSIFIED OFF.

WRITE: /.

PRINT-CONTROL FUNCTION 'SBP01' POSITION 20.

WRITE : L_BARCODE NO-GAP.

PRINT-CONTROL FUNCTION 'SBS01'.

WRITE: /.

i am able to move to right side with the above statements, but the barcode become bold as i am incresing the position from 10 to 20 so on.

please suggest...

thanks in advance.

Regards,

Shiva Kumar.

4 REPLIES 4

Former Member
0 Kudos
73

Hi,

Try to use RIGHT-JUSTIFIED hope it will help u !!

Eg.

DATA: FIELD(10) VALUE 'abcde'.

WRITE: / '|' NO-GAP, FIELD LEFT-JUSTIFIED NO-GAP, '|',

/ '|' NO-GAP, FIELD CENTERED NO-GAP, '|',

/ '|' NO-GAP, FIELD RIGHT-JUSTIFIED NO-GAP, '|'.

  • Output: |abcde |

  • | abcde |

  • | abcde|

Pl reward if sounds good.

Cheers.

0 Kudos
73

Hi,

I tried with RIGHT_JUSTIFIED, but it is not working...

Former Member
0 Kudos
73

Hi Shiva Kumar M ,

Check the link below it will be helpful to u.

http://help.sap.com/saphelp_erp2005vp/helpdata/en/d9/4a95e351ea11d189570000e829fbbd/frameset.htm

PRINT-CONTROL FUNCTION 'SBP01' POSITION 10.

PRINT-CONTROL LM020.

WRITE : L_BARCODE NO-GAP.

PRINT-CONTROL FUNCTION 'SBS01'.

Former Member
0 Kudos
73

Hi,

I got it.... now i am able to print the Barcode 13 charaters right with the below code.

PRINT-CONTROL FUNCTION 'SBP01' POSITION 13.

WRITE : 13 l_barcode NO-GAP.

Regards,

Shiv.