‎2006 Oct 09 7:19 AM
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.
‎2006 Oct 09 7:21 AM
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.
‎2006 Oct 09 7:22 AM
Check the programs with pattren BCALV in SE38 . there are many examples on ALV and also check the transaction DWDM.
check this link :
http://www.sapgenie.com/abap/controls/alvgrid.htm
<b>sapscript..</b>
Check the below links. u got better idea.
http://help.sap.com/saphelp_47x200/helpdata/en/d6/0db74a494511d182b70000e829fbfe/frameset.htm
http://www.sap-img.com/sapscripts.htm
http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
http://www.henrikfrank.dk/abapexamples/SapScript/symbols.htm
http://sapbrain.com/TUTORIALS/TECHNICAL/SAPSCRIPTS_tutorial.html
http://www.sappoint.com/abap/sscript.pdf
http://www.thespot4sap.com/articles/SAPscript_Introduction.asp
‎2006 Oct 09 7:24 AM
hi arup if you give your mail id , i will send you some documents .
Thanks,
‎2006 Oct 09 8:23 AM
‎2006 Oct 09 7:24 AM
Please go through this link: <a href="http://sap-img.com/sapscripts.htm">SAP Scripts</a>.
Kind Regards
Eswar
‎2006 Oct 09 7:27 AM
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.
‎2006 Oct 09 7:30 AM
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
‎2006 Oct 09 8:34 AM
Hello,
Check your mail ID for wonderful documents.
Regs,
Venkat