SlideShare a Scribd company logo
1 of 66
Download to read offline
ABAP Chapter 4
 Event-driven Programming
 Selection Screen
Event-driven Programming
Application Driven Programming
 REPORT ztest.
 DATA: today TYPE D.
 today = ‘19991231’.
 today = today + 1.
 WRITE: / today.
Event-Driven Programming

 Data tmp type i.
 Start-of-Selection.
   Write: / ‘This is ’.
   Write: / ‘Basic List’.
 At line-selection.
   Write: / ‘This is ’.
     Write: ‘Detail List’.
Events
   START-OF-SELECTION.
   END-OF-SELECTION.
   TOP-OF-PAGE.
   TOP-OF-PAGE DURING LINE-
    SELECTION.
   END-OF-PAGE.
   AT LINE-SELECTION.
   AT USER-COMMAND.
   INITIALIZATION.
   AT SELECTION-SCREEN.
AT LINE-SELECTION Event
   (Drill-down Report)
AT LINE-SELECTION
Start-of-selection.
 Write : ‘Basic List’.
At Line-selection.
 Write : ‘Detail List’.
                    Double
                     Click

     Basic list
Navigating Between Lists

                   Exit                         Detail list 20

ABAP Editor



                              Detail list 2


                                                          Cancel
                   Detail list 1

      Basic list                              Back
Detail List and SY-LSIND
                                Detail list 2
Start-of-selection.             SY-LSIND = 2

 write: ‘Basic List’.
AT Line-selection.
  CASE sy-lsind.                Detail list 1
                                SY-LSIND = 1
   WHEN 1.
     write: ‘Detail List #1’.
   WHEN 2.
     write: ‘Detail List #2’.   Basic list
  ENDCASE.
At Line Selection
Tables customers.
Start-of-Selection.
  Select * from customers.
      write : / customers-name .
  Endselect.
At line-selection.
   Write: ‘You Choose :’ , customers-
  name.
At Line Selection(Hide Statement)
Tables customers.               List Buffer

Start-of-Selection.             John
                                Peter
  Select * from customers.      David
      write : / customers-name.
      Hide customers-name.
  Endselect.                HIDE area of list level 1
At line-selection.          line Field name       Value
   Write: ‘You Choose :’ ,  1
                            2
                                  customers-name
                                  customers-name
                                                   John
                                                   Peter

         customers-name. 3 customers-name David
Hide Area in List
Application Server   Dialog WP                  Local Memory
                                                  Memory Space
                        TaskHandler
                                                   Customers Structure

                                                   3    | David | ....
                      ABAP Processor

                                                  List buffer
                      DYNPRO Processor                 Basic List
                                                       John
                                                       Peter   HIDE area of list level 1
                                                               line  Field name            Value
                                                       David
                        DB Interface                           1
                                                               2
                                                                    customers-name
                                                                    customers-name
                                                                                           John
                                                                                           Peter
                            Result Set Memory                  3    customers-name         David




 Database Server
                      Database
At Line Selection(Hide Statement)
                                       Detail List
    Basic List
     John                                  You choose : Peter
     Peter                                                                5
     David
                                                                   At Line-selection
        1
SY-LILLI = 2
                                                                               4
                   HIDE area of list level 1            Customers Structure
               2
                   line   Field name         Value
                                                        3     | Peter | ....
                   1      customers-name      John
                   2      customers-name      Peter      3
                   3      customers-name      David
At Line Selection(Hide Statement)
Tables customers.                List Buffer

Start-of-Selection.               00000001 John
                                  00000002 Peter
  Select * from customers.        00000003 David

    write : / customers-id,customers-
  name.
    Hide: customers-id,customers-name. 1
                             HIDE area of list level
                             line Field name       Value
  Endselect.                 1    customers-id     00000001
                             1    customers-name    John
At line-selection.           2     customers-id    00000002
                             2    customers-name     Peter
   Write: ‘You Choose :’ , customers-id,
                             …
At Line Selection(Hide Statement)
    Basic List                              Detail List
                                            You choose : 00000002 Peter
     00000001 John
     00000002 Peter                                                                 5
     00000003 David

                                                                              At Line-selection
        1
SY-LILLI = 2
                                                                                          4
                      HIDE area of list level 1                   Customers Structure
               2
                      line   Field name           Value            2      | Peter | ....
                      …      …                     …
                      2
                      2
                             customers-id
                             customers-name
                                                  00000002
                                                   Peter
                                                                   3
                      3      customers-id          00000003
                      …
At Line Selection
Tables: spfli,sflight.               Basic List (SPFLI)

Start-of-selection.
  Select * from spfli.
    write : / spfli-carrid, spfli-
   connid, spfli-cityto.
    Hide : spfli-carrid, spfli-
   connid.
  Endselect.                         Detail List (SFLIGHT)
At Line-selection.
  select * from sflight where
   carrid = spfli-carrid
                      and connid =
Exercise
Basic List



                                      Detail List
zcustomers-id



                zcustomers

          zcustomers-name
                                  zsales-cust_id
                                                                    zsales-qty
                                                   zsales-prod_id




                                                   zsales
Hide Statement (Report Heading)
                                                      List Buffer
Tables customers.
                                            Customers Name
Top-of-page.                                -----------------------------
  write: / ‘Customers Name’.                John
                                            Peter
  uline.                                    David
Start-of-Selection.
  Select * from customers.
       write : / customers-name.
      Hide customers-name.
                                        HIDE area of list level 1
  Endselect.
At line-selection.                      line Field name               Value
                                        3      customers-name          John
   Write: ‘You Choose :’ , customers-name. customers-name
                                        4                              Peter
                                                  5    customers-name   David
At Line Selection(Hide Statement)
                                                   Detail List
    Basic List
     Customers Name
     -----------------------------
                                                       You choose : Peter
     John                                                                             5
     Peter
     David
                                                                               At Line-selection
          1
SY-LILLI = 4
                                                                                           4
                               HIDE area of list level 1            Customers Structure
                   2
                               line   Field name         Value
                                                                    3     | Peter | ....
                               3      customers-name      John
                               4      customers-name      Peter      3
                               5      customers-name      David
Invalid Line Selection
   …
TOP-OF-PAGE.
   …
Hide: spfli-carrid, spfli-connid.
…
Endselect.
Clear: spfli-carrid,spfli-connid.
At Line-selection.
 Select * From sflight
           Where carrid = spfli-carrid and
                  connid = spfli-connid.
     Write: / spfli-carrid, spfli-connid
   ,sflight-fldate.
 Endselect.
 Clear: spfli-carrid,spfli-connid.
Page Heading
Start-of-selection.
  Write: ‘Basic List’.
At Line-selection.
  Write: ‘Detail List’.
Top-of-page.
  Write: ‘Header-Basic List’.
Top-of-page During Line-selection.
  Write: ‘Header-Detail List’.
Detail List Page Heading
...
top-of-page during line-selection.
 case sy-lsind.
   when 1.
      write: / ‘Detail List Header #1’.
   when 2.
      write: / ‘Detail List Header #2’.
  endcase.
.....
.....
...
             Column Selection
