How to define the DATE fields in itab for uploading the data?

Hi Experts,
Am uploading the data from Excel sheet to Z table via my_itab.
So, there r 3 Date fields in Z table, which are defined as DATS(8).
So, pls. let me know that, How I hv to define the itab-date_one, itab-date_second, itab-date_three, weather CHAR(10) or sy-datum or concatenation??
thanq

Hi Sri, follow like this.
First Move that Excel Sheet Data to Internal Table Using Function Module ALSM_EXCEL_TO_INTERNAL_TABLE.
And you can insert that internal table data to Database Table Using INSERT Command.
First upload Data From Excel Sheet to ITAB with Required Structure. Once the Data Comes...
And Declare another Internal Table (ITAB1) Type Database Table name.
And Use Insert Database Table From ITAB1.
Check this Example.
TABLES:MARA.
DATA:BEGIN OF ITAB OCCURS 0,
MATNR LIKE MARA-MATNR,
MBRSH LIKE MARA-MBRSH,
MTART LIKE MARA-MTART,
MEINS LIKE MARA-MEINS,
END OF ITAB.
DATA:ITAB1 LIKE MARA OCCURS 0 WITH HEADER LINE.
START-OF-SELECTION.
ITAB-MATNR = '123ABCDA'. .
ITAB-MBRSH = 'C'.
ITAB-MTART = 'FERT' .
ITAB-MEINS = 'KG' .
APPEND ITAB.
ITAB-MATNR = '123ABCDB'. .
ITAB-MBRSH = 'C'.
ITAB-MTART = 'FERT' .
ITAB-MEINS = 'KG' .
APPEND ITAB.
LOOP AT ITAB.
MOVE-CORRESPONDING ITAB TO ITAB1.
APPEND ITAB1.
ENDLOOP.
LOOP AT ITAB1.
INSERT MARA FROM ITAB1.
MODIFY MARA .
ENDLOOP.
or,
By using type pools TRUXS our problem my be solve.
Take one internal table like your standard data base table and
one internal table for truxs like
DATA: it_raw TYPE truxs_t_text_data.
DATA: itab like mara occurs 0 with header line.
Use FM
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
I_FIELD_SEPERATOR =
i_line_header = 'X'
i_tab_raw_data = it_raw " WORK TABLE
i_filename = p_file
TABLES
i_tab_converted_data = it[] "ACTUAL DATA
EXCEPTIONS
conversion_failed = 1
OTHERS = 2.
Now looping that and updated to data base table.
hope this helps.
kindly reward if found helpful.
cheers,
Hema.

