Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How can i see the URL which has length more than 255 chars in fucnction

Former Member
0 Kudos

Hello Every body....

I am facing one problem....I have a function module which returns URL in one table

but in the function module display i am able to see only 255 characters,but the URL is more than 255 Characters..How can i see the URL which has the length more than 255 characters..

In the Table the fields url length is 4000 chars.....

but display it is showing only 255 chars.....

Please Help me...??????????

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello,

Have you tried breaking your structure into 255 chunks? I don't know what the structure you are moving from looks like, but you should be able break it back up into the SOLI structure. The end of a line in SOLI doesn't create a Carriage Return/Line Break. You have to insert these yourself like in the following:


* Create document
      clear mail_line.
      move 'This is a test E-Mail'(d01) to mail_line.
      concatenate mail_line
                  cl_abap_char_utilities=>newline
                  into mail_line.
      append mail_line to l_mailtext.



What kind of attachment are you wanting to create - a text tab delimited file for reading in a spreadsheet application such as excel? You might try reassembling your data table into a single string with newlines where you need them. Then use function module SCMS_STRING_TO_FTEXT to turn it back into SOLI. This is what I have done in the past. I'm afraid without knowing more about your source structure and attachment type, this is about all I can tell you.

Vasanth

3 REPLIES 3

Former Member
0 Kudos

Hi Preethi,

Could you provide the name of the function module you have mentioned below to help me and others analyze the issue?

Rgds,

Aditya

Former Member
0 Kudos

Hello,

Have you tried breaking your structure into 255 chunks? I don't know what the structure you are moving from looks like, but you should be able break it back up into the SOLI structure. The end of a line in SOLI doesn't create a Carriage Return/Line Break. You have to insert these yourself like in the following:


* Create document
      clear mail_line.
      move 'This is a test E-Mail'(d01) to mail_line.
      concatenate mail_line
                  cl_abap_char_utilities=>newline
                  into mail_line.
      append mail_line to l_mailtext.



What kind of attachment are you wanting to create - a text tab delimited file for reading in a spreadsheet application such as excel? You might try reassembling your data table into a single string with newlines where you need them. Then use function module SCMS_STRING_TO_FTEXT to turn it back into SOLI. This is what I have done in the past. I'm afraid without knowing more about your source structure and attachment type, this is about all I can tell you.

Vasanth

Former Member
0 Kudos

Hello ,

In the function module I have a structure SDOK_IFACE and in the structure have a filed URL(type:SAEURI) ...The function module returing the url value morethan 255 characters(I have seen in debugging).But in the display of function module i am able to see only 255 chars...

Please cofirm me the same???