Skip to Content
author's profile photo Former Member
Former Member

Condense problem

Hi all

i am facing problem with condense.

here is my requirement i am sending file to the Webmethods server. to send file to webmethods server i have to declare all the fields as Character type only (C)

as per my knowledge we can't delete the spaces in the field of character type.Can any body suggest me the alternative solution. Please keep in mind that we are sending the file to webmethods so the alternative solution should satisfy the webmethods criteria.

regards

sreeni

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 26, 2006 at 07:51 PM

    Hi Sreenivas,

    Try CONDENSE With NO-GAPS option to supprress all spaces in a character field but I dont the impact of this on webmethods.

    CONDENSE will shifts the contents of the field to the left, so that each word is separated by exactly one blank.

    NO-GAPS will suppresses all blanks from the field.

    <b>CONDENSE V_CHAR NO-GAPS.</b>

    Check this link for CONDENSE statment

    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/condense.htm

    Thanks,

    Vinay

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 26, 2006 at 07:51 PM

    Hi Sreenivasa Reddy,

    It is possible tp delete spaces in a chracter fields using CONDENSE statement with NO-GAPS option.

    Example

    DATA: BEGIN OF NAME,

    TITLE(8) VALUE ' Dr.',

    FIRST_NAME(10) VALUE 'Michael',

    SURNAME(10) VALUE 'Hofmann',

    END OF NAME.

    CONDENSE NAME NO-GAPS.

    Thanks,

    Ramakrishna

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 26, 2006 at 08:02 PM

    I'm not sure exactly what you're looking for. Maybe this will help:

      data: l_html type swww_t_html_l_tab with header line.
      loop at packed_html.
        l_html-len  = strlen( packed_html-line ).
        l_html-line = packed_html-line.
        append l_html.
      endloop.
      refresh: packed_html.  clear: packed_html.
      call function 'WWW_PACK_TABLE'
           tables
                html_table        = l_html[]
                html_table_packed = packed_html[].
    

    Rob

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.