cancel
Showing results for 
Search instead for 
Did you mean: 

Did BSP limit function call?

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Regards,

Subramanian V.

Former Member
0 Kudos

In debug, system just skip the function and terminate the BSP (in browser, show cannot display). SO it's also have no return code....

Former Member
0 Kudos

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.

Former Member
0 Kudos

We foloow your rule to find itz system short dump and solve. Many thanks!

Former Member
0 Kudos

Make sure you mark your problem as solved and assigned the well deserved points

Answers (2)

Answers (2)

Former Member
0 Kudos

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)

Former Member
0 Kudos

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.