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.
Showing results for 
Search instead for 
Did you mean: 

smart form bar code is incorrect for every new page

Former Member
0 Kudos

hi to all experts

i have a peculiar problem in a smart form my requirement is to display \

matnr desc lgort stckcount un


the barcode should be printed for material below it

everything is fine except this problem.

for new page trigerred the bar code is not correct it is of the last material no of the internal table

for example if the next page is triggered and the material no 2087 and last material no is 2961

when we scan the barcode it should be 2087 but we are getting the values as 2961 the last in the internal table

i have 2 line types in the internal table (one four coloumn)\

and other for the barcode what could be the problem


Former Member
0 Kudos


go to Transaction SE73 and Use System Barcodes and copy that to user define.

hope this helps


Aakash Banga

Former Member
0 Kudos


Try printing one bar code for the one material after that try printing others too...

May be the first page for the material is not getting triggered



Former Member
0 Kudos

hi ,

i think you are not clearing the Barcode variable once it has printed.

try declaring the variable like this in smartform,


when one loop excecutes .and end of loop in command line clear this variable.

thanks & regards,


Former Member
0 Kudos

no help