on 12-02-2004 12:03 PM
We have create a simple BSP application, there we call a function 'LANGUAGE_CODE_SAP_TO_ISO' first in a page. But if we call another function 'READ_TEXT' continuly, the later one never work anymore! Whatz up with our BSP?
Our code in BSP application:
event handler for data retrieval
tt_banfn = '0010000022'.
SELECT * FROM eban
INTO CORRESPONDING FIELDS OF TABLE
tt_eban
WHERE banfn = tt_banfn.
SELECT banfn badat bsart afnam FROM eban
INTO (tt_banfn, tt_badat, tt_bsart, tt_afnam)
WHERE banfn = tt_banfn.
ENDSELECT.
DATA t_name(15) TYPE c.
DATA: zebantab1 TYPE zebantab1,
zebantab TYPE zebantab.
*DATA: tline like tline.
TYPES: BEGIN OF tt_line,
tdformat TYPE tdformat,
tdline TYPE tdline,
END OF tt_line.
DATA itab1 TYPE STANDARD TABLE OF tt_line
INITIAL SIZE 0.
DATA itab2 TYPE STANDARD TABLE OF tt_line
INITIAL SIZE 0.
LOOP AT tt_eban INTO zebantab.
CONCATENATE tt_banfn zebantab-bnfpo INTO t_name.
DATA: iso type LAISO.
CALL FUNCTION 'LANGUAGE_CODE_SAP_TO_ISO'
EXPORTING SAP_CODE = sy-langu
IMPORTING ISO_CODE = iso
EXCEPTIONS OTHERS = 1.
IF sy-subrc IS INITIAL and ( iso eq 'EN' or iso eq
'DE' ).
endif.
*TTXOB TTXID
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
id = 'B01'
language = 'ZF'
name = t_name
object = 'EBAN'
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER = itab3
tables
lines = itab1
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.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
MODIFY tt_eban FROM zebantab.
ENDLOOP.
Do you get an error message, no sy-subrc errors ??
Regards,
Subramanian V.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That is strange...very strange. Try also <b>ST22</b>, if it gives a dump or something of that sort.
You might also want to Turn off "Show Friendly Errors" in your browser(thanks to Craig and Thomas for that, didn't know about that earlier).
If nothing helps , try writing a message in OSS.
(Still thinks, last option not required).
Regards,
Subramanian V.
Hi Madison,
Like Craig said, please remember to give points. It's a way to say "thanks" for helpful responses.
See: </people/mark.finnern/blog/2004/08/10/spread-the-love for directions.
Click on the Yellow Star icon in each reply.
You can give:
1 - 10 pointer (solves problem, marks as answered)
2 - 6 pointers (very helpful)
Lots of 2 pointers (helpful)
This time I did it for you, but you can change it.
Cheers,
Linda (and Mark Finnern)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think the parameter language = 'ZF' of READ_TEXT is wrong. The internal Format for Language is only 1 character.
Try your ABAP as a Report instead of BSP for testing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.