‎2006 Dec 05 3:46 PM
dear friends,
what is the difference between
type & like
simple report & alv report
Than Q.
‎2006 Dec 05 3:52 PM
Hi,
like is used when you want to refer table fields
data v_matnr like mara-matnr
Type is used to define variable with system defined data types
data v_matnr(10) type c.
in normal report all the horizontal ,vertical ,totals shoulld be explicitly
defines whereas in alv function modules can be used for
above purpose
Regards
Amole
‎2006 Dec 05 3:48 PM
Hi,
2) Simple report is created using the WRITE statements...Alv report is created using the FMs like REUSE_ALV_LIST_DISPLAY..
Thanks,
Naren
‎2006 Dec 05 3:48 PM
‎2006 Dec 05 3:50 PM
<b>TYPE</b> - It will refer to DDIC Objects.
<b>LIKE</b> - It will refer to Local Data declaration.
<b>Simple Report</b> - YOu need to code to get all features like Sorting,Filtering, SUM, download etc.
<b>ALV</b>- It will provide all the features like Sorting,Filtering, SUM, download etc without any code
Note: Reward all useful answers.
Raja T
Message was edited by:
Raja T
‎2006 Dec 05 3:51 PM
Hi Annapurna,
Pls refer this link...
<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb2ff3358411d1829f0000e829fbfe/frameset.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb2ff3358411d1829f0000e829fbfe/frameset.htm</a>
Thanks & Regards,
Siri.
‎2006 Dec 05 3:52 PM
Hi,
like is used when you want to refer table fields
data v_matnr like mara-matnr
Type is used to define variable with system defined data types
data v_matnr(10) type c.
in normal report all the horizontal ,vertical ,totals shoulld be explicitly
defines whereas in alv function modules can be used for
above purpose
Regards
Amole
‎2006 Dec 06 6:38 AM
TYPE ALWAYS REFER TO THE VARIABLE TYPES LIKE 'I', 'C', 'N' ETC.
LIKE REFER TO THE DECLARED VARIABLES.
EX:
DATA: VAR1 TYPE I VALUE 200.
DATA: VAR2 LIKE VAR1.
HERE VAR1 IS THE TYPA OF INTEGER WITH DEFAULT VALUE 200.
IN THE SECOND STATEMENT VAR2 IS DECLARED USING VAR1.
NOW VAR2 IS ALSO TYPE INTEGER BUT NO VALUE.
SIMPLE REPORT IS NOTHING BUT GETTING THE DATA FROM THE DATABASE AND DISPLAY IT IN FORMATED/UNFORMATED WAY.
REDIRECTING THE SAP DATA INTO GRID CONTROLS IS 'ALV REPORTS'.
THESE ARE USER FRIENDLY WITH RICH LOOK.
THANX.
‎2006 Dec 06 7:35 AM
Hi,
could u refer the following link
http://help.sap.com/saphelp_webas610/helpdata/en/fc/eb35de358411d1829f0000e829fbfe/content.htm
Hope it will be helpful.