cancel
Showing results for 
Search instead for 
Did you mean: 

run time error

Former Member
0 Kudos

my samle data in IT_DATA1 which i declared in form interface.

batch no material characteristics result

2001 1000 ph 5

2001 1000 appearence red

2001 1000 solid content 40

2002 1000 ph 6

2002 1000 appearence green

2002 1000 solid content 40

in TABLE node i gave in DATA tab,loop at it_data1 into it_data1&im able to display data like this manner

characteristics result

ph 5

appearence red

solid content 40

ph 6

appearence green

solid content 40

but i want to separate this data based on batch no in the following manner

batch no: 2001

characteristics result

ph 5

appearence red

solid content 40

batch no: 2002

ph 6

appearence green

solid content 40

i tried by giving field 'charg'(batch number) in Table-->Data----->sort criteria&checked the checkbox for Event on sort begin. whenever i do like this im getting runtime error as ' the following syntax error occured in program'xxxxxxx' in include 'xxxxxxxx' in line 77:field IT_DATA1 is unknown it is neither specified in Tables nor defined by DATA statement.please help.my data declarations are correct.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

U need to do the following

sort itab by batchno.

loop at itab.

at new batchno.

write: /'batch no:', batchno.

endat.

write / : char , result.

endloop.

Regards,

Aparna

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

Tyr sorting the itab bfore the MAIN window in Table

Use a Program Line and then use sort before the MAIN Window

Regards

Shiva