‎2006 Oct 13 6:51 AM
I have created page header like this:
but not displaying material as header in my out put
please correct if anything wrong.
IF NOT s_matnr IS INITIAL.
CLEAR: l_line,S_dup.
l_line-typ = 'S'.
l_line-key = 'Material'.
s_dup+4(22) = s_matnr-low.
IF NOT s_matnr-high IS INITIAL.
s_dup+21(23) = 'To'.
ENDIF.
s_dup+24(70) = s_matnr-high.
WRITE : s_dup TO l_line-info.
APPEND l_line-info TO lt_top_of_page.
ENDIF.
‎2006 Oct 13 6:58 AM
‎2006 Oct 31 6:20 AM
try with this
IF NOT s_matnr IS INITIAL.
CLEAR: l_line,S_dup.
l_line-typ = 'S'.
l_line-key = 'Material'.
s_dup+4(22) = s_matnr-low.
IF NOT s_matnr-high IS INITIAL.
s_dup+27(23) = 'To'.
ENDIF.
s_dup+51(70) = s_matnr-high.
WRITE : s_dup TO l_line-info.
APPEND l_line-info TO lt_top_of_page.
ENDIF.
‎2006 Oct 31 7:09 AM
Hi Sapien ,
IF NOT s_matnr-low IS INITIAL.
CLEAR: l_line,S_dup.
l_line-typ = 'S'.
l_line-key = 'Material'.
s_dup+4(22) = s_matnr-low.
Endif.
IF NOT s_matnr-high IS INITIAL.
s_dup+27(2) = 'To'.
s_dup+51(70) = s_matnr-high.
Endif.
Append s_dup.
l_line[ ] = s_dup [ ].
lt_top_of_page[ ] = l_line[ ].
see if l_line and s_dup and lt_top_of_page are having the same structure .
Then this will do.
just in debugging check how the data is moving from s_dup to tp-of -page .
Important.
remember that the structures should be the same when u r moving the contents
Regards,
VIjay.
‎2006 Oct 31 7:18 AM
Hi
As highlighted by Rajesh, try using IF NOT <b>S_MATNR[]</b> IS INITIAL.
Kind Regards
Eswar
‎2006 Oct 31 7:47 AM
hi
good
did you debug this code , check some postion as i pointing out here.
value of
s_dup+24(70) = s_matnr-high.
append statement
APPEND l_line-info TO lt_top_of_page.
if you r getting the s_dup value than you ll get the header at your out put.
thanks
mrutyun^