cancel
Showing results for 
Search instead for 
Did you mean: 

Sapscript - write_form - no data in form - only headlines

Former Member
0 Kudos

Hi, if i try to call a sapscript form i dont become any output. I only see the headlines, but not the data.

The code looks like this:

1. Select * from ltap into corr... Where...

2. Call function "open_form" ...

3. Call function "write_form" ...

4. Call function "close_form" ...

I call the correct window, element and so on and can make what i want. I dont become my form with data.

It would be very nice, if anybody can help me.

Thanks

Marc

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi, my problem was, that i dont do the Loop correct.

1st i build my internal table as standard table of ltap. so is have structure and table named like this:

lt_ltap

ls_ltap

My select was into corresponding fields of table lt_ltap

now i looped like that:

LOOP AT lt_ltap INTO ls_ltap.

ENDLOOP.

BUT correct is that:

include tables:

TABLES: ltap, ltak..

Thank loop like that:

LOOP AT lt_ltap INTO ltap.

ENDLOOP.

former_member230486
Contributor
0 Kudos

Hi,

First check whether the internal table is filled or not then

call function 'open_form'

loop at itab into wa.

call function 'write_form'

endlloop.

call function 'close_form'

Former Member
0 Kudos

Hi friend,

Did you checked whether the internal table which you are sending for the form is filled with data. If no please check that.

If that internal table is filled with data then check debugging the form, check whether the table data which you are passing is getting cleared at any stage.

Just check these all i think this will solve your problem. If not so please revert back to me i will help you.

Thanks,

Sri Hari