cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding Script

former_member209914
Participant
0 Kudos

Hi ,

I have a form (script) called ZZ_S_SD_ORD_CONF.

This comes under Sales Order(RVORDER01).

And there is a window called as REFNUMB in form Layout ZZ_S_SD_ORD_CONF, As soon as I click on this window and select Text Elements. It gave Run Time Error. It is saying that there is a problem in Standard Program SAPLSTTXK.

We were given a Standard Script Form that is Z_SALES_BILLING .

Even with this Form (Z_SALES_BILLING) also (is standard for us), the same problem has occured.

I only have tried to view the data, then it gave an error.

I want to see what is available in that window, but I am unable to view it.

I am unable to send the screen shot of it.

problem is at line 1049.

so i am sending the error text which has occured.please don't mind.

Kindly solve this problem.

********************************************************************************************

Runtime Errors TABLE_INVALID_INDEX

Date and Time 01/15/2008 06:58:58

ShrtText

Error in ABAP statement when processing an internal table.

What happened?

Error in ABAP application program.

The current ABAP program "SAPLSTXK" had to be terminated because one of the

statements could not be executed.

This is probably due to an error in the ABAP program.

Error analysis

When changing or deleting one or more lines of the internal table

"\FUNCTION-POOL=STXK\DATA=ITF_STRING[]" or when inserting in the table

"\FUNCTION-POOL=STXK\DATA=ITF_STRING[]", 0 was used as

the line index. An index less than or equal to zero is not

allowed.

The error can occur when using the following options:

1. "INDEX idx" for specifying the line number in the table

"\FUNCTION-POOL=STXK\DATA=ITF_STRING[]"

where you want to change, insert or delete.

2. "FROM idx" for specifying the start index when deleting a line

area from or inserting a line area into the table

"\FUNCTION-POOL=STXK\DATA=ITF_STRING[]".

3. "TO idx" for specifying the end index when deleting a line

area from or inserting a line area into the table

"\FUNCTION-POOL=STXK\DATA=ITF_STRING[]".

When the program terminated, the table had 0 lines.

Trigger Location of Runtime Error

Program SAPLSTXK

Include LSTXKFRN

Row 1,050

Module type (FORM)

Module Name RESET_RTF_STYLE_NEW

Source Code Extract

Line SourceCde

1020 ENDIF.

1021

1022 ENDFORM. " SET_RTF_STYLE_NEW

1023

1024 &----


1025 *& Form TOKEN_CTAG_END

1026 &----


1027 * finish character tag

1028 ----


1029 * <->P_TOKEN actual token *

1030 ----


1031 FORM token_ctag_end CHANGING p_token TYPE itf_token.

1032

1033 CHECK p_token-code = c_token_ctag_end.

1034 PERFORM reset_rtf_style_new.

1035

1036 ENDFORM. " TOKEN_CTAG_END

1037

1038 &----


1039 *& Form RESET_RTF_STYLE_NEW

1040 &----


1041 * new version of reset_rtf_style

1042 ----


1043 FORM reset_rtf_style_new.

1044 DATA: l_len TYPE i,

1045 l_size TYPE i.

1046

1047 READ TABLE itf_string INDEX itf_stack.

1048 READ TABLE itf_sstyle WITH KEY tdstring = itf_string. "BINARY SEARCH.

1049 IF sy-subrc > 0.

> > > > > DELETE itf_string INDEX itf_stack.

1051 SUBTRACT 1 FROM itf_stack.

1052 EXIT.

1053 ENDIF.

1054

1055 IF protspace = true.

1056 DESCRIBE TABLE itf_protect LINES l

1057 READ TABLE itf_protect INDEX l_siz

1058 READ TABLE itf_string INDEX itf_st

1059 IF itf_protect = itf_string.

1060 protspace = false.

1061 ENDIF.

1062 ENDIF.

1063

1064 token_control = true.

1065

1066 * if ssheet = 'ONLINE_HELP.DOT' and

1067 * ( itf_string = 'DS' or itf_string

1068 * ind_hyperlink = true.

1069 * ind_hyperlink = false.

********************************************************************************************

Thanks,

Vinod.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

As per error text, the error is in line,

READ TABLE itf_sstyle WITH KEY tdstring = itf_string. "BINARY SEARCH.

Internal table itf_string didnot contain any lines. Debug the program or just manually pass the index value 1 for reading the internal table to find the error.