‎2007 May 16 11:46 AM
Hi,
when i am selecting matnr from selection screen
then list is displayed in o/p
but in header i want"this record for:"Material no"
how can i fetch that material no in header
plz help me
give me some code
thanks
‎2007 May 16 11:53 AM
PARAMETERS: p_matnr TYPE mara-matnr.
u can use the same parameter p_mantr to display in the heading.
for example
write: p_matnr
‎2007 May 16 11:55 AM
Hi,
while creating the title bar TITLE write 'this record for &1'.
SET TITLEBAR 'TITLE' WITH I_MATNR.(here I_MATNR is ur parameter name which indicates material number)
rgds,
bharat.
‎2007 May 16 12:02 PM
‎2007 May 16 12:07 PM
Hi,
write
I_MATNR = ur select option.
set titlebar 'TITLE' with I_MATNR.
double click on TITLE and write there like "this records belongs to: &1"
and select all titles.activate it.and come back.
in the above example what ever the value u have passed to i_matnr will appear there in place of &1.
<b>reward if helpful</b>
rgds,
bharat.
‎2007 May 16 11:56 AM
HI,
Use the same material number which u r using in the selection-screen and display where ever u want in the report, by write statement.
‎2007 May 16 12:11 PM
hi,
selection-screen : begin of block blk1 with frame title text-001.
parameter : p_matnr like mara-matnr.
selection-screen : end of block blk1.
goto text elements ->selection text.there u give p_matnr as 'material no'.
u can set titlebar p_matnr for material number.
reward with points if helpful.
Message was edited by:
Vinutha YV
‎2007 May 16 12:13 PM
HI,
Check the following code:
DATA: BEGIN of ITAUFNR occurs 0,
AUFNR like IT_HISTORY-AUFNR,
END of ITAUFNR.
DATA: wa_aufnr like itaufnr.
v_aufnr = 'Order: '.
concatenate v_aufnr IT_HISTORY-aufnr
into v_aufnr SEPARATED by space.
clear shed.
shed-typ = 'A'.
shed-info = v_aufnr.
APPEND shed TO ithed.
CLEAR shed.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = ithed.
I_LOGO =
I_END_OF_LIST_GRID =
Hope this helps.
Reward if helpful.
Regards,
Sipra