2010 Feb 25 5:54 AM
Hi all,
Is there a possibility of using 2 internal tables to populate the field catalogue.
Thanks in advance,
Neela
2010 Feb 25 6:45 AM
Hi,
Here i am giving small example flow logic.
consider that ur having...
Itab1 with 3 fileds contains information of 5 records.
Itab2 with 2 fileds contains information of 5 records related to itab1 information.
Now u have to display this two itab1 & itab 2 together in ALV.
Now just declare another itab3 with including structure of itab1 & itab2.
data: begin of sturcture itab3 occurs 0,
include structre itab1,
include structre itab2,
end of structure itab3.
Now you do
loop at iab1.
read itab2 with key fields of itab1.
MOVE CORRESPOINDING FIELDS OF ITAB1 TO ITAB3.
MOVE CORRESPOINDING FILEDS OF ITAB2 TO ITAB3.
APPEND ITAB3.
clear itab1, itab2, itab3. "work areas.
endloop.I hope this logic will solve your problem.
Regards,
Shankar.
Hi all,
Is there a possibility of using 2 internal tables to populate the field catalogue.
Thanks in advance,
Neela
2010 Feb 25 6:00 AM
2010 Feb 25 6:19 AM
Hi Suhas,
The requirement is that the pl account needs to be displayed in a grid or list depending upon the selection of multiple profit centers. The display must be in different pages for different profit centers
Thanks in advance,
Neela
2010 Feb 25 6:43 AM
hi ,
if one profin center is selected then create one field cat and display it and if anotheer profit center is selected then create another field cat and display it. since at one time onlyy one profit center will be selected and only one display(either grid or list) will be displayed.
hope this will help you.
Thanks
Tanmaya
2010 Feb 25 6:45 AM
Hi,
But the requirement is that we have the profit center has select option so multiple profit centers are selected at one time.
Thanks in advance,
Neela
2010 Feb 26 5:59 AM
Hi all,
Thanks for the valuable suggestions..Resolved the issue.
Regards,
Neela
2010 Feb 25 6:04 AM
All Values need to be in one table and there is only one fieldcatalog. If you need two or more different ALVs on one screen you can not use the FM, you need to go to dialog programming creating two container (or even more).
2010 Feb 25 6:36 AM
Anyways if they are to be displayed one at a time.... You can populate internal table for field catalog based on the condition and then display ....
Use two different names and populate whichever required
Regards,
Lalit MOhan Gupta
2010 Feb 25 6:45 AM
Hi,
Here i am giving small example flow logic.
consider that ur having...
Itab1 with 3 fileds contains information of 5 records.
Itab2 with 2 fileds contains information of 5 records related to itab1 information.
Now u have to display this two itab1 & itab 2 together in ALV.
Now just declare another itab3 with including structure of itab1 & itab2.
data: begin of sturcture itab3 occurs 0,
include structre itab1,
include structre itab2,
end of structure itab3.
Now you do
loop at iab1.
read itab2 with key fields of itab1.
MOVE CORRESPOINDING FIELDS OF ITAB1 TO ITAB3.
MOVE CORRESPOINDING FILEDS OF ITAB2 TO ITAB3.
APPEND ITAB3.
clear itab1, itab2, itab3. "work areas.
endloop.I hope this logic will solve your problem.
Regards,
Shankar.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |