cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Script : Data printing problem

former_member1284402
Participant
0 Kudos

hi all,

i made a script but problem is that when i m taking print through driver program then its not picking the data and showing blank. can anyone please help me?

actuallt i made a 'header' window and paragraph format P3 and i wrote code in page window like :

/E : header_2

P3 : personel Number &ITAB-PERNR& and costcenter &ITAB-KOSTL&

Now i m calling this window in driver program like :

CALL FUNCTION 'WRITE_FORM'

EXPORTING

element = 'HEADER_2'

function = 'SET'

type = 'BODY'

window = 'HEADER'.

but it is not printing the value of ITAB-PERNR and ITAB-KOSTL.

please help me.

regards saurabh.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI Saurabh,

Check in the debugging mode whether the internal table itab are getting the values..

Regards,

Sravanthi

former_member1284402
Participant
0 Kudos

hi thanx for the reply,

actually i checked it in debug mode but during debuging its not showing the values in itab.while in driver program it is showing properly during debug. so i m not getting the reason that why it is not showing during debuging of script. can anyone please tell me that what shud i do?

regards saurabh.

Former Member
0 Kudos

hi,

Give like this

loop at itab into wa_itab

CALL FUNCTION 'WRITE_FORM'

EXPORTING

element = co_item_details. "ITEM_DETAILS

endloop.

In your form write your data like this &wa_itab-value&.

i hope it will work.

regards,

Lokesh

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Make sure you r calling WRITE_FORM FM after filling ITAB.

Regards,

Pavan

Former Member
0 Kudos

Hi,

Call Write_form function module in driver program below the code where you got the values into itab. Then debug the program.