data: fieldname(30).
...
start-of-selection.
 select * from spfli.
  write: / spfli-carrid,15 spfli-connid, 25 spfli-cityto.
  hide: spfli-carrid,spfli-connid.
 endselect.
at line-selection.
 case sy-lsind.
  when 1.
   get cursor field fieldname.
   case fieldname.
    when 'SPFLI-CARRID'.
     select single * from scarr where carrid = spfli-carrid.
     if sy-subrc = 0.
       write: / spfli-carrid,scarr-carrname.
     endif.
    when 'SPFLI-CONNID'.
     select * from sflight where carrid = spfli-carrid and
                                    connid = spfli-connid.
Column Selection : Value
...
data: fieldname(30),fieldvalue(30).
...
start-of-selection.
 select * from spfli.
  write: / spfli-carrid,15 spfli-connid, 25 spfli-cityto.
  hide: spfli-carrid,spfli-connid.
 endselect.
at line-selection.
case sy-lsind.
  when 1.
  get cursor field fieldname value fieldvalue.
  case fieldname.
   when 'SPFLI-CARRID'.
     select single * from scarr where carrid = spfli-carrid.
     if sy-subrc = 0.
       write: / spfli-carrid,scarr-carrname.
     endif.
   when 'SPFLI-CONNID'.
    ...
Creating List in Modal Dialog Box

    ...
    at line-selection.
     window starting at 10 10
             ending at 65 20.
     select * from sflight
         where carrid = spfli-carrid and
                connid = spfli-connid.
          write: / sflight-carrid,sflight-connid,sfligh
        fldate.
     endselect.
     ...
Exercise
                 Basic List
                             zsales
                                              zsales-qty
zsales-cust_id         zsales-prod_id
                                                            zsales-sale_id




                       zproducts
                                                    Detail List                    zsalereps

                                        zproducts-on_hand
                    zproducts-p_id
                                                               zsalereps-sale_id      zsalereps-name
Drill-Down 2 Levels Example



                               Detail list level 2 (ZPRODUCTS)


Basic list (ZCUSTOMERS)          2
            1



Detail list level 1 (ZSALES)
Program Example
                     START-OF-SELECTION.
                      SELECT * FROM zcustomers.
                       WRITE: / zcustomers-id COLOR 4 HOTSPOT, 15 zcustomers-name.
                       HIDE: zcustomers-id,zcustomers-name.
                      ENDSELECT.
                      CLEAR zcustomers-id.                          Hide Level 1
                     AT LINE-SELECTION.
                      CASE sy-lsind.
                       WHEN 1.
                        GET CURSOR FIELD fieldname.
                        IF fieldname = 'ZCUSTOMERS-ID'.
                         SELECT * FROM zsales WHERE cust_id = zcustomers-id.
                          IF sy-dbcnt = 1.
                            WRITE: / zcustomers-id,15 zcustomers-name,30 zsales-prod_id HOTSPOT, 45 zsales-qty.
Drill Down Level 1          HIDE: zsales-prod_id.
                          ELSE.
                            WRITE: /30 zsales-prod_id HOTSPOT, 45 zsales-qty.
                            HIDE: zsales-prod_id.
                          ENDIF.                              Hide Level 2
                         ENDSELECT.
                         CLEAR: zcustomers-id,zsales-prod_id.
                        ENDIF.
                       WHEN 2.
                        GET CURSOR FIELD fieldname.
                        IF fieldname = 'ZSALES-PROD_ID'.
                         SELECT SINGLE * FROM zproducts WHERE p_id = zsales-prod_id.
Drill Down Level 2       IF sy-subrc = 0.
                          WRITE: / zproducts-p_id,15 zproducts-prod_name,38 zproducts-on_hand.
                         ENDIF.
                         CLEAR zsales-prod_id.
                        ENDIF.
                      ENDCASE.
Basic List


             Exercise
     SCARR




             Drill-down Level 1
                         SPFLI




                                  Drill-down Level 2
                                     SFLIGHT




                                                Drill-down Level 3
                                                         SBOOK
GUI Interface (User Interface)
GUI Interface
  SET PF-STATUS …. => GUI
Status
    SET TITLEBAR …. => GUI
Title
AT USER-COMMAND Event

 SET PF-STATUS ‘TEST’.
 ...
 AT USER-COMMAND.
    CASE sy-ucomm.
     WHEN ‘CODE1’.
         .
    WHEN ‘CODE2’.
       .
    ENDCASE.
Standard Toolbar : System Function
   System function do not trigger event AT USER-COMMAND
       %EX = Exit
       %PC = Save to file
       %SC = Find
       %SC+ = Find next
       %ST = Save in report tree
       BACK = Back
       RW   = Cancel
       PRI  = Print
       P-   = Scroll to previous page
       P--  = Scroll to first page
       P+   = Scroll to next page
       P++ = Scroll to last page
Alternative with AT USER-COMMAND
REPORT ZRSDEM002.
     .
 START-OF-SELECTION
  SET PF-STATUS ‘BASE’.
          .
          .
  AT USER-COMMAND.
   CASE SY-UCOMM.
     WHEN ‘CARR’.
       SET PF_STATUS SPACE. “Set to standard
  GUI interface
            .
      WHEN ‘FLIG’.
        SET PF-STATUS ‘FLIG’.
          WRITE …
GUI Status Excluding Function Code
REPORT ztest.
   ...
   SET PF-STATUS ‘0100’.
   ...
    AT USER-COMMAND.
      CASE SY-UCOMM.
       WHEN ‘LIST’.
        SET PF-STATUS ‘0100’ excluding ‘LIST’.
              .
       WHEN ‘DISP’.
        SET PF-STATUS ‘0100’ excluding ‘DISP’.
        WRITE …
.       ....
GUI Status Excluding Function Code

 REPORT ztest.
 DATA exctab(10) occurs 0 with header line.
   ....
 START-OF-SELECTION.
  SET PF-STATUS ‘0100’.
   ...
  exctab = ‘LIST’. APPEND exctab.
  exctab = ‘TEST’. APPEND exctab.
   ...
 AT USER-COMMAND.
  CASE SY-UCOMM.
    WHEN ‘LIST’.
      SET PF-STATUS ‘0100’ excluding exctab.
GUI TITLE
...
SET TITLEBAR ‘0100’.
ABAP Practice
Selection Screen
Selection Screen
   PARAMETERS Statement
   SELECT-OPTIONS Statement
parameters
Parameters
PARAMETERS: tmp1(10) TYPE C,
             tmp2(10) TYPE C lower
 case,
             tmp3 LIKE sy-datum
 default sy-datum,
             tmp4 TYPE D default
 ‘19991231’,
             tmp5 TYPE i,
Parameters Example
Tables customers.
Parameters pid like customers-id.
START-OF-SELECTION.
select single * from customers where id =
                       pid.
if sy-subrc = 0.
  write: / customers-name.
else.
  write: / ‘No data found’.
endif.
Selection-Text
   By default , the System displays the
    name of the selection as text on the
    Selection Screen
   You Should use the Text
    element/Selection texts function to store
    a text line for each Selection Criterion.
Check box

Parameters tmp as checkbox
        default ‘X’.
Radio Button
Parameters: test1 Radiobutton
               group grp1,
        test2 Radiobutton
               group grp1.
Required field with Parameters

