본문 바로가기

SAP/ABAP

[C_TAW12_750] 코드/dynpro있는 것만 따로 정리

dynpro

Web Dynpro ABAP (SAP Library - Web Dynpro ABAP) - web dynpro for abap을 이용하여 web 프로그램 개발

web dynpro component는 한개의 component controller을 갖는다.

view마다 1개씩 생성되는 view controller와  component controller가 데이터를 서로 주고 받는 것

view controller와 custom(component)controller가 데이터를 서로 주고 받는 것을 context mapping 이라고 한다.

(view가 view controller와 데이터를 주고 받는 것은 data binding이라고 한다)

 

what can be exposed in the component interface of a web dynpro component?

custom methods of the component controller

 

which of the following  are features of the context in web dynpro?

data is shared between controllers through context mapping

every web dynpro controller has one context

 

you are establishing the business logic layout for a web dynpro component.  which service types are available in the service call wizard?

web service proxy

class method

function module

 

at web dynpro component, establish the business logic layout. which service types are avalable in the service call wizard.

web service proxy

class method

function module

(wizard -> web class function)

 

which of the following controller types can exist only once in a web dynpro componen?

component controller

configuration controller

 

which of the following items are used in a web dynpro application to transport database data to the user interface?

context node

interface controller

(data -> context , to the user interface -> interface controller)

 

which of the following standard hook methods exist in all web dynpro controller?

wddoint

wddoexit

 

what type of method is generated automatically by the web Dynpro exploer when you assign an action to a button UI element? - event handler method

 

 

CODE

 

a class is defined as follows

CLASS my_class DEFINITION
PUBLIC SELECTION
METHODS do_something
EVENTS state_changed
CLASS-Methods static 1
PRIVATE SECTOIN
TYPES t_table TYPE STANDARD TABLE OF 1001
CONSTANCTS gc_canst TYPE I VALUE 1
END CLASS.

which components of the class can static method static 1 address directly?

 t_table type

gc_const constant

 

which of the following ABAP code lines is valid?

PARAMETERS p_matnr TYPE matnr DEFAULT '100'.
constants gc_matnr TYPE matnr VALUE '100'.

 

you want to develop a validation routine for a selection screen field. if a wrong value is entered into the field, an error message should be displayed and the focus shou;d move to the field. which event do you use to achieve this?

at selection -screen.

 

an ABAP program processes the following expression: r= a/b +c .

which of the following data declarations would cause the runtime environment to use fixed-point arithmetic for the above expression?

DATA: r TYPE p DECIMALS 2,
a TYPE i VALUE 201,
b TYPE i VALUE 200,
c TYPE p.
처음 type p 끝 type p

DATA: r TYPE f,
a TYPE i VALUE 201,
b TYPE i VALUE 200,
c TYPE f.
처음 type f 끝 type f

 

after which statement will the runtime system initialize the ABAP memory?

LEAVE TO TRANSACTION

you write a program that updates a data record in the database using the following statemnt.

UPDATE scarr FROM ls scarr.

which of the following task does the database interface perform?

it applies a logical log to the update data record

it translate this statement to native sql

 

 

in which of the following source code blocks can you define local data objects?(3)

function module

static method

subroutine

 

you enhance an SAP standard global class by defining a post-method for an SAP method.

the original SAP method has an EXPORT parameter named PARM1.

which parameters does the post-method have?

 

A CHANGING parameter named PARM1.

you build a dialog sreen with an input field in an ABAP program. how do you ensure that the contents of the screen field can be accessed in the program?

USE a MOVE statement in a PAI module to copy the data to a data object.

 

which of the following statements dynamically changes the data type of field z1?

assign a1 to <fs> CASTING.

you have been asked by a customer to develop open SQL code to convert the value of argument 'arg' into the ABAP dictionary specfied.  which SQL syntax do you use to meet this requirement?

CAST (arg AS type)

you have the following class definition.

CLASS DEFINITION

PUBLIC SECTION.
METHODS : set_passengers.

PROTECTED SECTION.
CONSTANT c_pos TYPE i.
METHODS get_passengers.

PRIVATE SECTION.
DATA mv_passengers TYPE i.
METHODS set_attributs.

ENDCLASS.

which components can be addressed directly from subclass of class?

(private 빼고 다)

set_ passenters

c_pos

get_passngers

 

a screen has the following PAI for flow logic;

PROCESS AFTER INPUT
FIELD A MODULE check_A
FIELD A MODULE check_B
CHAIN.

FIELD: C,D
MODULE check_CD
ENDCHAIN.

FIELD :C,B
MODULE
ENDCHAIN.

what happens if the application send a type E messange during the module processin?

the screen is displayed again without processing the PBO logic flow. only fields B and C are ready for input.

 

what abap statements can you use to create an instance of the class CL_GUI_CUSTOM_CONTAINER in an abap program?

DATA: go_container TYPE REF TO CL_GUI_CUSTOM_CONTAINER.
CREATE OBJECT go_container...

data type ref to
create object

you write the following ABAP statement.

SELECT SINGLE carrid connid cityfrom cityto FROM spfli INTO gs_spfli
WHERE carrid = pa_car AND connid = pa_con.

how are the fields in the field list of the SELECT statement copied to the target structure?

they are copied from left to right.( from a to b)

 

you run an executable program which contains the following code;

DATA: gv_var1 TYPE n  LENGTH 3,
gv_var2 TYPE n LENGTH 3 VALUE '456'.

START-OF-SELECTION.
CLEAR gv_var2.
gv_var2 = gv_var1.
gv_var1 = '123'.

at what point does the system reserve memory for the data object gv_var1?

as soon as the program is loaded into the internal session.

 

which of the following statement correctlry define a date object which the type of data element s_conn_id?

DATA gv_id TYPE s_conn_id.

you have written a method implementation containing the following access to an internal table defined as a changing parameter of the method

READ TABLE ct_itab INDEX 1.

what are the possible type definitaions for parameter ct_itab?

sorted

standard

index table

 

you call a lock module. which exceptions could the lock module raise when a logical lock CANNOT be set? (2)

SYSTEM_FAILURE

FOREIGN_LOCK

 

you want to loop over an internal table without copying each table row to a work area.

how can you achieve this using a fiedl symbol? (1)

LOOP AT <itab> ASSIGNING <field_symbol> . 
ENDLOOP.

 

predefined data types are character types? - 56번

D

T

N

 

which data types are imcomplete ABAP standard data types?

N

C

P

 

which  of the following incomplete ABAP predefined data types? (3)

 

X

N

P