18
CATEGORIA BOOK 1 Data: begin of fs1, Field1 type c value ‘1’, Field2 type n value ‘2’, Field3 type I value 3, end of fs1. Data: begin of fs2, Field3 type c, Field4 type n, Field5 type I, end of fs2. Move-Corresponding fs1 to fs2 fs2-field3 = 3 Sign Option Low High EDI e-mail 4 Smallest units in ABAP SAP LUW I, P, F

Simulado Prova Abap

Embed Size (px)

DESCRIPTION

Prova ABAP

Citation preview

Page 1: Simulado Prova Abap

CATEGORIA BOOK 1

Data: begin of fs1,Field1 type c value ‘1’,Field2 type n value ‘2’,Field3 type I value 3,end of fs1.

Data: begin of fs2,Field3 type c,Field4 type n,Field5 type I,  end of fs2.

Move-Corresponding fs1 to fs2

fs2-field3 = 3

Sign Option Low High

EDIe-mail

4

Smallest units in ABAP

SAP LUW

I, P, F

Page 2: Simulado Prova Abap

EZ* or EY*

Instance plus Database

Select single * from MYTABLE where number = '01' and name = 'LISA'

Screen Painter

The authorization concept is used to restrict access to data and transactions

Parameter Texts

Constructor

Immediately, providing the object is activated

SM37

Use menu option System>Status

rdisp/max_wprun_time

Business objects provide methods to implement business functions.Business objects are managed in the Business Object Repository (BOR).Business objects are business oriented.

Page 3: Simulado Prova Abap

One common generically defined user role

KeyIndex

Server responds to a client request regardless of hardware

User DialogsExceptions

Forms are more flexible but prone to a short dump if conversion does not work

It is an interfaceCan be a method of an objectIt is implemented as a function

Types: begin of itab_structure,Field1 type p,Field2 type c,Field3 type I,Field4 type n,  end of itab_structure.

Data: itab type table of itab_structure.

Sort itab.

Field2, Field4

Rec needs to be defined LIKE mytab in the FORM

Page 4: Simulado Prova Abap

Types: begin of itab_structure,Field1 type p,Field2 type c,Field3 type I,Field4 type n,end of itab_structure.

Data: itab type standard table of itab_structure.Data: wa_itab type itab_structure.

Clear itab

Data: st_mytab like mytab. Perform write_lines using st_mytab. Form write_lines using rec.     Write: / rec-field1, rec-field2. Endform.

Rec needs to be defined LIKE mytab in the FORM

Value

Authority-Check

Types: begin of itab_structure,Field1 type p,Field2 type c,Field3 type I,Field4 type n,end of itab_structure.

Data: itab type standard table of itab_structure.Data: wa_itab type itab_structure.

Insert wa_itab into table itab.

At the end

8

Page 5: Simulado Prova Abap

Functions

Message ID UD Type E Number 0004Message E004(UD)Message E004

Data: Today(8) type C.

Today = sy-datum.Today = 10.

10

Export Parameter 'RETURN'

SY-TABIX

TADIR

SM36

automates executon of activitiescontrols information flow

CREATEFROMDATAGETDETAILGETLIST

Page 6: Simulado Prova Abap

Report ZPROGA.Data: fielda type c.

Call Function Z_TEST_FUNCTION     Exporting fielda = fielda     Exceptions No_Entry = 01Failure = 02.

If sy-subrc = 01.Message E123.Endif.

Function Z_TEST_FUNCTIONImporting f_fieldaExporting f_fieldbExceptions No_EntryFailure

Message E123 Raising No_Entry

In Program ZPROGA

Perform calculate_sales using amount.

FORM calculate_sales changing value(f_amount)

Formal Parameter f_amount is allocated it’s own memory spaceFormal parameter is copied to memory space of actual parameter at the end of the form

SystemHelp

Issuing Problem Messages to SAPRequesting an access key for a change to SAP code

Write: ctr1, ctr2, ctr3.

enqueue

Page 7: Simulado Prova Abap

selection screen

Many Application servers and one Database serverOne Application server and one Database server

Types: ZFIELDA type I

SAP LUW

Domain

controls information flowautomates executon of activities

SORTEDSTANDARDHASHED

When objects belong to development class $TMP

Y_ or Z_

Data: Fielda type i value 1.Perform Calculate_Sales.Fielda = fielda + 1.write:/ fielda.

Form Calculate_Sales.  Data: Fielda type I value 2.  Fielda = Fielda + 2.Endform.

2

Page 8: Simulado Prova Abap

Report ABCData: …..

Start-of-Selection.Perform Form A.End-of-Selection.

Form A.  Loop at inttab.    ...    Exit.  Endloop.Endform.

Exits the Loop

SY-PFKEY

Controls resources for the R/3 applications

Groups up to 10 authorization fields in an AND relationship

Export Parameter 'RETURN'

distributing transaction loadorganizing communication

Connect to other SAP sites

Page 9: Simulado Prova Abap

Constants: C1(4) type C value 'ABCD'

Central

It is not possible

A.Project Leader creates a change request and assigns developers to the change requestB.Developer creates repository objects and assigns objects to a development classC.WBO creates a task for each developer assigned to the change requestD.Project Leader releases change requestE.Developer releases taskF.Objects are exported to the transport directory

A C B E D F

At Line-Selection

If you do not want to carry out a check for a field, it must contain the value "DUMMY"

Single Database

Database Interface

Data element documentation

Page 10: Simulado Prova Abap

ScreensSelection ScreenLists

ABAP

When the table is activated

sy-lsind

4

In the repository

Loop at itab. ctr = ctr + 1write: sy-tabix.check ctr = 3.delete itabendloop.

1 2 3 3 4

If Text Element 001 is not in your login language, then 'Hello' is displayed

1. Business Blueprint2. Realization3. Project Preparation4. Go-Live and Support5. Final Preparation

3, 1, 2, 5, 4

Page 11: Simulado Prova Abap

Clear ITAB[]Refresh ITAB

In a Function