Importing Flat file into Planning 11.1.2 via empa

Hi all,
I have imported diemension using flat file into dimension library ,when i right click on to CURRENCY dimension i found 2 options A)shared libary B)application
when i clicked on to that application i couldnt find the application .Create application using Classic Planning .Epma has its own respository i need to import the metadata currency into demotst2

In order to import into a planning app you need to convert it to EPMA format. You indicate that the planning application is a classic application.
In EPMA you need to convert the classic app then you will be able to import the flat file
JTS

Similar Messages

  • Issue importing flat files into SQL server 2008R2

    I have csv files that the last column may not have data. SSIS (version 2008R2) will insert the next row's data into the empty cells, which causes my package to fail.
    I know this is resolved in 2012 but we are using 2008R2 still. Any suggestions?
    Thanks.

    Hi sqlBI2014,
    After testing the issue that Flat File Connection Manager cannot handle file with uneven number of columns in each row in my SQL Server 2008 R2 environment, I can reproduce it.
    Based on my research, the issue is caused by the Column Delimiter gets first preference and then Row delimiter. So the next row data would be inserted in the empty column cell. This is by design in SQL Server 2005, SQL Server 2008 or SQL Server 2008 R2.
    Good news is that the issue is fixed in SQL Server Data Tools which comes with SQL Server 2012. In SQL Server 2012, by default, the Flat File Connection Manager always checks for a row delimiter in unquoted data, and starts a new row when a row delimiter
    is found. This enables the connection manager to correctly parse files with rows that are missing column fields.
    If you still want to fix the issue in SQL Server 2008 R2, there is a sample component posted to the CodePlex that might help you with this:
    http://ssisdfs.codeplex.com/
    References:
    http://blogs.msdn.com/b/dataaccesstechnologies/archive/2013/03/13/flat-file-source-cannot-handle-file-with-uneven-number-of-columns-in-each-row.aspx
    https://connect.microsoft.com/SQLServer/feedback/details/293193/ssis-import-of-flat-file-with-uneven-number-of-columns
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Loading data from flat file into 0EMPLOYEE

    Dear,
    I want to see the <b>'monthly change of numbers of employees'</b> of my company in a BW report.
    i want to do this by loading data from a dummy flat file into 0EMPLOYEE and afterwards into cube 0PAPA_C02.
    i've searched the whole 'help and service sap' websites but nowhere, i could find a usefull user guide.
    Could you explain me how this job needs to be done, are there certain steps that need to be taken?
    here are a few of my questions:
    1: what fields and data do i have to fill in my flat file?
    2: how does the time-dependency of master data of employee work?
    3: why do you only have to map 0calday and 0employee from infosource 0HR_PA_PA_1 to the corresponding fields of cube 0PAPA_C02?
    4: how is the key figure 0HDCNT_VC filled automathically?
    (the activation of cube 0PAPA_C02  and its flow is already done.)
    or maybe you know a user guide which explains the whole picture and could you send me its link?
    thanks a lot in advance,
    Julie de Meyer

    Hi,
    Employee is master data : You need to extarct data every month.Once the extraction is done , you need rto activate to see the results. Otherwise it will display old result.
    You can extract data for 0HR_PA_0 and 0HR_PA_1 cubes also. After that  you can do the reporting based on this.
    You can try some sap standard BI reports .
    Headcount is calculated based on employement percentage which is maintained in infotype 0007 (Planned Working Time). If it is 100 then it is considerd as headcount 1.
    you can check .
    http://help.sap.com/saphelp_nw2004s/helpdata/en/63/351e3c6a2fc036e10000000a114084/frameset.htm
    Regards
    Nilesh

  • Trouble Loading a flat file into BPS using a Web Browser, Please help ?

    Hi Gurus,
    I'm in BW 3.5.
    I did everything and also followed the How to .. paper to upload a flat file into BPS tran cube via a Web browser.
    I created a Web Browser and generated a BSP application. When I run the BSP application I get the following error:
    "The generated data is not contained in the selection condition" UPC204
    The error message also says:
    "The error message can appear when you use a planning function to generate data that is outside the data range specified by the selection conditions of the planning package"
    When I save the variables that I select in the web interface they are getting saved in a table(UPC_VAR_CHA_ACT), but somehow the BSP application cannot look into those values, which I think is the cause of above issue.
    Please help.
    Venkat

    Hi,
    This type of error is quite common in BPS operations. This generally happens due to some missing values in the restriction of the planning levels and the packages.
    The error message is "The generated data is not contained in the selection condition" UPC204
    Check in the planning level and the package, all the restrictions that have been defined and verify whether the values which are getting uploaded through the flat file are present in the election condition of the level or in the package.
    Please award points if helpful.

  • Upload data from flat file into internal table

    Hi friends,
    I want to upload the data from a flat file into internal table , but the problem is that all the columns in that flat file are seperated by "|" character instead of tabs.
    Plz help me out.........

    HEllo,
    DO like this.
      CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
      FILENAME = LV_FILENAME
      FILETYPE = 'ASC'
      HAS_FIELD_SEPARATOR = 'X'  " Check here
    * HEADER_LENGTH = '1'
    * READ_BY_LINE = 'X'
    * DAT_MODE = ' '
    * CODEPAGE = ' '
    * IGNORE_CERR = ABAP_TRUE
    * REPLACEMENT = '#'
    * CHECK_BOM = ' '
    * IMPORTING
    * FILELENGTH =
    * HEADER =
      TABLES
      DATA_TAB = IT_COJRNL
      EXCEPTIONS
      FILE_OPEN_ERROR = 1
      FILE_READ_ERROR = 2
      NO_BATCH = 3
      GUI_REFUSE_FILETRANSFER = 4
      INVALID_TYPE = 5
      NO_AUTHORITY = 6
      UNKNOWN_ERROR = 7
      BAD_DATA_FORMAT = 8
      HEADER_NOT_ALLOWED = 9
      SEPARATOR_NOT_ALLOWED = 10
      HEADER_TOO_LONG = 11
      UNKNOWN_DP_ERROR = 12
      ACCESS_DENIED = 13
      DP_OUT_OF_MEMORY = 14
      DISK_FULL = 15
      DP_TIMEOUT = 16
      OTHERS = 17
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    VAsanth

  • Uregnt - How to Load Flat File into BW-BPS using Web Browser

    Hello,
    We have followed the 'How to Load Flat File into BW-BPS using Web Browser' guide to build BSP web front-end to upload flat file.  Everything works great but we have a requirement to populate the Planning Area Variables based on BSP drop down list with values.  Does anyone know how to do this?  We have the BSP coded with drop down list all we need to do now is populate variables.  We can populate the variables through the planning level (hardcoded) but we need to populate them through the web interface.
    Thanks,
    Gary

    Hello Gary,
    We have acheived the desired result by not too a clean method but it works for us.
    What we have done is, we have the link to load file in a page where the variables can be input. The user would then have the option to choose the link to load a file for the layout in that page.
    By entering the variable values in the page, we are able to read the variables for the file input directly in the load program.
    Maybe this approach might help.
    Sunil

  • Flat File Into DW

    Hi All,
    I have many flat files in xls, access, csv format to be brought into the OBIDW. I have a EBS Financials, OM and SCM modules which also has some flat file data as sources.
    1. whats is the general approach to bring in the flat file data to the OBIDW (I have DAC 7.9.5 and INFA 8.1.1).
    ---is the approach like - just build a fully customized INFA mappings with flat file as source?
    OR
    --first bring in the flat file data into a local staging DB without any business logic (just Data migration) and then use them as additional  
    tables in the pre-built INFA mappings? how are the relations between new OLTP tables built?
    OR
    --what is the best practice? (ppl having experience of having done this pls answer, its very critical!)
    2.what is the industry standard. PLs let me know ASAP!
    3. In OOTB DAC 7.9.5 I see some execution plans/ subject areas called 'Flat File' what are they used for? Any relation to the above question.??
    4. any documents/ links are appreciated.
    5. How is the Change Capture Mechanism realized for BI Apps as EBS as source. In Siebel I am used to Image tables. But i do not see any image table concept here in EBS. Pls help me in this regard also.
    Thanks You Very much.

    Hi Anitha,
    You should use File content conversion to convert flat file into XML file.
    Please check the below link, which help you to know how to do it.
    http://saptechnical .com/Tutorials/XI/Contentconversion/page2.htm
    Please check the weblink given below for converting the file content:
    http://help.sap.com/saphelp_srm40/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
    Thanks,

  • Adobe Technical Communications Suite - Importing Framemaker Files into Robohelp

    We have just started using the Adobe Technical Communications
    Suite to import our Framemaker files into Robohelp. (We have about
    a year’s experience of taking Framemaker files into Web Works
    Publisher, with good results so we were hoping for a similar
    experience with Robohelp).
    Please can you help us with the following two problems:
    1. Importing FM files into Robohelp has posed some immediate
    table formatting problems. We imported the FM files by reference
    according to the instructions but cannot format the tables, ie.
    Colors etc.
    2. Can you also tell us if there is a way to set up our
    graphics in Framemaker to import into Robohelp without first having
    to run them through a batch file scenario to change the size for
    online help. Also, can you explain why the imported graphics are
    being put into separate folders in Robohelp – is there a
    system option where we can stop this from occurring.
    We are a little frustrated because we are long-time users of
    Robohelp and Framemaker and are finding some of the new features of
    TCS are not as helpful as we first thought. I am sending these
    questions after spending several hours going through the Robohelp
    Help and the Adobe website and not finding the answers.
    Thanks for your help,
    Asra S.

    I have purchased the Technical Communications Suite and am
    working with it now. I am finding several short comings in the
    product – 60% great product and 40% not so great. I have been
    using FrameMaker and RoboHelp for about 11 years and also I am a
    Webworks (ePublisher) user. I was expecting (at a minimum) to have
    the same functionality as ePublisher in TCS - ePublisher works
    seamlessly with FrameMaker. Quadralay worked with me the first
    month to answer my questions to ensure I was pleased with the
    product - and welcomed/appreciated my feedback. In some cases they
    provided me with scripts to accommodate my needs. I am finding on
    message boards and forums that a lot of users as very disappointed
    with your product so far. Are there any plans on
    improving/enhancing the product to accommodate our basic requests?
    The standard answer we get concerning graphics and tables is
    to use conditional text. This is not single-sourcing and is a
    horrible recommended work-around – a hack if you will. We use
    conditional text to handle differences in program functionality. I
    understand there is some set up required when you create a new
    project in RoboHelp, but after that I would like to run the Batch
    File process to simply generate my newly updated FM files to online
    help. How efficient is that? VERY!
    I have provided a list of the basic missing
    functionality/oversights that would greatly improve the product and
    satisfy a lot of your current users. Some of these issues may be
    user misunderstanding and in that case I seek guidance on what
    I’m doing wrong. Take the other issues into consideration
    because these are not just my issues, but a TON of your users.
    Hopefully you are user focused and are as concerned as we are.
    Please welcome this feedback as a way to improve the product.
    - No Breadcrumbs supported with MS HTML Help - supported in
    your other outputs and is available in ePublisher, so it must be
    possible.
    - Table formats are not configurable – why? Sometimes
    the converted table format from FM isn’t 100%.
    - Imported file structure (folder for each chapter) totally
    hoses my fix to poor graphic rendering. Currently I use a batch
    file to run a Photoshop macro/action on my graphic source files to
    reduce the file size by 50% and sharpen. I replace the graphics
    with my graphics and they look marvelous in online help. I copy my
    source graphics back into my “graphics folder” imported
    into FM at 260 dpi for my printed docs. Can we have the option on
    the structure for imported FM files to put them all into one
    folder?
    - Text entered into the Auto numbering field is not converted
    when importing by reference. It is when just doing a straight
    import. This is used for standardizing my inserted tables with
    pre-populated column titles– Troubleshooting, If/Then, etc.
    - Too many CSS issues. It would be nice to have one main
    template that we can sync to when the master template is changed.
    - Can’t specify a default template to apply to all FM
    files when imported.
    - My output .chm file is not picking up my Project Settings.
    It will not display Favorites, My Window Size, it’s not
    showing the TOC.
    - Cross-references – sometimes they work and sometimes
    they don’t.
    - Markers – we use markers for glossary terms and the
    character tagging carries forward throughout the rest of the
    sentence.
    I started testing the product four days ago and these are the
    major issues that are keeping me from moving forward with my
    overall plan to move to structured FM. I’m now between a rock
    and a hard place because now my department does not have the
    software to do their job. Do I go to management and tell them that
    I made the wrong decision in my tool selection? I choose your TCS
    over the updated Quadralay ePublisher that works with FM8…
    Maybe they went up on their price because the knew their former
    users would come back and be willing to pay the increased price for
    their software that generates online help with just a click of a
    button.
    Thank you for taking the time to read this and for your help
    in advance. Please direct these concerns to those in charge of
    enhancing the product (Product Evangelist). A reply and technical
    support is greatly appreciated.
    Director of Technical Publications - Horizon Software
    International, LLC
    Nikki Bridwell

  • How to Import XML file into SAP B1

    Dear All,
    I have a scenario like,
    I am receiving a XML file from a 3rd party application for the daily Creation,Update of Item Master,BP Master, Marketing Documents. I want to import this file into SAP B1 through its approp objects. I understand DTW has limitation in its file types (Semicolo,Tab,Comma,ODBC). How do i do this ? Please guide me.
    Thanks,
    Thanga Raj K

    Hy folks,
    I´m frim Brasil and I've been studying the tool EFM (Eletronic File Manager) to learn more about it!
    There I saw that we can extract to XML "any" infomation from the database we want, mainly through the GEP.
    However, as I've seen, this Add-On can not import any XML file into SBO, unless for the BFP wich can be imported in conjunction with the BTHF Add-on.
    So I ask: how is it possible to import XML data into SBO database? Is it possible to be done through the EFM? or  it´s really necessary to write a code specifically to do that?
    Besides, I know that de B1iSN fit to this necessity... but when I tried to use it, by the custom "object" for BP, for example, there are some data wich the mapping conteined in this custom "process" that can not be imported... I tried to understand how to map those other fields not imported by the custom but this has been dificult to me as I am a implementation consultant focused in administrative process not on development...
    Could you please help me with this subject!
    Thanks a lot,
    Denis

  • Error while loading flat file into DSO

    Hi
    I am loading data from a flat file into a DSO. My fields in the flat file are Trans_Dt, (CHAR) Particulars (CHAR), Card_Name, (CHAR) Exps_Type, (CHAR)
    Debit_Amount,Credit_Amount,***._Amt,Open_Bal_Check_Acnt, (CURR)
    0Currency (CHAR)
    In the proposal tab apart from the above mentioned fields 3 additional fields viz, field 10, field 11, and field 12 have come. How did these 3 additional fields come when I don't have any additional fields in my flat file? I've deleted these extra 3 fields though.
    When I activate the DataSource it is getting activated but then I get the message 'Data structures were changed. Start transactions before hand'. What does this message mean?
    When I hit the 'Read preview data' button it doesn't show me any data and gives me the error Missing reference to currency field / unit field for the fields Debit_Amount,Credit_Amount,***._Amt,Open_Bal_Check_Acnt
    How do I create a reference field to the above mentioned fields?
    Earlier I didn't have the 0Currency field in the flat file. But in my DSO while creating the key figures by default the 0Currency field also got created which is quite obvious. Now while activating the transformations I was getting a message that 'No source field for the field 0Currency'. Hence I had to create a new field in my flat file called 0Currency and load it with USD in all rows.
    Please help me in loading this flat file into the DSO.
    Thank you.
    TR.

    Hi guys,
    Thanks a lot for your answers. with your help I could see the data in the 'Read preview data' and schedule the load. I did use all the Info objects in the info objects column of the data source to load the flat file.
    The data is in PSA successfully without any issues. but when I executed the DTP it failed with errors.
    Earlier there was no mapping from Currency field in source to the all the key figure fields in the target in the transformation. The mapping was only from Currency to 0CURRENCY but still the transformation got activated. As per your advise I mapped Currency field to the remaining Key Figure fields but then I am getting the error
    'Source parameter CURRENCY is not being used'
    Why is that so?
    list of Errors after executing the DTP:
    1. 'Record filtered because records with the same key contain errors'
    Message:
    Diagnosis: The data record was filtered out becoz data records with the same key have already been filtered out in the current step for other reasons and the current update is non-commutative (for example, MOVE). This means that data records cannot be exchanged on the basis of the semantic key.
    System Response: The data record is filtered out; further processing is performed in accordance with the settings chosen for error handling.
    Procedure: Check these data records and data records with the same key for errors and then update them.
    Procedure for System administration
    Can you please explain this error and how should I fix this error.
    2. Exception input_not_numeric; see long text - ID RSTRAN
    Diagnosis: An exception input_not_numeric was raised while executing function module RST_TOBJ_TO_DERIVED_TOBJ.
    System Response
    Processing the corresponding record has been terminated.
    Procedure
    To analyse the cause, set a break point in the program of the transformation at the call point of function module RST_TOBJ_TO_DERIVED_TOBJ. Simulate the data transfer process to investigate the cause.
    Procedure for System Administration
    What does this error mean? How do I set a breakpoint in the program to fix this error inorder to load the data?
    What does Procedure for System Administration mean?
    Please advise.
    Thank you.
    TR.

  • Problem importing ics files into iCal

    Importing ics files into iCal is the problem, but first here is the background on why I'm trying to import.
    I have an iMac and iPad, and recently changed my iPhone 3G for an iPhone 4S.  Having got the iPhone 4S I have now set up all my devices to use iCloud.  In moving iCal to iCloud an extra calendar was created "automatically" in iCal, called "Me".  This "Me" calendar contains a partial duplicate of my main calendar, which is called "My Calendar".  In fact, some of the events from "My Calendar" seem to have been moved to "Me", and some have been duplicated.
    It seems as it I now need to merge the "Me" and "My calendar" calendars to get back to where I was.
    I have tried to export one of the calendars and then re-import it into the other.  The export seems to work fine, but every single time I try to re-import the ics file iCal crashes at the end of the import process, and the import is not completed.
    Can anyone help?  This has been driving me absolutely crazy today!
    I even tried manually moving events from one calendar to another, but they reappeared.  I think this was because my iPhone/iPad were re-syncing via iCloud and overwriting the changes I had just made.
    I don't mind if I end up with one calendar with duplicates as I can remove them with iCal Dupe Deleter.
    Or if there are any other alternative solutions I'd love to hear them!
    All help greatly appreciated!
    (P.S. Is it just me, or is Apple software slowly getting as unreliable as Windows used to be?  I get more problems with software updates now than when I first got a Mac about 8 years ago!)

    Not a great answer but I dragged the attachment either to the finder - app - ical or the icon. It placed it on the calendar. I clicked in and accepted. So, no auto populate. Need to drag and drop. So glad I paid the 20 bucks to upgrade to 10.8

  • Load a flat file into BW-BPS using SAP GUI

    Hi,
    We are using BW BPS 3.5 version, i implemented how to guide  " How to load a flat file into BW-BPS using SAP GUI" successfully without any errors.
    I inlcuded three infoobjects in the text file   costelemt, Posting period and amount. the same three infoobjects i inlcuded the file structure in the global data as specified in the how to document
    The flat file format is like this
    Costelmnt      Postingperiod         Amount   
    XXXXX             #      
    XXXXX             1                          100
    XXXXX             2                           800
    XXXXX             3                           700
    XXXXX             4                           500
    XXXXX             5                           300
    XXXXX             6                           200
    XXXXX             7                           270
    XXXXX             8                           120
    XXXXX             9                           145 
    XXXXX            10                           340
    XXXXX            11                           147
    XXXXX            12                           900 
    I successfully loaded above flat file in to BPS cube and it dispalyed in the layout also.
    But users are requesting to load  flatfile in the below format
    Costelmnt        Annual(PP=#)   Jan(PP=1)   Feb(PP=2) ........................................Dec(PP=12)  
    XXXXX              Blank                       100           800                                                   900
    Is it possible to load a flat file like this
    They wants load a single row instead of 13 rows for each costelement
    How to do this. Please suggest me if anybody accorss this requirment.
    In the infocube we have got only one Info object 0FISCPER3(Posting period) and one 0AMOUNT(Amount)
    do we need 13 Infobjects for each posting period and amount.
    Is there any possiblity we can implement any user exit which we use in BEX Quer's
    Please share your ideas on this.
    Thanks in advance
    Best regards
    SS

    Hi,
    There are 2 ways to do this.
    One is to change the structure of the cube to have 12 key figures for the 12 posting periods.
    Another way is to write an ABAP Function Module to fetch the values from each record based on the posting period and store it in the cube for the corresponding characteristic. This way, you dont have to change the structure of the cube.
    If this particular cube is not used anywhere else, I would suggest to change the structure itself.
    Hope this helps.

  • How can I load a flat file into a ZTABLE dynamically

    I need to create a program which can Load a ZTABLE from a flat file structure (delimited and fixed options required).  We have many ZTables where this will be required so I was hoping to do it dynamically somehow.  Otherwise I will have to create one ABAP for every ZTable we have to load.
    My Inputs should be
    PARAMETERS:  p_ztable TYPE ddobjname,         "Z Table Name
                 p_infile(132) LOWER CASE,        "File Name
                 p_delim(1).                      "Delimiter
      I know that I can read the file by using gui_upload
        CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                = c_infile
          has_field_separator     = p_delim
        TABLES
          data_tab                = indata
        EXCEPTIONS
          file_open_error         = 1
          file_read_error         = 2
            OTHERS                  = 9.
    I know that  I can split the contents of this file (if a delimiter is used).  However I will not know the actual field names of the table until runtime as to what to fields to split it into.  In the example below I have the actual table (t_rec) and each of the fields (pernr, lgart, etc) in the code but each table I
    need to load will be different – it will have a different # of fields as well.
    FORM read_data_pc.
      LOOP AT indata.
        PERFORM splitdata USING indata.
        APPEND t_rec.
        CLEAR t_rec.
      ENDLOOP.
    ENDFORM.
    FORM splitdata USING p_infile.
       SPLIT p_infile AT p_delim INTO
            t_rec-pernr                 "Employee #
            t_rec-lgart                 "Wage Type
            t_rec-begda                 "Effective date
            t_rec-endda.                 "End date
      ENDFORM.                       
    Once I split the data into the fields then I can just look and insert the record.
    Does anyone have any ideas?  Specific code examples would be great if you do.  Thx!!

    Hi janice,,
    Try this sample code where you can upload data from a flat file into the internal table.
    REPORT  z_test.
    TABLES: mara.
    FIELD-SYMBOLS : <fs> .
    DATA : fldname(50) TYPE c.
    DATA : col TYPE i.
    DATA : cmp LIKE TABLE OF rstrucinfo WITH HEADER LINE.
    DATA: progname LIKE sy-repid,
    dynnum LIKE sy-dynnr.
    DATA itab TYPE TABLE OF alsmex_tabline WITH HEADER LINE.
    DATA: BEGIN OF ZUPLOAD1_T OCCURS 0 ,
             matnr like mara-matnr,
             ersda like mara-ersda,
             ernam like mara-ernam,
             laeda like mara-laeda,
          END OF ZUPLOAD1_T.
    *DATA: ZUPLOAD1_T LIKE mara OCCURS 0 WITH HEADER LINE.
    DATA: wa_data LIKE TABLE OF  ZUPLOAD1_T WITH HEADER LINE.
    selection-screen
    SELECTION-SCREEN: BEGIN OF BLOCK blk WITH FRAME TITLE text-001.SELECTION-SCREEN : SKIP 1. PARAMETERS : p_file LIKE rlgrap-filename.SELECTION-SCREEN : SKIP 1.SELECTION-SCREEN : END OF BLOCK blk
    . AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    F4 Value for File
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'   EXPORTING
                          PROGRAM_NAME        = SYST-REPID
                          DYNPRO_NUMBER       = SYST-DYNNR
                          FIELD_NAME          = ' '
         static              = 'X'
                          MASK                = ' '
        CHANGING      file_name           = p_file   EXCEPTIONS     mask_too_long       = 1     OTHERS              = 2 
              .  IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    START-OF-SELECTION.
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE' 
    EXPORTING    filename                      = P_FILE   
    i_begin_col                   = 1   
    i_begin_row                   = 1   
    i_end_col                     = 5   
    i_end_row                     = 12507 
         tables   
       intern                        = ITAB
    EXCEPTIONS  
            INCONSISTENT_PARAMETERS       = 1  
            UPLOAD_OLE                    = 2  
           OTHERS                        = 3.          .
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'GET_COMPONENT_LIST' 
    EXPORTING  
        program          = SY-REPID   
        fieldname        = 'ZMARA' 
           tables   
           components       = CMP.
    LOOP AT itab.    AT NEW row.     
    IF sy-tabix = 1.        APPEND ZUPLOAD1_T.     
    ENDIF.   
    ENDAT.   
    col = itab-col.   
    READ TABLE cmp INDEX col.  
    CONCATENATE 'ZUPLOAD1_T-' cmp-compname INTO fldname.  
    ASSIGN (fldname) TO <fs>.  
    <fs> = itab-COL.  
      APPEND ZUPLOAD1_T.  ENDLOOP.
    DELETE ZUPLOAD1_T where matnr eq space.
    LOOP AT ZUPLOAD1_T INTO wa_data.
    insert mara from  wa_data .
        WRITE: / ZUPLOAD1_T-matnr, 20 ZUPLOAD1_T-ersda , 45 ZUPLOAD1_T-ernam, 55 ZUPLOAD1_T-laeda.
    *HERE IAM JUST CHECKING I NEED TO UPDATE A ZTABLE
      ENDLOOP.
    insert ZMARA FROM table itab ACCEPTING DUPLICATE KEYS.
    I have tried it for mara.Please let me know whether it was helful.
    Regards,
    Kannan

  • How can I import a file into my Windows Phone 8.1RT App?

    Hi All,
    I'm running into a bit of an issue associating my app with a custom file type.  Users create a file using my app and upload it to their OneDrive for sharing.  So I then want to give the users the ability to download the file from a share link and
    have that file open automatically in my app.  I've got the appropriate declarations set and file type associations, but I'm getting a file access exception when I try to open the file.  Whats the best way to import a file into my app?  Here's
    the code I've got so far:
    protected override async void OnFileActivated(FileActivatedEventArgs args)
    var path = args.Files[0].Path;
    var name = args.Files[0].Name;
    StorageFile newFile = await StorageFile.GetFileFromPathAsync(path);
    await newFile.CopyAsync(ApplicationData.Current.LocalFolder, name.Substring(0, name.Length - 4));
    The path comes back as
    C:\Data\Users\DefApps\APPDATA\Local\Packages\microsoft.microsoftskydrive_8weke\LocalState\OpenWithTempFolder\e68c261-db3b-472d-a8b7-93427450\File Name.extension
    and the exception is
    Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
    Clearly I'm trying to access the file in an inappropriate way, so what's the best way to get the file into my app's local storage?

    You have the StorageFile in arg.Files[0] already. Just use that rather than getting its path and then trying to create a new StorageFile from it.
    var path = args.Files[0].Path; // <= Path is unnecessary and unhelpful
    var name = args.Files[0].Name;
    await args.Files[0].CopyAsync(ApplicationData.Current.LocalFolder, name.Substring(0, name.Length - 4));
    See my blog entry Skip the path: stick to the StorageFile for more details.

  • Is there a way to import Raw files into LR catalog ..including..any edits performed in an external raw file editor such as Capture One?

    Is there a way to import Raw files into LR catalog ..including..any edits performed in an external raw file editor such as Capture One?
    I can import the Raw file successfully but cannot see any edits that were applied in Capture One. Im assuming no but just checking.

    Your assumption is correct, Capture One, Lightroom and other third party raw processors have their own proprietary processes and profiles for rendering the raw data.
    They do not make permanent changes to the raw data and store the changes to an .xmp file or to a catalog file like Lightroom.

Maybe you are looking for