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

ALV Programming and Sapscript...

Former Member
0 Likes
1,120

Hi,

Till date i have only worked in standard reports, now i have to work on ALV report and Sapscript, so if any one have any basic tutorial on ALV and Sapscript, pls email me.

Thanks in advance.

8 REPLIES 8
Read only

Former Member
0 Likes
1,078

Hi arup,

1. This is the most simple form of alv.

2. Minimum, this much coding is required for a normal alv.

The two main FMs for any alv programming are.

<b>REUSE_ALV_LIST_DISPLAY

REUSE_ALV_FIELDCATALOG_MERGE</b>

3. just copy paste to get a taste of it.

4.

report abc.

*----


TYPE-POOLS : slis.

DATA : alvfc TYPE slis_t_fieldcat_alv.

DATA : alvfcwa TYPE slis_fieldcat_alv.

*----


data : begin of itab occurs 0.

include structure usr02.

data : end of itab.

*----


START-OF-SELECTION.

select * from usr02

into table itab.

CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

EXPORTING

i_program_name = sy-repid

i_internal_tabname = 'ITAB'

i_inclname = sy-repid

CHANGING

ct_fieldcat = alvfc

EXCEPTIONS

inconsistent_interface = 1

program_error = 2

OTHERS = 3.

*----


IMPORTANT

LOOP AT ALVFC INTO ALVFCWA.

IF ALVFCWA-FIELDNAME = 'USTYP'.

ALVFCWA-NO_CONVEXT = 'X'.

MODIFY ALVFC FROM ALVFCWA.

ENDIF.

ENDLOOP.

*----


Display

CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'

EXPORTING

it_fieldcat = alvfc

TABLES

t_outtab = itab

EXCEPTIONS

program_error = 1

OTHERS = 2.

regards,

amit m.

Read only

Former Member
0 Likes
1,078

hi arup if you give your mail id , i will send you some documents .

Thanks,

Read only

0 Likes
1,078

my email is arup7@yahoo.com

Read only

Former Member
0 Likes
1,078

Please go through this link: <a href="http://sap-img.com/sapscripts.htm">SAP Scripts</a>.

Kind Regards

Eswar

Read only

Former Member
0 Likes
1,078

Hi,

You can check various sites for the documentation.

I guess you won't find much documentation on ALV. You can refer to this site for learning ALV.

http://www.sapdevelopment.co.uk/reporting/alvhome.htm

Read only

Former Member
0 Likes
1,078

Hi,

Go through some of the links below:

ALV:

/people/ravikumar.allampallam/blog/2005/06/01/alv-reporting-using-controls--part-i

/people/ravikumar.allampallam/blog/2005/06/01/alv-reporting-using-controls-control-layouts--part-ii

http://www.erpgenie.com/abap/code/abap28.htm

http://help.sap.com/saphelp_nw04/helpdata/en/8d/e994374c9cd355e10000009b38f8cf/content.htm

SAPscript:

http://www.thespot4sap.com/articles/SAPscript_Introduction.asp

http://www.sap-basis-abap.com/sapabap01.htm

http://searchsap.techtarget.com/topics/0,295493,sid21_tax299331,00.html

Rgds,

HR

Read only

Former Member
0 Likes
1,078

Hello,

Check your mail ID for wonderful documents.

Regs,

Venkat