Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8332

Re: Sales document--Text

$
0
0

Hi Ravi,

 

    Please go through the below code.

 

LV_NAME = BIL_NUMBER.

CALL FUNCTION 'READ_TEXT'

   EXPORTING

     CLIENT                  = SY-MANDT

     ID                      = '0002'   "" text-id

     LANGUAGE                = SY-LANGU

     NAME                    = LV_NAME

     OBJECT                  = 'VBBK'  ""Sales

   TABLES

     LINES                   = TLINES

   EXCEPTIONS

     ID                      = 1

     LANGUAGE                = 2

     NAME                    = 3

     NOT_FOUND               = 4

     OBJECT                  = 5

     REFERENCE_CHECK         = 6

     WRONG_ACCESS_TO_ARCHIVE = 7

     OTHERS                  = 8.

IF SY-SUBRC = 0.

   LOOP AT TLINES INTO LS_TLINES.

     CONCATENATE REMARKS LS_TLINES-TDLINE

    INTO REMARKS SEPARATED BY SPACE.

     CLEAR LS_TLINES-TDLINE.

   ENDLOOP.

ENDIF.


Regards,

Krishna


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>