Thursday, October 19, 2017

Reference of Field Catalog Structure

This table provides the reference for attributes of Field Catalog structure:
Field name
Short description
Purpose
CFIELDNAME
Field name for currency unit referenced
CHECKBOX
Output as checkbox
COL_ID
Numerical column identification (read-only)
COL_POS
Position of output column
COLDDICTXT
Definition of DDIC text reference
COLTEXT
Column label for dialog functions
CURRENCY
Currency unit
DD_OUTLEN
Output length in characters
DECIMALS_O
Number of decimal places for output
DECMLFIELD
Field name with DECIMALS specification
DO_SUM
Totals calculation for column values
DRAGDROPID
Drag & Drop handle for Drag & Drop object
EDIT_MASK
EditMask for output
EMPHASIZE
Column color
EXPONENT
Exponent for float representation
FIELDNAME
Field name of internal table field
HOTSPOT
Single-click sensitive (e.g. click on a sale doc and navigate to VA03)
HREF_HNDLE
Assign hyperlink
Output as icon
INTLEN
Internal length in Char
INTTYPE
ABAP data type (C,D,N,...)
Justification
Key column
LOWERCASE
Lower case allowed/not allowed
LZERO
Display leading zeros
NO_MERGING
Do not merge cells
NO_OUT
Do not display columns
NO_SIGN
Suppress sign in display
NO_SUM
No totals calculation for column values
NO_ZERO
Suppress zeros in display
OUTPUTLEN
Column width in characters
QFIELDNAME
Field name for quantity unit referenced
QUANTITY
Quantity unit
REF_FIELD
Reference field name for internal table field
REF_TABLE
Reference table name for internal table field
REPREP
Property is selection criterion for report/report interface
REPTEXT
Header (DDIC text of the corresponding data element)
ROLLNAME
Data element for F1 help
ROUND
ROUND value
ROUNDFIELD
Field name with ROUND specification
SCRTEXT_L
Long field label (DDIC text of the corresponding data element)
SCRTEXT_M
Medium field label (DDIC text of the corresponding data element)
SCRTEXT_S
Short field label (DDIC text of the corresponding data element)
SELDDICTXT
Definition of DDIC text reference
SELTEXT
Column label for dialog function
SP_GROUP
Group key
STYLE
Output as pushbutton
SYMBOL
Output as symbol
Technical fields
TIPDDICTXT
Definition of DDIC text reference
TOOLTIP
Tool tip for column header
TXT_FIELD
Field name of internal table field
WEB_FIELD
Field name of internal table field (for hyperlink)
Code Sample:
This following example display ALV by Function Module (therefore type slis to be used):
- SLIS_FIELDCAT_ALV/ SLIS_T_FIELDCAT_ALV type is used for ALV type with Function Module
- LVC_S_FCAT/ LVC_T_FCAT type is used for OOP ALV
data:IT_FIELDCAT type slis_t_fieldcat_alv WITH HEADER LINE. data:
begin of itable occurs 0,
  pernr like pa0000-pernr,
  ename like pa0001-ename,
end of itable.
it_fieldcat-fieldname = 'PERNR'.
it_fieldcat-tabname = 'ITAB'.
it_fieldcat-outputlen = '10'. append it_fieldcat.
it_fieldcat-fieldname = 'ENAME'. it_fieldcat-tabname = 'ITAB'. it_fieldcat-outputlen = '20'. append it_fieldcat.
SELECT APERNR BENAME
INTO TABLE ITABLE
FROM PA0000 AS A INNER JOIN       PA0001 AS B
  ON APERNR = BPERNR.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING I_INTERFACE_CHECK = ' ' I_BYPASSING_BUFFER = ' ' I_BUFFER_ACTIVE = ' ' I_CALLBACK_PROGRAM = ' ' I_CALLBACK_PF_STATUS_SET = ' ' I_CALLBACK_USER_COMMAND = ' ' I_CALLBACK_TOP_OF_PAGE = ' ' I_CALLBACK_HTML_TOP_OF_PAGE = ' ' I_CALLBACK_HTML_END_OF_LIST = ' ' I_STRUCTURE_NAME = ' ' I_BACKGROUND_ID = ' ' I_GRID_TITLE = I_GRID_SETTINGS = IS_LAYOUT = IT_FIELDCAT = IT_FIELDCAT[] IT_EXCLUDING = IT_SPECIAL_GROUPS = IT_SORT = IT_FILTER = IS_SEL_HIDE = I_DEFAULT = 'X' I_SAVE = ' ' IS_VARIANT = IT_EVENTS = IT_EVENT_EXIT = IS_PRINT = IS_REPREP_ID = I_SCREEN_START_COLUMN = 0 I_SCREEN_START_LINE = 0 I_SCREEN_END_COLUMN = 0 I_SCREEN_END_LINE = 0 IT_ALV_GRAPHICS = IT_HYPERLINK = IT_ADD_FIELDCAT = IT_EXCEPT_QINFO = I_HTML_HEIGHT_TOP = I_HTML_HEIGHT_END = IMPORTING E_EXIT_CAUSED_BY_CALLER = ES_EXIT_CAUSED_BY_USER = TABLES T_OUTTAB = ITABLE EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2 . IF SY-SUBRC <> 0.  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO     WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. ENDIF.

SAP giới thiệu mã hỗ trợ AI trong ngôn ngữ ABAP riêng của mình

SAP đã ra mắt một loạt tính năng mã hỗ trợ AI trong môi trường phát triển ứng dụng dựa trên đám mây của mình, đồng thời tham gia vào danh sá...