How to define field of number type in ecs file

Hi B2B Experts,
I need some help. In the detail record of my ecs file, i need to define a filed as number. Basically the data coming in the data file is a dollar amount. It is a number type.
The number length maximum length is 6, The spec file says that field should be like below....
9(04)V99
The data came in the text file as 013100, so according to the business it is like 131.00 but as i defined the field as string, it is taking it as 13100. I want to define that field as a number type and it should consider keeping that number with two digits precision i.e.,decimal part. Please help me in this regard.
I believe i should define the type as number and the i dont know what to keep for the format ?
Thanks,
N

Naresh,
What are your requirements? If I understood it correctly, you will be getting data without decimal and you want B2B to add decimal accordingly. If this is the case then I don't think it should be done at B2B rather this should be performed at middleware.
Please let us know your exact requirement if I interpreted it incorrectly.
Regards,
Anuj

Similar Messages

  • Very Urgent: how to define field symbols in class using se24 Points assured

    hi all
    I am new to abap oo programming. I am using se24 to build a class
    where some methods have code which involves working with field sybmols but i am not able to figure out way for how to define field symbols in the attributes section.
    I tried defining like : fld_sym type ref to  dbtab-fld
    but in the method implementation if i try to use it like assign fld to <fld_sym> there it says fld_sym is not defined as a field symbol.
    So can anyone please guide me how to define field symbols in se24.
    Also what should be the general steps while creating a class using se24.
    Points assured
    thanks

    Hi
    Global classes are like Global fun modules in which the Methods and code is already written and is mainly used for Reusability purpose.
    Goto SE24 tcode and see the std global classes like
    CL_ABAP_CHAR_UTILITIES
    see the links
    chk out the links below:
    General Tutorial for OOPS
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
    Have a look at these links for OO ABAP.
    http://www.sapgenie.com/abap/OO/
    http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b5654f411d194a60000e8353423/content.htm
    http://www.esnips.com/doc/375fff1b-5a62-444d-8ec1-55508c308b17/prefinalppt.ppt
    http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
    http://www.esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt
    http://www.allsaplinks.com/
    http://www.sapgenie.com/abap/controls/index.htm
    http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
    http://www.esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf
    http://help.sap.com/saphelp_erp2005/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
    SDN Series:
    https://www.sdn.sap.com/irj/sdn/developerareas/abap?rid=/webcontent/uuid/35eaef9c-0b01-0010-dd8b-e3b0f9ed7ccb [original link is broken]
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf
    Basic concepts of OOPS
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b6cae890-0201-0010-ef8b-f970a9c41d47
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1591ec90-0201-0010-3ba8-cdcd500b17cf
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20to%20display%20data%20in%20alv%20grid%20using%20object%20oriented%20programming.doc
    http://www.henrikfrank.dk/abapuk.html
    http://www.erpgenie.com/abap/OO/
    Reward oints if useful,
    Aleem.

  • How to define a generic structured type (deep structure) w/o LIKE

    Hi,
    I have been trying to define a generic structured type that would include a component (field) of type "table type".
    Look at my type [ty_compatibilite].  It is the structured type that needs to have a component called "mobile" which needs to be an internal table.  I have tried to create a genereic table type called tt_mobile (based on ty_mobile) but that did not work. I have not been able to avoid using the LIKE command to make it work.
    Any suggestions on how I could define my component "mobile" without using a "LIKE"... ?
    Here is my code:
    TYPES: BEGIN OF ty_mobile,
              ref_mob_sfr    TYPE zmobil,
              ref_mrq_sfr    TYPE zmarq,
              type_compat    TYPE zsea_comp_type,
           END OF ty_mobile.
    TYPES: tt_mobile TYPE STANDARD TABLE OF ty_mobile.
    DATA: lit_mobiles TYPE STANDARD TABLE OF ty_mobile.
    TYPES : BEGIN OF ty_compatibilite,
              cod_ean        TYPE ean11,
              lib_art        TYPE maktx,
              compat_all_mrq TYPE zsea_comp_gen,
    *          mobile        TYPE tt_mobile,
              mobile         LIKE lit_mobiles,
            END OF ty_compatibilite.
    TYPES : tt_compatibilite   TYPE STANDARD TABLE OF ty_compatibilite.

    define key or use default one:
    TYPES: tt_mobile TYPE STANDARD TABLE OF ty_mobile with DEFAULT KEY.
    If you don't specify key the type is treated as generic

  • How to modify field symbol of type Index Table with other field symbol of type any.

    Hello Experts,
    How is it possible to update an filed symbol table of type Index table with other filed symbol table.
    e.g.
    Field symbol :  <lt_table1> type Index table.
    Field symbol : <lt_table2> type Index table.
    after some code...at run time these table filled like following.
    <lt_tabel1 > has  value fore column  like c11 , c12 , c13 
    <lt_table2> has value for column like C11     , C12 , C13 , C14 , C15 . some extra  values from <lt_table1>
    Now I want to be modify <table1> one entires like C12 with <table2 > col C12.
    how I can achieve this.
    Regards,
    Chetan.

    Hi,
    did you try  ASSIGN COMPONENT xx OF STRUCTURE <IT_TABEL1> TO <IT_TABLE2>.
    xx will contain the number of the column
    or maybe, if you have the description with a field catalog or other, that will be easier ..
    regards
    Fred

  • User Defined Field with Link Type

    Hi,
    I am trying to create a user defined field to allow users to attach word documents to Item Master Data.
    I have successfully created a User Defined Field under master data with Type: Data, Structure: Link.
    It appears in the Item Master Data as I would expect. My questions relates to how to use this field. The first time I click on the field, a file browser window appears where I can select a file. Once I select the file I want I click ok and the path to this file appears in the field. The next time that I click on the field the file will open in its respective application.
    My question is: How when the field already contains a path to a file do I change this path so it points to a different file.
    Any help I can get on this would be greatly appreciated.
    Thanks
    Brian

    Hi,
    If you hold down Ctrl on your keyboard and then double click in the link it will allow you to browse to a different file.
    Regards,
    Adrian

  • Cannot enable an user defined field as the type of link

    I created an user defined field and set it to the type of link. I want to link it to a external file.
    But only the "visible" checkbox of the UDF is available, the "enable" checkbox cannot be actived (displayed in grey).
    Can someone tell me how to do next?
    Thanks.

    I did a lot of tries but still failed.
    http://faculty.stut.edu.tw/~jywu/others/B1UDF1.JPG
    I want to know how to use the function marked in the red-box in the above link. What's that for?
    When i created a UDF using the setting, I can only set it visiable, cannot active it. 
    Furthermore, I cannot find any document expaining how to set these parameters in user defined field function.
    Can someone help me?
    Thanks.

  • How to define a data carrier type "archive" in DMS

    Hi, experts.
    In order to intgerate DMS and ArchiveLink(Check in origin with ArchiveLink), i want to define a data carrier type "archive" in DC20.
    I have already defined a content repository 'Z2' in OAC0, but i can't enter 'Z2' into the field-data carrier,
    error message: You cannot use data carrier Z2 - try displaying possible entries
    Message no. V&021
    and the only possible entries is 'MA'
    which type content repository could be used as data carrier type 'archive",
    or there are some steps that i missed?
    Here are parameters of 'MA' and 'Z2':
    MA     ARCHLINK     SAP System Database     0046     ma
    Z2     ARCHLINK     HTTP content server                     0046     Test
    Thanks.

    Hi,
    Let me refresh your message with your Permission.
    i think iam also in the same confusion, any suggestion regarding this is eagerly welcome.
    i have some specific senario in DMS where the Client needs to store the DMS Original Files in SAP Archive Server through SAP Archive ink,
    here if i configure a part of Archive Server, so as to store the Original application files of DMS,
    say ZDMS_Arch01, ZDMS_Arch02, ZDMS_Arch03.
    ie.. if i configure Archive server as a Storing medium for DMS Original Files, will it appear as an Option to be selected for storing the original application files,
      just like as we get the list of storage catagories to store the Originals like DMS_C1_ST or any content server Storage catagory (clicking Check in original, in CV01N transaction
    any one who have configured this please Clarify.
    Regards
    Sathish

  • How to use FIELD-SYMBOLS with TYPE ANY?

    Hi!
    I need to write a function which gets an import string parameter containing a field name like MATNR. In this function I have to "map" this string to a real variable so that I can access the field which is represented by the string. I tried it like this but it does not work:
    FUNCTION ZTEST1.
    ""Lokale Schnittstelle:
    *"  IMPORTING
    *"     REFERENCE(I_MARA) TYPE  MARA
      DATA: FIELD_NAME(30) VALUE 'I_MARA'.
      FIELD-SYMBOLS : <FS_ANY> TYPE ANY.
      Assign (FIELD_NAME) to <FS_ANY>.
    Does not work (I guess because of 'type any')
      WRITE: <FS_ANY>-MATNR.
    ENDFUNCTION.
    How can I solve this problem?
    Thanks,
    Konrad

    This code is far from perfection...But at least it could help you to find the right track -;)
    REPORT ydummy_atg.
    DATA: w_mara TYPE STANDARD TABLE OF mara.
    START-OF-SELECTION.
      SELECT *
      INTO TABLE w_mara
      FROM mara.
      PERFORM test TABLES w_mara.
    *&      Form  test
    FORM test TABLES t_mara.
      DATA: field_name(30) VALUE 'T_MARA',
            new_line TYPE REF TO data,
            flag TYPE c,
            w_tabix TYPE sy-tabix.
      FIELD-SYMBOLS : <fs_any> TYPE ANY,
                      <l_line> TYPE ANY,
                      <l_field> TYPE ANY.
      ASSIGN (field_name) TO <fs_any>.
      CREATE DATA new_line LIKE LINE OF t_mara.
      ASSIGN new_line->* TO <l_line>.
      LOOP AT t_mara.
        MOVE t_mara TO <l_line>.
        ASSIGN COMPONENT 2 OF STRUCTURE <l_line> TO <l_field>.
        <l_field> = <l_line>.
        WRITE:/ <l_field>.
      ENDLOOP.
    ENDFORM.                    " test
    Greetings,
    Blag.

  • How to increase field's number when update

    What value should I set when I want to make some field increase ,
    such as "UPDATE table SET field = field + 1";

    Hi, chan15
    Please checkou this tutorial, it shows you how to increase field counter by updating the field value by adding +1 everytime you reload th page...
    :: Visits Hit Counter ::
    Herein this tutorial we will learn how to implement an auto visits hit counter. The visits hit counter uses an "After" "Custom_Trigger" to update the (hits_ht) field by adding (current field value
    +1
    ) to it, This script is very useful, specially when used to view member`s profiles, photo albums etc... by implementing this hit counter script with your database records you will get full reports about how many times profile, photo viewd by members or visitors.

  • How To Get FileType and MIME Type from a File

    Hi,
    I am using following ways to get FileType and MIME Type.
    I am able to get file type, but I am getting MIME Type as */*
    Can any one please let me know how to get MIME Type, but it should not be time consuming process.
    For File Type I am using following Code:
    private String getFileData(InputStream inStream) {
    fileName = C:\temp\temp.tiff
    String filePath = Util.createTempFile(fileName);
    RandomAccessFile raf = new RandomAccessFile(filePath, "rw");
    while (inStream.available() > 0) {
         byte[] buf = new byte[inStream.available()];
         inStream.read(buf);
         raf.write(buf);
    inStream.close();
    raf.close();
    File file = new File(filePath);
    JFileChooser chooser = new JFileChooser();
    String fileType = chooser.getTypeDescription(file);
    file.delete();
    //MIME Type I am getting from
    DataHandler data = new DataHandler(new DocumentSource(inStream));
    data.getContentType();
    data.getContentType() is not working well in all cases.
    Can any one help me on this.
    Thanks in advance,
    Ram.
    Edited by: javausers07 on Apr 15, 2009 4:25 PM

    javausers07 wrote:
    Hi,
    I am using following ways to get FileType and MIME Type.
    I am able to get file type, but I am getting MIME Type as */*
    Can any one please let me know how to get MIME Type, but it should not be time consuming process.
    For File Type I am using following Code:
    private String getFileData(InputStream inStream) {
    fileName = C:\temp\temp.tiff
    String filePath = Util.createTempFile(fileName);
    RandomAccessFile raf = new RandomAccessFile(filePath, "rw");
    while (inStream.available() > 0) {
         byte[] buf = new byte[inStream.available()];
         inStream.read(buf);
         raf.write(buf);
    inStream.close();
    raf.close();
    File file = new File(filePath);Why do you do all above?
    JFileChooser chooser = new JFileChooser();
    String fileType = chooser.getTypeDescription(file);
    file.delete();
    //MIME Type I am getting from
    DataHandler data = new DataHandler(new DocumentSource(inStream));
    data.getContentType();
    data.getContentType() is not working well in all cases.That's because there's no way to get MIME type of all files on all filesystems.
    Kaj

  • How to ceate Transport Request Number for importing transport files

    I'm trying to create Transport Request Number for importing transport files.
    I've copied the two transport files (K903281.QB8 and R903281.QB8) into subdirectories usr/sap/trans/cofiles and usr/sap/trans/data, respectively. Now, I want to import the transport files using transaction management system (STMS). Before using STMS, it seems like I need to create Transport Request Number, but I don't know how to create it. Could you please let me know how to create it?

    Sanjeev and Sajay,
    Thanks for your answer. I was able to import the files successfully as transport number QB8K903281 by using standard STMS transport function after manually adding new transport on STMS. My trouble was from my ingrorance of how to let STMS recognize transoprt number for transport files copied from outside SAP. Again thank you very much.
    Tetsuya

  • Define a version number for a chm file

    I need to fix a version number in a chm file to determine
    wich version a customer uses. At this moment I distinguish them by
    chm's content, but I'm not happy for this choice.
    Is this possible?
    Thanks.
    Raffaele.

    Hi rdinatale
    Another thing you can do is to simply edit the Window
    properties to include the version number. Of course, this too would
    need to be done each time you update the version. But once it was
    done, it would show up in the title bar of the .CHM.
    Just a thought... Rick

  • How to define "leading" random number in Infoset fpr parallel processing

    Hello,
    in Bankanalyzer we use an Infoset which consists of a selection across 4 ODS tables to gather data.
    No matter which PACKNO fields we check or uncheck in the infoset definition screen (TA RSISET), the parallel frameworks always selects the same PACKNO field from one ODS table.
    Unfortunately, the table that is selected by the framework is not suitable, because our
    "leading" ODS table which holds most of our selection criteria is another one.
    How to "convince" the parallel framework to select our leading table for the specification
    of the PACKNO in addition (this would be times 20 faster due to better select options).
    We even tried to assign "alternate characteristics" to the packnos we do not liek to use,
    but it seems that note 999101 just fixes this for non-system-fields.
    But for the random number a diffrent form routine is used in /BA1/LF3_OBJ_INDEX_READF01
    fill_range_random instead of fill_range.
    Has anyone managed to assign the PACKNO of his choice to the infoset selection?
    How?
    Thanks in advance
    Volker

    Well, it is a bit more complicated
    ODS one, that the parallel framework selects for being the one to deliver the PACKNO
    is about equal in size (~120GB each) to ODS two which has two significant field which cuts down the
    amount of data to be retreived.
    Currently we execute the generated SQL in the best possible manner (by faking some stats )
    The problem is, that I'd like to have a Statement that has the PACKNO in the very same table.
    PACKNO is a generated random number esp. to be used for parallel processing.
    The job starts about 100 slaves
    Each slave gets a packet to be processed from the framework, which is internaly represented
    by a BETWEEN clause on this PACKNO. This is joined against ODS2 and then the selective fields
    can be compared resultin in 90% of the already fetched rowes can be discarded.
    Basicly it goes like
    select ...
    from
      ods1 T_00,
      ods2 T_01,
      ods3 T_02,
      ods4 T_03
    where
    ... some key equivalence join-conditions ...
    AND  T_00.PACKNO BETWEEN '000000' and '000050' -- very selective on T_00
    AND  T_01.TYPE = '202'  -- selective Value 10% on second table
    I'd trying to change this to
    AND  T_01.PACKNO BETWEEN '000000' and '000050'
    AND  T_01.TYPE = '202'  -- selective Value 10%
    so I can use a combined Index on T_01 (TYPE;PACKNO)
    This would be times 10 more selective on the driving table and due to the fact,
    that T_00 would be joined for just the rows I need, about a calculated time 20-30 faster.
    It really boosts when I do this in sqlplus
    Hope this clearyfies a bit.
    Problem is, that I can not change the code either for doing the
    build of the packets or the one that executes the application.
    I need to change the Inofset, so that the framework decides to build
    proper SQL with T_01.PACKNO instead of T_00.PACKNO.
    Thanks a lot
    Volker

  • How to define MDM real data type in ABAP ?

    Hi,
    I want to fetch MDM Repository data using MDM API .
    I am strugling as one field in MDM is of real type .
    Please tell me how I could define Real data type field in ABAP ?
    Thanks.
    Sandesh

    I recently had a Real type added to a repository I'm working on and noticed a dump in the API itself when trying to fetch data from that field. I'm running 5.5 so you may be experiencing a different issue. I haven't resolved the issue yet as it isn't a priority but I will most likely move to a string field and just ensure that the field has its decimal rule respected logically.

  • How to set field entry as type password

    Hi,
    In Oracle Web determination interview screen, I want to setup text entry as password type that is entered text should be displayed as dots/stars. Please tell me how this can be achieved ?
    Thanks,
    Sri

    Create a custom control in which have a html tag with input type= password.

Maybe you are looking for

  • Adobe 8 crashes when closing doc created from PDDoc.OpenAVDoc

    I am having trouble closing Pdf objects using Acrobat Pro 8xx. The following VBA code has worked successfully with Acrobat 6 & 7, but not with 8. We are using current pc's with Windows XP (latest SP's) and we have just upgraded to Acrobat 8.1.2. In V

  • Error 4610

    Every morning I get the following message: "Automatic update failed.  Could not establish a connection. 4610." Is there a way to turn off the automatic update? My phone shuts off after I hit "OK" through the error message. Thanks! Post relates to: Ce

  • .Jar to Java code

    Hello, I've recently found out some old jar files that i had created and i need to reverse them to get the (well, almost) original java code that i had wrote. Is there any way to do this? Thanks in advance

  • How Can I Open Nikon D750 RAW with CS6, which runs fine on Windows XP

    Successfully installed PhotoShop CS6 disks 6 mos ago on my offline Windows XP Computer (Did this via Adobe Phone support, which seems to be no longer available.) Just bought Nikon D750 and thinking I may need an update for the CS6 PhotoShop RAW File

  • Option to change fields on the file print function?

    Would like an option in the print file function to include the comments field. I have updated over half my library's comments field to include the top 100 year end standing for songs from 1955 to 1988 (Oldies Fan!). It would be a great report to shar