cancel
Showing results for 
Search instead for 
Did you mean: 

re: generating number while printing only

Former Member
0 Kudos

Hi,

I modified one standard script and appended this script to the sap driver program.

My requirement i want to generate a number while printing only, how it is possible to increment

number while print only. Because i cannot take the itcpo from driver program. that i canno modifdy the sap

program.

2. is any tracking print system present permanently in the sap that we have taken the print from particular script.

i appreciate your help

rgds

p.kp

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

HI Krishna,

If u r modified a standard script and u want a field with incrementing number.. then u can use PERFORM statement and write a subroutine program for that and pass this incrementing value to script.

/: PEROFRM TEST IN PROGRAM ZPROGRAM

/: CHANGING &INCR&

/: ENDPERFORM

In zprogram...........

FORM TEST TABLES tab_in STRUCTURE itcsy tab_out STRUCTURE itcsy.

DATA: INC TYPE I.

INC = '1'. " OR UR STARTING NUMBER

READ TABLE tab_out WITH KEY 'INCR'.

IF sy-subrc = 0.

tab_out-value = INC.

ENDIF.

MODIFY tab_out INDEX sy-tabix.

INC = INC + 1.

ENDFORM.

Regards

SAB