Skip to Content
author's profile photo Former Member
Former Member

Did BSP limit function call?

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 02, 2004 at 12:17 PM

    Do you get an error message, no sy-subrc errors ??

    Regards,

    Subramanian V.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 06, 2004 at 02:20 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 10, 2004 at 08:48 PM

    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)

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.