Open hub - fixed width

Dear all,
I'm trying to create an open hub flat file with fixed width (file should be ";" seperated but also fixed width).  Nevertheless I have a problem with adding trailing spaces. 
Does anyone know if/how this can be done?
thanks,
Tom

Hi Tom,
As far as I know Open Hub (InfoSpoke) is used for extracting the data to file or... and it's dependent on the type of data ( or data type) you have in Objects.
But if you want any further modification in the file try to write a separate ABAP code for reading and than modifying file as per your requirement.
Hope this helps!!
Regards,
Ashish

Similar Messages

  • Open Hub - Fixed Length KF With Appended 0 and only 10 Char

    Hi-
    I have a requirement to create a fixed length file following the layout below and I am unable to get the KF (LFE-AMOUNT) correct.  The Open Hub destination takes on the length of the object which in this case for key figure (0AMOUNT) is 17 (15 w/ 2 decimal).  That said, even if I do a sub-string of it on the TRFN to the Open Hub, I will still have an output length of 17.  I tried creating a new object but it kept dropping the decimal.  Is there an easy way to do this in the TRFN via an ABAP routine?  Again, I just need the KF 10 characters padded with 0 on left side. 
          05 LFE-CUST-ID PIC X(13).                         (13 Chars)
          05 LFE-AMOUNT PIC 9(08)V99.                  (10 Chars)
          05 LFE-EFF-DATE PIC X(06).                     (6 Chars)
          05 LFE-RETURN-CODE           PIC X(03).     (3 Chars)
    Need:
    040L00113684 0000003333042914R01
    Comes out as:
    040L00113684 33.33- 060514R01     

    Using ABAP try to cover the values to TEXT and the you can use the desired format
    Thanks
    Abhishek Shanbhogue

  • Can Open Hub create a fixed length file, not CSV?

    I've been given a requirement to produce a file that is not a CSV file, but a file of a fixed length where all of the fields are always in the same positions.
    For example, a material "batch" number can be of variable length.  They want it to always appear on the file in positions 10-20, even if in some cases it is 10 digits and in other cases it is 4 digits.  There should be spaces to fill in the remaining digits.
    Can the Open Hub BADI be used to do this?  It seems like it always wants to compress the data (so to speak) and stick a seperator in there and the BADI is not helping.
    Thanks for your help!
    Chris Orlando

    Simplest: Use LJustify() or RJustify() on your lines of data.
    EG:
    <cfset FileLine = RJustify (LineOfText, 128)>

  • How to create Fixed Length Flat File from Open Hub in BI 7.0

    My requirement is to produce a Fixed length Flat file by Open Hub destination. My Open Hub has four fields. Now the requirement is to create another extra field in Open Hub which will contain all of the four fields value. In addition to that the fields should be fixed length that means if for any field no value is there and the field length/type is CHAR4 then 4 spaces should be there as the field value. SO, basically the Open Hub output will be single field which will contain information of four fields.
    How to get this using End Routine of Transformation (from DSO to Open Hub) ?

    Hi,
    You can map the four input fields to the new field in the Open Hub, and change rule type to "Routine".
    For example, if your source fields are called "first", "second", "third" and "forth", the ABAP routine could be similar to:
    DATA: l_t_1  TYPE C LENGTH 4,
          l_t_2  TYPE C LENGTH 4,
          l_t_3  TYPE C LENGTH 4,
          l_t_4  TYPE C LENGTH 4.
    IF source_fields-first IS INITIAL.
      l_t_1 = '    '.
    else.
      MOVE source_fields-first TO l_t_1.
    endif.
    IF source_fields-second IS INITIAL.
      l_t_2 = '    '.
    else.
      MOVE source_fields-second TO l_t_2.
    endif.
    IF source_fields-third IS INITIAL.
      l_t_3 = '    '.
    else.
      MOVE source_fields-third TO l_t_3.
    endif.
    IF source_fields-forth IS INITIAL.
      l_t_4 = '    '.
    else.
      MOVE source_fields-forth TO l_t_4.
    endif.
    CONCATENATE l_t_1 l_t_2 l_t_3 l_t_4 into result.
    In the example, the program uses four blank spaces if any of the fields has no value. 
    Additionally, if non-initial values in input fields could be shorter than 4 characters (if the input fields have no fixed length), you could use STRLEN to evaluate if it is necessary to add blank spaces to complete the fixed length of 4.
    I hope this helps you.
    Regards,
    Maximiliano

  • How can I convert my web page from a fixed width layout to a fluid grid layout?

    I'm taking a web design class (I'm using Dreamweaver CS6, btw)  wherein the professor started us out building our websites in a fixed width layout but now I want to change my site into a fluid grid layout. My "site" so far is just one long page, and I've already designed it with fluid grid adjustments in mind (most things are centered  in the layout) so it shouldn't need excessive tweaking.
    Is there a way to duplicate the site folder that holds my first page, re-open a new document in fluid, then copy the code in and tweak the width parameters for the different layouts?
    Did I just answer my own question? Help - I am new at this!!
    Thanks all,
    KC

    Herbert2001 wrote:
    A bit off-topic, but Osgood: have you ever used SASS or LESS? When you are building your own grid systems it can save you a tremendous amount of time, and it's a lot of fun.
    Take the following simple example - it generates all the 23 css classes automatically for a 12 grid system. And simply changing one variable allows you to create and calculate any number of columns!
    //variables
    $desktop: 1025px;
    $large-columns: 12;
    @media only screen and (min-width: $desktop) {
         //regular grid span classes
        @for $i from 1 through $large-columns {
            .span-large-#{$i} {
                width: percentage($i/$large-columns);
         // push classes
        @for $i from 1 through (($large-columns)-1) {
            .push-large-#{$i} {
                margin-left: percentage($i/$large-columns);
    No, not explored it yet, and may never....I don't know. I don't really make much money out of web design. It's becoming more and more difficult to find the desire to learn new techniques when the opportunities aren't really there to put them into practice on as regular basis as I would like.  I've got  a very good handle on css, php, html, jQuery - I'm not sure I want to add another layer at the moment, given I'm never quite sure how long I will continue to 'bang my head against the wall' . I'm getting to the stage where I keep asking myself do I really need the problems associated with learning new stuff to the point of being comfortable with it if the financial rewards at the end don't equate to the efforts of learning it.
    I don't really enjoy web development if truth is known. I come from a Graphic Design background which I much prefer but somehow got side tracked and pushed in this direction and there's no way back now, lol. Whilst I concede Web Development is much more exciting its also 100 times more complex/difficult and the skills needed are considerably more.
    Your example looks interesting and I should think I could pick it up reasonably easily given I work with php which uses variables on a similar basis.

  • Sap r/3 rel 4.6c - F-03 Process open Items Column Width standard tab output

    Hello All:
    I use SAP R/3 Release 4.6C.  I am learning how to use the F-03 Clear G/L Account function.  On the front page of F-03 you enter the account number and then click process open items.
    The output comes on the screen in the "standard" tab.  In this tab you may start to clear your items.
    My question:  How do you change the width of these columns?  I know you can change the column width by moving the column margin with the mouse.  I want to know how to change the column width permanently - make the column a "fixed" width that will not change unless I change it.
    Do you know which variant I need?
    thx
    Tracy Lofstedt
    Western States Equipment Co

    Hi Tracy,
    You've posted your question on one of the SAP Business One forums which is not related to R/3. I recommend you repost on one of the R/3 related forums, a list of which can be found here:
    https://www.sdn.sap.com/irj/sdn/forums
    Kind Regards,
    Owen

  • Export Quanityfields with Open Hub

    Hi,
    i want to export an field (with type Quanity with fixed unit kg) with an Open Hub into a csv-file.
    All other fields (type currency and characteristics) are written into the csv-file. Only the quantity fields are blank.
    Do I have to use any conversion exit? Anything special in the Infoobject or transformation to care about?

    Hi kevinhuang  ,
    RFC connection.......... You can check in SM59 tcode...Double click on the the desired Source system
    or
    RSA1-->Source systems and then right click on Source system and Check
    To test RFC connection...RSA1 ....Source system....... Right click on desired source system >> Connection Parameter.....Test connection
    Pls go thru this links,
    http://help.sap.com/saphelp_nw70/helpdata/EN/43/79f902dfb06fc9e10000000a1553f6/frameset.htm
    BI Open Hub Destination and data transfer process setup
    http://www.ibm.com/developerworks/data/library/techarticle/dm-0802li/index.html
    Hope this helps U.
    Regards
    Chandra Sekhar
    Edited by: Chandra  Sekhar T on Apr 21, 2009 3:36 PM

  • Data Services - Open hub read - No Open Hub DTP error

    Hi,
    I have created a open hub destination in BW (7.0 SP21), created transformation, DTP and process chain. In Data Services (3.2) I have created flow, job etc. and every thing seems to be as expected. However when I start the job in DS it terminates with an error:
    1136     5624     BIW-230334     13-11-2009 12:28:22     Process Chain <ZTEST2> of Open Hub destination <ZTEST> at SAP system <.......> no more contains Open Hub DTP. Please reimport the Open Hub destination to execute the appropriate Process Chain.
    I've tried re-activating everything in BW and also re-importing the OHD in BW, but nothing works. I've even tried to re-create everything from scratch. The process chain I've created do indeed contain an Open Hub DTP.
    One addtional question: I've activated the process chain, but do I also need to schedule it in BW (like you do with e.g. process chains for time points to be used in Broadcasting)? Note, I've tried both scheduling/no scheduling and does not work either way.
    Any ideas/suggestions?
    Thanks in advance,
    Jacob

    You must implement following SAP Notes in SAP systems in order to make Data Services Open Hub functionality work correctly:
    SAP Note  1270828 : (Open Hub Process chain is not imported into Data Services repository).
    SAP Note  1294774:  (Open Hub import failed - when you call the module RSB_API_OHS_DEST_SETPARAMS, th system tries to open a GUI)
    SAP Note 1330568 version 3: (This note has fixed "Process Chain <ZTEST2> of Open Hub destination <ZTEST> at SAP system <.......> no more contains Open Hub DTP. Please reimport the Open Hub destination to execute the appropriate Process Chain").
    SAP Note 1079698 - 70SP16 (Enable check box "Automatically Repeat Red Requests in Process Chain" in the DTP Execute)
    SAP Note 1346049:  (Error 028(OSOH): Request <n> cannot be locked.)
    SAP Note 1338465 #with 1293589 as pre-requisite: (The ABAP/4 Open SQL array insert results in duplicate database records.)
    SAP Note 1342955: (0 data records transferred)
    Edited by: Ajit Dash on Nov 13, 2009 10:37 PM
    Edited by: Ajit Dash on Nov 13, 2009 10:39 PM
    Edited by: Ajit Dash on Nov 13, 2009 10:39 PM

  • Problem connecting to SAP Open Hub

    Hi, I am trying to set up a SSIS job  connecting to SAP Open Hub and have with support from the SAP guys been able to get some progress, but it has now stopped up on a error message we're not able to solve. Any suggestion on what can be wrong and
    how to solve this? When I run the package I get the following error message:
    SSIS package "D:\Source\MSBI\SapLoadStaging\Package3.dtsx" starting.
    Information: 0x4004300A at Data Flow Task, SSIS.Pipeline: Validation phase is beginning.
    Information: 0x4004300A at Data Flow Task, SSIS.Pipeline: Validation phase is beginning.
    Information: 0x40043006 at Data Flow Task, SSIS.Pipeline: Prepare for Execute phase is beginning.
    Information: 0x40043007 at Data Flow Task, SSIS.Pipeline: Pre-Execute phase is beginning.
    Information: 0x4004300C at Data Flow Task, SSIS.Pipeline: Execute phase is beginning.
    Information: 0x3E8 at Data Flow Task, SAP BW Source: Process Start Process, variant has status Completed (instance DH88PUV2SZBIFKMIF48K3USME)
    Error: 0x3E8 at Data Flow Task, SAP BW Source: Process Data Transfer Process, variant /CPMB/HMIJYDZ -> ZOH_VPL has status Ended with errors (instance DTPR_DH88PUV2SZCA46Y9QNO66A6W6)
    Error: 0x3E8 at Data Flow Task, SAP BW Source: The component is stopping because the Request ID is "0".
    Error: 0x3E8 at Data Flow Task, SAP BW Source: No data was received.
    Error: 0xC0047062 at Data Flow Task, SAP BW Source [41]: System.Exception: No data was received.
       at Microsoft.SqlServer.Dts.SapBw.Components.SapBwSourceOHS.PrimeOutput(Int32 outputs, Int32[] outputIDs, PipelineBuffer[] buffers)
       at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostPrimeOutput(IDTSManagedComponentWrapper100 wrapper, Int32 outputs, Int32[] outputIDs, IDTSBuffer100[] buffers, IntPtr ppBufferWirePacket)
    Error: 0xC0047038 at Data Flow Task, SSIS.Pipeline: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on SAP BW Source returned error code 0x80131500.  The component returned a failure code when the pipeline engine called PrimeOutput().
    The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.
    Information: 0x40043008 at Data Flow Task, SSIS.Pipeline: Post Execute phase is beginning.
    Information: 0x4004300B at Data Flow Task, SSIS.Pipeline: "OLE DB Destination" wrote 0 rows.
    Information: 0x40043009 at Data Flow Task, SSIS.Pipeline: Cleanup phase is beginning.
    Task failed: Data Flow Task
    Warning: 0x80019002 at Package3: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (5) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches
    the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
    SSIS package "D:\Source\MSBI\SapLoadStaging\Package3.dtsx" finished: Failure.
    The program '[6916] DtsDebugHost.exe: DTS' has exited with code 0 (0x0)
    Regards
    Paal

    Hi Paleri,
    According to the
    thread which has the same error message, the issue may be caused by incorrect RCF settings. Could you double check your RCF connection configurations such as DNS settings?
    If it is not the case, please also make sure you have installed the correct version of Microsoft Connector for SAP BW.
    Reference:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/e2fbafe5-d9df-490a-bfad-3d4b9784a8ea/sap-bi-connector-for-ssis-2008?forum=sqlintegrationservices
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here
    Mike Yin
    TechNet Community Support

  • Spry menubar not working correctly in IE9 - fixed width or padding or...?

    Need help.  My spry menu bar isn't all the way to the right when in compatibility mode in IE9.  When not in compatibility mode it is even further from the right.  Is there a way to make it so that it is all the way to the right on both compatibility and non-compatibility modes.  Is there a better way than changing the padding or can I do a fixed width?  www.superedgar.com
    The spry code is below.
    LAYOUT INFORMATION: describes box model, positioning, z-order
    /* The outermost container of the Menu Bar, an auto width box with no margin or padding */
    ul.MenuBarHorizontal
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 100%;
    cursor: default;
    width: auto;
    font-family: Arial, Helvetica, sans-serif;
    /* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
    ul.MenuBarActive
    z-index: 1010;
    /* Menu item containers, position children relative to this container and are a fixed width */
    ul.MenuBarHorizontal li
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 100%;
    position: relative;
    text-align: left;
    cursor: pointer;
    width: auto;
    float: left;
    white-space: nowrap;
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    border-top-color: #cccccc;
    border-right-color: #cccccc;
    border-bottom-color: #cccccc;
    border-left-color: #cccccc;
    background-image: url(../images/Menu%20Bars/metalsubmenubargray.gif);
    /* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
    ul.MenuBarHorizontal ul
    margin: 0%;
    padding: 0;
    list-style-type: none;
    font-size: 100%;
    z-index: 1020;
    width: auto;
    left: -1000em;
    float: none;
    white-space: nowrap;
    background-image: url(../images/Menu%20Bars/metalsubmenubargray.gif);
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
    cursor: auto;
    left: auto;
    background-image: url(../images/Menu%20Bars/metalsubmenubargray.gif);
    /* Menu item containers are same fixed width as parent */
    ul.MenuBarHorizontal ul li
    float: none;
    width: 14em;
    background-image: url(../images/Menu%20Bars/metalsubmenubargray.gif);
    /* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
    ul.MenuBarHorizontal ul ul
    margin: -5% 0 0 95%;
    border-right-style: solid;
    border-left-style: solid;
    border-right-color: #999999;
    border-left-color: #999999;
    border-right-width: 2px;
    border-left-width: 1px;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
    left: 0;
    DESIGN INFORMATION: describes color scheme, borders, fonts
    /* Submenu containers have borders on all sides */
    ul.MenuBarHorizontal ul
    position: absolute;
    width: 14em;
    /* Menu items are a light gray block with padding and no text decoration */
    ul.MenuBarHorizontal a
    display: block;
    cursor: pointer;
    color: #392B68;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    padding-top: 8px;
    padding-right: 29px;
    padding-bottom: 7px;
    padding-left: 30px;
    /* Menu items that have mouse over or focus have a blue background and white text */
    ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
    color: #392B68;
    background-image: url(../images/Menu%20Bars/metalsubmenubargrayhover.gif);
    /* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
    ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
    color: #392B68;
    width: auto;
    float: none;
    SUBMENU INDICATION: styles if there is a submenu under a given menu item
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenu
    background-position: 95% 50%;
    color: #392B68;
    width: auto;
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
    background-position: 95% 50%;
    color: #FCFDFF;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
    background-position: 95% 50%;
    width: auto;
    float: none;
    color: #392B68;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
    background-position: 95% 50%;
    color: #FCFDFF;
    width: auto;
    BROWSER HACKS: the hacks below should not be changed unless you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
    ul.MenuBarHorizontal iframe
    position: absolute;
    z-index: 1010;
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
    ul.MenuBarHorizontal li.MenuBarItemIE
    display: inline;
    f\loat: left;

    because of the interpretation of the different browsers, it is very difficult to get the correct outcome each time.
    In your case, I would do exactly as you have done, that is apply an auto width to the menu item and then apply a padding to fill the rest. I then centre the menubar so that the difference is equally divided betweeen left and right.
    Gramps

  • Importing fixed width text from a .txt file

    I am really struggling to do in Numbers '09 something which I can do easily in Excel.
    I have a txt file containing plain text in fixed-width columns which I would like to import into numbers.
    I just cannot find a way to do it.
    I have tried using the Insert/choose menu item - but it won't take .txt files.
    I have tried to copy/paste the data, but it get's pasted into a single column.
    The data consists of many lines like this:
    Part Value Device Package Library Sheet
    A-IN JST-2.0-4 JST-2.0-4 JST-20M KMILLAR 1
    A-IN JST-2.5-4 JST-2.5-4 JST-25M KMILLAR 1
    A-IN JST-2.8-4 JST-2.8-4 JST-28M KMILLAR 1
    (and so on....)
    (Each column is an exact number of characters wide, but these forums make that hard to see due to the variable spaced fonts).
    How can I import this data into numbers?
    (Sorry, but I cannot get the data in any other format, such as CSV, the application which exports it only support fixed width colums with spaces for padding).
    Many thanks in advance,
    Kenny

    Here is a script treating the case of fixed widths values.
    --[SCRIPT fixedwidth_values_toTSV.scpt]
    Enregistrer le script en tant que Script : fixedwidth_values_toTSV.scpt
    déplacer le fichier ainsi créé dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
    Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
    aller au menu Scripts , choisir Numbers puis choisir fixedwidth_values_toTSV
    Choisir un fichier texte.
    Le script détermine la largeur des différentes colonnes puis remplace les groupes séparateurs par des caractères TAB.
    Le résultat est passé dans le presse-paiers et est enregistré à la place du contenu initial.
    Vous pouvez alors
    (1) coller dans le document de votre choix
    (2) ouvrir le fichier texte modifié dans Numbers qui accepte sans broncher les ficiers .txt.
    Utilisation alternative : enregistrer le script en tant que Progiciel (Application sous 10.6.x)
    Glisser-déposer l'icône d'un fichier texte sur celle de l'application lancera le traitement voulu.
    --=====
    L'aide du Finder explique:
    L'Utilitaire AppleScript permet d'activer le Menu des scripts :
    Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case "Afficher le menu des scripts dans la barre de menus".
    Sous 10.6.x,
    aller dans le panneau "Général" du dialogue Préférences de l'Éditeur Applescript
    puis cocher la case "Afficher le menu des scripts dans la barre des menus".
    --=====
    Save the script as a Script: fixedwidth_values_toTSV.scpt
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    go to the Scripts Menu, choose Numbers, then choose "fixedwidth_values_toTSV"
    Choose a text file.
    The script scan the file's contents to extract the width of every column then it replace the separator groups by TAB characters.
    The result is passed to the clipboard and is written in the original file.
    So you may :
    (1) paste in the document of your choice
    (2) open the modified text file with Numbers which is fair enough to do that.
    An alternate track is to save the script as an Application Package (Application under 10.6.x)
    Drag and drop the icon of a text file on the application's one will do the job.
    --=====
    The Finder's Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the "Show Script Menu in menu bar" checkbox.
    Under 10.6.x,
    go to the General panel of AppleScript Editor’s Preferences dialog box
    and check the “Show Script menu in menu bar” option.
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2010/08/19
    --=====
    on run
    set un_fichier to choose file with prompt "Choose e text file…" of type {"public.plain-text"} without invisibles
    my commun(un_fichier)
    end run
    --=====
    on open (sel)
    set un_fichier to item 1 of sel
    tell application "System Events" to set type_ID to type identifier of disk item ("" & un_fichier)
    if type_ID is "public.plain-text" then my commun(un_fichier as alias)
    error "The file “" & un_fichier & "” isn’t a text file !"
    end open
    --=====
    on commun(le_fichier)
    set le_contenu to read le_fichier
    set le_contenu to "azer ertyuio wxcv dfghj
    qszaed dc fghj mlkjhgf nbvcxw
    aqwzsx edcrfv tg byhn aaaaaaa "
    set listedelistes to {}
    set plusgrandelongueur to 0
    set pluspetitelongueur to 999999
    set listelignesbrutes to paragraphs of le_contenu
    repeat with refd_uneligne in listelignesbrutes
    set maybe to contents of refd_uneligne
    set maybe2 to count of maybe
    if maybe2 > plusgrandelongueur then set plusgrandelongueur to maybe2
    if maybe2 < pluspetitelongueur then set pluspetitelongueur to maybe2
    copy my decoupe(maybe, space) to end of listedelistes
    end repeat
    set differencedelongueur to plusgrandelongueur - pluspetitelongueur
    set des_espaces to space
    repeat differencedelongueur times
    set des_espaces to des_espaces & space
    end repeat
    set largeur1 to 0
    repeat with refd_uneligne in listedelistes
    set maybe to length of first item of refd_uneligne
    if maybe > largeur1 then set largeur1 to maybe
    end repeat
    set liste_finale to {}
    repeat with refd_uneligne in listelignesbrutes
    set maybe to contents of refd_uneligne
    set maybe2 to text 1 thru largeur1 of maybe
    repeat while maybe2 ends with space
    set maybe2 to text 1 thru -2 of maybe2
    end repeat
    copy maybe2 to end of liste_finale
    copy text (largeur1 + 2) thru plusgrandelongueur of (maybe & des_espaces) to contents of refd_uneligne
    end repeat
    Enter the bigger loop *)
    set cest_Lafin to false
    repeat
    Deprieve the stored rows of the treated column's items *)
    set flag to 0
    repeat
    set flag to flag + 1
    set flag2 to 0
    repeat with refd_uneligne in listelignesbrutes
    if "" & character flag of contents of refd_uneligne is space then set flag2 to flag2 + 1
    end repeat
    if flag2 < (count of listelignesbrutes) then exit repeat
    end repeat
    repeat with refd_uneligne in listelignesbrutes
    copy text flag thru -1 of contents of refd_uneligne to contents of refd_uneligne
    end repeat
    Prepare the extraction of next column *)
    repeat with refd_uneligne in listelignesbrutes
    copy my decoupe(contents of refd_uneligne, space) to end of listedelistes
    end repeat
    Extract the width of the column to treat *)
    set largeur1 to 0
    repeat with refd_uneligne in listedelistes
    set maybe to length of first item of refd_uneligne
    if maybe > largeur1 then set largeur1 to maybe
    end repeat
    Extract the column's values *)
    repeat with i from 1 to count of listelignesbrutes
    set maybe to contents of item i of listelignesbrutes
    set maybe2 to text 1 thru largeur1 of maybe
    repeat while maybe2 ends with space
    set maybe2 to text 1 thru -2 of maybe2
    end repeat
    copy (contents of item i of liste_finale) & tab & maybe2 to item i of liste_finale
    try
    copy text (largeur1 + 2) thru -1 of maybe to item i of listelignesbrutes
    on error
    set cest_Lafin to true
    end try
    end repeat -- i
    if cest_Lafin then exit repeat
    end repeat -- bigger loop
    set le_contenu to my recolle(liste_finale, return)
    set the clipboard to le_contenu
    set eof of le_fichier to 0
    write le_contenu to le_fichier
    end commun
    --=====
    on decoupe(t, d)
    local oTIDs, l
    set oTIDs to AppleScript's text item delimiters
    set AppleScript's text item delimiters to d
    set l to text items of t
    set AppleScript's text item delimiters to oTIDs
    return l
    end decoupe
    --=====
    on recolle(l, d)
    local oTIDs, t
    set oTIDs to AppleScript's text item delimiters
    set AppleScript's text item delimiters to d
    set t to l as text
    set AppleScript's text item delimiters to oTIDs
    return t
    end recolle
    --=====
    --[/SCRIPT]
    Yvan KOENIG (VALLAURIS, France) vendredi 20 août 2010 12:44:33

  • SQL Error in Open Hub Service

    Hi,
    I am trying to send data from an ODS to flat file using open hub service. The process of creation and activation of open hub destination etc etc went smoothly. When I tried extracting the ODS data by pressing execute button, the following error message appears in the status bar
    Error in SQL statement SAPSQL_FIELDLIST_TYPE /BIC/LL_ARDT
    Has anyone encountered this error. What is the reason for this error and how to fix this problem.
    With Regards,

    Hi,
    Anybody???
    The issue is still there and there is no ABAP dump.
    With Regards

  • Inconsistency with ZPMSENDSTATUS for Open Hub Destination

    Hi Experts,
    I dont know you have come accross this scenario but I will apprecaite all your advice.
    We have APO 7.0 and we are using the BW component to extract data to informatica.
    Our environment is as follow
    SAP SCM 7.0 SP8
    Informatica PWCD 8.1.6 hot fix 13
    1.we have created 5 chains with similar variants for ZPMSENDSTATUS
    2. Each variant relates to a folder and workflow to be executed within informatica
    3. When we execute the chains only two work correctly all the time and 3 fail
    the 3 that are failing are failing within the ZPMSENDSTATUS when running API RSB_API_OHS_DEST_SETPARAMS. This is odd since the other two only differ on the workflow to be executed and obviously on the Open Hub destination. Can anyone provide some advice on this?
    thanks,
    Nat

    Hi Maruthi,
    thanks for your response but here are the details for the variants that are working and failining
    working:
    DEST: < here we have the RFC that relates to the logical system and the program id which is also included in saprfc.ini>
    INFPARA: AERO/APO:WF_SAP_APO_PART_PLATFORM_ABP2_BGA:S_M_SAP_APO_PART_PLATFORM_ABP2
    CONTEXT: OHS API
    OHDEST: <OHDS defined as target>
    Failing:
    DEST: < here we have the RFC that relates to the logical system and the program id which is also included in saprfc.ini>
    INFPARA: AERO/APO:WF_SAP_APO_PART_PLATFORM_ABP4_ATR:S_M_SAP_APO_PART_PLATFORM_ABP4
    CONTEXT: OHS API
    OHDEST: <OHDS defined as target>
    So you see, they all target the same folder only different workflows. Still it works for the first and not for the second.

  • Problem saving a report when using rpad in query for fixed-width

    Hi There,
    I'm using 9.0.4 and trying to make and save a report that will eventually produce a fixed-width text output (as opposed to delimited).
    I keep getting: REP-1051 Unable to save document to file mypath/filename
    REP-1070 Error while opening or saving a document - Non-specific file error occurred.
    My sql query is a large string that RPADs everything and concatenates into one very long string (about 600 characters). The report runs fine while I'm working on it, but I can't save it. I finally pared the query down to a small fraction of what I need, and it did save, but as soon as I started adding back to the query, it failed again.
    Does anyone know how to work around this? I don't have any flexibility with my version of Reports, as the client will not update their version.
    TIA, J

    Hi Ronan,
    You can use the parameter WRAPPING to adjust the height of the header lines. Please have a look at note 1292696 which explains how to.
    Best regards,
    Janine

  • Delete request in Open Hub Destination

    Hi all,
    I am trying to delete a request in an Open Hub Destination. I have tried report RSBK_DEL_DTP_REQ_FROM_OHD
    but it does not work. I have also tried to set the request status to 'red' within the table RSBREQUID3RD but this also does not work.
    I have no clue how to fix the problem.
    I have to delete the request in case of the underlying DSO which  I have to change and this is not possible if the request is active in any data target.
    Please can someone give me any hint
    Regards
    Peter

    Hi,
    Use SE37, to execute the function module RSBM_GUI_CHANGE_USTATE.From the next screen, for I_REQUID enter that request ID and execute.From the next screen, select 'Status Erroneous' radiobutton and continue.This Function Module, changes the status of request from Green / Yellow to RED.
    So you should now be able to delete the request.
    Regards.

Maybe you are looking for

  • Merging two Apple IDs into one

    I created a new Apple ID about a year ago when I changed my email. I didn't realize that my old music was tied to the old account. I can access it if I sign in to the old account, but it's really cumbersome to go back and forth between the two accoun

  • Servlet/applet problem

    hi guys my problem is that, i started my tomcat server, also my servlet. this servlet should call an applet. so here are my questions: where must be the applet class file? how looks like my codebase? what code must i type into the servlet? something

  • Turn on layer visibility without exact name

    Hi all, This is my first post, and my first attempt to edit javascript for AI, so please bear with me! I am realtively good with actionscript, so I am trying my hand at this to streamline our image exporting process. I am using CS5 on a PC. We build

  • How does one highlight Text in Imail messages

    I understand how one uses the "Fonts" of "Colors" Icon on the message dialog box to change the font color of selected text in a message so it stands out, but have NOT FIGURED OUT how one can instead (or in addition) "highlight" the text. By that I me

  • Volume Limit Issue in 1.0 and 1.1

    please, someone tell me what was that issue in the older version of the ipod os