on 09-17-2009 3:38 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Lets know what the length of W_SUB variable & the data type too.
Rgds,
Sripal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
What is the length of w_sub variable.
It might be the problem of length.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
1) What is the short dump?
2) What is the definition of W_SUB?
Regards,
Nick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.