Similar Messages

  • How to define ABC class field in the Customer Master Sales tab

    HI All,
    can any one let me know how to define the new  ABC class in the Customer Master Sales tab like below.
    u2013 A (> 6,000,000 )
    u2013 B (> 1,000,000u20136,000,000 )
    u2013 C (> 100,000u20132,000,000 )
    u2013 D (< 100,000 )
    can any one let me know how to define and path in IMG.
    Thanks in advance.
    kumar reddy.

    In my opinion, you don't have any such std table/view to update ABC Classification field. You might need to update relevant infostructure based on your requirement, such as sales, invoiced, etc..
    Try with following, based on your requirement:
    MC(A
    SIS: Customer,Inc.Orders - Selection
    MC+A
    SIS: Customer Returns, Selection
    MC+E
    SIS: Customer, Sales - Selection
    MC+I
    SIS: Customer Credit Memos - Selec.
    Regards
    JP

  • How to define the date format for this date string

    2006-11-13 00:00:00.0
    How to define the date format in control file for sqlldr. "yyyy-mm-dd hh24:mi:ss" or "yyyy-mm-dd hh24:mi:ss.FF1" does not work
    thanks,

    SQL> desc t
    Name                                      Null?    Type
    TS                                                 TIMESTAMP(6)
    SQL> !cat t.ctl
    load data
    into table t
    truncate
    (ts timestamp "YYYY-MM-DD HH24:MI:SS.FF1")
    SQL> !cat t.dat
    2006-11-13 00:00:00.0
    SQL> !sqlldr userid=scott/tiger control=t.ctl data=t.dat log=t.log
    SQL*Loader: Release 10.2.0.3.0 - Production on Fri Sep 7 11:19:28 2007
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Commit point reached - logical record count 1
    SQL> select * from t;
    TS
    13-NOV-06 12.00.00.000000 AMBest regards
    Maxim

  • How to define the default activity for an unbounded task flow?

    In the new "Fusion Developer’s Guide for Oracle Application Development Framework 11g Release 1" documentation at the bottom of page 14-3 it states "An unbounded task flow .... contains a default activity, an activity designated as the first to run in the unbounded task flow, because an unbounded task flow does not have a single point of entry."
    What I can't find is how to define the default activity in an unbounded task flow and where this is recorded? Can we set this via the task flow diagrammer, and which configuration file is it stored?
    I note the first time I run the application with an unbounded task flow a dialog asks me which of the activities in the adfc-config.xml file to make the default, but I can't find where this is recorded.
    Anybody have any ideas?
    Thanks,
    CM.

    Chris,
    In fact this information is nothing that belongs into the taskflow meta data because unbounded taskflow have more than one entry point and there is no notion of default. Its a tools setting (JDeveloper) we had before
    Frank
    Message was edited by:
    Frank Nimphius

  • How to define the size of private folder in Easy DMS?

    Hi,
    I have to ristrict the user to keep  the data in private folder after the maximum limit
    please help me how to define the private folder size in easy DMS.
    after the limit user is not able to keep data in private folder.

    Hi,
    This can be done in SAP Customization / SPRO
    Pl. check :
    Cross-Application Components>Document Management>Control Data>Define Document types
    Here the size limit can be defined.
    Also check : http://scn.sap.com/community/plm/document-management/blog/2014/06/20/how-to-create-dir-and-document-type-in-dms
    Hope this helps
    Regards,
    Remi

  • UJQ_RUN_RSDRI_QUERY: how to define the scope?

    Hi,
    I'm going to use UJQ_RUN_RSDRI_QUERY in a BADI in order to retrieve data from another application. It seems easy to use. But how to define the scope of the retrieved data, i.e. how to define the content of the it_sel parameter.
    thanks for your help,
    Romuald

    This is a selection table which contains the DIMENSION name and the selection options.  Here is how to fill the table. For example, say you wanted to select on only JAN.2012 for a certain account.
      clear ls_sel.
      ls_sel-dimension = 'ACCOUNT'.
      ls_sel-sign = 'I'.
      ls_sel-option = 'EQ'.
      ls_sel-low = 'CE40041000'.
      insert ls_sel into table lt_sel.
    clear ls_sel.
      ls_sel-dimension = 'TIME'.
      ls_sel-sign = 'I'.
      ls_sel-option = 'EQ'.
      ls_sel-low = 'JAN.2012'.
      insert ls_sel into table lt_sel.
    Cheers,
    Rich HEilman

  • How to define the running order of the listeners

    Hello
    I would like to know how to define the running order of the listeners in my Dialogs.
    e.g. loadcontent on each element will do different things and some depedent on others to load when you you need the generated values based on the generated values of another element
    Thank you
    Nikolas

    Hi mei
    instead of using append use modify.
    i hope this might help you.
    gs_fieldcat-fieldname = 'VRT'.
    * gs_fieldcat-ref_table =.
    gs_fieldcat-outputlen = '3'.
    gs_fieldcat-edit = 'X'.
    gs_fieldcat-key = 'X'.
    gs_fieldcat-coltext = 'VRT'.
    gs_fieldcat-col_pos = 6.
    <b>*append gs_fieldcat to gt_fieldcat.
    modify gt_fieldcat from gs_fieldcat.</b>
    clear gs_fieldcat.
    gs_fieldcat-fieldname = 'QTY'.
    gs_fieldcat-datatype = 'FLTP'.
    gs_fieldcat-outputlen = '12'.
    gs_fieldcat-DECIMALS = '3'.
    gs_fieldcat-coltext = 'QTY'.
    gs_fieldcat-edit = 'X'.
    gs_fieldcat-col_pos = 7.
    <b>*append gs_fieldcat to gt_fieldcat.
    modify gt_fieldcat from gs_fieldcat.</b>
    or u can also try this way.
    form build_fieldcat changing gt_fieldcat type lvc_t_fcat.
      data gs_fcat type lvc_s_fcat.
      call function 'LVC_FIELDCATALOG_MERGE'
           EXPORTING
                i_structure_name = 'TABLE NAME'
           CHANGING
                ct_fieldcat      = gt_fieldcat.
      clear gs_fcat.
      loop at gt_fieldcat into gs_fcat.
        if gs_fcat-fieldname EQ 'VRT'.
          gs_fcat-scrtext_s = 'VARIETY'.
          gs_fcat-scrtext_m = 'VARIETY'.
          gs_fcat-scrtext_l = 'VARIETY'.
          gs_fcat-reptext   = 'VARIETY'.
          gs_fcat-seltext = 'VARIETY'.
          gs_fieldcat-outputlen = '3'.
          gs_fieldcat-edit = 'X'.
          gs_fieldcat-key = 'X'.
          gs_fieldcat-col_pos = 6.
          modify gt_fieldcat from gs_fieldcat.
         endif.
        if gs_fcat-fieldname EQ 'QTY'.
          gs_fcat-scrtext_s = 'QUANTITY'.
          gs_fcat-scrtext_m = 'QUANTITY'.
          gs_fcat-scrtext_l = 'QUANTITY'.
          gs_fcat-reptext   = 'QUANTITY'.
          gs_fcat-seltext = 'QUANTITY'.
          gs_fieldcat-outputlen = '3'.
          gs_fieldcat-edit = 'X'.
          gs_fieldcat-key = 'X'.
          gs_fieldcat-col_pos = 7.
          modify gt_fieldcat from gs_fieldcat.
         endif.
    and so on.....
    endloop.
    regards,
    venu.

  • How to define the copy rules in master contract

    Hi,
    Could you please help me on how to define the copy rule in master contract . I cann't find the link,it's not under IMG/SD/sales/contract/master contract/define referencing prodecures.
    Thanks/Cindy

    Hi Sai,
    I'm afraid VTAA may not resolve my problem. What I want is to define the copy rule. When you go into IMG/SD/sales/contracts/master contract/define referencing requirments/define reference procedure    you will find there is a copy rule in field area. What I really want is to define that copy rule.
    Thanks

  • How to define the texts for UI element Dropdownlistbykey?

    Hi everyone,
      I don't know how to define the texts for Dropdownlistbykey. It seems that Dropdownlistbykey has an attribute "selected key", but where can I bind the texts I want to display when user clicks the downwards
    arrow?
    Thanks in advance.

    hi,
    you can use this code :
    method WDDOINIT .
      DATA : node_info TYPE REF TO if_wd_context_node_info,
             value1 TYPE wdy_key_value,
             set TYPE wdy_key_value_table,
             k1 type string value 'M',
             v1 type string value 'MAGO',
             k2 type string value 'S',
             v2 type string value 'Saurav'.
      value1-key = k1.
      value1-value = v1.
      APPEND value1 to set.
      value1-key = k2.
      value1-value = v2.
       APPEND value1 to set.
    node_info = wd_context->get_node_info( ).
    node_info = node_info->get_child_node('FOR_DROP').
    node_info->set_attribute_value_set( name = 'DROP_KEY'   value_set = set ).
    I hope it helps.
    Thanx.

  • How to define the application parameter 'sap.xss.BaseConfigurationID'

    Hello All,
    I am developing a webdynpro ESS custom self service application. I have completed the development of the DC. But at the end when I am creating the application for the DC, I am not able to figure it out how to define the application parameter 'sap.xss.BaseConfigurationID' for the application. I have defined remaining all the parameters as specified in the following link.
    [http://help.sap.com/erp2005_ehp_03/helpdata/EN/43/3b95dab4ab1800e10000000a1553f6/content.htm]
    Could any one please detail the process to define the parameter 'sap.xss.BaseConfigurationID' ?
    Thanks a lot.
    Regards,
    Seshu.

    Pick a representative file.
    Get info. (Command-i)
    There you will see a place "Open with" where you can select the application for that file.
    Hit the "Change all..." button to do this for all files of this type.
    charlie

  • How to define the margins of a leaf in numbers 3.2

    how to define the margins of a leaf in numbers 3.2
    leaves appear without margin and not when moving from one sheet to another

    Hi Ariel,
    Numbers 3 does not show margins in normal (edit) view. Some help with layout:
    Try Alignment Guides and Rulers as suggested here:
    Print View workarounds
    Use a layout guide:
    Layout Guide for Numbers
    If you previously had Numbers 2.3 (Numbers '09) it now lives in a folder called iWork '09 inside your Applications folder. It works just as well as it used to, and has a proper Print View.
    Regards,
    Ian.

  • How to define the dynamic navigation between two component in web ui

    Hi All,
    I have a requirement to create a new assignment block in accounts overview screen .
    1.Created new view(Table view) in the BP_HEAD component.
    2.Created new button on the table view toolbar .
    3.If the user clicks the new button it should navigate to interaction log component(BT126H_CALL).
    Please hekp me step 3 how to do .
    I have checked planned activity assignment block in the account but is dynamic navigation.
    Please explain me how to define the dynamic navigation between two components.
    What is window delegate .
    Thanks,
    Venkyy

    Hi ,
    Kindly follow the link , this will be helpful for your issue :
    http://wiki.sdn.sap.com/wiki/display/CRM/CRM-NavigatingtoyourcustomBSP+component

  • How to define the Market Sales KF, in order to receive the desired result

    Hi all,
    I dont know how to define the Market Sales Kefigure, in order to get the following result. Any hint is more than welcome.
    Prd_ID = Product ID
    PS  =  Product Sales
    M_ID = Market ID
    MS  = Market Sales
    MS%  = Market Share ( formula in BEX PS/MS)
    <b>
    Prd_ID;PS;M_ID;MS;MS%</b>
    A00001;10;MRK1;100;10%
    A00002;20;MRK1;100;20%
    <b>SBTOT</b>;30;MRK1;100;30%
    B00001;40;MRK2;200;20%
    B00002;30;MRK2;200;15% 
    <b>SBTOT</b>;70;MRK2;200;35%
    <b>GTOTL</b>;100;MRKX;300;33,3%
    Products A00001 and A00002 compete in the same market. So the individual marketshares should be calculated against the market MRK1(200), e.g. 40/200 and 30/200.
    The totals now, of the A00001 and A00002 products(3040) should be compared against <b>the same market</b> MRK1(200),</b> and <b>not against</b> the MRK1MRK1(200+200).
    Thanks
    Vasso Siagri<b></b><b></b><b></b>

    Maik,
    thank you for your answer, but I am afraid this is not giving the desired results.
    What I want----
    >What am getting
    Prd_ID;PS;M_ID;MS;MS%
    A00001;10;MRK1;100;10%  ---> 10;MRK1;200;5%
    A00002;20;MRK1;100;20%  ---> 20;MRK1;200;10%
    SBTOT;30;MRK1;100;30%   ---> 30;MRK1;200;15%
    B00001;40;MRK2;200;20%  ---> 40;MRK2;400;10%
    B00002;30;MRK2;200;15%  ---> 30;MRK2;400;7,5%
    SBTOT;70;MRK2;200;35%   ---> 70;MRK2;400;17,5%
    GTOTL;100;MRKX;300;33,3% ---> 1000;MRKX;600;16,7%
    Neither resticted KF restricted on Market ID is working for many markets; it is working only if you analyze one market id.
    Any idea? bw idea? What actually I need is aggregation of unique records in terms on market id.

  • How to define the memory leak in stability test

    Hi
    Usually, we run our system with 70% CPU load for 72 hours for stability test (on solaris 10), because some plugin of our system is using mtmalloc, and we use prstat to monitor the memory of each plugin. But because of the complex memory usage of our application, we don't know when the application will use the Max memory, and because of the "mtmalloc", the memory showed by "prstat" will not released but continually increased.
    So fro the test point of view, there is the risk of memory leak, but actually, there may be no memory leak, so my question is how to define the memory leak in such condition.

    kevin wrote:
    Thank you for the input and all the info.
    isn't java heap the same as memory allocated to the java process in my weblogic
    starup script ?The heap is sized by the -Xmx and -Xms parameters you pass on the java
    command-line. The permanent generation is separate.
    >
    let me also download jprobe and try to run it and see what it gives me.
    I'd start by running with -verbose:gc. I'd want to know whether you're
    running out of heap or permgen space.
    -- Rob
    kevin
    Rob Woollen <[email protected]> wrote:
    Unfortunately memory leaks are not fun to track down even with tools.
    I'd first suggest determining whether you're running out of space in
    the
    permanent area (where classes are loaded), or you've exhausted the java
    help space.
    I'd start by adding -verbose:gc. Look at the gc messages right before
    you hit the OutOfMemoryError. If there's plenty of space left, I'd
    suspect you're running out of perm space. Search these newsgroups and
    the web for MaxPermSize, and you should see plenty of info.
    If you're running out of java heap, tools like jprobe and OptimizeIt
    are
    helpful. If you can tell me a little more about your application and
    how you're testing it, I can offer some more tips.
    -- Rob
    kevin wrote:
    Iam new to JAVA and weblogic. I have an application that runs out ofmemory time
    and again.
    please let me know how to pin point this problem and moreover, howto interpret
    or understand that there is a problem. I have downloaded JPROFILE tool,but it
    is very confusing to understand what is goin on in this tool.
    If somebody can let me know how to interpret and understand the memoryleak, that
    will be great !!!
    thank you.

  • How can define the cost center (department) manager?

    We are on 11.5.0.10
    Financials implementation is done(GL,AP,AR,FA,IA)
    In iAssets System, we want to set up the approval method to use "cost center-based approvals". (For cost center-based approvals to work properly, each cost center must have a manager defined.)
    How can define the cost center (department) manager? Thanks.

    I believe this is done in the organization definition screen. For each organization, we attach a classification "Company Cost Centre" (the same place where we attach the classification operating unit, inv org etc). In the others section, there are 2 additional information - GL company cost centre and reporting information. In the GL company cost, you need to attach the balancing segment value and the cost centre value. In the reporting information, you need to attach the manager for that organization. This ay the relationship between the cost centre and manager is created.
    Hope this clarifies.
    Vinit

Maybe you are looking for