Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

experts help needed badly plz do smthng alv issue

hi all experts

this wa smy query

i have createed an alv using slis method

in the output there must come a header

in this header i ill have to show som details

like on the left side of the header i want to show the details of the user and on the right side i want to show he data of vendor .

i am able to get the data in the left side but i am not able to show the data of vendor on the right side

the data of vendor is by default coming on left side only just below the details of user but i want to show those details on the right side of the header .

plz tell me how to do it .

i got this rply n i used in our prog also

<b>but in this case

if ur data in the left side of header is missing the data of right side shifts towards

left side .</b>

for eg : if data is there

left side of header right side of header

if data is missing

left side of right side of header

plz do smthng

the code i used is

&----


*& Form html_top_of_page

&----


FORM html_top_of_page USING document TYPE REF TO cl_dd_document.

DATA: text TYPE sdydo_text_element.

CALL METHOD document->add_gap

EXPORTING

width = 100.

text = 'Company Code Data'.

CALL METHOD document->add_text

EXPORTING

text = text

sap_style = 'HEADING'.

CALL METHOD document->new_line.

CALL METHOD document->new_line.

CALL METHOD document->new_line.

text = 'User Name : '.

CALL METHOD document->add_text

EXPORTING

text = text

sap_emphasis = 'Strong'.

CALL METHOD document->add_gap

EXPORTING

width = 6.

text = sy-uname.

CALL METHOD document->add_text

EXPORTING

text = text

sap_style = 'Key'.

CALL METHOD document->add_gap

EXPORTING

width = 50.

text = 'Date : '.

CALL METHOD document->add_text

EXPORTING

text = text

sap_emphasis = 'Strong'.

CALL METHOD document->add_gap

EXPORTING

width = 6.

text = sy-datum.

CALL METHOD document->add_text

EXPORTING

text = text

sap_style = 'Key'.

CALL METHOD document->add_gap

EXPORTING

width = 50.

text = 'Time : '.

CALL METHOD document->add_text

EXPORTING

text = text

sap_emphasis = 'Strong'.

CALL METHOD document->add_gap

EXPORTING

width = 6.

text = sy-uzeit.

CALL METHOD document->add_text

EXPORTING

text = text

sap_style = 'Key'.

CALL METHOD document->new_line.

CALL METHOD document->new_line.

ENDFORM. "HTML_TOP_OF_PAGE

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question