Long Text in input and output field in module pool


display long text in input and output field then below code help you how to display long text
your input and output fields in sap

************************************************************************
* Program Name      :  ZLONG_TEXT_EDITOR           Object ID:   p002    *
* Description       :  Long text with function module                   *
* Create Date       :  26.12.2018                                      *
* FO Owner          :  Rohini kumar                                    *
* Tech Owner        :  Rohini Kumar                                    *
* Project Module    :  SD                                              *
************************************************************************
*                        Change Log                                    *
************************************************************************
*  REQ#         DATE         WHO            CHANGE_ID        DESCR     *
*-----------------------------------------------------------------------
*  001                                                      Initial    *
************************************************************************

REPORT  zlong_text_editor.
DATAtext TYPE catsxt_longtext_itab,
      ls_line LIKE LINE OF text.

DATAlv_string TYPE string.

CALL FUNCTION 'CATSXT_SIMPLE_TEXT_EDITOR'
  EXPORTING
    im_title        'Dev'
*   IM_DISPLAY_MODE = 'Read'
    im_start_column 0
    im_start_row    1
  CHANGING
    ch_text         text" it will fill the long text here.

LOOP AT text INTO ls_line.


  CONCATENATE lv_string ls_line INTO lv_string SEPARATED BY space.
ENDLOOP.


WRITElv_string.

Comments

  1. I get error as catsxt_longtext_itab is unknown. How to resolve it.

    ReplyDelete

Post a Comment

Popular posts from this blog

all user exit mv45afzz (implicit user exit )

MB_MIGO_BADI THIS BADI USED TO POSTING DATA IN MIGO