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

problem in alv

Former Member
0 Likes
2,374

Hello Abap ers,

required output:

projid   proj def     wbs ele     wbs descri        day01   day02   day03   day04.........................day31

abc      ffff              p-109       building

total quantity                                                        5        10    .........

total weight                                                         550      450............

total volume                                                         340     380...........

abc      fff               p-110       office                

total quantity                                                        4        6    .........

total weight                                                         530      420............

total volume                                                         340     300...........

i have created a internal table where projid ,proj def,, wbs ele, and wbs description is present. in another internal table i have collected material and its quantity

volume, weight corresponding to wbs element.... in this table delivery date is also present.  now my requirement is to sum quantity, gross wt, gross volume with respect to delivery date. i have also done this. this internal table value:::

date             totquan   tot wt    tot vol

01.01.2013      5         550        340      -> internal table

02.01.2013     10        450         380

projid        projdef        wbs ele       wbs des

abc            fff               p-109          building   -> internal table

how can i achive the required output in alv.........plz help.....its very urgent.

Thanks

Sabyasachi

Hello Abap ers,

required output:

projid   proj def     wbs ele     wbs descri        day01   day02   day03   day04.........................day31

abc      ffff              p-109       building

total quantity                                                        5        10    .........

total weight                                                         550      450............

total volume                                                         340     380...........

abc      fff               p-110       office                

total quantity                                                        4        6    .........

total weight                                                         530      420............

total volume                                                         340     300...........

i have created a internal table where projid ,proj def,, wbs ele, and wbs description is present. in another internal table i have collected material and its quantity

volume, weight corresponding to wbs element.... in this table delivery date is also present.  now my requirement is to sum quantity, gross wt, gross volume with respect to delivery date. i have also done this. this internal table value:::

date             totquan   tot wt    tot vol

01.01.2013      5         550        340      -> internal table

02.01.2013     10        450         380

projid        projdef        wbs ele       wbs des

abc            fff               p-109          building   -> internal table

how can i achive the required output in alv.........plz help.....its very urgent.

Thanks

Sabyasachi

17 REPLIES 17
Read only

0 Likes
2,335

Hi Sabyasachi,

It's not possible to merge two structures in to one field cat log rather you can try like below.

1) Display header details using reuse_alv_commentary_write.

2) Display item details using reuse_alv_grid.

Put the above logic in loop it looks like as below.

Read only

0 Likes
2,335

HI,

      how can i create this field line by line

total quan

total weight

total vol

Thanks

Sabyasachi

Read only

0 Likes
2,335

You can achieve this by dynamic coding, if you want to implement in the above format i can help you out..

Read only

Former Member
0 Likes
2,335

REQ NEED ED LIKE THAT::

PROJID   PROJDESC   WBSELM     WBSELDESC   DAY01     DAY31

1234                xyz                 123-XYZ        YYYT     

TOTALQNTY                                                                                    10              21

TOTVOLUM                                                                                       20            90

TOT WIGHT                                                                                      60           100

45667            DFER        45667-DFER     NHY

TOT QNTY                                                                                              19        00

TOTVOLUM                                                                                           12        10

TOT WIGH                                                                                              11        18

Hello this is my org req................

plzzzz help.............

Read only

0 Likes
2,335

Hi Sabyasachi,

The best way to have an output like this is to use classic report(using write and manual formatting).

If you insist on using ALV GRID, then the field PROJID must be of type char.

Append the value like "1234                xyz                 123-XYZ        YYYT     " to the internal table from your second table.

Now, pass the hardcoded values for totquan, tot wt, tot vol to field PROJID and pass the datewise calculations to the respective fields.

Hope this helps

Read only

0 Likes
2,335

As per my understanding, you can use the fm REUSE_ALV_HIERSEQ_LIST_DISPLAY. In this you can display 3 items.

Please correct me if I am wrong.

Regards

Purnand Dhingra

Read only

0 Likes
2,335

pl try REUSE_ALV_FIELDCATALOG_MERGE fm also.

Hope it helps

Read only

0 Likes
2,335

HI ANIKET,

exactly you are right...i think lot......but already i use hard coded value TOT qty, tot wt, tot val.....

Thanks for your reply.....

Sabyasachi

Read only

0 Likes
2,335

Also, you can use REUSE_ALV_HIERSEQ_LIST_DISPLAY as suggested by Purnand(if it suits your requirement).

You can check program BCALV_TEST_FULLSCREEN_EXCEPT for your reference.(Check the output once)

Read only

0 Likes
2,335

Hi Sabyasachi,

Please close the thread if you have got the resolution

Read only

0 Likes
2,335

Hi Aniket, purnand thanks to all.......i have completed report in my logic...and its run successfully.....

Thanks

Sabyasachi

Read only

0 Likes
2,335

Hi Sabyasachi,

Please close the thread and mark it as answered

Read only

0 Likes
2,335

Yes i can solve it and req was grid display not others............

Read only

0 Likes
2,335

Yeah sure

But i don;t think your original post says anything about GRID

Chillax Bro!!

Read only

0 Likes
2,335

sorry extremely..........but i like your answer......hope you watch..........

Read only

0 Likes
2,335

Lol

I am not begging for points....just asked you to mark the thread as answered.

Read only

0 Likes
2,335

okk....then how can i close my thread?????

i already click on assumed answer......hope it close.........