Hi All , validating the overlapped periods ,Uploading the xml file to sap

Hi All,
please provide me the logic for the following requirement: Its an urgent .
Upload Global exception periods via File:
          A customized transaction will be created for uploading the global exception periods using
          an excel file. User has to maintain the global exception periods in an excel sheet with the 
          below mentioned format and upload the file manually into the system.  The global
          exceptions are maintained at step of half hourly period with a factor value.
          Please find the format followed for maintaining the global exception periods in the
          excel sheet.
Date From      Period From     Date To     Period To     Factor value
06.02.2008     12     06.02.2008     14     1.2
07.02.2008     1     07.02.2008     2     1.4
07.02.2008     3     07.02.2008     4     1.2
07.02.2008     5     07.02.2008     6     1.6
07.02.2008     7     07.02.2008     8     1.1
      Once user uploads the excel file and press execute button, file contents are downloaded
      and the global exception periods are updated into ZLF_GEXCEPTION table. Please refer        
      the necessary table format for details.
            During the upload of global exception periods, the periods are checked if it is overlapping
             with the previously uploaded periods. For those overlapping periods, below method is
            followed. 
1.     For e. g,  If a below exception period is already uploaded,
   Date From     Period From        Date To      Period To         Factor value
   06.02.2008       12                     06.02.2008      16               1.4     
The new file contains the period which gets overlapped with the previous global
exception period.
   Date From     Period From        Date To      Period To         Factor value
    06.02.2008       14                     06.02.2008      15               1.6     
The overlapped periods are split accordingly,
Date From     Period from        Date to      Period To                   Factor value
  06.02.2008       12                   06.02.2008      13               1.4     
  06.02.2008       14                   06.02.2008      15               1.6
  06.02.2008       16                   06.02.2008      16               1.4
2.For e.g., Already existing period, 
   Date From     Period From        Date To      Period To         Factor value
    06.02.2008       12                     07.02.2008      16          1.3
   New period,
Date From     Period From        Date To         Period To         Factor value
  07.02.2008       5                     07.02.2008      8          1.7
The Global exception periods are split into,
   Date From     Period From        Date To      Period To         Factor value
    06.02.2008       12                     07.02.2008      4          1.3
    07.02.2008       5                     07.02.2008      8          1.7
    07.02.2008       9                     07.02.2008      16          1.3
      If any error occurs while updating the global exception periods into ZLF_GEXCEPTION
      table, then display LF-001 message given below the Error messages section. For the
      successful updating of global exception periods to ZLF_GEXCEPTION table, then
      display the message “Successfully completed”.
             User will be provided an option to download the global exception periods into an excel
             file. User has to provide the necessary location details where to download the file while
             downloading.
Thanks&Regards.
Bk

Hi All,
please provide me the logic for the following requirement: Its an urgent .
Upload Global exception periods via File:
          A customized transaction will be created for uploading the global exception periods using
          an excel file. User has to maintain the global exception periods in an excel sheet with the 
          below mentioned format and upload the file manually into the system.  The global
          exceptions are maintained at step of half hourly period with a factor value.
          Please find the format followed for maintaining the global exception periods in the
          excel sheet.
Date From      Period From     Date To     Period To     Factor value
06.02.2008     12     06.02.2008     14     1.2
07.02.2008     1     07.02.2008     2     1.4
07.02.2008     3     07.02.2008     4     1.2
07.02.2008     5     07.02.2008     6     1.6
07.02.2008     7     07.02.2008     8     1.1
      Once user uploads the excel file and press execute button, file contents are downloaded
      and the global exception periods are updated into ZLF_GEXCEPTION table. Please refer        
      the necessary table format for details.
            During the upload of global exception periods, the periods are checked if it is overlapping
             with the previously uploaded periods. For those overlapping periods, below method is
            followed. 
1.     For e. g,  If a below exception period is already uploaded,
   Date From     Period From        Date To      Period To         Factor value
   06.02.2008       12                     06.02.2008      16               1.4     
The new file contains the period which gets overlapped with the previous global
exception period.
   Date From     Period From        Date To      Period To         Factor value
    06.02.2008       14                     06.02.2008      15               1.6     
The overlapped periods are split accordingly,
Date From     Period from        Date to      Period To                   Factor value
  06.02.2008       12                   06.02.2008      13               1.4     
  06.02.2008       14                   06.02.2008      15               1.6
  06.02.2008       16                   06.02.2008      16               1.4
