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

collect

Former Member
1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
523

Hi Amit,

declare one more internal table same as del_grp_data.

and grkor should be the first field in ur internal tables.

if orders_vbeln[] is not initial.

SELECT vbeln grkor pstyv netwr

posnr

FROM vbap

INTO corresponding fields of TABLE del_grp_data

FOR ALL ENTRIES IN orders_vbeln

WHERE vbeln eq orders_vbeln-vbeln.

endif.

sort del_grp_data by group (grkor)

loop at del_grp_data.

  • collect del_grp_data into del_grp_data_1.

del_grp_data_1 = del_grp_data.

collect del_grp_data_1.

endloop.

Reward points for all helpful answers.

kiran.M

EX ON COLLECT STMT

3 REPLIES 3
Read only

Former Member
0 Likes
524

Hi Amit,

declare one more internal table same as del_grp_data.

and grkor should be the first field in ur internal tables.

if orders_vbeln[] is not initial.

SELECT vbeln grkor pstyv netwr

posnr

FROM vbap

INTO corresponding fields of TABLE del_grp_data

FOR ALL ENTRIES IN orders_vbeln

WHERE vbeln eq orders_vbeln-vbeln.

endif.

sort del_grp_data by group (grkor)

loop at del_grp_data.

  • collect del_grp_data into del_grp_data_1.

del_grp_data_1 = del_grp_data.

collect del_grp_data_1.

endloop.

Reward points for all helpful answers.

kiran.M

Read only

Former Member
0 Likes
523

Nice job on the scam Mohan.

Too bad it is so obvious.

Hope that T-Shirt you get makes up for your effort.

Read only

0 Likes
523

funniest part if you noticed,

Mohan never said he is "Amit" but K K's reply starts with "Hi Amit"