What is a variant and where do you use it?

If you want to run a report program with same selections at regular intervals (forexample, for monthly sales statistics), you would not want to enter the same values eachtime. So, ABAP/4 offers you a possibility to combine the desired values for all theseselections in one selection set. You can create as many different selection sets … Read more

Smartform to Mail as PDF attachment

Here is the code to send the Smartform to mail as PDF attachment. *&———————————————————————**& Report ZTEST_NREDDY_PDF_MAIL*&*&———————————————————————*REPORT ZTEST_NREDDY_PDF_MAIL. * Internal Table declarationsDATA: I_OTF TYPE ITCOO OCCURS 0 WITH HEADER LINE,I_TLINE TYPE TABLE OF TLINE WITH HEADER LINE,I_RECEIVERS TYPE TABLE OF SOMLRECI1 WITH HEADER LINE,I_RECORD LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,* Objects to send mail.I_OBJPACK LIKE … Read more

Smartform to Mail as PDF attachment

Here is the code to send the Smartform to mail as PDF attachment. *&———————————————————————**& Report ZTEST_NREDDY_PDF_MAIL*&*&———————————————————————*REPORT ZTEST_NREDDY_PDF_MAIL. * Internal Table declarationsDATA: I_OTF TYPE ITCOO OCCURS 0 WITH HEADER LINE,I_TLINE TYPE TABLE OF TLINE WITH HEADER LINE,I_RECEIVERS TYPE TABLE OF SOMLRECI1 WITH HEADER LINE,I_RECORD LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,* Objects to send mail.I_OBJPACK LIKE … Read more

Sample Program to Upload Excel document into internal table

ABAP code for uploading an Excel document into an internal table. See code below for structures. The code is based on uploading a simple Excel spreadsheet or for an actual Excel file click here. There are also a couple of alternatives which use fucntion modules ‘KCD_EXCEL_OLE_TO_INT_CONVERT’and ‘ALSM_EXCEL_TO_INTERNAL_TABLE’ but the method below is by far the … Read more

Sample Program to Upload Excel document into internal table

ABAP code for uploading an Excel document into an internal table. See code below for structures. The code is based on uploading a simple Excel spreadsheet or for an actual Excel file click here. There are also a couple of alternatives which use fucntion modules ‘KCD_EXCEL_OLE_TO_INT_CONVERT’and ‘ALSM_EXCEL_TO_INTERNAL_TABLE’ but the method below is by far the … Read more

What is set parameter and get parameter?

We can pass data to a called program using SPA/GPA parameters. SPA/GPAparameters are field values saved globally in memory. Each parameter is identified by athree-character code: you can define these parameters in the object browser byselecting Other objects on the first screen. The SPA/GPA storage is user-specific andvalid throughout all the user’s sessions.by using the … Read more

What is set parameter and get parameter?

We can pass data to a called program using SPA/GPA parameters. SPA/GPAparameters are field values saved globally in memory. Each parameter is identified by athree-character code: you can define these parameters in the object browser byselecting Other objects on the first screen. The SPA/GPA storage is user-specific andvalid throughout all the user’s sessions.by using the … Read more

What is field symbol?

A field symbol does not physically reserve space for a field, but points to a fieldwhich is not known until runtime of the program. Sometimes you only know which fieldyou want to process, and how you want to process it, at runtime. For this purpose, you can create field symbols in your program. At runtime, … Read more

What is field symbol?

A field symbol does not physically reserve space for a field, but points to a fieldwhich is not known until runtime of the program. Sometimes you only know which fieldyou want to process, and how you want to process it, at runtime. For this purpose, you can create field symbols in your program. At runtime, … Read more

How to use a grid list?

Use Function Module Display_*LIST. In U’r program .Put all the data that U want tooutput in its final format and then pass this internal table to the function moduleTwo types of grid list .DISPLAY_GRID_LIST(Version 4.0b)DISPLAY_BASIC_LIST(Version 4.6b)Calculate the subtotal etc and save it as a variant ,However while printing it will printall the enties of the … Read more