Skip to content

Commit 010a2b4

Browse files
authored
Update docs for constructor of serializer classes (#221)
1 parent 434fa67 commit 010a2b4

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

Diff for: src/development-guide/serializers/serializers.md

+10-6
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ The constructor is implemented in the superclass and takes two parameters as inp
1010

1111
Parameter | Description
1212
----------|------------
13-
`IS_ITEM` | Contains object type, object name, SAP package, and state (active/inactive)
14-
`IV_LANGUAGE` | Contains the language key for the main language of the repository
13+
`IS_ITEM` | Contains object type, object name, SAP package, and state (active/inactive)
14+
`IV_LANGUAGE` | Contains the language key for the main language of the repository
15+
`IO_FILES` | Collection of files associtated with the object
16+
`IO_I18N_PARAMS` | Parameters related to translation of objects
1517

16-
These parameters are stored in attributes `MS_ITEM` and `MV_LANGUAGE` respectively.
18+
These parameters are stored in attributes `MS_ITEM`, `MV_LANGUAGE`, `MO_FILES`, and `MO_I18N_PARAMS` respectively.
1719

1820
Requirements that are necessary to support an object type should be checked in the constructor using the following logic. This is typical if object types are not supported in lower releases.
1921

@@ -23,14 +25,16 @@ Requirements that are necessary to support an object type should be checked in t
2325
DATA ...
2426
2527
super->constructor(
26-
is_item = is_item
27-
iv_language = iv_language ).
28+
is_item = is_item
29+
iv_language = iv_language
30+
io_files = io_files
31+
io_i18n_params = io_i18n_params ).
2832
2933
TRY.
3034
" Check requirements...
3135
CATCH cx_root.
3236
" Raise an exception if not supported
33-
zcx_abapgit_exception=>raise( 'Object type DDLS not supported' ).
37+
zcx_abapgit_exception=>raise( 'Object type SRFC not supported' ).
3438
ENDTRY.
3539
3640
ENDMETHOD.

0 commit comments

Comments
 (0)