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

Display hardcoded table before printing main table in ALV

Former Member
0 Likes
433

Hi SAP Gurus,

My requirement is as follows,

I have to display two tables in the output for an alv ,

one table contains hard-coded data , and other contains normal data.

my output would be like this :

Line: -


                            Standard specification                           

Line: -


 C%         SI%      Mn%        DOC 

Line: -


 2.0          1.0        0.25       12345

Line: -


normal output

Please Help,

Thanks & Regards,

Pavan.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
399

Hi,

Try using the ALV hierarchical function module.

For the header table, use the contents as HARD coded table values.

For item table, use the contents as NORMAL table values.

Just for key combination, just include some key fields in HEADER and ITEM tables, but in the fieldcatalog select the NO DISPLAY option for these fields.

By doing this may be you can try from your end, but it is not completely that much feasible to display as your wish in ALV.

Still it does not fulfill your requirement, you can go for CLASSICAL one.

Regards,

Santhosh.

Hi SAP Gurus,

My requirement is as follows,

I have to display two tables in the output for an alv ,

one table contains hard-coded data , and other contains normal data.

my output would be like this :

Line: -


                            Standard specification                           

Line: -


 C%         SI%      Mn%        DOC 

Line: -


 2.0          1.0        0.25       12345

Line: -


normal output

Please Help,

Thanks & Regards,

Pavan.

1 REPLY 1
Read only

Former Member
0 Likes
400

Hi,

Try using the ALV hierarchical function module.

For the header table, use the contents as HARD coded table values.

For item table, use the contents as NORMAL table values.

Just for key combination, just include some key fields in HEADER and ITEM tables, but in the fieldcatalog select the NO DISPLAY option for these fields.

By doing this may be you can try from your end, but it is not completely that much feasible to display as your wish in ALV.

Still it does not fulfill your requirement, you can go for CLASSICAL one.

Regards,

Santhosh.