Showing posts with label Re Useable SAP ABAP Code. Show all posts
Showing posts with label Re Useable SAP ABAP Code. Show all posts

Thursday, December 20, 2007

Get the next available number in Number Range Object

Want to know the next number available for a specific number range object. This program can help you on this. This SAP ABAP Report will display the next available number for the enetered Range Object.

SAP ABAP Macro to validate Date

Two macros have been create for validating the date input, these MAcro are very useful at the time of BDC or anywhere where we want to validate input data for a valid date. A Sampale ABAP program has also been created yo Show, how to use these Macros.

Adding pushbuttons on the application toolbar of report selection screen

In the GUI status of the selection screen set by the system, the application toolbar contains five inactive pushbuttons, to which the function codes FC01 to FC05 are assigned. To enable use of the pushbuttons, the statement TABLES must be used to declare an interface work area of the structure SSCRFIELDS from the ABAP Dictionary. If a text is assigned to the component functxt_0n of the interface area sscrfields before the selection screen is called, this text is displayed on the relevant pushbutton. Otherwise, the pushbutton does not contain any text. When the user chooses a pushbutton in the application toolbar, the runtime environment triggers the event AT SELECTION-SCREEN and the corresponding function code is transferred to the component comm of the interface work area sscrfields. After the event block after AT SELECTION-SCREEN is processed, the system returns to the display of the selection screen.

Display your report output lines inside a Title Box

This peice of code is a ready made SAP ABAP program to draw a Title Box for your report Output. The Box Tite, Width Height and position all can be controled using Subroutine Parameters. Not only this An addition perform has alson been provided to display your report output with the this title box.

Using Subscreens on Report Selection Screens

This report shows an example of how to have a tabbed selection screen as part of your report selection screen. This is done using subscreens, and is only available in the 4.X series (I have only tested it on 4.6 systems). This example is the start of a BDC program, and separates the different selection criteria onto different pages.

Save your ABAP report list output in your desktop in HTML format

Demonstrate how o save the ABAP report list output into your desktop as in HTML format.

Listbox on Selection Screen

This small SAP ABAP code demonstrates how we can create list box on the selection screen. Press F8 once you have selected the value from the list box. The Output report will display the selected value.

Get the Report selection Criteria

This example shows how to get the info from other program of the select options and parameters that a Report has as its selection screen parameters/select-options. This code can also print the values of the selection screen parameters/Select-options.

Blog Archive