Download file format(different length data on one column)

Hi all,
i am just writing a report to download the delivery data to a file.the file have 3 columns.the length of the column data in every row varies.
let my file structure is like
first line of my file contains,
delivery no(22),delivery date(8),delivery type(5)
2nd line of the file contains,
shipper num(48),customer PO num(20),material num(15)
In the first column of this file contains delivery number(length-22)& shipper number(length-48).but the length of both the data will be different i.e i have to assign the length of delivery num as 22 & length of shipper num as 48.but they will appear in one column. how it will be possible.
is there any command to make the file format like this?
ur help is highly appreaciated.it's urgent.
Regards
pabitra

whatever record you will populate(i mean it may be either delivery no or shipment no etc..)define your internal table with the highest length(in this case 48).
as both values are CHARacters, there is no problem even if you populate Delivery no(of 10 chars) to 48 char field.
spaces will be truncated.
data:begin of itab,
col1<b>(48) type c</b>,
col2,
col3,
end of itab.
*--when you are populating Delivery no:
ITAB-COL1+0(10) = V_DELIVERYNO.
CONDENSE ITAB-COL1+0(10) NO-GAPS.
*--when you are populating SHIPMENT no:
ITAB-COL1+0(48) = V_shipment.
CONDENSE ITAB-COL1+0(48) NO-GAPS.
i guess,there wont be any problems,if you use this logic.
Regards
srikanth

