Archive for May, 2013

ABAP Auto completion in ABAP editor

Auto completion option is there in ABAP like VB. It can be done as follows: 1. Go to SE38 and check the icon at the right down corner of the editor screen 2. Click on the button. Now one pop up will come . Select Code Completion and tick the check box ...

. Read More →

ABAP Underline field in module pool

In module pool programming , sometimes we will take the fields directly from the table . In that case field along with the label will be connected  by a white underline check the figure. Sometimes it  is not looking good in the screen with underlines. We can remove the underline ...

. Read More →

ABAP Calling subscreen in main screen

In module pool we can create subscreen and can call it from the main screen. For that first we have to create one subscreen and then we have call the screen in main screen. It can be done as follows: We will take the scenario of showing some fields in IT9001  depending on ...

. Read More →

ABAP Displaying graphics through smart form

Images or graphics can be show through smart forms. We  can done it as follows: 1. Go to tcode SE78 2. Click on the BMAP and click on the Import icon as shown in the picture. 3. Upload the bmp file and enter name and description for that file. 4. Select color bit map ...

. Read More →

ABAP Smart form implementation from program

We can write one sample program for smart form that will show a simple text . Please click  here  for creating smart form for simple text. After creating the smart form follow the below steps for creating sample program for the smart form. 1. Go to SE38 and create the report. 2. Call the ...

. Read More →

ABAP Importance of SSF_FUNCTION_MODULE_NAME

A function module is generated whenever a Smart Form is activated. This Smart Form could be called from the driver program by calling the function module generated in the system directly. But this is not an efficient way of calling Smart Form for the following reason: Whenever a Smart Form is generated, ...

. Read More →

ABAP Smart form for address displaying

Displaying of address through Smart form can be done as follows: 1. Go to tcode smartforms 2. Enter your smart form name and press create button. 3. Enter the short description. 4. To create a text go to Pages and windows-> Main Window and Right click on Main Window and select Create->Address 5. Enter the short description and ...

. Read More →

ABAP Simple Smart form Application

ABAP Smart form for displaying a simple text can be done as follows: 1. Go to tcode smartforms 2. Enter your smart form name and press create button. 3. You will get the below screen and enter the short description.           4. To create a text go to Pages and windows-> Main Window and Right click on ...

. Read More →

ABAP Partially active objects

Sometimes we may need to change the data element type or domain characteristics which is used one dictionary table, but activating the  data element or domain after changing will results partial activation of objects with some errors. This can be rectify by the following way: 1. Go to transaction SE14 2. Select ...

. Read More →

ABAP – Program for getting Holidays information

In ABAP we can get the complete information about the holidays for an employee. That can be done as follows:   REPORT ZTEST. INFOTYPES : 0001. TABLES: PERNR. data: l_hcalno type HIDENT, count TYPE i  . Data: it_holidays TYPE STANDARD TABLE OF ISCAL_DAY. START-OF-SELECTION. GET PERNR. rp_provide_from_last p0001 space pn-begda pn-endda. IF sy-subrc = 0. SELECT SINGLE mofid FROM t001p INTO l_hcalno WHERE werks = p0001-werks AND btrtl = p0001-btrtl. ENDIF. REFRESH: it_holidays. CALL FUNCTION 'HOLIDAY_GET' EXPORTING holiday_calendar           = l_hcalno date_from                  = pn-begda date_to                    = pn-endda TABLES holidays                   = it_holidays EXCEPTIONS factory_calendar_not_found = 1 holiday_calendar_not_found = 2 date_has_invalid_format    = 3 date_inconsistency         = 4 OTHERS                     = 5. IF sy-subrc <> 0. * Implement suitable error handling here ENDIF. count = lines( it_holidays ). WRITE: 'Number of holidays', count.   Output will displays the number of holidays for the employee in his working period.  

. Read More →