728x90


It is a Type-Pool which has all of the TYPES statements for the ALV. You can specify its use by adding the TYPE-POOLS statement to your program.

 

SLIS를 type-pool로 선언하여 프로그램에서 사용하겠다는 의미. TYPE-POOL이란 SAP에서 제공하는 각종 타입 및 Constants가 선언되어 있는 그룹이다. 

 

 

TABLES *table_wa.

This statement declares an additional table work area *table_wa, whose data type, like that of the regular TABLES statement with its flat structured data type table_wa, is taken from ABAP Dictionary.

The additional table work area can be used just like the regular table work area. This applies in particular to obsolete database accesses.

 

PARAMETERS : -----   MATCHCODE OBJECT [Search Help명]

For many entry fields, but not all, SAP provides a search function called a Matchcode. Matchcodes allow you to select a value from a list or search for a value by categories of data if there are many possibilities.

EX) Search Help SD_DEBI (Customers: SD collective search help)

 

MEMORY ID

when u are passing on values from one program to another program then we can use memory ID's

Program1

EXPORT EXCH1 TO MEMORY ID 'EXCH'.

Program2

IMPORT EXCH1 FROM MEMORY ID 'EXCH'.

EXCH1 is the variable name whose value u are exporting and importing from..

This is only valid till the particular session,

dont forget to award points if found helpful

 

 

NO-EXTENSION : Multiple 입력가능한 화살표 버튼 제거. NO INTERVALS : SELECT-OPTIONS의 간격 기능 제거

 

 

 

*  MODIF ID
*  - 화면 구성요소의 속성(입력 가능, 불가능 등)을 일괄적으로 변경하기 위해
*    해당 변수들을 GROUP으로 묶어줌
*  - AT SELECTION-SCREEN OUTPUT 에서 사용

 

 

 

AT SELECTION-SCREEN OUTPUT · 실행 시점: 선택 화면이 사용자에게 처음 표시되기 직전에 실행됨

The assignments to input fields in the event block AT SELECTION-SCREEN OUTPUT always affect the selection screen and overwrite the user input from previous displays of the same selection screen. Assignments in the event blocks LOAD-OF-PROGRAM or INITIALIZATION, on the other hand, only have an effect the first time the program starts.

 

difference between at selection screen and at selection screen output.

AT SELECTION SCREEN:

when user enters the values in the fields of the selection screen and clicks on execution button,this event gets triggered.this event is basically for checking the value entered by the user for the field of the selection screen i.e data validity checking.this event is for entire selection screen.

AT SELECTION SCREEN OUTPUT:

This event is executed at PBO of the selection screen every time the user presses

ENTER - in contrast to INITIALIZATION . Therefore, this event is not suitable for setting selection screen default values.

Also, since AT SELECTION-SCREEN OUTPUT is first executed after the variant is imported (if a variant is used)

and after adopting any values specified under SUBMIT in the WITH clause, changing the report parameters

or the selection options in AT SELECTION-SCREEN OUTPUT would destroy the specified values.

Here, however, you can use LOOP AT SCREEN or MODIFY SCREEN to change the input/output attributes of selection screen fields.

Example

Output all fields of the SELECT-OPTION NAME highlighted:

SELECT-OPTIONS NAME FOR SY-REPID MODIF ID XYZ.

....

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

CHECK SCREEN-GROUP1 = 'XYZ'.

SCREEN-INTENSIFIED = '1'.

MODIFY SCREEN.

ENDLOOP.

The addition MODIF ID XYZ to the key word SELECT-OPTIONS

assigns all fields of the selection option NAME to a group you can read in the field SCREEN-GROUP1 .

At PBO of the selection screen, all these fields are then set to highlighted

 

=====================================================================

 

SY-REPID : Current Program, 현재 프로그램의 ID 

SY-CPROG : Calling Program, 현재 프로그램(Function, Class method 등)을 호출한 프로그램의 ID

 

 

SLIS_LAYOUT_ALV: syructure layout of the report

It is used to for defining the layout of your ALV report

like

ls_layout TYPE slis_layout_alv.

and we define different paramters of this layout like

ls_layout-group_change_edit = 'X'.

ls_layout-colwidth_optimize = 'X'.

ls_layout-zebra = 'X'.

ls_layout-detail_popup = 'X'.

ls_layout-get_selinfos = 'X'.

ls_layout-max_linesize = '200'.

 

 

SLIS_T_FIELDCAT_ALV

This internal table contains the field attributes. This internal table can be populated automatically by using ‘REUSE_ALV_FIELDCATALOG_MERGE’.

It is nothing but a type group to declare fieldcat table for alv display. The fieldcat is nothing but the output display properties of each field in the alv report.

 

 

SLIS_T_EVENT: This is to set the events (for display the header data).

 

SLIS_T_LISTHEADER

slis_t_listheader gives the heading of a list.It is composed of the list title in the title bar and of any column headings. These can be maintained as part of the text elements of an ABAP program for the standard page header.

 

 

BSID : 고객에 대한 미결(채권)을 관리하는 테이블.(반제가 되면 삭제되고, BSAD로 이관)

BSAD : 고객에 대한 반제를 관리하는 테이블

728x90

+ Recent posts