cancel
Showing results for 
Search instead for 
Did you mean: 

Calling a internal table in Script

Former Member
0 Kudos

Hi all,

im tryin to call the records in scripts but they r not displayed. this is the code.

what is the prob. correct solution will be rewarded.

select * from bseg into CORRESPONDING FIELDS OF TABLE t_kna1.

loop at t_kna1.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

window = 'MAIN'

element = '180'

EXCEPTIONS

window = 1

element = 2.

IF sy-subrc = 1.

window = 'MAIN'.

PERFORM message_window.

ENDIF.

IF sy-subrc = 2.

window = 'MAIN'.

ereignis = '180'.

PERFORM message_element.

ENDIF.

endloop.

Accepted Solutions (0)

Answers (3)

Answers (3)

shadow
Participant
0 Kudos

HI ,

DEBUG THE SCRIPT DEN U CAN EASYLY FIND OUT THE PROBLEM.....

U CAN DEBUG DA SCRIPT BY USING /H AND GO TO UTILITIES AND ACTIVATE DEBUG

SHAIK.

Former Member
0 Kudos

open_form

Loop the table.

Start_form

Write_form

End_form

Endloop.

Close_form.

former_member181962
Active Contributor
0 Kudos

Hi,

Are you sure you have records in it_KNA1 internal table?

Put a break-point to find out if there are records in it_kna1.

Regards,

Ravi