cancel
Showing results for 
Search instead for 
Did you mean: 

smartform causing dump

Former Member
0 Kudos

sir,

During debugging for occurence of dump in smartform , i found it is happening in following code.

&W_SUB0(255)&&W_SUB256(255)&&W_SUB+512(255)&

could any one please help me to solve it.

Srinivasa Murthy

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Murthy,

The dump might be because the string W_SUB which you are accessing is not having so many characters.

Before displaying the sub strings

try to check if the string lenght greater that what you want. if true then pass that value to one variable and then try to print it in smart form in this format &Var1(C)&.

if suppose ur string is W_SUB = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.

if strlen(W_SUB) > 10.

v_str1 = w_sub+3(6).

endif.

in the text element write &V_STR1(C)&.

hope this will solve your problem.

regards,

Tulasi.

Answers (5)

Answers (5)

Former Member
0 Kudos

Sir/Madam,

I have corrected the problem as follows.

For printing in node text i took 'include text' , 'append directly' instead of 'text element' ,'new paragraph'.

I passed the required parameters - TDNAME, TDOBJECT,TDID,TDSPARAS.

problem is solved.

Thank you very much for all of you for responding to my thread.

Srinivasa Murthy

Former Member
0 Kudos

Hi,

After seeing the line where it dumps my question is why are you using offsets when the enitre content upto ( 512+255 ) is to be displayed.

If the entire content is more than ( 512 + 255 ) and you want to show them use exactly like +0(767).

Regards,

Ram

Former Member
0 Kudos

Hi

Lets know what the length of W_SUB variable & the data type too.

Rgds,

Sripal

Former Member
0 Kudos

Hi,

What is the length of w_sub variable.

It might be the problem of length.

Former Member
0 Kudos

Hi,

1) What is the short dump?

2) What is the definition of W_SUB?

Regards,

Nick