cancel
Showing results for 
Search instead for 
Did you mean: 

Print serial number in smartform

Former Member
0 Kudos

Hi,

I am trying to print smartform report for purchase order. every details is coming but when i am trying ot print serial number for PO, then getting repetitive number. plz tell me any code to print serial number against each PO. Where i have to indicate that code whether in smartform or in report program.

Mukul

Accepted Solutions (0)

Answers (4)

Answers (4)

madhu_vadlamani
Active Contributor
0 Kudos

Hi Kumar,

If you use table then declare one variable in global declarations of type i,and keep that before loop in that and try to display it .

Regards,

Madhu.

Former Member
0 Kudos

hello ,

try this

1) first define global variable like: GV_COUNT TYPE INT

GV_ORDERNO TYPE CHAR3

2) Then goto to your table tab named as :CALCULATION

and then select NUMBER at OPERATION field, put GV_ORDERNO at TARGET FIELD NAME field

and select AFTER LOOP in TIME field.

3) and use this statement : WRITE gv_count to gv_orderno.

4) and put & GV_ORDERNO& at text field.

thanks,

Deepak Singh,

Former Member
0 Kudos

Thanx Problem solved

Former Member
0 Kudos

Thanks for letting us know that the problem is solved, would you now please close the thread (mark it as answered)?

Former Member
0 Kudos

Hi,

Your Q. is not that clear. Any ways try this.

I think no need to do coding in smart form.

Because your already showing the Serial no in the report. Upon selecting particular PO smart form generated.

Simply take your final layout table work area in smart form. So that you can get the serial no. along with your PO details