‎2011 May 30 7:09 AM
HI All
I am generating a code and the code that was generated by my class is not nice ...
i want to use the pretty printer on while generating a code there is option to do that ?
Regards
Joy
‎2011 May 30 7:28 AM
Hi Joy,
just call these 2 functions in that order.
data: lt_source type table of string.
CALL FUNCTION 'CREATE_PRETTY_PRINT_FORMAT'
EXPORTING
mode = 'HIKEY'
TABLES
SOURCE = lt_source
EXCEPTIONS
syntax_errors = 1
OTHERS = 2.
CALL FUNCTION 'PRETTY_PRINTER'
EXPORTING
inctoo = ''
TABLES
ntext = lt_source
otext = lt_source
EXCEPTIONS
enqueue_table_full = 1
include_enqueued = 2
include_readerror = 3
include_writeerror = 4
OTHERS = 5.
‎2011 May 30 7:28 AM
Hi Joy,
just call these 2 functions in that order.
data: lt_source type table of string.
CALL FUNCTION 'CREATE_PRETTY_PRINT_FORMAT'
EXPORTING
mode = 'HIKEY'
TABLES
SOURCE = lt_source
EXCEPTIONS
syntax_errors = 1
OTHERS = 2.
CALL FUNCTION 'PRETTY_PRINTER'
EXPORTING
inctoo = ''
TABLES
ntext = lt_source
otext = lt_source
EXCEPTIONS
enqueue_table_full = 1
include_enqueued = 2
include_readerror = 3
include_writeerror = 4
OTHERS = 5.
‎2011 May 30 9:13 AM
HI Oliver ,
Thanks , how can use option of pretty printer like keyword uppercase ?
or indent ?
Thanks,
joy
‎2011 May 30 9:16 AM