2.For e.g., Already existing period, 
   Date From     Period From        Date To      Period To         Factor value
    06.02.2008       12                     07.02.2008      16          1.3
   New period,
Date From     Period From        Date To         Period To         Factor value
  07.02.2008       5                     07.02.2008      8          1.7
The Global exception periods are split into,
   Date From     Period From        Date To      Period To         Factor value
    06.02.2008       12                     07.02.2008      4          1.3
    07.02.2008       5                     07.02.2008      8          1.7
    07.02.2008       9                     07.02.2008      16          1.3
      If any error occurs while updating the global exception periods into ZLF_GEXCEPTION
      table, then display LF-001 message given below the Error messages section. For the
      successful updating of global exception periods to ZLF_GEXCEPTION table, then
      display the message “Successfully completed”.
             User will be provided an option to download the global exception periods into an excel
             file. User has to provide the necessary location details where to download the file while
             downloading.
Thanks&Regards.
Bk

Similar Messages

  • Uploading an XML file from SAP into third party URL

    Hi,
    I need to Upload an XML file from sap into Third party URL. Can any body tell me the possible ways in SAP to achieve this task. Also explain me the proceedure.
    Thanks in advance.
    -Namdev

    Sorry. If they only said HTTP/HTTPS and didn't say explicitly web service, it means they don't want it.
    One thing I'm not sure is, do you have an URL at the third-party system that you need to contact, or should you provide one at your SAP system that they will contact?
    If it is the first one, to send an HTTP request to a given URL using ABAP, you'll find an example here: [SAP Library: Example Program: Executing an HTTP Request|http://help.sap.com/saphelp_nw70/helpdata/en/1f/93163f9959a808e10000000a114084/frameset.htm]
    Sandra

  • I created a book and tried to place order but failed.  I followed the procedures, when the book completed uploading, the message "An error occured uploading your order" pop up.  There was no error message all along when I created the book.

    I created a book and tried to place order but failed.  I followed the procedures, when the book completed uploading, the message "An error occured uploading  your order" appeard.  There was no error message all along when I created the book. I tried several time but failed.

    preview the order and try again - http://support.apple.com/kb/HT1040
    If it still does not work boot into Safe Mode, preview again and try
    With the number of reports in the last few days it may be server overload - if so trying during a time of lower activity might help
    LN

  • The grace period for the Remote Desktop Session Host server has expired

    <p>I'm running Windows Server 2012, we only have 1 server and it's a DC.  I'm trying to RD to the server from my Windows 7 laptop. It was working fine on Friday but when I came in on Monday I got message saying that 'The remote session was disconnnected
    because there are no Remote Desktop License Servers available to provide a license'
    So after a bit of digging I found out my 'grace period' had expired, so ordered a new license which I got today, installed this all ok but still i cannot connect via RD I get the same message....went into the RD License Diagnoser and it said the problem
    was as follows
    'The grace period for the Remote Desktop Session Host server has expired, but the RD Session Host server has not been configured with any license servers. Connections to the RD Session Host server will be denied unless a license server is configured for
    the RD Session Host server.'
    Suggested Resolution as follows
    Configure a license server for the Remote Desktop Session Host server. If you have an existing license server, specify that license server for the RD Session Host Server. Otherwise, install RD Licensing on a computer on your network and Configure RD Session
    Host Server to use it.'
    I cannot figure out how to do this as I cannot find the RD Session Host Server tool. 
    Can any of you lovely people help me please

    Hello,
    Best option would be to assign the license server by using AD GPO. Youl will need to configure the following:
    Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Licensing
    and define the settings for:
    Use the specified Remote Desktop License Server
    Set the Remote Desktop Licensing mode
    Then assign the policy tho your server.
    regards Robert Maijen

  • How to upload the data from excel(3 tabs) file to sap environment

    Hi all,
    This is Mahesh.
    how to upload the data from excel(3 tabs) file to sap environment (internal tables) while doing bdc.

    Hi,
    The FM 'ALSM_EXCEL_TO_INTERNAL_TABLE' makes it possible to load a worksheet into an internal table in ABAP.
    However, if you want to get the data from several worksheets, I think you are stuck with OLE access to your Excel Workbook...
    You can find a solution for 2 worksheets in this post :
    TO UPLOAD DATA FROM 2 EXCEL SHEETS INTO TWO INTERNAL TABLES
    I think you can easily modify it to handle any number of worksheets.
    Hope it helps !
    Best regards,
    Guillaume

  • Where is the procedure for uploading my music files to Cloud?

    Where is the procedure for uploading my music files to Cloud?  I have a portable hard drive that has all my burned songs on it, and I'm trying upload and match those songs for the first time.....

    There is no "procedure." When you sign up for iTunes Match, iTunes does all the work for you. But you must have the external HDD connected for it to work.
    Also, keep in mind that iTunes Match is not a streaming service. To play your music on your computer you'll still need to have the external HDD connected, unless you decide to delete all the music from your iTunes library.

  • How the system know the actual period in the Production startup of ML?

    Hi experts:
    I have a question:
    We want to make a prototipe of Material Ledger/Actual Costing.
    At first we want to make a copy of all the information of one Client for example until 31.11.2009 to another Client.
    I have readed that when you make the Production Startup process of ML, the system transfers inventory quantities, inventory values and prices from material master records to the material ledger data for the current period, the previous period, and the last period of the previous year.
    The question is How the system can determinate the actual period??.. Is this based on the MM logistic periods??.
      At last if we do the copy of all the existing movements to our client until 31.11.2009 but the MM logistic period was 03/2010, What is the Actual Period for Material Ledger at the moment that I realize the Production startup?.
    Thanks and regards!!
    Manuel

    Hi Udo:
    At first, thanks a lot for your fast answer:
    In the SAP HELP library in "preparing data for Material Ledger (production startup), you can find the next:
    When you have finished the production startup, the system does the following:
    Transaction Data
    1. Transfers inventory quantities, inventory values and prices from material master records to the material ledger data for the current period, the previous period, and the last period of the previous year
    2.- Calculates the inventory values and prices in the currencies of the material ledger at the current date using the stated exchange rate type
    3.- Amends the purchase order histories with the set currencies, using the settings for additional currencies found in Customizing for Financial Accounting
    Like you said in your last replay, this process ONLY transfer  (Quantities and values related to the inventory??
    What happend with the goods movements which have already exists in SAP before  you  set  Valuation areas as Productive in ML??..
    Thanks!
    manuel

  • In general what is the time period of the XI projects ?

    Hi All
        Can any one help me what is the time period of the XI Projects (In general)?
        In realtime how the time is managed/Utilized on resources ?
        How the work estimations will be done ? Based on What ?
    Adv...thanks and points
    regards
    ---  Rakesh

    Hi
          This is based on the projects but in general (In addition to above)
          As follows
         In general there are ‘3’ kinds of interfaces
    1)     Easy  ---  2 days (Which will include dev+ document)
         2)  Medium -
    5 days          “           “
    3)     Complex  -
    10 to 12 days  (complex BPMs + Mappings+ document)
          Project full time will purely depends on the  Business (Requirement)
         + No.systems+ No.scenarios
          But in general 4months to 6 months for normal projects
    >> About work already answer given
    I hope this will solve your question
    regards
    -- prasad

  • Upload an XML file into the Internal table

    Hi Guys,
    I want to know, how to upload an xml file into the Internal table through ABAP programming

    you just wanted to load the xml file into internal table (as a table of binary strings)or load the xml data mapped to itab row columns
    for the first one you can simply use gui_upload
    and for the second one you need to load the xml file using gui_upload and use XLST program to transform into an itab
    Regards
    Raja

  • How to use the applet to upload the file ?

    I am facing a problem that , I don't know how to use applet to upload the file to server .
    I have the code to upload the file by using servlet .
    However , I want to use applet to upload the file .But , the format of servlet I have used is "multipart/form-data"
    but applet can not do so , I think it is the header of the data . I don't know what can I do .....
    Can anyone give me some suggestion or coding to write the file upload by using applet ?
    Besides , using the socket are there any other choices ?
    thx a lot !!!!

    Well, to upload files you need to
    Server App - running on the webserver
    1. Open a socket
    (Study the classes Socket, InputStream, OutputStream in the Java API)
    2. Wait for connection.
    3. Open FileOutputStream
    3. Read data from InputStream, Write to FileOutputStream
    4. Close InputStream and FileOutputStream
    Applet
    1. Open a filedialog (Swing, AWT)
    2. Open file (FileInputStream)
    3. Connect to uploadServer (steps described above)
    4. Read FileInputStream, write OutputStream
    5. Close File and Socket
    This is just simpl and basic terms get you on the right track
    Jonas

  • How to upload a Flat file into sap database if the file is in Appl'n Server

    Hello Sap Experts , Can you tel me
    " How to upload a Flat file into sap database if the file is in Application Server.
    what is Path for that ?
    Plz Tel Me its Urgent
    Thanks for all

    Hi,
    ABAP code for uploading a TAB delimited file into an internal table. See code below for structures.
    *& Report  ZUPLOADTAB                                                  *
    *& Example of Uploading tab delimited file                             *
    REPORT  zuploadtab                    .
    PARAMETERS: p_infile  LIKE rlgrap-filename
                            OBLIGATORY DEFAULT  '/usr/sap/'..
    DATA: ld_file LIKE rlgrap-filename.
    *Internal tabe to store upload data
    TYPES: BEGIN OF t_record,
        name1 like pa0002-VORNA,
        name2 like pa0002-name2,
        age   type i,
        END OF t_record.
    DATA: it_record TYPE STANDARD TABLE OF t_record INITIAL SIZE 0,
          wa_record TYPE t_record.
    *Text version of data table
    TYPES: begin of t_uploadtxt,
      name1(10) type c,
      name2(15) type c,
      age(5)  type c,
    end of t_uploadtxt.
    DATA: wa_uploadtxt TYPE t_uploadtxt.
    *String value to data in initially.
    DATA: wa_string(255) type c.
    constants: con_tab TYPE x VALUE '09'.
    *If you have Unicode check active in program attributes then you will
    *need to declare constants as follows:
    *class cl_abap_char_utilities definition load.
    *constants:
    *    con_tab  type c value cl_abap_char_utilities=>HORIZONTAL_TAB.
    *START-OF-SELECTION
    START-OF-SELECTION.
    ld_file = p_infile.
    OPEN DATASET ld_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    IF sy-subrc NE 0.
    ELSE.
      DO.
        CLEAR: wa_string, wa_uploadtxt.
        READ DATASET ld_file INTO wa_string.
        IF sy-subrc NE 0.
          EXIT.
        ELSE.
          SPLIT wa_string AT con_tab INTO wa_uploadtxt-name1
                                          wa_uploadtxt-name2
                                          wa_uploadtxt-age.
          MOVE-CORRESPONDING wa_uploadtxt TO wa_upload.
          APPEND wa_upload TO it_record.
        ENDIF.
      ENDDO.
      CLOSE DATASET ld_file.
    ENDIF.
    *END-OF-SELECTION
    END-OF-SELECTION.
    *!! Text data is now contained within the internal table IT_RECORD
    * Display report data for illustration purposes
      loop at it_record into wa_record.
        write:/     sy-vline,
               (10) wa_record-name1, sy-vline,
               (10) wa_record-name2, sy-vline,
               (10) wa_record-age, sy-vline.
      endloop.

  • I have a website for my artwork.  I had a PC and. Now an iMAC.  I've used Dreamweaver to update the website.  I used to go to Filezilla on the PC a upload the updated pages which would then show updated on the internet.  What file like FileZilla should I

    I have a website for my artwork.  I had a PC and. Now an iMAC.  I've used Dreamweaver to update the website.  I used to go to Filezilla on the PC a upload the updated pages which would then show updated on the internet.  What file like FileZilla should I use?

    You can download it here:
    https://filezilla-project.org/download.php?show_all=1
    Click the Source Forge link - make sure you reject offers for any other software during the installation, Source Forge usually will ask you to install other stuff in addition to what you want (Filezilla).
    It works well on Mac.
    Dreamweaver also has built-in FTP functionality if you want to check that out.

  • How to get the attribute value of an XML file??

    How to get the attribute value of an XML file??
    For example, how to get name and age attributes?
    <student name="Joe" age="20" />

    What are you using to read the XML file??
    On the assumption of JDOM - www.jdom.org. Something along the lines of:SAXBuilder builder = new SAXBuilder(true);
    Document doc = builder.build(filename);
    Element root = doc.getRootElement();
    List children = root.getChildren();
    Element thisElement = (Element)children.get(n);
    String name = thisElement.getAttributeValue("name")
    try
         int age = Integer.parseInt(thisElement.getAttributeValue("age"));
    catch (Exception ex)
         throw new InvalidElementException("Expected an int.....");
    }Ben

  • [svn] 3025: Add libs/player/ 10 directory to the library path in the team apps flex-config.xml file.

    Revision: 3025
    Author: [email protected]
    Date: 2008-08-28 11:24:42 -0700 (Thu, 28 Aug 2008)
    Log Message:
    Add libs/player/10 directory to the library path in the team apps flex-config.xml file. This is to matche what's in the flex-config.xml file that comes with the Flex SDK.
    Add libs/player directory to the library path of the flex-config.xml file that is shared by the qa-manaul and qa-regress webapps. This is to match what's in the flex-config.xml file that comes with the sdk.
    Change the call to mxmlc in the compile-swf target in the flexunit build script to set the target player version to 10.0.0.
    Remove web services and http service tests that were removed by Bill from qa feature.properties files otherwise the automated test frameworks will try to run these tests and blow up.
    Modified Paths:
    blazeds/trunk/apps/team/WEB-INF/flex/flex-config.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/flexunit/build.xml
    blazeds/trunk/qa/features/full.properties
    blazeds/trunk/qa/features/httpService.properties
    blazeds/trunk/qa/resources/config/flex-config.xml
    Removed Paths:
    blazeds/trunk/qa/features/nist.properties
    blazeds/trunk/qa/features/webService.properties

    Revision: 3025
    Author: [email protected]
    Date: 2008-08-28 11:24:42 -0700 (Thu, 28 Aug 2008)
    Log Message:
    Add libs/player/10 directory to the library path in the team apps flex-config.xml file. This is to matche what's in the flex-config.xml file that comes with the Flex SDK.
    Add libs/player directory to the library path of the flex-config.xml file that is shared by the qa-manaul and qa-regress webapps. This is to match what's in the flex-config.xml file that comes with the sdk.
    Change the call to mxmlc in the compile-swf target in the flexunit build script to set the target player version to 10.0.0.
    Remove web services and http service tests that were removed by Bill from qa feature.properties files otherwise the automated test frameworks will try to run these tests and blow up.
    Modified Paths:
    blazeds/trunk/apps/team/WEB-INF/flex/flex-config.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/flexunit/build.xml
    blazeds/trunk/qa/features/full.properties
    blazeds/trunk/qa/features/httpService.properties
    blazeds/trunk/qa/resources/config/flex-config.xml
    Removed Paths:
    blazeds/trunk/qa/features/nist.properties
    blazeds/trunk/qa/features/webService.properties

  • [svn:fx-trunk] 13358: Manually removing extraneous whitespace from the start of the en_US playerglobal rb DITA XML files to unblock the build .

    Revision: 13358
    Revision: 13358
    Author:   [email protected]
    Date:     2010-01-07 17:10:34 -0800 (Thu, 07 Jan 2010)
    Log Message:
    Manually removing extraneous whitespace from the start of the en_US playerglobal rb DITA XML files to unblock the build. We need to work with the doc team to make sure future drops do not contain this whitespace.
    QE notes: N/A
    Doc notes: N/A
    Bugs:
    SDK-24896 - playerglobal_rb.swc has dita content that is not encoded correctly
    Reviewer: For Jim, Jeff
    Tests run: ant other.locales
    Is noteworthy for integration: Yes
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24896
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/__Global__.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/air.net.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/air.update.events.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/air.update.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/authoring.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.accessibility.xm l
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.data.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.desktop.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.display.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.errors.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.events.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.external.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.filesystem.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.filters.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.geom.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.html.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.media.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.net.drm.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.net.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.printing.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.profiler.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.sampler.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.security.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.system.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.text.engine.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.text.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.ui.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.utils.xml
        flex/sdk/trunk/frameworks/projects/playerglobal/bundles/en_US/docs/flash.xml.xml

    Thats good news.

Maybe you are looking for

  • Confirmed quantity more than the ordered quantity in sales order.

    Hi All, We have a situation wherein the confirmed quantity is more than the ordered quantity. a.) SO was created for qty1.Two schedule lines were proposed as stock was not available. b.) When stock came in and most probablly, when the rescheduling jo

  • Wildcards in CTXCAT grammar vs. CONTEXT grammar

    I've got a question about using wildcards in the CONTEXT grammar, when working with a catalog (CTXCAT index). For the application in question, the simpler CTXCAT grammar is almost exactly what I need, but there are a few circumstances in which I want

  • Conflict in Form Distribution when 2 email exists

    Hi, I have a form that has a "Submit by email" but on the same form I have another button that says "submit suggestions by email". Everything works fine until I try to distribute the forms, it says that there is a conflict of URL or Email addresses.

  • 5508 Mobility Group

    Clients are not able to roam between WCS controllers. Our mobility groups are working but we are not able to pass DHCP addresses between controllers

  • IDES Bus Scenarios for SAP IS-OIL solutions

    Will anyone provide url for Business scenarios for  SAP IS-OIL SD and MM modules