Scrol

SAP Trainings contact sap.sreeram@gmail.com or 091-9916083157, 001-210-399-8414

Grid LIst, Subroutines, Reports


How to use a grid list?
Use Function Module Display_*LIST. In U’r program .Put all the data that U want to output in its final format and then pass this internal table to the function module

Two 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 print all the enties of the fields

How to pass data from the form to the Subroutine program?
Use structure ITCSY

How can we pass selection and parameter data to a report ?
-     There are three options for passing selection and parameter data to the report.
. using SUBMIT...WITH
. using a report variant
. using a RANGE table

What is field symbol?


What is field symbol?


            A field symbol does not physically reserve space for a field, but points to a field which is not known until runtime of the program. Sometimes you only know which field you 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, you can assign real fields to such field symbols. All operations which you have programmed with the field symbol are then carried out with the assigned field. After successful assignment, there is no difference in ABAP/4 whether you reference the field symbol or the field itself.

What is set parameter and get parameter?


What is set parameter and get parameter?


            We can pass data to a called program using SPA/GPA parameters. SPA/GPA parameters are field values saved globally in memory. Each parameter is identified by a three-character code: you can define these parameters in the object browser by selecting Other objects on the first screen. The SPA/GPA storage is user-specific and valid throughout all the user's sessions.by using the SET PARAMETER or GET PARAMETER statements

These statements let you store and retrieve SPA/GPA values from an ABAP/4 program. If the selection screens for the two transactions do not share the same required fields, use these statements to store screen fields explicitly by name.
Before calling the new transaction from a PAI module, store the caller transaction's fields under one name:

SET PARAMETER ID 'RID' FIELD <FIELD NAME1>.

The system stores the value in <field name1> in the SPA parameter 'RID'. The three-character identifier 'RID' must be defined in the SAP table TPARA. If the SPA parameter 'RID' already contains a value, the SET PARAMETER statement overwrites it (with the contents of <FIELD NAME1>).
In the PBO module for the called transaction, retrieve the fields under the other name:

GET PARAMTER ID 'RID' FIELD <FIELD NAME2>.

What is Internal table?


What is Internal table?

            Internal tables are table objects that only exist for the runtime of the program.  There are several ABAP statements for working with internal tables, for example, append, insert, delete, or find lines.

The number of lines of an internal table is extended dynamically at runtime as required.

You can use internal tables for table calculations on subsets of database tables.  For example, you can read a part of one or more database tables into an internal table.

They also allow you to reorganize their contents to suit the needs of your program.  You can, for example, read particular entries from one or more large customer tables into an internal table, and then use them to create a list. When you run your program, you can access this data directly, instead of having to search for each record in the database.