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

Internal table declaration & ALV

Former Member
0 Likes
686

dear friends,

what is the difference between

type & like

simple report & alv report

Than Q.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
656

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

7 REPLIES 7
Read only

Former Member
0 Likes
656

Hi,

2) Simple report is created using the WRITE statements...Alv report is created using the FMs like REUSE_ALV_LIST_DISPLAY..

Thanks,

Naren

Read only

Former Member
0 Likes
656

hi,

Check

1. ;�

Regards,

Santosh

Read only

raja_thangamani
Active Contributor
0 Likes
656

<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

Read only

Former Member
0 Likes
656

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.

Read only

Former Member
0 Likes
657

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

Read only

Former Member
0 Likes
656

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.

Read only

Former Member
0 Likes
656