Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Loop not getting all the fields values

Former Member
0 Likes
697

I have an smartform, with the following specifications:

On Global Definitions/Types:  TYPES t_komvd_tab TYPE STANDARD TABLE OF komvd.


In Form Routines: it_komvd TYPE t_komvd_tab and  DATA ls_konv TYPE komvd


My problem is that when this gets executed:  LOOP AT it_komvd INTO ls_konv.


Only these 2 fields get a value: ls_konv-kwert and ls_konv-kbetr. The other fields like ls_konv-kschl, ls_konv-koaid or ls_konv-kntyp do not get any value, What should I modify so those fields values get populated too?

Regards,
Carlos

1 ACCEPTED SOLUTION
Read only

former_member212913
Participant
0 Likes
651

hi,

        Declaration seems to be right  now check the values after select statement your writing for..or if ur assigning values from komvd check it with keeping a break point.

Regards,

Mahipal.

3 REPLIES 3
Read only

Former Member
0 Likes
651

Hi,

For populating values in workarea,Create a loop:

Then in loop, Go to data tab of tabstrip and enter the internal table and workarea name there

We can access the internal table values in workarea.

Regards,

Priyanka

Read only

former_member212913
Participant
0 Likes
652

hi,

        Declaration seems to be right  now check the values after select statement your writing for..or if ur assigning values from komvd check it with keeping a break point.

Regards,

Mahipal.

Read only

0 Likes
651

Hi,

Check with break points whether all the values are passing to the internal table and check the workarea individual fields value.

Regards,

Vinodkumar.