Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Header

Former Member
0 Likes
894

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

7 REPLIES 7
Read only

Former Member
0 Likes
845

PARAMETERS: p_matnr TYPE mara-matnr.

u can use the same parameter p_mantr to display in the heading.

for example

write: p_matnr

Read only

Former Member
0 Likes
845

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.

Read only

0 Likes
845

hi bharat,

where i have to define this &1

plz tell me

Read only

0 Likes
845

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.

Read only

Former Member
0 Likes
845

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.

Read only

Former Member
0 Likes
845

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

Read only

Former Member
0 Likes
845

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