"In ABAP it is very convenient to run a report using a Variant. Basically a report can have several Variants linked to it. If you use a variant then the data entry time is reduced considerably and this also reduces data entry errors. The load on the ABAP processing is also reduced. To create a Variant you may need the necessary authorizations. Most of the times while testing programs you will need to run a report using a variant and hence having the authorization to create a Variant is necessary. To create a Variant go to the main reporting screen, enter the name of the report for which you want to create the variant and select goto Variants option from the menu. The system displays the initial screen for the Variants. For creating a Variant you need to enter all the mandatory fields. Also you need to give a unique name for the Variant. Follow the naming convention rules. You may have to create several Variants for a particular report. Once a Variant is created you ca also schedule to run the report in the background using this Variant. For each variant that you create you need to give a brief description which will help to explain the purpose of the variant and help to distinguish the various Variants that you have created. You may want to protect your Variant by selecting the Protect Variant option. This option enables only the person who has created the Variant to change or delete it. While Running a report directly from the menu you can use the Run with Variant option and then select the desired variant from the dropdown list. Remember that Variants are report dependant. So to create a Variant you need to first create an ABAP report (Executable Program with selection screen). Once you successfully create all the variants for an ABAP report, you will save considerable amount of time which would otherwise have been spent in entering the same data again and again."
"The SAP Control Framework is used for the communication between the controls on the presentation server and the ABAP application server. In ABAP Objects, it is programmed, and contains a set of global classes that you can find in the Class Browser under Basis -> Frontend Services. Between the application server and presentation server these classes encapsulate the communication, which is implemented using Remote Function Calls. There is a global class, which encapsulates all application controls. In the class Browser under Basis -> Frontend Services or Basis -> Components Integration, you can find the SAP Basis Controls."
Thursday, August 14, 2008
SAP ABAP Important Keywords : The following list displays some of the important Keywords in ABAP
No
Keyword
Description
1
AT END OF … ENDAT
Control group end in LOOP
2
AT Fg … ENDAT
Processing specific to record type in LOOP
3
AT FIRST … ENDAT
Execute processing block within a LOOP before processing single lines
4
AT LAST … ENDAT
Execute processing block within a Loop after processing single lines
5
AT NEW … ENDAT
Control group end during LOOP
6
CALL
Call processing (Program, function module, screen)
7
CHECK
Selection condition, leave loops and subroutines
8
CONTINUE
Exit current loop pass within a DO, WHILE, LOOP or SELECT loop
9
DO … ENDDO
Loop processing
10
EXEC SQL … ENDEXEC
Execute a Native SQL Statement
11
EXIT
Leave loops or subroutines
12
FORM … ENDFORM
Definition of a subroutine
13
IF … ELSE … ENDIF
Conditional processing
14
LEAVE
Leave program processing, go to a transaction, list (or) menu
15
LOOP … ENDLOOP
Loop on a table (or) extract dataset
16
MODULE … ENDMODULE
Definition of a dialog module
17
ON CHANGE OF … ENDON
Processing on field change
18
PERFORM … USING
Call a subroutine
19
SELECT … ENDSELECT
Read database tables
20
STOP
End selection
21
WHILE … ENDWHILE
Loop processing
Wednesday, August 13, 2008
SAP ABAP Function Module to Wrap Long Text
The following function module can be used to wrap long text in ABAP.
SAP ABAP Function Module to Wrap Text
RKD_WORD_WRAP
Find the code below to test the above Function Module.
SAP for Retail is an end-to-end set of solutions that supports Demand-Management, Merchandise Management and Planning, Store Operations, and Base Finance and HR Functions.
Radio Frequency Identification Devices are responsible for electronically capturing the data related to Materials. Once the data is captured, it is transmitted via Radio waves to the SAP server. The main use of RFID devices is in Warehouses where the data is physically moved from one location to another. It is very convenient for the warehouse personnel to make use of RFID so that all the material movement is captured automatically and the information is transferred to the SAP server.
SAP Auto-ID Infrastructure is the component in SAP Netweaver that provides gateway to the RFID Data. SAp Auto-ID Infrastructure can be used to integrate the following devices.
RFID readers and printers Bluetooth devices Embedded systems Bar-code devices
SAP has extended its power by introducing ADOBE Forms. Interactive Forms based on Adobe software bridges the paper-to-digital divide by helping organizations create Adobe Portable Document Format (PDF) forms that have the same high-quality appearance and easy accessibility of familiar paper documents. By using information resident in SAP software, the Interactive Forms solution lets IT departments replace inefficient paper-based processes; include customers, partners, and employees in electronic processes; and extend the reach of enterprise applications to a much broader set of users inside and outside the firewall. Because the Interactive Forms solution harnesses the power of PDF and eXtensible Markup Language (XML), it helps IT departments streamline form processes and capture data more accurately. First, IT departments can easily design sophisticated forms that look like the pieces of paper they replace. Then, users can fill out forms with the ubiquitous Adobe Reader® software while online or offline—without buying additional software. And because PDF forms are intuitive and easy to fill out, IT departments eliminate time-consuming, expensive rekeying of data when users submit forms back to SAP systems in the enterprise.
Always specify your conditions in the Where-clause instead of checking
them yourself with check statements. The database system can then use an index
(if possible) and the network load is considerably less.
Always use Pretty Printer and Extended Program Check before releasing the code.
Do not leave unused code in the program. Comment the code thoroughly. Align the comments and the Code. Follow the SAP Standards and SAP Best Practices guidelines. It’s a good practice to take a dump of the code on your local drive.