Application Development 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: 

REUSE_ALV_HIERSEQ_LIST_DISPLAY Issue

Former Member
0 Kudos

Hi Everybody,

I'm facing some problems related to justify key field at item level on ALV REUSE_ALV_HIERSEQ_LIST_DISPLAY

At Item level, my customer requirement is: align first key field position similar with third field position at header level.

Please see the attached file and advise . Thanks you very much !!1

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Tran,

Please elaborate as its not clear what you want to achieve.

Regards,

Sheetal.

9 REPLIES 9

Former Member
0 Kudos

Hi Tran,

Please elaborate as its not clear what you want to achieve.

Regards,

Sheetal.

0 Kudos

Hi Sheetal,

Thank you for your response,

Let me explain more detail

My customer requirement is: use REUSE_ALV_HIERSEQ_LIST_DISPLAY to show report (2 hierarchy: Header, Detail).

Layout is below:

Header:   Status          Sale document No.        Sold-to-party

Item:                            Material No.           Quantity          Unit

                Completed    0000012345                    IBM-USA

                                   PC-0000001            10                   PC

                                   PC-0000002            10                   PC

                                   PC-0000003            10                   PC

(Note that Material No. is key field)

I tried to designed Sales Doc No field ( Header information) in alignment with Material No field (Detail information) to display in ALV report but cannot, the system always show as below:

Header:   Status          Sale document No.        Sold-to-party

Item:        Material No.           Quantity          Unit

                Completed    0000012345                    IBM-USA

                PC-0000001            10                   PC

                PC-0000002            10                   PC

                PC-0000003            10                   PC

Best regards,

DucTV.

0 Kudos

Why dont you create an empty column in the item level ebfore material number ?

0 Kudos

Dear Nabheet,

I have inserted an empty column in the item level before material number but cannot solve requirement. The Reason is:

If empty column is not set as key field, material number overwrite this column.

If Set key field for empty column, column will appear color in this field. While the customer's requirements are not colored before material No.


Best regard,

DucTV

thanga_prakash
Active Contributor
0 Kudos

Hello Tran,

You can refer to the below demo programs provided by SAP in the system.

BALVBT02

BALVHD01

BALVHD01_GROUP

BALVHT01

BCALV_TEST_FULLSCREEN_FILTCURR

BCALV_TEST_HIERSEQ_LIST

BCALV_TEST_HIERSEQ_LIST_EVENTS

You can also try the below option, save your desired layout and try to use the saved layout in the function module call.

Regards,

Thanga

former_member187748
Active Contributor
0 Kudos

Hi Tran,

either you search in this forum for your problem , you will get a lots of link,

or please see this wiki help for your problem.

ALV Hierarchical Table Using FM - REUSE_ALV_HIERSEQ_LIST_DISPLAY - Code Gallery - SCN Wiki

0 Kudos

Hi Sanjieev,

Thank you for your response,

I have searched but still found out solution.

Best regards,

DucTV.

0 Kudos

Color can be an issue

Former Member
0 Kudos

Hi,

You can do as suggested by nabheet madan to add empty column at the item level before material number .

Cheers,

Pravin