Posts

Showing posts from March, 2011

SAP ABAP - Sample Report Program Used To Find BAPI's.

Image
This is a sample report program for searching BAPI's. This Report Program will search for all the remote or local BAPI , based on the description text . Say for example, If we require customer related or sales related BAPI'S, then we need to put sales or customer in the description fieldand it will display the list of the related BAPI's. SAMPLE PROGRAM: REPORT ztest_find_bapi. TYPES : BEGIN OF ty_tfdir, funcname TYPE rs38l_fnam, END OF ty_tfdir. TYPES : BEGIN OF ty_tftit, funcname TYPE rs38l_fnam, stext TYPE rs38l_ftxt, END OF ty_tftit. DATA : it_tfdir TYPE STANDARD TABLE OF ty_tfdir, wa_tfdir TYPE ty_tfdir, it_tftit TYPE STANDARD TABLE OF ty_tftit, wa_tftit TYPE ty_tftit. DATA : ws_bapi TYPE char4, chk TYPE char1, field1(30). DATA : ws_lines TYPE i. SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME. PARAMETERS: appl_typ TYPE rs38l_appl, fmode TYPE fmode DEFAULT 'R', desc_txt TYPE char30 OBLIGATORY. SELECTION-SCREEN END OF BLOCK b1. S

SAP ABAP - SSCRFIELDS - The Screen Fields Table.

Image
The SSCRFIELDS table is used by the selection screen to store data that can be passed to the program for further processing. Data that can be passed to the program:   FUNCTION CODES : Which can trigger processing in the program.   TEXT : Which will appear on the screen. - The SSCRFIELDS-UCOMM field holds the user defined function code associated with a pushbutton. When the user presses the button present on the selection screen, the program receives a function code which can be used to initialize some kind of processing. - The SSCRFIELDS-FROM _TEXT / TO_TEXT field holds the text associated with the FROM & TO range. - The SSCRFIELDS-FUNCTXT_01 - 05   fields hold the text associated with the pushbuttons on the application toolbar. ALSO READ: - ELEMENTARY DATA TYPES - Initial Values, Syntax & Properties. - FIELD SYMBOLS - Introduction, Syntax & Examples. - PARAMETERS - Introduction, Syntax & Examples. - SELECT-OPTIONS - Intr

Selection-Screen (SAP ABAP Keyword) Syntax & Examples

Image
INTRODUCTION: - PARAMETERS statement/keyword is used for single field entries in the selection screen. - SELECT-OPTIONS statement/keyword is used for complex selections. - SELECTION-SCREEN statement/keyword is used for formatting the selection screen. - Programmer gets a great deal of control on how to present the User Interface / Selection Screen to the user. Using the options available with the SELECTION-SCREEN statement, the look of the screen can be formatted as per the requirement. - SELECTION-SCREEN is used to form blocks by combining several PARAMETERS , SELECT-OPTIONS , comments etc. on one line. - The standard selection screen of executable programs is predefined and has screen number 1000 . - A SELECTION-SCREEN block can contain keywords like PARAMETERS , SELECT-OPTIONS , COMMENT, PUSH-BUTTON etc. SYNTAX: 1) SELECTION-SCREEN BEGIN OF LINE. ........... ........... SELECTION-SCREEN END OF LINE. This option is used to have several elements in