Download IDOC with Trailing spacs

I have a requirement like when I download an IDOC data into a text file, I need the dataline and the trailing spaces. This is required in EDI where it interprets the SDATA as 1000 charcter string and actual case we have actula data less than 1000 character in sap. So we need to append the remaining spaces to each data record which in turn fills the segment pad field in EDI map tool and read the next line correcly
Any Idea pls share

HI ,
My requiremrnt is i want to download IDOC to local PC...but if i use /nzdown transaction i am not getting EDI_DC40 header in the downloaded file...
Regards
Venkatesh

Similar Messages

  • Problem download data with trailing blanks using gui_download

    Hi All,
          I am using SAP 4.6C. I have requirement to download data with trailing
    blanks.But i am not succeeded fully to acheive my requirement.I want to
    download data to be in the below format.
    Eg: 'T000000070600000004000000003593593                                               '
    I want to download data with different blanks of each record.
    For example in 1 line 18, 2nd line 25, 3rd line 22.
    I already used Hexa notation value '09'. But it is showing only 7 at once. I have
    added 3 times this field but it is showing 21. How i can i add extra space?
    I tried to move ' ' spaces also. It does't wotk. I have tried concatenate with ' ' and
    separared by ' ' also but no use.
    I have passed all possible parameters to GUI_DOWNLOAD FM.
    say  write_field_separator         = ' '
    write_lf    = 'X'
    trunc_trailing_blanks    = ' '
    trunc_trailing_blanks_eol     = ' '
    Could please tell me some one had faced same problem earlier. It is very urgent.
    Is there is any class attribute in SAP 4.6C?
    ( like cl_abap_char_utilities in 4.7 )
    Thanks in Advance.
    Basha

    Try :
    CONCATENATE  XXXX space RESPECTING BLANKS.
    Of course you must retain these parameters :
    trunc_trailing_blanks = space
    trunc_trailing_blanks_eol = space
    Hope this helps

  • String with Trailing Space in a 4.7 / Basis 620 system

    Hi
    My customer is using SAP 4.7(Enterprise Management Version) / SAP BASIS Release 6.20 (Kernel 640).
    We have a requirement to print a product label using a 2D Datamatrix barcode following HIBC standards.  We are using a custom development object (Z function module) that builds the barcode string (variable length string) using a Mod43 calculated check digit as the last character of the string.  One of the valid check digits is a "space" character as the last character of this barcode string.
    Everything in our solution is working fine, except for the situation of the "space" check digit character at the end.  We are running into an ABAP syntax limitation when we are trying to concatenate the calculated check digit onto the barcode string.
    For example, we have a barcode value "+M53210250 " (within the quotes).  This string ends with a SPACE character at the end.  We are calculating the barcode value (some fixed elements + SAP material number, batch, etc.), then calculating the check digit, and concatenating the check digit onto the end of the initial barcode string value.
    I have tried this in a higher version system and am able to make it work by using the statement CONCATENATE RESPECTING BLANKS.  This syntax is not available with WebAS 620 however.
    Here are the attempts we have made:
    *Get HIBC 2D Barcode String
      CONCATENATE E_HIBC_2D_BC L_CHECK_DIGIT INTO E_HIBC_2D_BC.
    IF L_CHECK_DIGIT = SPACE.
    The following attempts does not work
    CONCATENATE with SPACE at end
    Concatenate HIBC SPACE and a dummy variable like 'TEST' into HIBC builds a space in between the dummy and HIBC
    and then when i split it the space is lost again.
    Insert SPACE in the beginning bulding a new variable with 0(1) space followed by HIBC and then SHIFT CIRCULAR BY 1 place
    It will work only if moved to a variable of length which is exactly HIBC + 1 char in length then by default the last char is SPACE.
    Use a replacement variable which is not a HIBC Check Digit like # & ! ? ^ or other for SPACE
    ECC 5.0 and HIGHER
    *CONCATENATE {dobj1 dobj2 ...}|{LINES OF itab}
               INTO result
               [IN {BYTE|CHARACTER} MODE]
               [SEPARATED BY sep]
               [RESPECTING BLANKS].
    *4.7 Version *
    *CONCATENATE f1 ... fn INTO g.
    *1. ... SEPARATED BY h
    *2. ... IN BYTE MODE
    *3. ... IN CHARACTER MODE
    Having the customer upgrade to ECC 5.0 is not feasible to solve this.
    If anyone has any alternative ideas on how to manage this variable length string and respect the trailing space, I would appreciate it.
    I have searched the forums but the only solutions that are close deal with outputting to a file during a download or FTP, or else mention the newer syntax of CONCATENTATE with the option RESPECTING BLANKS, but that is not available in this release.

    If you could predict how long the string is (assuming you might determine whether the last element length is shorter than the db length), you could try to insert your check digit based upon fieldname+your_calculated_length(1) = checkdigit.
    for example if batch is 3 cahr and you have '50' in the data, you could calculate as lv_len = strlen( the value ) .
    lv_len = lv_len + 1.
    move checkdigit to barcodefield+lv_len(1).
    Perhaps something like this would allow you to work around.  At any rate, if you can figure out if there's supposed to be one or ?? blanks on the end, specifying the position by +offset(columns) should do the trick, instead of the concatenate.

  • How to find string with trailing space

    Hi,
    I need to search a word instead of string from another string.
    I tried below code and expected that FIND will not search 'weeds' but it seems FIND ignores trailing spaces of string zstr and thus finds word 'weeds'.
    DATA: zstr type string value 'we ',
              lv_string type string value 'These are weeds',
              result_tab TYPE match_result_tab.
    FIND FIRST OCCURRENCE OF regex zstr IN lv_string
                          IGNORING CASE
                          RESULTS result_tab.
    Please consider that zstr is runtime variable with no fixed length.
    If anybody has the solution, reply back fast !
    Regards,
    Sourabh

    Hi,
    Hi,
      DATA STRING(30) VALUE 'This is a little sentence.'.
    WRITE: / 'Searched', 'SY-SUBRC', 'SY-FDPOS'.
    ULINE /1(26).
    SEARCH STRING FOR 'X'.
    WRITE: / 'X', SY-SUBRC UNDER 'SY-SUBRC',
                   SY-FDPOS UNDER 'SY-FDPOS'
    SEARCH STRING FOR 'itt '.
    WRITE: / 'itt   ', SY-SUBRC UNDER 'SY-SUBRC',
                       SY-FDPOS UNDER 'SY-FDPOS'
    SEARCH STRING FOR '.e .'.
    WRITE: / '.e .', SY-SUBRC UNDER 'SY-SUBRC',
    SY-FDPOS UNDER 'SY-FDPOS'.
    SEARCH STRING FOR '*e'.
    WRITE: / '*e ', SY-SUBRC UNDER 'SY-SUBRC',
    SY-FDPOS UNDER 'SY-FDPOS'.
    SEARCH STRING FOR 's*'.
    WRITE: / 's* ', SY-SUBRC UNDER 'SY-SUBRC',
    SY-FDPOS UNDER 'SY-FDPOS'.
    Hope it will solve your problem..
    Pls. reward if useful...

  • Firefox 3 cannot download files with white space in the filename

    When opening attachments in e-mail Firefox is unable to handle files with white space in the name. This is not the same as the white space file name truncation problem documented on this site (where file names with white space are truncated on saving.) The issue is that the browser will prompt to allow the file to be saved, but it will not prompt to open the file as an option. If I rename the file to remove white space then I do receive the "Open with..." dialog box. I verified that Firefox 2 did not have this problem and I can open attachments with white space in the file names just fine using that version of the browser (2.0.0.20).
    == This happened ==
    Every time Firefox opened
    == Upgraded to version 3

    When a user clicks on an attachment with spaces, the filename is truncated to the first whitespace. While IE, Chrome & Safari handle this, Firefox refuses to accept mime headers with unquoted filename parameters. According to Firefox's bugzilla/knowledgebase, Firefox's behavior is the correct behavior and it's a problem with most webservers or web applications. This problem can be easily corrected by surrounding the filename parameter with double quotes.
    Eg.
    Response.AddHeader("Content-Disposition", "attachment; filename=\"" + fileName + "\"");

  • External material number with trailing spaces

    Hi ,
    One of our users created a material number(external number range) by copying it  from a spreadsheet. The value he copied had trailing spaces and when he copied it on to material number field the trailing spaces were not removed by SAP conversion routines . But when we deliberately type in trailing spaces the system removes them. Has anyone faced this kind of problems before? If so what is the solution.
    Thanks,
    Veera

    Any Input??????

  • Trailing space in char field

    Hello there,
    I am a BW developer and I am currently having an issue with trailing spaces in an ABAP routine.
    This is the situation (example... In real life I use larger char fields):
    - From a source I get a text line that is let's say max. 60 characters long.
    - In BW I split this line into 3 parts and save those in the short text fields of 3 different InfoObjects. Short text is defined as CHAR 20.
    - Later on I can display the text line I just split up as one line of text again. I need to do this because BW can only store texts with acertain length.
    - Now it is possible that the text line I get has a blank at position 20. I need to keep this blank in the first of my 3 parts. But since it is a character field, the blank is ignored and only the first 19 characters are saved.
    Question:
    How can I manage to save all first 20 characters in the first of the three CHAR 20 fields, including any trailing blanks?
    The fields have to be defined as CHAR because that is the definition of text fields in BW. (data type RSTXTSH, to be exact)
    Example:
    Incoming text line (Notice, the character at position 20 is a blank):
    "blabla1111blabla111 blabla2222blabla2222blabla3333blabla3333"
    After splitting it into three parts, I get this:
    Part 1: "blabla1111blabla111" (no trailing blank)
    Part 2: "blabla2222blabla2222"
    Part 3: "blabla3333blabla3333"
    What I need is this:
    Part 1: "blabla1111blabla111 " (with trailing blank)
    Part 2: "blabla2222blabla2222"
    Part 3: "blabla3333blabla3333"
    Any help will be greatly appreciated
    Thanks and regards,
    Stefan

    Hi Stefan,
    As Stefan Seeburger already said you can use RESPECTING BLANKS to get that.
    DATA: i_input TYPE c LENGTH 60,
           e_part1 TYPE c LENGTH 20,
           e_part2 TYPE c LENGTH 20,
           e_part3 TYPE c LENGTH 20,
           v_space   TYPE c LENGTH 1,
           e_partfull TYPE c LENGTH 60.
    i_input = 'blabla1111blabla111 blabla2222blabla2222blabla3333blabla3333'.
    SPLIT i_input AT v_space INTO: e_part1 e_part2 e_part3.
    e_part1 = i_input(20).
    e_part2 = i_input+20(20).
    e_part3 = i_input+40(20).
    DATA: lv_length TYPE i.
    lv_length = STRLEN( e_part1 ).
    CONCATENATE e_part1 e_part2 e_part3 INTO e_partfull RESPECTING BLANKS.
    DATA: lv_length2 TYPE i.
    lv_length2 = STRLEN( e_partfull ).
    BREAK-POINT.
    Cheers!

  • Trim trailing spaces in Numbers '09

    I have tried to use Trim to delete trailing spaces. Which it does, but then if I copy and paste the value of the cell with the trim formula, I get the original value with the trailing space.
    I have a large messy spreadsheet with lots of cells with trailing spaces which makes using reference formulas harder for me since I can't find exact matches (due to the trailing spaces)
    How do I copy the string without the trailing space?

    If you copy/pasted that text from A2 into your post, the final character is not a space. I copy/pasted from your post to a table and the last character is code 160 (A0 hex) which looks like a space but is not. TRIM will not remove that.
    Try this
    =SUBSTITUTE(A2,CHAR(160),"")
    If that removes other "spaces" in your string that you want to keep, try this instead
    =TRIM(SUBSTITUTE(A2,CHAR(160)," "))

  • XI 3.0: Preserve trailer spaces with JMS Adapter

    Hi everybody
    Does anybody knows how it is possible to preserve the trailing spaces in a message coming from JMS adapter?
    I have a fixed-length field that is filled with a left space trailer, but the space is removed by (i think) the adapter.
    Does exists something similar to "whitespace=preserve" for the datatypes???
    Thanks in advance.

    If somebody is interested, just add the
    xml.<structname>.fieldContentFormatting = nothing to the module configuration params.
    I derived this one from the configuration guide of the File Adapter

  • Download Error with Free Trail Zone Alarm

    Attempted to download a free trail of Zone Alarm to my Toshiba Satellite A505-S6960.  The download went through its normal process of scanning and found no viruses.  On completion of the download it showed I was fully protected.  However, on restart of my computer through Internet Explorer the message read "THEIR MIGHT BE A PROBLEM WITH ONE OR MORE NETWORK ADAPTERS ON THIS COMPUTER."  Can anyone tell me what this means?  I tried diagnosing  the problem through Windows and they stated I could reset the adapters through the IP. Right now the only way I can access the internet was to uninstall the Zone Alarm program.  Other than Windows Defender I'm unprotected. There seems to be a viable Anti Virus program through Microsoft Essentials.  As recommended by the forum I may take this route.  Any further suggestions or help would be greatly appreciated.

    Please try removing Acrobat completely using cleaner tool and then try re-installing it.
    http://labs.adobe.com/downloads/acrobatcleaner.html
    Regards,
    Anoop

  • Is there any standard ptogram/tcode to download idoc contents with fields.

    Hello All,
    Is there any standard ptogram/tcode to download idoc contents with fields?
    Thanks,
    Devaraj.

    Hi Patil,
    I dont think there is standard program or t-code.
    But u can down load the IDOC with field contents by following way
    Goto t-code WE62- give the basic idoc name- press display button  then it shows all filed contents with description.
    Now select 'SYSTEM' LISTSAVE--LOCAL FILE from menu bar .
    Here select the file type ie spread sheet,html, etc and give the file name and directory where u need to place it.
    <b>Rewards with points if helpful.</b>
    Regards,
    Vijay.

  • Trailing spaces problem with OracleDataAdapter

    Hi,
    I have a char(60) column in the database which i cant change to nvarchar. I am using a ref cursor with the ODP.NET dataadapter to populate the dataset. The dataset has defined this column as a string. When I fill the dataset, the data for this column contains trailing spaces (to make it 60 characters).
    Situation: Stored Procedure returns a ref cursor that is used to fill the dataset using a dataadapter
    Problem: Trailing spaces in all char columns
    Attempts:
    1) Returning Trim(column_name) from the SP. This time the dataset column gets null values. Doesn't the trim work with the dataadapter.
    2) Tried returning length(trim(column_name)) from the SP. The dataset got all 0 values
    3) Tried returning length(column_name) from the SP. Returns 60 because the column is char(60)
    Any idea what is going on? Is this a bug? Is there a solution ?
    Thanks
    Nishith

    Got it !!! :D
    My query in the SP was SELECT TRIM(column_name) ... so it was trying to populate it into the "TRIM(column_name)" column of the dataset which is not there ... no have changed it to SELECT TRIM(column_name) as column_name ... works :)
    But is there an easier way ?
    Nishith

  • Trailing space issue in Unix File

    Hi All,
    I am facing an issue with the trailing space in Unix file content.
    When the file is being created in Unix server the trailing space is getting trimmed automatically.
    As per the requirement,this space should be retained in the Unix file as it is when the file is being downloaded to PC.
    Is there any solution for this issue? Request your help for resolving this.
    Thanks in Advance,
    Savitha

    Hi,
    When you're writing youd data to the file (assume you're using the TRANSFER command), you could try explicitly specifying the length of the data line to write, ie.
    TRANSFER data(200) TO DATASET filename.
    Regards,   Andy

  • Export to text removes trailing spaces in XI R2

    I've found an article that talks about the problem of the export to text removing trailing spaces, but the article mentions that this is fixed in Crystal Reports XI with a newer version of u2ftext.dll to version 11.0.0.941.
    [1218375 - Trailing spaces ignored when exporting to Text format|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313338333333373335%7D.do]
    I'm using Crystal Reports XI R2 and my u2ftext.dll version is already 11.5.11.1470.
    I'm I missing something or is there another solution to the issue in XI R2?
    Thanks,
    Jeff

    2 Years, multiple people are asking this question.......Does anyone in support have a response for keeping the trailing spaces intact during export?

  • I am trying to download words with friends app and it says it is no longer available from itunes.  I had already downloaded it and did a update in my I phone 4 and it is still not letting me download it?

    I am trying to download words with friends and itunes is saying it is no longer available for purchase.  What is going on??I

    First you need to research all the problems people are having with the higher OSX versions, & make sure you have a bootable clone of what you have just in case.
    then you must get 10.6 if they still have it, install it & update to 10.6.8 so you have the App Store to buy & download the huge 10.8 Installer.
    Snow Leopard/10.6.x Requirements...
    General requirements
       * Mac computer with an Intel processor
        * 1GB of memory (I say 4GB at least, more if you can afford it)
        * 5GB of available disk space (I say 30GB at least)
        * DVD drive for installation
        * Some features require a compatible Internet service provider; fees may apply.
        * Some features require Apple’s MobileMe service; fees and terms apply.
    Which apps work with Mac OS X 10.6?...
    http://snowleopard.wikidot.com/
    It's been pulled from the online store & Apple Stores, so you have to call Apple to buy it, last I heard.
    Call Apple Sales...in the US: 1-800-MY-APPLE. Or Support... 1-800-275-2273
    Other countries...
    http://support.apple.com/kb/HE57

Maybe you are looking for