We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

[sap-dev] check if the text id language is english

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Posted by dlhuang (software engineer)
on Jun 21 at 8:21 PM
Hi Buddy

i need to identify if the language for the header 'Freight' (text id 9026)and 'identification'(text id is 9040) of 'VBBK' object is English.

the ABAP programming logic should be like this

method truefalse.

call function 'READ_TEXT' .....
if sy-subrc = 0.
return abap_true.
else.
return abap_false.
endif.

endmethod.

However, method always returns false because sy-subrc always = 4.

I do not know why?
please help me? Thanks




CALL FUNCTION 'READ_TEXT'
EXPORTING
ID = '9040'
LANGUAGE = 'D'
NAME = nm
OBJECT = 'VBBK'
TABLES
LINES = LINES
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8

if sy-sybrc <> 0.
do sothing...................
endif.
.

__.____._
Copyright © 2010 Toolbox.com and message author.

Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language