Parameters tmp like sy-
             datum
             obligatory.
ABAP Exercise
select-options
Complex Selection (Select-options)
Tables spfli.
Select-options carrid for spfli-
              carrid.
START-OF-SELECTION.
Select * From spfli
   Where carrid in carrid.
         .
         .
         .
Select-Options

“ต้องการให้แสดงข้อมูล customers ของ
ลูกค้าที่มีชื่อ(คอลัมน์ name) ขึ้นต้นด้วย
ตัว ‘M’ และลูกค้าที่ชื่อ ‘Smith’ และลูกค้า
ที่ชื่ออยู่ระหว่าง ‘A’ กับ ‘John’ โดยใช้คำา
สั่ง SELECT”
Select * from customers
  where (name like ‘M%’) or
       (name = ‘Smith’) or
       (name between ‘A’ and
Select-Options

Tables customers.
Select-options sname for
customers-name.
START-OF-SELECTION.
Select *
  from customers
    Where name in sname.
Internal Structure of Select-options

    sname
     Sign   Option   Low   High
Internal Structure of Select-options
  Field    Value                          .

  Sign     I =    Include
           E =     Exclude
  Option   BT =    Between
           CP =    Contains Pattern
           EQ =    Equal
           GT =    Greater Than
           LT =    Less Than
           GE =    Grater Than or Equal
           LE =     Less Than or Equal
           NE =    Not Equal
Internal Structure of Select-options

   sname
     Sn
     ig    Ot n
            pio   Lw
                  o      Hh
                         ig

      I    CP      M*
      I    EQ     S it
                   mh
      I    BT      A     John
SELECT-OPTIONS
sname
 Sign   O tion
         p       Low      Hh
                          ig      Select * from customers
                                Transform
                                       where (name like ‘M%’) or
  I      CP       M*                       (name = ‘Smith’) or
  I      EQ      Smith                     (name between ‘A’ and ‘Jo
  I      BT       A      John




        Select * from
        customers
             where name
        in sname.
INITIALIZATION Event
Tables Customers.
Select-options sname for customers-name.
Initialization.
 sname-sign = ‘I’.
 sname-option = ‘EQ’.
 sname-low       = ‘Smith’.
 append sname.
Start-of-Selection.
  Select * from customers
             Where name in sname.
Select-options Options
Select-options sname for customers-
name obligatory.
Select-options sname for customers-
name no-extension.


Select-options sname for customers-
name no intervals.
Designing Selection Screen

Selection-screen begin of block test
with frame Title text-001.
          .
    Selection-screen uline.
    Selection-screen skip 3.
    Selection-screen comment 3(10)
text-001.
    Parameters month(2) type n.
          .
Selection-screen end of block test.
Designing Selection Screen




selection-screen begin of line.
 selection-screen comment 1(7) text-001.
 selection-screen position 9.
 parameters month(2) type n.
 selection-screen comment 16(6) text-002.
 parameters year(4) type n.
selection-screen end of line.
Designing Selection Screen
Selection-screen begin of block name1 with frame title text-001.
    Selection-screen begin of line.
        Parameters test1 radiobutton group test default ‘X’.
        Selection-screen comment 4(10) text-002.
        Selection-screen position 35.
        Parameters tcheck as checkbox.
        Selection-screen comment 37(15) text-003.
    Selection-screen end of line.
    Selection-screen begin of line.
        Parameters test2 radiobutton group test.
        Selection-screen comment 4(10) text-004.
    Selection-screen end of line.
Selection-screen end of block name1.
ABAP Exercise
Checking User Input
Tables customers.
Data pcode_len type i.
Parameters pcode like customers-postcode.
At selection-screen.
     pcode_len = strlen( pcode ).
     if pcode_len <> 5.
        message e000(38) with ‘Please enter
postcode 5 characters’.
     endif.
Start-of-Selection.
    select * from customers where postcode =
ABAP Exercise
ABAP Program Processing Steps
 TABLES sflight.
 PARAMETERS nextday LIKE sy-datum.
 INITIALIZATION.
  nextday = sy-datum + 1.
 AT SELECTION-SCREEN.
    IF nextday < sy-datum.
       MESSAGE e000(38) WITH ‘Please enter da
 >= today’.
    ENDIF.
 START-OF-SELECTION.
    SELECT * FROM sflight WHERE ... fldate =
 nextday…
     …
ABAP Practice

More Related Content

What's hot

Object oriented approach to ALV Lists in ABAP
Object oriented approach to ALV Lists in ABAPObject oriented approach to ALV Lists in ABAP
Object oriented approach to ALV Lists in ABAPNoman Mohamed Hanif
 
Introduction to SAP Gateway and OData
Introduction to SAP Gateway and ODataIntroduction to SAP Gateway and OData
Introduction to SAP Gateway and ODataChris Whealy
 
Call transaction method
Call transaction methodCall transaction method
Call transaction methodKranthi Kumar
 
List Processing in ABAP
List Processing in ABAPList Processing in ABAP
List Processing in ABAPsapdocs. info
 
Oops abap fundamental
Oops abap fundamentalOops abap fundamental
Oops abap fundamentalbiswajit2015
 
Bdc BATCH DATA COMMUNICATION
Bdc BATCH DATA COMMUNICATIONBdc BATCH DATA COMMUNICATION
Bdc BATCH DATA COMMUNICATIONHitesh Gulani
 
ABAP for Beginners - www.sapdocs.info
ABAP for Beginners - www.sapdocs.infoABAP for Beginners - www.sapdocs.info
ABAP for Beginners - www.sapdocs.infosapdocs. info
 
Oo abap-sap-1206973306636228-5
Oo abap-sap-1206973306636228-5Oo abap-sap-1206973306636228-5
Oo abap-sap-1206973306636228-5prakash185645
 
SAP ABAP - Needed Notes
SAP   ABAP - Needed NotesSAP   ABAP - Needed Notes
SAP ABAP - Needed NotesAkash Bhavsar
 
Introducing enhancement framework.doc
Introducing enhancement framework.docIntroducing enhancement framework.doc
Introducing enhancement framework.docKranthi Kumar
 
Internal tables
Internal tables Internal tables
Internal tables Jibu Jose
 
ABAP Programming Overview
ABAP Programming OverviewABAP Programming Overview
ABAP Programming Overviewsapdocs. info
 

What's hot (20)

Object oriented approach to ALV Lists in ABAP
Object oriented approach to ALV Lists in ABAPObject oriented approach to ALV Lists in ABAP
Object oriented approach to ALV Lists in ABAP
 
07.Advanced Abap
07.Advanced Abap07.Advanced Abap
07.Advanced Abap
 
Introduction to SAP Gateway and OData
Introduction to SAP Gateway and ODataIntroduction to SAP Gateway and OData
Introduction to SAP Gateway and OData
 
Call transaction method
Call transaction methodCall transaction method
Call transaction method
 
Sap abap
Sap abapSap abap
Sap abap
 
Sap abap
Sap abapSap abap
Sap abap
 
List Processing in ABAP
List Processing in ABAPList Processing in ABAP
List Processing in ABAP
 
Oops abap fundamental
Oops abap fundamentalOops abap fundamental
Oops abap fundamental
 
SAP ABAP data dictionary
SAP ABAP data dictionarySAP ABAP data dictionary
SAP ABAP data dictionary
 
Reports
ReportsReports
Reports
 
Sap abap tutorials
Sap abap tutorialsSap abap tutorials
Sap abap tutorials
 
Bdc BATCH DATA COMMUNICATION
Bdc BATCH DATA COMMUNICATIONBdc BATCH DATA COMMUNICATION
Bdc BATCH DATA COMMUNICATION
 
ABAP for Beginners - www.sapdocs.info
ABAP for Beginners - www.sapdocs.infoABAP for Beginners - www.sapdocs.info
ABAP for Beginners - www.sapdocs.info
 
sap script overview
sap script overviewsap script overview
sap script overview
 
Oo abap-sap-1206973306636228-5
Oo abap-sap-1206973306636228-5Oo abap-sap-1206973306636228-5
Oo abap-sap-1206973306636228-5
 
SAP ABAP - Needed Notes
SAP   ABAP - Needed NotesSAP   ABAP - Needed Notes
SAP ABAP - Needed Notes
 
Introducing enhancement framework.doc
Introducing enhancement framework.docIntroducing enhancement framework.doc
Introducing enhancement framework.doc
 
ABAP Advanced List
ABAP Advanced ListABAP Advanced List
ABAP Advanced List
 
Internal tables
Internal tables Internal tables
Internal tables
 
ABAP Programming Overview
ABAP Programming OverviewABAP Programming Overview
ABAP Programming Overview
 

Viewers also liked

Modularization & Catch Statement
Modularization & Catch StatementModularization & Catch Statement
Modularization & Catch Statementsapdocs. info
 
ABAP Message, Debugging, File Transfer and Type Group
ABAP Message, Debugging, File Transfer and Type GroupABAP Message, Debugging, File Transfer and Type Group
ABAP Message, Debugging, File Transfer and Type Groupsapdocs. info
 
ABAP Open SQL & Internal Table
ABAP Open SQL & Internal TableABAP Open SQL & Internal Table
ABAP Open SQL & Internal Tablesapdocs. info
 
HR ABAP Programming Training Material | http://sapdocs.info
HR ABAP Programming Training Material | http://sapdocs.infoHR ABAP Programming Training Material | http://sapdocs.info
HR ABAP Programming Training Material | http://sapdocs.infosapdocs. info
 
08.Abap Dialog Programming Overview
08.Abap Dialog Programming Overview08.Abap Dialog Programming Overview
08.Abap Dialog Programming Overviewsapdocs. info
 
HR ABAP Technical Overview | http://sapdocs.info/
HR ABAP Technical Overview | http://sapdocs.info/HR ABAP Technical Overview | http://sapdocs.info/
HR ABAP Technical Overview | http://sapdocs.info/sapdocs. info
 
SAP FICO BBP Sample Document PDF NEW!
SAP FICO BBP Sample Document PDF NEW!SAP FICO BBP Sample Document PDF NEW!
SAP FICO BBP Sample Document PDF NEW!sapdocs. info
 
Comparison between abap & abap hr
Comparison between abap & abap hrComparison between abap & abap hr
Comparison between abap & abap hrMahender Donthula
 
Open SQL & Internal Table
Open SQL & Internal TableOpen SQL & Internal Table
Open SQL & Internal Tablesapdocs. info
 
Beginner’s guide to sap abap 1
Beginner’s guide to sap abap 1Beginner’s guide to sap abap 1
Beginner’s guide to sap abap 1Panduka Bandara
 
ABAP Basico para Consultores Funcionales
ABAP Basico para Consultores FuncionalesABAP Basico para Consultores Funcionales
ABAP Basico para Consultores Funcionalessapdocs. info
 
SAP HR Time Management User Guide | www.sapdocs.info
SAP HR Time Management User Guide | www.sapdocs.infoSAP HR Time Management User Guide | www.sapdocs.info
SAP HR Time Management User Guide | www.sapdocs.infosapdocs. info
 
How HR ABAP is difference with ABAP ?
How HR ABAP is difference with ABAP ?How HR ABAP is difference with ABAP ?
How HR ABAP is difference with ABAP ?JoshiRavin
 
List Processing in ABAP
List Processing in ABAPList Processing in ABAP
List Processing in ABAPsapdocs. info
 
Message, Debugging, File Transfer and Type Group
Message, Debugging, File Transfer and Type GroupMessage, Debugging, File Transfer and Type Group
Message, Debugging, File Transfer and Type Groupsapdocs. info
 
Sap abap ppt
Sap abap pptSap abap ppt
Sap abap pptvonline
 

Viewers also liked (18)

Modularization & Catch Statement
Modularization & Catch StatementModularization & Catch Statement
Modularization & Catch Statement
 
ABAP Message, Debugging, File Transfer and Type Group
ABAP Message, Debugging, File Transfer and Type GroupABAP Message, Debugging, File Transfer and Type Group
ABAP Message, Debugging, File Transfer and Type Group
 
ABAP Open SQL & Internal Table
ABAP Open SQL & Internal TableABAP Open SQL & Internal Table
ABAP Open SQL & Internal Table
 
HR ABAP Programming Training Material | http://sapdocs.info
HR ABAP Programming Training Material | http://sapdocs.infoHR ABAP Programming Training Material | http://sapdocs.info
HR ABAP Programming Training Material | http://sapdocs.info
 
08.Abap Dialog Programming Overview
08.Abap Dialog Programming Overview08.Abap Dialog Programming Overview
08.Abap Dialog Programming Overview
 
HR ABAP Technical Overview | http://sapdocs.info/
HR ABAP Technical Overview | http://sapdocs.info/HR ABAP Technical Overview | http://sapdocs.info/
HR ABAP Technical Overview | http://sapdocs.info/
 
SAP FICO BBP Sample Document PDF NEW!
SAP FICO BBP Sample Document PDF NEW!SAP FICO BBP Sample Document PDF NEW!
SAP FICO BBP Sample Document PDF NEW!
 
Abap hr programing
Abap hr programingAbap hr programing
Abap hr programing
 
SAP ABAP Material
SAP ABAP MaterialSAP ABAP Material
SAP ABAP Material
 
Comparison between abap & abap hr
Comparison between abap & abap hrComparison between abap & abap hr
Comparison between abap & abap hr
 
Open SQL & Internal Table
Open SQL & Internal TableOpen SQL & Internal Table
Open SQL & Internal Table
 
Beginner’s guide to sap abap 1
Beginner’s guide to sap abap 1Beginner’s guide to sap abap 1
Beginner’s guide to sap abap 1
 
ABAP Basico para Consultores Funcionales
ABAP Basico para Consultores FuncionalesABAP Basico para Consultores Funcionales
ABAP Basico para Consultores Funcionales
 
SAP HR Time Management User Guide | www.sapdocs.info
SAP HR Time Management User Guide | www.sapdocs.infoSAP HR Time Management User Guide | www.sapdocs.info
SAP HR Time Management User Guide | www.sapdocs.info
 
How HR ABAP is difference with ABAP ?
How HR ABAP is difference with ABAP ?How HR ABAP is difference with ABAP ?
How HR ABAP is difference with ABAP ?
 
List Processing in ABAP
List Processing in ABAPList Processing in ABAP
List Processing in ABAP
 
Message, Debugging, File Transfer and Type Group
Message, Debugging, File Transfer and Type GroupMessage, Debugging, File Transfer and Type Group
Message, Debugging, File Transfer and Type Group
 
Sap abap ppt
Sap abap pptSap abap ppt
Sap abap ppt
 

More from sapdocs. info

SAP PM Master Data Training Guide
SAP PM Master Data Training GuideSAP PM Master Data Training Guide
SAP PM Master Data Training Guidesapdocs. info
 
SAP SD Certification (C_TSCM62_66) Preparation Training Notes
SAP SD Certification (C_TSCM62_66) Preparation Training NotesSAP SD Certification (C_TSCM62_66) Preparation Training Notes
SAP SD Certification (C_TSCM62_66) Preparation Training Notessapdocs. info
 
Variant Configuration in SAP PP: Beginner's Guide
Variant Configuration in SAP PP: Beginner's GuideVariant Configuration in SAP PP: Beginner's Guide
Variant Configuration in SAP PP: Beginner's Guidesapdocs. info
 
SAP PP MRP Guide for Beginners
SAP PP MRP Guide for BeginnersSAP PP MRP Guide for Beginners
SAP PP MRP Guide for Beginnerssapdocs. info
 
SAP ECC 6.0 PM Configuration Manual - www.sapdocs.info
SAP ECC 6.0 PM Configuration Manual - www.sapdocs.infoSAP ECC 6.0 PM Configuration Manual - www.sapdocs.info
SAP ECC 6.0 PM Configuration Manual - www.sapdocs.infosapdocs. info
 
SAP PM Training Manual - www.sapdocs.info
SAP PM Training Manual - www.sapdocs.infoSAP PM Training Manual - www.sapdocs.info
SAP PM Training Manual - www.sapdocs.infosapdocs. info
 
SAP Configuration Guide for Functional Modules (Based on IDES)
SAP Configuration Guide for Functional Modules (Based on IDES)SAP Configuration Guide for Functional Modules (Based on IDES)
SAP Configuration Guide for Functional Modules (Based on IDES)sapdocs. info
 
SAP FI-AP TCODES & MENU PATHS
SAP FI-AP TCODES & MENU PATHSSAP FI-AP TCODES & MENU PATHS
SAP FI-AP TCODES & MENU PATHSsapdocs. info
 
SAP FI-AR TCODES & MENU PATHS
SAP FI-AR TCODES & MENU PATHSSAP FI-AR TCODES & MENU PATHS
SAP FI-AR TCODES & MENU PATHSsapdocs. info
 
SAP CO Configuration Guide - Exclusive Document
SAP CO Configuration Guide - Exclusive DocumentSAP CO Configuration Guide - Exclusive Document
SAP CO Configuration Guide - Exclusive Documentsapdocs. info
 
SAP PP End User Document - www.sapdocs.info
SAP PP End User Document - www.sapdocs.infoSAP PP End User Document - www.sapdocs.info
SAP PP End User Document - www.sapdocs.infosapdocs. info
 
SAP MM Configuration - Real Project Documentation
SAP MM Configuration - Real Project DocumentationSAP MM Configuration - Real Project Documentation
SAP MM Configuration - Real Project Documentationsapdocs. info
 
SAP FI AP: Configuration & End User Guide
SAP FI AP: Configuration & End User GuideSAP FI AP: Configuration & End User Guide
SAP FI AP: Configuration & End User Guidesapdocs. info
 
SAP FI AR: End User Guide for Beginners
SAP FI AR: End User Guide for BeginnersSAP FI AR: End User Guide for Beginners
SAP FI AR: End User Guide for Beginnerssapdocs. info
 
SAP FI AP: End User Guide for Beginners
SAP FI AP: End User Guide for BeginnersSAP FI AP: End User Guide for Beginners
SAP FI AP: End User Guide for Beginnerssapdocs. info
 
SAP FI Asset Accounting: End User Guide for Beginners
SAP FI Asset Accounting: End User Guide for BeginnersSAP FI Asset Accounting: End User Guide for Beginners
SAP FI Asset Accounting: End User Guide for Beginnerssapdocs. info
 
Variant Configurition in SAP: Beginners Guide | www.sapdocs.info
Variant Configurition in SAP: Beginners Guide | www.sapdocs.infoVariant Configurition in SAP: Beginners Guide | www.sapdocs.info
Variant Configurition in SAP: Beginners Guide | www.sapdocs.infosapdocs. info
 
Exclusive SAP Basis Training Book | www.sapdocs.info
Exclusive SAP Basis Training Book | www.sapdocs.infoExclusive SAP Basis Training Book | www.sapdocs.info
Exclusive SAP Basis Training Book | www.sapdocs.infosapdocs. info
 
SAP Plant Maintenance Training Material | www.sapdocs.info
SAP Plant Maintenance Training Material | www.sapdocs.infoSAP Plant Maintenance Training Material | www.sapdocs.info
SAP Plant Maintenance Training Material | www.sapdocs.infosapdocs. info
 
SAP FICO General Ledger EndUser Training | www.sapdocs.info
SAP FICO General Ledger EndUser Training | www.sapdocs.infoSAP FICO General Ledger EndUser Training | www.sapdocs.info
SAP FICO General Ledger EndUser Training | www.sapdocs.infosapdocs. info
 

More from sapdocs. info (20)

SAP PM Master Data Training Guide
SAP PM Master Data Training GuideSAP PM Master Data Training Guide
SAP PM Master Data Training Guide
 
SAP SD Certification (C_TSCM62_66) Preparation Training Notes
SAP SD Certification (C_TSCM62_66) Preparation Training NotesSAP SD Certification (C_TSCM62_66) Preparation Training Notes
SAP SD Certification (C_TSCM62_66) Preparation Training Notes
 
Variant Configuration in SAP PP: Beginner's Guide
Variant Configuration in SAP PP: Beginner's GuideVariant Configuration in SAP PP: Beginner's Guide
Variant Configuration in SAP PP: Beginner's Guide
 
SAP PP MRP Guide for Beginners
SAP PP MRP Guide for BeginnersSAP PP MRP Guide for Beginners
SAP PP MRP Guide for Beginners
 
SAP ECC 6.0 PM Configuration Manual - www.sapdocs.info
SAP ECC 6.0 PM Configuration Manual - www.sapdocs.infoSAP ECC 6.0 PM Configuration Manual - www.sapdocs.info
SAP ECC 6.0 PM Configuration Manual - www.sapdocs.info
 
SAP PM Training Manual - www.sapdocs.info
SAP PM Training Manual - www.sapdocs.infoSAP PM Training Manual - www.sapdocs.info
SAP PM Training Manual - www.sapdocs.info
 
SAP Configuration Guide for Functional Modules (Based on IDES)
SAP Configuration Guide for Functional Modules (Based on IDES)SAP Configuration Guide for Functional Modules (Based on IDES)
SAP Configuration Guide for Functional Modules (Based on IDES)
 
SAP FI-AP TCODES & MENU PATHS
SAP FI-AP TCODES & MENU PATHSSAP FI-AP TCODES & MENU PATHS
SAP FI-AP TCODES & MENU PATHS
 
SAP FI-AR TCODES & MENU PATHS
SAP FI-AR TCODES & MENU PATHSSAP FI-AR TCODES & MENU PATHS
SAP FI-AR TCODES & MENU PATHS
 
SAP CO Configuration Guide - Exclusive Document
SAP CO Configuration Guide - Exclusive DocumentSAP CO Configuration Guide - Exclusive Document
SAP CO Configuration Guide - Exclusive Document
 
SAP PP End User Document - www.sapdocs.info
SAP PP End User Document - www.sapdocs.infoSAP PP End User Document - www.sapdocs.info
SAP PP End User Document - www.sapdocs.info
 
SAP MM Configuration - Real Project Documentation
SAP MM Configuration - Real Project DocumentationSAP MM Configuration - Real Project Documentation
SAP MM Configuration - Real Project Documentation
 
SAP FI AP: Configuration & End User Guide
SAP FI AP: Configuration & End User GuideSAP FI AP: Configuration & End User Guide
SAP FI AP: Configuration & End User Guide
 
SAP FI AR: End User Guide for Beginners
SAP FI AR: End User Guide for BeginnersSAP FI AR: End User Guide for Beginners
SAP FI AR: End User Guide for Beginners
 
SAP FI AP: End User Guide for Beginners
SAP FI AP: End User Guide for BeginnersSAP FI AP: End User Guide for Beginners
SAP FI AP: End User Guide for Beginners
 
SAP FI Asset Accounting: End User Guide for Beginners
SAP FI Asset Accounting: End User Guide for BeginnersSAP FI Asset Accounting: End User Guide for Beginners
SAP FI Asset Accounting: End User Guide for Beginners
 
Variant Configurition in SAP: Beginners Guide | www.sapdocs.info
Variant Configurition in SAP: Beginners Guide | www.sapdocs.infoVariant Configurition in SAP: Beginners Guide | www.sapdocs.info
Variant Configurition in SAP: Beginners Guide | www.sapdocs.info
 
Exclusive SAP Basis Training Book | www.sapdocs.info
Exclusive SAP Basis Training Book | www.sapdocs.infoExclusive SAP Basis Training Book | www.sapdocs.info
Exclusive SAP Basis Training Book | www.sapdocs.info
 
SAP Plant Maintenance Training Material | www.sapdocs.info
SAP Plant Maintenance Training Material | www.sapdocs.infoSAP Plant Maintenance Training Material | www.sapdocs.info
SAP Plant Maintenance Training Material | www.sapdocs.info
 
SAP FICO General Ledger EndUser Training | www.sapdocs.info
SAP FICO General Ledger EndUser Training | www.sapdocs.infoSAP FICO General Ledger EndUser Training | www.sapdocs.info
SAP FICO General Ledger EndUser Training | www.sapdocs.info
 

Recently uploaded

BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxSayali Powar
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxkarenfajardo43
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfPrerana Jadhav
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...Nguyen Thanh Tu Collection
 
4.9.24 School Desegregation in Boston.pptx
4.9.24 School Desegregation in Boston.pptx4.9.24 School Desegregation in Boston.pptx
4.9.24 School Desegregation in Boston.pptxmary850239
 
CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...Nguyen Thanh Tu Collection
 
ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6Vanessa Camilleri
 
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQuiz Club NITW
 
Mythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWMythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWQuiz Club NITW
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research DiscourseAnita GoswamiGiri
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationdeepaannamalai16
 
The Emergence of Legislative Behavior in the Colombian Congress
The Emergence of Legislative Behavior in the Colombian CongressThe Emergence of Legislative Behavior in the Colombian Congress
The Emergence of Legislative Behavior in the Colombian CongressMaria Paula Aroca
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Association for Project Management
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdfMr Bounab Samir
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...Nguyen Thanh Tu Collection
 

Recently uploaded (20)

BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
 
Plagiarism,forms,understand about plagiarism,avoid plagiarism,key significanc...
Plagiarism,forms,understand about plagiarism,avoid plagiarism,key significanc...Plagiarism,forms,understand about plagiarism,avoid plagiarism,key significanc...
Plagiarism,forms,understand about plagiarism,avoid plagiarism,key significanc...
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
 
Spearman's correlation,Formula,Advantages,
Spearman's correlation,Formula,Advantages,Spearman's correlation,Formula,Advantages,
Spearman's correlation,Formula,Advantages,
 
CARNAVAL COM MAGIA E EUFORIA _
CARNAVAL COM MAGIA E EUFORIA            _CARNAVAL COM MAGIA E EUFORIA            _
CARNAVAL COM MAGIA E EUFORIA _
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdf
 
Chi-Square Test Non Parametric Test Categorical Variable
Chi-Square Test Non Parametric Test Categorical VariableChi-Square Test Non Parametric Test Categorical Variable
Chi-Square Test Non Parametric Test Categorical Variable
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...
 
4.9.24 School Desegregation in Boston.pptx
4.9.24 School Desegregation in Boston.pptx4.9.24 School Desegregation in Boston.pptx
4.9.24 School Desegregation in Boston.pptx
 
CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...
 
ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6
 
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
 
Mythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWMythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITW
 
Introduction to Research ,Need for research, Need for design of Experiments, ...
Introduction to Research ,Need for research, Need for design of Experiments, ...Introduction to Research ,Need for research, Need for design of Experiments, ...
Introduction to Research ,Need for research, Need for design of Experiments, ...
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research Discourse
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentation
 
The Emergence of Legislative Behavior in the Colombian Congress
The Emergence of Legislative Behavior in the Colombian CongressThe Emergence of Legislative Behavior in the Colombian Congress
The Emergence of Legislative Behavior in the Colombian Congress
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdf
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
 

ABAP Event-driven Programming &Selection Screen

  • 1. ABAP Chapter 4  Event-driven Programming  Selection Screen
  • 3. Application Driven Programming REPORT ztest. DATA: today TYPE D. today = ‘19991231’. today = today + 1. WRITE: / today.
  • 4. Event-Driven Programming Data tmp type i. Start-of-Selection. Write: / ‘This is ’. Write: / ‘Basic List’. At line-selection. Write: / ‘This is ’. Write: ‘Detail List’.
  • 5. Events  START-OF-SELECTION.  END-OF-SELECTION.  TOP-OF-PAGE.  TOP-OF-PAGE DURING LINE- SELECTION.  END-OF-PAGE.  AT LINE-SELECTION.  AT USER-COMMAND.  INITIALIZATION.  AT SELECTION-SCREEN.
  • 6. AT LINE-SELECTION Event (Drill-down Report)
  • 7. AT LINE-SELECTION Start-of-selection. Write : ‘Basic List’. At Line-selection. Write : ‘Detail List’. Double Click Basic list
  • 8. Navigating Between Lists Exit Detail list 20 ABAP Editor Detail list 2 Cancel Detail list 1 Basic list Back
  • 9. Detail List and SY-LSIND Detail list 2 Start-of-selection. SY-LSIND = 2 write: ‘Basic List’. AT Line-selection. CASE sy-lsind. Detail list 1 SY-LSIND = 1 WHEN 1. write: ‘Detail List #1’. WHEN 2. write: ‘Detail List #2’. Basic list ENDCASE.
  • 10. At Line Selection Tables customers. Start-of-Selection. Select * from customers. write : / customers-name . Endselect. At line-selection. Write: ‘You Choose :’ , customers- name.
  • 11. At Line Selection(Hide Statement) Tables customers. List Buffer Start-of-Selection. John Peter Select * from customers. David write : / customers-name. Hide customers-name. Endselect. HIDE area of list level 1 At line-selection. line Field name Value Write: ‘You Choose :’ , 1 2 customers-name customers-name John Peter customers-name. 3 customers-name David
  • 12. Hide Area in List Application Server Dialog WP Local Memory Memory Space TaskHandler Customers Structure 3 | David | .... ABAP Processor List buffer DYNPRO Processor Basic List John Peter HIDE area of list level 1 line Field name Value David DB Interface 1 2 customers-name customers-name John Peter Result Set Memory 3 customers-name David Database Server Database
  • 13. At Line Selection(Hide Statement) Detail List Basic List John You choose : Peter Peter 5 David At Line-selection 1 SY-LILLI = 2 4 HIDE area of list level 1 Customers Structure 2 line Field name Value 3 | Peter | .... 1 customers-name John 2 customers-name Peter 3 3 customers-name David
  • 14. At Line Selection(Hide Statement) Tables customers. List Buffer Start-of-Selection. 00000001 John 00000002 Peter Select * from customers. 00000003 David write : / customers-id,customers- name. Hide: customers-id,customers-name. 1 HIDE area of list level line Field name Value Endselect. 1 customers-id 00000001 1 customers-name John At line-selection. 2 customers-id 00000002 2 customers-name Peter Write: ‘You Choose :’ , customers-id, …
  • 15. At Line Selection(Hide Statement) Basic List Detail List You choose : 00000002 Peter 00000001 John 00000002 Peter 5 00000003 David At Line-selection 1 SY-LILLI = 2 4 HIDE area of list level 1 Customers Structure 2 line Field name Value 2 | Peter | .... … … … 2 2 customers-id customers-name 00000002 Peter 3 3 customers-id 00000003 …
  • 16. At Line Selection Tables: spfli,sflight. Basic List (SPFLI) Start-of-selection. Select * from spfli. write : / spfli-carrid, spfli- connid, spfli-cityto. Hide : spfli-carrid, spfli- connid. Endselect. Detail List (SFLIGHT) At Line-selection. select * from sflight where carrid = spfli-carrid and connid =
  • 17. Exercise Basic List Detail List zcustomers-id zcustomers zcustomers-name zsales-cust_id zsales-qty zsales-prod_id zsales
  • 18. Hide Statement (Report Heading) List Buffer Tables customers. Customers Name Top-of-page. ----------------------------- write: / ‘Customers Name’. John Peter uline. David Start-of-Selection. Select * from customers. write : / customers-name. Hide customers-name. HIDE area of list level 1 Endselect. At line-selection. line Field name Value 3 customers-name John Write: ‘You Choose :’ , customers-name. customers-name 4 Peter 5 customers-name David
  • 19. At Line Selection(Hide Statement) Detail List Basic List Customers Name ----------------------------- You choose : Peter John 5 Peter David At Line-selection 1 SY-LILLI = 4 4 HIDE area of list level 1 Customers Structure 2 line Field name Value 3 | Peter | .... 3 customers-name John 4 customers-name Peter 3 5 customers-name David
  • 20. Invalid Line Selection … TOP-OF-PAGE. … Hide: spfli-carrid, spfli-connid. … Endselect. Clear: spfli-carrid,spfli-connid. At Line-selection. Select * From sflight Where carrid = spfli-carrid and connid = spfli-connid. Write: / spfli-carrid, spfli-connid ,sflight-fldate. Endselect. Clear: spfli-carrid,spfli-connid.
  • 21. Page Heading Start-of-selection. Write: ‘Basic List’. At Line-selection. Write: ‘Detail List’. Top-of-page. Write: ‘Header-Basic List’. Top-of-page During Line-selection. Write: ‘Header-Detail List’.
  • 22. Detail List Page Heading ... top-of-page during line-selection. case sy-lsind. when 1. write: / ‘Detail List Header #1’. when 2. write: / ‘Detail List Header #2’. endcase. ..... .....
  • 23. ... Column Selection data: fieldname(30). ... start-of-selection. select * from spfli. write: / spfli-carrid,15 spfli-connid, 25 spfli-cityto. hide: spfli-carrid,spfli-connid. endselect. at line-selection. case sy-lsind. when 1. get cursor field fieldname. case fieldname. when 'SPFLI-CARRID'. select single * from scarr where carrid = spfli-carrid. if sy-subrc = 0. write: / spfli-carrid,scarr-carrname. endif. when 'SPFLI-CONNID'. select * from sflight where carrid = spfli-carrid and connid = spfli-connid.
  • 24. Column Selection : Value ... data: fieldname(30),fieldvalue(30). ... start-of-selection. select * from spfli. write: / spfli-carrid,15 spfli-connid, 25 spfli-cityto. hide: spfli-carrid,spfli-connid. endselect. at line-selection. case sy-lsind. when 1. get cursor field fieldname value fieldvalue. case fieldname. when 'SPFLI-CARRID'. select single * from scarr where carrid = spfli-carrid. if sy-subrc = 0. write: / spfli-carrid,scarr-carrname. endif. when 'SPFLI-CONNID'. ...
  • 25. Creating List in Modal Dialog Box ... at line-selection. window starting at 10 10 ending at 65 20. select * from sflight where carrid = spfli-carrid and connid = spfli-connid. write: / sflight-carrid,sflight-connid,sfligh fldate. endselect. ...
  • 26. Exercise Basic List zsales zsales-qty zsales-cust_id zsales-prod_id zsales-sale_id zproducts Detail List zsalereps zproducts-on_hand zproducts-p_id zsalereps-sale_id zsalereps-name
  • 27. Drill-Down 2 Levels Example Detail list level 2 (ZPRODUCTS) Basic list (ZCUSTOMERS) 2 1 Detail list level 1 (ZSALES)
  • 28. Program Example START-OF-SELECTION. SELECT * FROM zcustomers. WRITE: / zcustomers-id COLOR 4 HOTSPOT, 15 zcustomers-name. HIDE: zcustomers-id,zcustomers-name. ENDSELECT. CLEAR zcustomers-id. Hide Level 1 AT LINE-SELECTION. CASE sy-lsind. WHEN 1. GET CURSOR FIELD fieldname. IF fieldname = 'ZCUSTOMERS-ID'. SELECT * FROM zsales WHERE cust_id = zcustomers-id. IF sy-dbcnt = 1. WRITE: / zcustomers-id,15 zcustomers-name,30 zsales-prod_id HOTSPOT, 45 zsales-qty. Drill Down Level 1 HIDE: zsales-prod_id. ELSE. WRITE: /30 zsales-prod_id HOTSPOT, 45 zsales-qty. HIDE: zsales-prod_id. ENDIF. Hide Level 2 ENDSELECT. CLEAR: zcustomers-id,zsales-prod_id. ENDIF. WHEN 2. GET CURSOR FIELD fieldname. IF fieldname = 'ZSALES-PROD_ID'. SELECT SINGLE * FROM zproducts WHERE p_id = zsales-prod_id. Drill Down Level 2 IF sy-subrc = 0. WRITE: / zproducts-p_id,15 zproducts-prod_name,38 zproducts-on_hand. ENDIF. CLEAR zsales-prod_id. ENDIF. ENDCASE.
  • 29. Basic List Exercise SCARR Drill-down Level 1 SPFLI Drill-down Level 2 SFLIGHT Drill-down Level 3 SBOOK
  • 30. GUI Interface (User Interface)
  • 31. GUI Interface SET PF-STATUS …. => GUI Status SET TITLEBAR …. => GUI Title
  • 32. AT USER-COMMAND Event SET PF-STATUS ‘TEST’. ... AT USER-COMMAND. CASE sy-ucomm. WHEN ‘CODE1’. . WHEN ‘CODE2’. . ENDCASE.
  • 33. Standard Toolbar : System Function  System function do not trigger event AT USER-COMMAND  %EX = Exit  %PC = Save to file  %SC = Find  %SC+ = Find next  %ST = Save in report tree  BACK = Back  RW = Cancel  PRI = Print  P- = Scroll to previous page  P-- = Scroll to first page  P+ = Scroll to next page  P++ = Scroll to last page
  • 34. Alternative with AT USER-COMMAND REPORT ZRSDEM002. . START-OF-SELECTION SET PF-STATUS ‘BASE’. . . AT USER-COMMAND. CASE SY-UCOMM. WHEN ‘CARR’. SET PF_STATUS SPACE. “Set to standard GUI interface . WHEN ‘FLIG’. SET PF-STATUS ‘FLIG’. WRITE …
  • 35. GUI Status Excluding Function Code REPORT ztest. ... SET PF-STATUS ‘0100’. ... AT USER-COMMAND. CASE SY-UCOMM. WHEN ‘LIST’. SET PF-STATUS ‘0100’ excluding ‘LIST’. . WHEN ‘DISP’. SET PF-STATUS ‘0100’ excluding ‘DISP’. WRITE … . ....
  • 36. GUI Status Excluding Function Code REPORT ztest. DATA exctab(10) occurs 0 with header line. .... START-OF-SELECTION. SET PF-STATUS ‘0100’. ... exctab = ‘LIST’. APPEND exctab. exctab = ‘TEST’. APPEND exctab. ... AT USER-COMMAND. CASE SY-UCOMM. WHEN ‘LIST’. SET PF-STATUS ‘0100’ excluding exctab.
  • 40. Selection Screen  PARAMETERS Statement  SELECT-OPTIONS Statement
  • 42. Parameters PARAMETERS: tmp1(10) TYPE C, tmp2(10) TYPE C lower case, tmp3 LIKE sy-datum default sy-datum, tmp4 TYPE D default ‘19991231’, tmp5 TYPE i,
  • 43. Parameters Example Tables customers. Parameters pid like customers-id. START-OF-SELECTION. select single * from customers where id = pid. if sy-subrc = 0. write: / customers-name. else. write: / ‘No data found’. endif.
  • 44. Selection-Text  By default , the System displays the name of the selection as text on the Selection Screen  You Should use the Text element/Selection texts function to store a text line for each Selection Criterion.
  • 45. Check box Parameters tmp as checkbox default ‘X’.
  • 46. Radio Button Parameters: test1 Radiobutton group grp1, test2 Radiobutton group grp1.
  • 47. Required field with Parameters Parameters tmp like sy- datum obligatory.
  • 50. Complex Selection (Select-options) Tables spfli. Select-options carrid for spfli- carrid. START-OF-SELECTION. Select * From spfli Where carrid in carrid. . . .
  • 51. Select-Options “ต้องการให้แสดงข้อมูล customers ของ ลูกค้าที่มีชื่อ(คอลัมน์ name) ขึ้นต้นด้วย ตัว ‘M’ และลูกค้าที่ชื่อ ‘Smith’ และลูกค้า ที่ชื่ออยู่ระหว่าง ‘A’ กับ ‘John’ โดยใช้คำา สั่ง SELECT” Select * from customers where (name like ‘M%’) or (name = ‘Smith’) or (name between ‘A’ and
  • 52. Select-Options Tables customers. Select-options sname for customers-name. START-OF-SELECTION. Select * from customers Where name in sname.
  • 53. Internal Structure of Select-options sname Sign Option Low High
  • 54. Internal Structure of Select-options Field Value . Sign I = Include E = Exclude Option BT = Between CP = Contains Pattern EQ = Equal GT = Greater Than LT = Less Than GE = Grater Than or Equal LE = Less Than or Equal NE = Not Equal
  • 55. Internal Structure of Select-options sname Sn ig Ot n pio Lw o Hh ig I CP M* I EQ S it mh I BT A John
  • 56. SELECT-OPTIONS sname Sign O tion p Low Hh ig Select * from customers Transform where (name like ‘M%’) or I CP M* (name = ‘Smith’) or I EQ Smith (name between ‘A’ and ‘Jo I BT A John Select * from customers where name in sname.
  • 57. INITIALIZATION Event Tables Customers. Select-options sname for customers-name. Initialization. sname-sign = ‘I’. sname-option = ‘EQ’. sname-low = ‘Smith’. append sname. Start-of-Selection. Select * from customers Where name in sname.
  • 58. Select-options Options Select-options sname for customers- name obligatory. Select-options sname for customers- name no-extension. Select-options sname for customers- name no intervals.
  • 59. Designing Selection Screen Selection-screen begin of block test with frame Title text-001. . Selection-screen uline. Selection-screen skip 3. Selection-screen comment 3(10) text-001. Parameters month(2) type n. . Selection-screen end of block test.
  • 60. Designing Selection Screen selection-screen begin of line. selection-screen comment 1(7) text-001. selection-screen position 9. parameters month(2) type n. selection-screen comment 16(6) text-002. parameters year(4) type n. selection-screen end of line.
  • 61. Designing Selection Screen Selection-screen begin of block name1 with frame title text-001. Selection-screen begin of line. Parameters test1 radiobutton group test default ‘X’. Selection-screen comment 4(10) text-002. Selection-screen position 35. Parameters tcheck as checkbox. Selection-screen comment 37(15) text-003. Selection-screen end of line. Selection-screen begin of line. Parameters test2 radiobutton group test. Selection-screen comment 4(10) text-004. Selection-screen end of line. Selection-screen end of block name1.
  • 63. Checking User Input Tables customers. Data pcode_len type i. Parameters pcode like customers-postcode. At selection-screen. pcode_len = strlen( pcode ). if pcode_len <> 5. message e000(38) with ‘Please enter postcode 5 characters’. endif. Start-of-Selection. select * from customers where postcode =
  • 65. ABAP Program Processing Steps TABLES sflight. PARAMETERS nextday LIKE sy-datum. INITIALIZATION. nextday = sy-datum + 1. AT SELECTION-SCREEN. IF nextday < sy-datum. MESSAGE e000(38) WITH ‘Please enter da >= today’. ENDIF. START-OF-SELECTION. SELECT * FROM sflight WHERE ... fldate = nextday… …