Free SAP Training & Tutorial A Free SAP Functional And Technical Tutorial And Training For ABAP, SAP QUERY, ALV, SMARTFORMS, SD, PP, MM, QM, FICO
 

Archive for the "ABAP" Category


Sort by:

Function Modules In SAP

FUNCTION MODULES:  SAP function modules are procedures with interfaces that are defined in Function groups. R/3 system consists of a number of predefined function modules , besides we can create our own function modules  to reuse  any specific functionality  in our programs. We can define function modules from simple calculations to complex reports in SAP.
Function [...]

Convert Number To words Using ABAP

Today I want to share some ABAP code samples that you can use to convert numbers or amount into words using SPELL_AMOUNT function module.
Here’s the ABAP Sample code:
data:
lw_spell LIKE spell,
saywords(150),
lv_text TYPE ltext,
p_amt TYPE eban-preis,
p_amt2(15),
p_waers type eban-waers.
START-OF-SELECTION.
p_amt = ‘123450′.
p_waers = ‘USD’.
SELECT SINGLE ktext INTO lv_text
FROM tcurt
WHERE spras = sy-langu
AND waers = p_waers.
TRANSLATE lv_text to UPPER CASE.
CALL FUNCTION ‘SPELL_AMOUNT’
EXPORTING
amount   = p_amt
currency = p_waers
filler   = ‘ ’
language = sy-langu
IMPORTING
in_words = lw_spell.
DATA: lv_cent TYPE spell.
lw_spell-decimal = lw_spell-decimal / 10.
IF lw_spell-decimal IS NOT INITIAL.
CALL FUNCTION ‘SPELL_AMOUNT’
EXPORTING
amount   = lw_spell-decimal
*        currency = lw_vbak-waerk
filler   = ‘ ’
language = sy-langu
IMPORTING
in_words = lv_cent.
ENDIF.
IF NOT lv_cent-word IS [...]

How To Open SAP Transaction Using ABAP Function

In today’s tutorial I want to teach you how to open new SAP transaction using ABAP Function called “CC_CALL_TRANSACTION_NEW_TASK”.
Program Description:
We will be creating a start up program that will call this function and open a new transaction for VL03N, and it will skip the first screen while supplying the delivery order number and display [...]

Defining Print Parameters In SAP

SAP is using certain print parameters for its print outs. For example to print out Billing, Sales Document, there are parameters to maintain such as the program’s name, the report’s name (SmartForms or SAPscript), The output message type, etc.
For example in VA03, SAP is maintaining several output types to print each transaction, e.g. Billing, Sales, [...]

How To Make A Mandatory Fields Using ABAP

When you create a field in ABAP whether it’s using SELECT-OPTIONS or PARAMETERS and want to make the field to be mandatory, then you can use the keywords WITH OBLIGATORY.
Here’s the ABAP sample code to implement this keyword.
Z_REPORT_MANDATORY_FIELD.
tables:
kna1.
data:
t_kna1 type TABLE OF kna1 WITH HEADER LINE.
SELECT-OPTIONS:
p_kunnr for kna1-kunnr OBLIGATORY.
START-OF-SELECTION.
select * into table t_kna1 from kna1 where
kunnr in p_kunnr.
LOOP AT t_kna1.
WRITE :/ t_kna1-name1, t_kna1-land1.
ENDLOOP.
When you run the [...]

ABAP Keywords

Here’s a list of an important keywords used in ABAP programming, use this as your reference. You can also learn how to set your ABAP editor for a non keywords.

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 [...]

How To Create HOTSPOT In ABAP

In this tutorial you will learn how to create HOTSPOT using ABAP, this HOTSPOT will allow you to click on the text and then pass the value to be used as a parameter for your query.
Here’s the ABAP Sample code to create the HOTSPOT. In this example, we will retrieve the customer name and address.
ZREPORT_HOTSPOT.
*&———————————————————————*
*& [...]

How To Check ABAP Program Version

Today I want to teach you how to create and check your ABAP version, this utility is quite useful to keep track on your program development version.
Using this ABAP version management, you can also go back to previous version, by simply activating it.
Here are the steps to create ABAP version.
1. Open your ABAP program in [...]

How To Record Transaction or Create BDC Using SHDB

Today I want to teach you how to create a BDC program using SHDB, this recording tool will be useful for you if you want to create an upload program from a flat file into SAP tables.
In this tutorial, I want to record a transaction from QS21, it’s transaction to create MIC (Master inspection Characteristic) [...]

How To Bookmark A Website Address In SAP R/3

In this tutorial, You will learn how to bookmark your favorite website address (URL) in you SAP R/3.
1. First login into your SAP R/3.
2. Right Click “Favorites” folder and select “Add Other Objects”.

3. Select “Web address of file”.

4. Now just type in the Text for the description and type in the URL in the Web [...]

 
 
Popular Tutorials
  • (none)
  •  
    Categories
    ABAP   Basis & Configuration  
    ALV SAP BW (Business Warehouse)
    BAPI   SAP Interview Questions
    SAP Tables   SAP Overview
    Transaction Codes FI SAP Query
      MM SAP Script  
      PP SAP Tutorial FI Module
      QM   MM Module
      SD   PM Module
    SAP Functional MM   PP Module
      SD   QM Module
    White Papers     SD Module
    Uncategorized   SmartForms  
      User-Exits  
     
     
     

     

    Home | About | Contribute | Privacy

    Copyright 2010 freesaptutorial.com.

    Free SAP Tutorial is not associated with SAP AG in Germany or in any other country.

    SAP is a registered trade mark of SAP AG.