Similar Messages

  • How to create Tree format in Table Rn in one Column having data?

    Hi Gurus,
    i got the new requirement it's very interesting pl z help me...
    My Requirement is i have one Table Rn in Table Rn having 5 columns There here one column name is 'Competencies ' That Competencies column having the more rows liki
    FUNC.ADMIN.Achievement Orientation
    FUNC.ADMIN.Administrative Assistance and Support
    FUNC.ADMIN.Administrative(ADMIN)
    This is one column data my Requirement is now
    FUNC
    +ADMIN
    +Achievement Orientation
    like clients are expecting pl z tell me how to approach in this requirement and what are prerequisites are needed ...plz help me it's urgent requirement.
    Regards,
    Srini

    Hi Gyan,
    Thank's for valuable suggestions
    My Requirement is This ...
    "Competencies" Table Layout: (InstTableLayout)
    COMPETENCIES (COLUMN NAME)
    BEHV.Generic.Communication(BEHV)
    BEHV.Generic.Planning, Organizing & Time Management
    BEHV.Generic.Problem Solving Ability
    BEHV.Generic.Productivity
    BEHV.Generic.Punctuality
    like number of rows are there now Tree format is row data
    like each column divided each one
    ex:
    + BEHV
    *|*
    +Generic
    *|*
    +Communication(BEHV)
    like he expected client in tree format pl z tell me how to approach in this requirement and what are the prerequisites are required .....
    Regards,
    Srini
    Edited by: 876628 on Dec 1, 2011 8:37 PM
    Edited by: 876628 on Dec 1, 2011 8:37 PM

  • Different Effective Date in One BOM with only ONE Change Number

    Hi gurus
    here is my complete question?
    Is it possible to realize this function that Different Effective Date in One BOM for different BOM items with only ONE Change Number?
    Thanks for your information/help in advance.

    Dear Zhao,
    Using One change number it's not possible to define a different valid from date for the BOM changes of a single material BOM.
    In case if the same change number is used for making different material's BOM component,then a different valid from date for
    each BOM can be defined,but at any given point not for each component/item level of the same BOM.
    Check and revert back.
    Regards
    Mangalraj.S

  • Save Downloaded files: at different locations

    Hi,
    I wish to save my downloaded files at different locations, and not any particular default location.
    I want a promt to ask me the location each time I download a file.
    Think this feature was available in Safari 4; but Safari 5 saves all my files to a location, instead of asking me on each download.
    Thanks !!

    If I right-click on a file and choose "Download Linked File As" it asks me where to save the file. Does that work for you?
    However, If I right-click on a file and choose "Download Linked File" it uses the default location.
    If a file is pushed to you, it will use the default location.

  • How can I Move data from one column to another in my access table?

    I have two columns, one that stores current month’s data and one that stores last month’s data. Every month data from column 2 (this month’s data) needs to be moved to column 1 that holds last month’s data. I then null out column 2 so I can accumulates this month’s data.
    I understand how to drop a column or add a column, how do I transfer data from one column to another.
    Here is my trial code:
    <cfquery name="qQueryChangeColumnName" datasource="#dsn#">
      ALTER TABLE leaderboard
      UPDATE leaderboard SET  points2 = points3
    </cfquery>
    Unfortunately, I get the following error:
    Error Executing Database Query.
    [Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft Access Driver] Syntax error in ALTER TABLE statement.
    How can I transfer my data with the alter table method?

    I looked up the Access SQL reference (which is probably a
    good place to start when having issues with Access SQL), and
    it suggests you probably need a WHERE clause in there.
    I agree the documentation is a good place to start. But you should not need a WHERE clause here.
    Too few parameters. Expected 1.
    If you run the SQL directly in Access, what are the results? At the very least, it should provide a more informative error message..

  • OAF Export button fetching data in one column - view object using union all

    Dear All,
    Export button showing data in one column from  view object,
    View object is based on mulitple queries with union all ,
    Please let me know the solution for this issue.
    Thanks
    Maheswara Raju

    Maheswara Raju,
    As per my understanding you are not able to export all the View Attribute using export Button. Only the attribute which is used with the item/region will get exported.
    There are few work around in case if you want to export the column without showing on OAF Page. Let me know.
    Cheers
    Gyan

  • Conversion puts all data in one column

    conversion puts all data in one column on excel

    ok i created my own function
    CREATE OR REPLACE TYPE t_varchar2_tab AS TABLE OF VARCHAR2(4000);
    CREATE OR REPLACE FUNCTION tab_to_string (p_varchar2_tab IN t_varchar2_tab,
    p_delimiter IN VARCHAR2 DEFAULT ',') RETURN VARCHAR2 IS
    l_string VARCHAR2(32767);
    BEGIN
    FOR i IN p_varchar2_tab.FIRST .. p_varchar2_tab.LAST LOOP
    IF i != p_varchar2_tab.FIRST THEN
    l_string := l_string || p_delimiter;
    END IF;
    l_string := l_string || p_varchar2_tab(i);
    END LOOP;
    RETURN l_string;
    END tab_to_string;

  • How to copy data from one column to other column

    hi,
    can any one tell me how to copy data of  one column to other column for some specific data
    example
    productno  ocalyear        actualsales  prevplansales   currentplansales
    p001       2007                  100              120                   
    p002       2007                   90               100
    p003       2007                  120              130
    p004       2007                  140              120
    p005       2007                  150              150
    i want to copy data of p001 and p002 from prevplansales to current plansales
    productno  ocalyear        actualsales  prevplansales   currentplansales
    p001       2007                  100              120              120     
    p002       2007                   90               100              100
    p003       2007                  120              130
    p004       2007                  140              120
    p005       2007                  150              150
    is it possible to do?
    please suggest me.
    i will assign points

    Hi,
    I think the needed techniques are already described in the documentation, e.g. in
    http://help.sap.com/saphelp_nw70/helpdata/en/45/e641e4c61256dee10000000a114a6b/frameset.htm
    or
    http://help.sap.com/saphelp_nw70/helpdata/en/45/e641e4c61256dee10000000a114a6b/frameset.htm
    The main techiques used in the above example to bind the filter of the planning function to selected (marked) objects in the analysis item or to drop down boxes (or both). These techniques are used in the above examples.
    Regards,
    Gregor

  • Download file in different formats(its urgent)

    Hi experts,
    I have a problem when downlaod a file in different formats.
    File should be downloaded 3 Formats.
    1. DWG
    2. DXF
    3. PDF
    this file is used for CAD Drawings.
    So i required a Functional Modules to generate a file in 3 different formats.

    Hi,
    You can download an internal table data (of report format) into PDF
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    * BIN_FILESIZE =
    filename = i_pfad
    filetype = 'BIN'
    * IMPORTING
    * FILELENGTH =
    TABLES
    data_tab = i_att_cont
    EXCEPTIONS
    file_write_error = 1
    no_batch = 2
    gui_refuse_filetransfer = 3
    invalid_type = 4
    OTHERS = 5.
    But DWG DXF are third party specific, i think in SAP we don't have functional modules to download in these
    aRs
    Points are always welcome

  • Hi, My atachments /any file format/ turns into .dat when I mail them into my own iPad2. What to do??

    Hi
    When I email an attachment /any file format/ from my PC to my iPad2 the attached file turns into a .dat file
    What to do?
    Regards

    An Alias would be an email address that is delivered to a different account's inbox.
    For instance if you have  [email protected] and have [email protected] Then [email protected] would be an alias if mails from that address arrive at the icloud address.
    If you want to add a completely different account, with a spearate inbox, like an account in hotmail and one in say yahoo mail. Then as has been pointed out, you need to go into the  Settings Icon, Tap on Mail, Contacts, Calendars, and then on add account. The iPad has several services preconfigured, you can tap on one of those from the list to setup an email for that service. Such as Hotmail, Gmail etc...
    Or you can tap on other to add a personal pop3 or imap type email like from your office, or your school.

  • Exits/Badis for FP03DM to change file format(row length)

    Hello Experts,
    I want to find out the exits/BADI's for changing the file format while submitting a file for collection agency during mass processing ( FP03DM ).
    I know there are events 5062, 5063, 5064 but they only enable me to change the existing  field contents and not the length..etc of rows in the file.
    Please suggest
    Thanks
    Ricky

    Hi Ricky,
    Your problem can have two solutions:
    1. Fill the data in event 5062, 5063 and 5064. These events update table 'dfkkcolfile_p_w'. From there by passing Issue Date and ID, you can pick all records to be submitted to Collection Agency. The using event 1799, you can pick all these records and create your own file. (Preferable)
    2. You can customize structures FKKCOLFILE_HEADER, FKKCOLFILE, FKKCOLFILE_TRAILER to include your own fields. But in this case, it fields would be in same order as structure.
    Thanks.
    Ravi

  • Write to spreadsheet file.vi is storing data in one row only.

    The 8 points of data is going into one column in the spreadsheet. In the "Write to spreadsheet file string.vi" how do I write the 8 points to one row for each cycle?
    I got this VI from NI's web a couple of years ago and forgot how to modify this part. I usume it is within the write file.vi.
    Thank you in advance
    Skip

    I just reread your original post and the way the "Write to Spreadsheet File.vi" that ships with LV works by default is to put 1D arrays into rows. I read your post backwards and told you how to put the data in a column. Sorry.
    In any case, perhaps you need to make sure the Transpose input ISN'T true, and that the delimiter IS a tab.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Read two lvm files with different length

    I'm trying to read to same graph two different measurements with same starting point, starting point is OK.
    But when the shorter file is coming to the end the VI stops with following message:
    "Possible reason(s):
    LabVIEW:  End of file encountered.
    =========================
    NI-488:  Invalid argument or arguments to function call."
    How can I come over this and get both measurements into same graph in their full length with same starting point?
    PS I have attached the VI file, a short and a long measurement file. Changed the file extension from LVM to TXT
    Attachments:
    Read_duo.vi ‏128 KB
    SE1100_ny_1.txt ‏249 KB
    SE1100_ref_1.txt ‏468 KB

    Hi,
    Apprently your LabVIEW is set with the option "enable automatic error handling", you can change this in tools >> options block diagram untick the option.
    Doing this will only get ride of the dialog when the error occurs but not get read of the error.
    So you are reading your files chunk by chunk in your while loop, so at some point you will get to the end of your files, when you do the VI you are using return an error 4 "end of file reached", from here you have different possibilities, if you want to be able to read files that have different length, here is a quick way to ignore the "end of file" error on both files independantly.
    Hope this helps
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

  • Data in two different coulmns merge into one column

    I am using following script to create external table with data.
    CREATE TABLE external_class(
    item_no varchar2(255),
    max_range varchar2(255)
    ORGANIZATION EXTERNAL
    TYPE ORACLE_LOADER
    DEFAULT DIRECTORY DATALOAD
    ACCESS PARAMETERS
    RECORDS DELIMITED BY NEWLINE
    FIELDS TERMINATED BY ','
    MISSING FIELD VALUES ARE NULL
    (item_no,max_range)
    LOCATION ('class_newc.txt')
    REJECT LIMIT UNLIMITED;
    Problem is that its merge both columns into one column.
    I want two seperate columns.
    Data is in microsoft excel spread sheet.
    I saved as txt(TAB DELIMITED) txt
    Data appears in clas.txt file as below:
    "400     "     4177.64
    "404     "     5574.64
    "406     "     5333
    "408     "     
    "409     "     
    "450     "     10.83
    "478     "     
    "482     "     4820
    I ran the above script to create table.
    Table Created
    SQL> desc external_class;
    Name Null? Type
    ITEM_NO VARCHAR2(255)
    MAX_RANGE VARCHAR2(255)
    SQL> select count(*) from external_class;
    COUNT(*)
    3036
    but with
    select * from external_class;
    ITEM_NO MAX_RANGE
    "400"4177.64
    "404"5574.64
    "406"5333
    "408"
    "409"
    "450"10.83
    "478"
    "482"4820

    thanks its work.
    Actually I created other file as below
    Item_no-----max_range
    400     4177.64
    404     5574.64
    406     5333
    408     
    409     
    450     10.83
    and use creation script as below:
    CREATE TABLE external_class(
    item_no varchar2(255),
    max_range varchar2(255)
    ORGANIZATION EXTERNAL
    TYPE ORACLE_LOADER
    DEFAULT DIRECTORY DATALOAD
    ACCESS PARAMETERS
    RECORDS DELIMITED BY NEWLINE
    fields terminated by whitespace
    MISSING FIELD VALUES ARE NULL
    (item_no,max_range)
    LOCATION ('class_newa.txt')
    REJECT LIMIT UNLIMITED;

  • Converting library to new file format without losing data

    I want to convert my library to a standardized file format, but I don't want to lose the data (play counts, playlists, etc.) that are associated with the current files. Is there any way to convert my AAC files (what my library is currently using) to MP3 files (the format I want them to be) while retaining my play counts, etc?

    It seems the only problem I'm really having is getting voice memos on my iPhone to transfer to the new iMac / iTunes. I've fully synced the device but the voice memos do not appear in the music folder after syncing, even though I've checked 'Include voice memos' on the 'Sync Music' tab of the iPhone device. The are on the iPhone and I can play them still.
    In fact, now the 'Voice Memos' app that comes native with iPhone will no longer record after syncing to the new iMac... I'm totally confused by what's happening!

Maybe you are looking for