‎2014 Nov 18 10:34 AM
Hello SCN community,
Some answers would be greatly appreciated.
I have problem on understand how label printing for material works. As we need to make a report to print labels for materials.
Sample output as
There was a program that was printing it with simple write statement, but was not able to understand the symbolic code being used.
to print material and bar code the below code being used.
* spool contents.
WRITE: / c_sp01.
WRITE: / c_sp02.
WRITE: / c_sp03.
WRITE: / c_sp04.
WRITE: / c_sp05.
WRITE: / c_sp06.
WRITE: / v_label_matnr.
* print barcode and material
WRITE: / c_sp08,v_matnr,c_g.
WRITE: / c_sp09,wa_mlgt-lgpla,
' ',c_g.
WRITE: / c_sp10,sy-datum,c_g.
the constant are like
* Constants for Spool generation
CONSTANTS :
c_g(2) TYPE c VALUE '#G',
c_sp01(6) TYPE c VALUE '#!A1#G',
c_sp02(11) TYPE c VALUE '#IMS72/30#G',
c_sp03(6) TYPE c VALUE '#PR2#G',
c_sp04(7) TYPE c VALUE '#HV99#G',
c_sp05(6) TYPE c VALUE '#ERN#G',
c_sp06(8) TYPE c VALUE '#R10/1#G',
c_sp07(26) TYPE c VALUE '#J03#T02#YB4/1OP2.5/8/2///',
c_sp10(21) TYPE c VALUE '#J21#T57#YT105/0NR///',
c_sp11(20) TYPE c VALUE '#J18#T04#YT105/0N///',
c_sp12(21) TYPE c VALUE '#J18#T57#YT101/0NR///',
No idea, from where these constant value have been picked and used how.
Can anyone worked on such label printing program, was such constant code being used? what do they mean.
‎2014 Nov 19 11:17 AM