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

internal table & ALV displaying

Former Member
0 Likes
656

Hi All

I am passing obj-ID into FM and i am getting gt_history,

gt_history having fields goods receipt(GR)  & subtype.

GR            subtype

4000           CF

4001           CF

4003           IV

In my alv output i am getting only 4000 CF row.I want 4001 also display in the same row of alv like 4000/4001 CF.

In feature this GR can have more values for same subtype,

   OR

is it possible to dispaly rows as it is in internal table in output  alv?

Please help on this

Thanks

Vamsi

5 REPLIES 5
Read only

Former Member
0 Likes
629

Are you passing the Itab of just the header?

Neal

Read only

0 Likes
629

Hi Neal

Sorry i am passing header data to FM and getting item data

Read only

0 Likes
629

Could you show us the relevant section(s) of your code.

Neal

Read only

arivazhagan_sivasamy
Active Contributor
0 Likes
629

Hi Mohan,

data: field(100) type c.

Can you write a code like below.

Loop at Itab.

concatenate itab-gr '/' field into field.

at end of subtype.

final-gr = field.

final-subtype = itab-subtype.

append final.

clear: final, field.

endat.

Endloop.

Arivazhagan S

Read only

Former Member
0 Likes
629

Use hierarchical ALV it will full fill your requirement. FM is REUSE_ALV_HIERSEQ_LIST_DISPLAY.

Else you can go with classical report also.

Cheers,

Prakash