Download Sap Abap Books PDF

TitleSap Abap Books
TagsControl Flow Oracle Corporation Databases Sap Se Enterprise Resource Planning
File Size3.7 MB
Total Pages678
Document Text Contents
Page 1

SAP-ABAP 1


Rohini kumar
















INDEX
1 Introduction to ERP 5

2 Introduction to SAP R/3 6

3 SAP R/3 Services 8

4 Introduction to ABAP/4 & ABAP Work Bench Tools 10

5 ABAP Data types 12

6 ABAP Programming Structures 14

7 Steps to Write & Create SAP Program 16

8 Tips for Writing a Program in Real Time 19

9 Internal Table & difference between database table & internal table 20

10 Reading Data from Body to Work Area (or) Header Line

(1. LOOP….ENDLOOP, 2. READ)

22

11 Selection Screen (1. Select-options, 2. Ranges, 3. Parameters ) 26

12 Other SELECT-OPTIONS keywords (1. Obligatory, 2. No Intervals,

3. No-Extension, 4. No-Display)

28

Page 339

SAP-ABAP 339


Rohini kumar

ENDCLASS.



CLASS cl_overdue IMPLEMENTATION.



METHOD get_bsid.

SELECT kna1~kunnr kna1~name1 bsid~belnr bsid~blart bsid~bldat bsid~xblnr

bsid~shkzg bsid~dmbtr INTO TABLE it_bsid FROM BSID INNER JOIN KNA1

ON bsid~kunnr = kna1~kunnr

WHERE bsid~kunnr IN s_kunnr

AND bsid~umskz IN s_umskz

AND bsid~budat IN s_budat

AND bsid~bukrs IN s_bukrs

AND bsid~belnr IN s_belnr.

ENDMETHOD.



METHOD combine_data.

SORT it_bsid BY kunnr.

LOOP AT it_bsid INTO wa_bsid.

wa_final-kunnr = wa_bsid-kunnr.

wa_final-name1 = wa_bsid-name1.

wa_final-xblnr = wa_bsid-xblnr.

wa_final-belnr = wa_bsid-belnr.

wa_final-bldat = wa_bsid-bldat.

wa_final-blart = wa_bsid-blart.



IF wa_bsid-shkzg = ‘H’.

wa_final-credit = (-1) * wa_bsid-dmbtr.

ELSE.

wa_final-debit = wa_bsid-dmbtr.

ENDIF.



wa_final-due = wa_final-debit + wa_final-credit.



APPEND wa_final TO it_final.



CLEAR wa_final.



ENDLOOP.



ENDMETHOD.



METHOD combine_data1.

Page 677

SAP-ABAP 677


Rohini kumar

Ques-1: What are the different ways of idntifing Customerexits (Functionexits)?

Answer:

 Go to SE93
 Transaction Code: XK01
 Display
 Double click on Program name
 Find option
 Find: CALL CUSTOMER_FUNCTION
 Enter
 Double click on 001



Ques-2: What is the difference between Implicit & Explicit Enhancement?

Answer:

 Under implicit enhancement you can write your own code

 Adding Z-enhancement in already existing one is called Explicit enhancement


Example:

 Go to SE93
 Transaction Code: VA01
 Display
 Double click on Program Name
 You will find a spot given by SAP
 Enhance
 Right click ES_SAPMV45A
 Enhancement Implementation ----Create Implementation



Ques-3: What is the difference between Enhancement spot (point) & Enhancement section?

Answer:

 In enhancement spot both customized & standard code will be executed

 In enhancement section only customized code will be executed


Ques-4: What is Transaction Variant in enhancements?

Answer:

 Using transaction variant you can provide enhancements

 You can make fields as Required, Output only, Invisible mode……etc using SHDO
(Transaction Variant)

 With above concept you have to create a Z-T code & the same you should provide it to
end user (standard applications should not be effected)

Similer Documents