07-12-2010 2:28 PM
Hi Experts ,
my requirement is In my reuse_alv_grid_display , for the top of page i use HTML_TOP_OF_PAGE.
In that i use method
call method top->add_text
Exporting
text = l_text.
my string length is more than 255 so i put this in do loop . but it prints first 255 char then leave a space , how can i remove that space.
Ex : customer : 122 & M aterial : m1 . like in material it gives a gap.
07-12-2010 2:50 PM
07-12-2010 3:11 PM
l_text = ' my name is Krishna and i am one of the member of SDN'.
do 3 times .
call method top_add_text
exporting
text = l_text.
end do.
In first time L_text contains : My name is Krishna an
and in second time l_text : d i am one of the memb
third time l_text contains : er of SDN.
Final out put like This : My name is Krishna an d i a, one of the memb er of sdn.
How to reduce that spaces .
07-12-2010 3:44 PM
In first time L_text contains : My name is Krishna an
and in second time l_text : d i am one of the memb
third time l_text contains : er of SDN.
How do you split L_TEXT into 3 lines ?
Suhas
07-13-2010 5:42 AM
I USE OFF SET TO DIVIDED WHOLE STRING INTO 3 LINES , HERE MY PROBLEM IS AFTER PRINTING FIRST LINE THROUGH ADD_TEXT METHOD . IN THE SECOND TIME IT GIVES A BLANK SPACE WHEN PASSING TO ADD_TEXT METHOD I DON'T WANT THAT BLANK SPACE.
07-12-2010 2:58 PM
Hi,
Please use this code
data: lv_text(255) type c,
lv_date(255) TYPE c,
lv_date_h(255) TYPE c,
lv_date_l(255) TYPE c,
lv_asm(255) TYPE c.
*Header title of the report
*If current status is checked
call method top->add_text
EXPORTING
text = 'Plant Wise Sale'
sap_style = 'HEADING'.
if s_werks-low is not INITIAL and s_werks-high is NOT INITIAL.
call method top->new_line.
call method top->add_text
EXPORTING
text = 'Plant Code'
fix_lines = 'X'.
call method top->add_text
EXPORTING
text = ':'
fix_lines = 'X'.
CONCATENATE s_werks-low 'To' s_werks-high INTO lv_asm SEPARATED BY space.
call method top->add_text
EXPORTING
text = lv_asm
fix_lines = 'X'.
ELSEIF s_werks-low is not INITIAL and s_werks-high is INITIAL.
call method top->new_line.
call method top->add_text
EXPORTING
text = 'Plant Code'
fix_lines = 'X'.
call method top->add_text
EXPORTING
text = ':'
fix_lines = 'X'.
lv_asm = s_werks-low .
call method top->add_text
EXPORTING
text = lv_asm
fix_lines = 'X'.
endif.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = Sy-repid
I_CALLBACK_HTML_TOP_OF_PAGE = 'HTML_TOP_OF_PAGE'
IT_EVENTS = I_EVENTS
IS_LAYOUT = w_layout
IT_FIELDCAT = i_field
IT_SORT = i_sort
I_DEFAULT = 'X'
TABLES
T_OUTTAB = it_final
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
Regards,
Manesh.R
07-21-2010 9:25 AM
02-14-2011 11:54 AM
Hello all gurus!!!
Greetings!!!
The thing is that I am also using HTML_TOP_OF_PAGE...and I got the result in three diffrent line which is expected but now I want to put this line centrally aligned not left aligned...can anybody please tell me which method or anything related to this I can use....
Thanks in advance....
Regards,
Mahesh