Skip to Content
author's profile photo Former Member
Former Member

ALV grid header (using)OOPs

Hi Experts,

I am using class CL_DD_DOCUMENT in my ALV Grid(using OOPS) to write heading lines

top of the page.

I need to get my output as below:

Vendor No : 1234567 Vendor Name : XYZ Pharma Inc

Date :09/12/2008 Date Desc : Delivery Dt

Profile No : BMC12 Prof Name : BMC professional

I am using CL_DD_DOCUMENT->ADD_GAP to create a GAP between Profile No & Profile Name.

Now, the problem is that when Profile no has more or less chars, the profile name is pushed left or right.

as below :

Vendor No : 1234567 Vendor Name : XYZ Pharma Inc

Date :09/12/2008 Date Desc : Delivery Dt

Profile No : AB Prof Name : BMC professional

Can someone help me with this?

Thanks

Dan

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Mar 15, 2009 at 08:30 PM

    Hi Dan,

    It migth be hard to justify all these fields whenever some data width changes. Fonrtunatelly your data are perfect to be displayed in table. Refer [this coding example|http://help.sap.com/saphelp_nw70/helpdata/EN/10/246879055711d4a7410000e83dd863/frameset.htm] how to easily create such one with cl_dd_document . This way you can get rid of all justyfing issues.

    Regards

    Marcin

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 17, 2009 at 04:40 PM

    Finally i solved it.

    i need to use table format with no borders to get it done.

    i need to remove '%' from 50% as pass it as 50 in the width.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.