I am doing a report where I need to create a dynamic internal, I am not much familiar with Oops so please advice.
My Requirement is:
In my selection screen I have.. bukrs , mtart and spmon( month & year )
First I need to select and display all materials from mara for a particular material type.
LOOP AT MONTH. SELECT MATNR MTART FROM MARA INTO CORRESPONDING FIELDS OF S_MARA WHERE MTART IN ('FERT','HALB','ROH','HIBE'). S_MARA-MONTH = MONTH-MONT. APPEND S_MARA TO I_MARA. ENDSELECT. ENDLOOP.
If the user enters 01.2010 to 05.2010 in selection-screen.
My o/p header should be:
'Material Number' 'Jan 2010' 'Feb 2010' 'Mar 2010' 'Apr 2010' 'May 2010'
and corresponding Values of each month I need to fetch from different table.
Edited by: Karthik R on May 10, 2010 12:23 PM
Edited by: Karthik R on May 10, 2010 12:25 PM