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

Re: how to find whether a long text exists or not for gaiven material

$
0
0

jurgen,

 

as u said

 

i will use FM

 

CALL FUNCTION 'READ_TEXT'         EXPORTING           CLIENT                        = SY-MANDT           ID                            = 'GRUN'           LANGUAGE                      = sy-langu           NAME                          = lv_name           OBJECT                        = 'MATERIAL'
 *         ARCHIVE_HANDLE                = 0
 *         LOCAL_CAT                     = ' '
 *       IMPORTING
 *         HEADER                        =         TABLES           LINES                         = it_lines        EXCEPTIONS          ID                            = 1          LANGUAGE                      = 2          NAME                          = 3          NOT_FOUND                     = 4          OBJECT                        = 5          REFERENCE_CHECK               = 6          WRONG_ACCESS_TO_ARCHIVE       = 7          ERROR_MESSAGE                 = 9          OTHERS                        = 8

 

where lv_name is my material number,

 

i need only basic data text (ID = GRUN)

 

if it_lines is not initial then i will print long text (in smartform)

 

else

 

print short text..


Viewing all articles
Browse latest Browse all 8644

Trending Articles



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