Issue in picking data from p2006

I need to display the absence data from QUOTA 's ...
Where code is written as follows:
PROVIDE * FROM P2006 BETWEEN PN-BEGDA AND PN-ENDDA.
    IF P2006-DESTA <= PN-ENDDA. -> This I dont know the use of this if any one having any Idea please share!!
      CASE P2006-KTART.
        WHEN '78'.
          ITAB-CACO_ELIG = P2006-ANZHL.
          ITAB-CACO_START = P2006-DESTA.
          ITAB-CACO_END = P2006-DEEND.
        WHEN '81' OR '82' or '91'.     "Perfect attendance /6 & 12 month
          ITAB-PERF_ATTEND_ELI =  ITAB-PERF_ATTEND_ELI + P2006-ANZHL.
          CLEAR PERF_ATT_TAB.
          PERF_ATT_TAB-PERNR = P2006-PERNR.
          PERF_ATT_TAB-ANZHL = P2006-ANZHL.
          PERF_ATT_TAB-KVERB = P2006-KVERB.
          PERF_ATT_TAB-DESTA = P2006-DESTA.
          PERF_ATT_TAB-DEEND = P2006-DEEND.
          PERFORM GET_PATT_ANT USING
            P2006-KTART PERF_ATT_TAB-DESTA PERF_ATT_TAB-DEEND.
          APPEND PERF_ATT_TAB.
*-------Chinoj 02/06/01 per Neutel
*          ITAB-PERF_ATTEND_TAK  =  ITAB-PERF_ATTEND_TAK + P2006-KVERB.
*            W_CONT = W_CONT + ITAB-PERF_ATTEND_TAK.
      ENDCASE.
code for form GET_PATT_ANT.
* Get taken and ANT days for Perfect Attendance
FORM GET_PATT_ANT USING QTYPE LIKE P2006-KTART
                        STARTDATE LIKE SY-DATUM
                        ENDDATE LIKE SY-DATUM.
  DATA: QTYPE_SEL LIKE BAPIHRSELQTYPE OCCURS 0,
        ABWKONTI LIKE BAPIHRQUOTA OCCURS 0 WITH HEADER LINE,
        RETURN LIKE BAPIRETURN1 OCCURS 0 WITH HEADER LINE,
        W_BEGDATE LIKE SY-DATUM.
  REFRESH: QTYPE_SEL, ABWKONTI, RETURN.
*Approved/Not Taken days
  CALL FUNCTION 'BAPI_TIMEQUOTA_GETDETAILEDLIST'
    EXPORTING
      EMPLOYEENUMBER           = PERNR-PERNR
      WAYOFCALCULATION         = 'D'
      KEYDATEFORENTITLE        = SY-DATUM
      KEYDATEFORDEDUCTION      = SY-DATUM
      DEDUCTBEGIN              = STARTDATE
      DEDUCTEND                = ENDDATE
*   IMPORTING
*     CUMULATEDVALUES          =
    TABLES
      ABSENCEQUOTATYPESELECTION   = QTYPE_SEL
      ABSENCEQUOTARETURNTABLE     = ABWKONTI
      RETURN                      = RETURN.
  LOOP AT ABWKONTI WHERE QUOTATYPE EQ QTYPE.
    PERF_ATT_TAB-ANT = ABWKONTI-ORDERED + ABWKONTI-REDUCED_SINCE.
    PERF_ATT_TAB-TAK = ABWKONTI-DEDUCT + ABWKONTI-REDUCED.
  ENDLOOP.
ENDFORM.                    "GET_PATT_ANT
Edited by: saslove sap on Apr 5, 2010 9:03 AM

My issue is there is one new quota type added '91'  we can see in the code..This is working well and fine when report executed for Current year...This quota type specially is It will exists only one day I.e BEGDA AND ENDDA WILL be same For ex: 01/01/2010 and End = 01/01/2010.
So  Like this is the only one quota type which is having BEGDA ENDDA Valid for same day...So Issue here is when report running for this current year this is picking perfectly fine..But when this is executed for Current day ex: 4/3/2010 report is missing the '91' because when p2006 run on sy-datum...!!So to avoid this what is the best logic i can use here or instead of using Pn-begda pn-endda...Can i use DEduction begin date and deduction end-date only for quota '91'??????
Sas

Similar Messages

  • Required small logic to pick data from p2006

    Please delete this thread
    Edited by: saslove sap on Apr 6, 2010 12:31 PM

    Hi shankara,
    1. Direct Select statement ,if used for cluster tables ,will cause performance issues
    U are right, but there is no option.
    2. EVEN if we use some standard FM,
       it will indirectly, use a select statement only.
    3. Hence, we cannot avoid using select statement.
    regards,
    amit m.

  • Pick Data From Serial/USB ports

    How can I pick Data from Serial/USB ports Machines
    I want to put Results into Database from Haematology Machine

    You will have to write a Java program to do this and then use a Java Pluggin Commponent (JPC) to read the data into Forms.
    Look on the Internet for code showing how to work with USB ports, and see Francois web site about PJCs.
    http://sheikyerbouti.developpez.com/index_en/

  • Sender Comunication Channel Should Pick Data from 3 Folders.......

    Hi Experts,
    Iam doing File-xi-File senario in which sender Adapter have to pick data from three different folders.How should i give the path in comunication channel,how to do this senario.
    Regards,
    Kumar

    if it is multiple directories then use <i>Advanced Selection for Source File</i> feature - http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
    Else in case it is multiple files ref - http://help.sap.com/saphelp_nw04/helpdata/en/3c/b4a6490a08cd41a8c91759c3d2f401/content.htm

  • Special character issue while loading data from SAP HR through VDS

    Hello,
    We have a special character issue, while loading data from SAP HR to IdM, using a VDS and following the standard documentation: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e09fa547-f7c9-2b10-3d9e-da93fd15dca1?quicklink=index&overridelayout=true
    French accent like (é,à,è,ù), are correctly loaded but Turkish special ones (like : Ş, İ, ł ) are transformed into u201C#u201D in Idm.
    The question is : does someone know any special setting to do in the VDS or in IdM for special characters to solve this issue??
    Our SAP HR version is ECC6.0 (ABA/BASIS7.0 SP21, SAP_HR6.0 SP54) and we are using a VDS 7.1 SP5 and SAP NW IdM 7.1 SP5 Patch1 on oracle 10.2.
    Thanks

    We are importing directly to the HR staging area, using the transactions/programs "HRLDAP_MAP", "LDAP" and "/RPLDAP_EXTRACT", then we have a job which extract data from the staging area to a CSV file.
    So before the import, the character appears correctly in SAP HR, but by the time it comes through the VDS to the IDM's temporary table, it becomes "#".
    Yes, our data is coming from a Unicode system.
    So, could it be a java parameter to change / add in the VDS??
    Regards.

  • Create release not picking data from Requisition table

    Hi All,
    I have imported release data from 11i to R12 through Requisition import program. Data got imported successfully. I have updated BLANKET_PO_HEADER_ID and BLANKET_PO_LINE_NUM column in po_requisition_lins_all table. Then I have ran Create Release Concurrent Program but that program Not picking the release from Requisition table.
    Can any one face this issue...Please let me know what thing i missing while doing this.
    Thanks.

    According to what I understand from your question, you have the Req successfully created but the the release is not happening when you run the create releases program.
    You have to have a ASL for this item with release property as Automatic Release and the BPO document number attached in the ASL attributes.
    Let me know if you have this setup or not.
    Karthik.

  • Issue with display data from infoset

    Dear Experts,
    When I am trying to display data from BI INFOSET in (Execute in background ctrl+F2)backend it is working fine but when in try to run the execution in forground (execute F8) then the system gets hang.. and time out. could any one has this kind of experience. if so kindly let me know do i need to implement any patch or  else which way i can do work to resolve this issue.
    Thanks in advance.
    Mannu

    Hi Krishna,
    I have tried as you have suggested ie. using Tcode RSISET for displaying data but still i have the same issue.
    Could any one post any additional suggestions to follow.
    Thanks in advance,
    Mannu

  • Issue to load data from database to XML file. error: ODI-40768

    Hi,
    While I am trying to load data from database to XML following error is appearing.
    ODI-1228: Task TEST_XML_DATA (Integration) fails on the target XML connection MyLOCALXSD.
    Caused By: java.sql.SQLException: ODI-40768: Could not save the file <default>:C:\DATA_FILE\www.xml because a class java.io.IOException occurred and said: The filename, directory name, or volume label syntax is incorrect
         at com.sunopsis.jdbc.driver.xml.SnpsXmlFile.writeToFile(SnpsXmlFile.java:751)
         at com.sunopsis.jdbc.driver.xml.SnpsXmlConnection.internalExecute(SnpsXmlConnection.java:769)
         at com.sunopsis.jdbc.driver.xml.SnpsXmlPreparedStatement.execute(SnpsXmlPreparedStatement.java:46)
         at oracle.odi.runtime.agent.execution.sql.SQLCommand.execute(SQLCommand.java:166)
         at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:102)
         at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:1)
         at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2906)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2609)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:540)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:453)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1740)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:338)
         at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:214)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:272)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:263)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:822)
         at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:123)
         at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:83)
         at java.lang.Thread.run(Thread.java:662)
    jdbc url: jdbc:snps:xml?d=C:\test_xsd.xsd&s=TESTSQL&re=employeesX&ro=true
    physical schema: TESTSQL
    Knowledge modules are:
    LKM: LKM SQL to SQL
    IKM: IKM XML Control Append
    CKM: CKM SQL
    Parameters set are:
    CREATE_XML_FILE: true
    XML_PATH:<default>:C:\DATA_FILE\www.xml
    I have tried to change the directory path but error is still there.
    Could some one please help me to resolve the issue?
    Regards,
    user1672911

    Hi,
    The trouble in "<default>:"  - if you set XML_PATH as C:\DATA_FILE\www.xml instead  <default>:C:\DATA_FILE\www.xml- it will work correctly.
    Greetings,
    Eugene

  • Issue while uploading data from R/3 production to BW production

    Hi,
    We are facing an issue as follows.
    We are trying to transfer master data from R/3 Production server to BW Production server.
    For the first time when we transfer data, upload is happening properly. But for the second upload - we dont get any error where as in the monitor data transfer shows 0 from 0 records and the status never changes.
    But if we restart the BW production server and then upload data, it works fine for the first upload but the same issue from second upload.
    Any suggestions please?
    Regards,
    Ram.

    Hi,
    Roberto - In ST22, there is no short dumps related to this issue. The issue is not specific for a single object. For eg. If i upload 0MATERIAL (after restarting the server) it works. Now I try to upload 0DIVISION (any object) it doesnot get uploaded.
    Sriram - We are trying Full Upload.
    Hari - I can see the records in RSA3 of the source system. The records are available and also they are extracted properly.
    Shreya - Basis people are also involved and trying to find out a solution.
    Manfred - Actually data is available. But the data doesnot get uploaded. So i guess changing the traffic lights settings might not help.
    Regards,
    Ram.

  • Issue to export data from sql to excel

    I have MS SQL 2008 Developer version and visual studio 2008. I'm using SSIS Import and Export Wizard on the VS2008 to create a simple package to export data from a table using a sql query to excel file (.xlsx), but I got the following
    error messages:
    [Destination - Query [37]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E21.
    [Destination - Query [37]] Error: Cannot create an OLE DB accessor. Verify that the column metadata is valid.
    [SSIS.Pipeline] Error: component "Destination - Query" (37) failed the pre-execute phase and returned error code 0xC0202025.
    The SQL query is
    SELECT [BusinessEntityID]
          ,[PersonType]
          ,[NameStyle]
          ,[Title]
          ,[FirstName]
          ,[MiddleName]
          ,[LastName]
      FROM [AdventureWorks2008].[Person].[Person]
    Any help will be appreciated. Thanks.
    A Fan of SSIS, SSRS and SSAS

    Or another way is to save the package created by Export Import wizard, open it in BIDS and add a Derived column task before the Excel destination to do explicit casting of the columns to your required unicode datatypes.
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Issue while uploading data from flatfile to Transaction(VK13).

    Hi All,
    I am facing an issue while uploading the data from flatfile to the transaction(vk13). My flat file is as shown below.
    SalesOrganization    DistributionChannel    Customer    Material    Releasestatus    Amount    Currency    Quantity    UOM    ValidFrom    ValidTo
    2000    01    0010029614    AT309739    A    20.00    USD    1    PC    09/11/2014    12/31/9999
    If I upload these data using the RV_CONDITION_COPY  FM it is succesfully uploading to the relevant tables(konh,konp) but in the tcode VK13  I am getting all values fine, except UOM. Instead of PC it is showning as ***. I did not understand why it is happening please give an idea to solve my issue.
    Regards,
    Chakradhar.

    Hi Raymond,
    Thanks for your reply.Yes,If I use CONVERSION_EXIT_CUNIT_INPUT in my program the issue is, Assume If the user is giving PC as value for UOM field in flat file and upload the flat file.It is successfully uploading the value PC to the UOM field in transaction VK13 but the in the database table(konp) it is showing the value as ST.
    Regards,
    Chakradhar.

  • Deadlock issue while sending data from PI to JDBC !!!

    Hi All,
    We are getting below error while sending data from PI to JDBC (Database).
    Error - JDBC message processing failed; reason Error processing request in sax parser: Error when executing statement for table/stored proc. 'store_order_details' (structure 'Order_details_Statement'): com.microsoft.sqlserver.jdbc.SQLServerException: Transaction (Process ID 61) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
    This is happening when more than one PI message is trying to deliver data at the same time to database.
    Can anyone let us know the root cause of this issue and how we can rectify this.
    Is there some setting which we can use to do parallel processing as Delivering one message at a time to database is causing performance issues & taking lot of time.
    Thanks
    Neha Verma

    Hello Neha,
    Strange but can please get below information.
    Please check with the DB admin about if the user is getting locked or is there any hanging threads related to user.
    Also confirm with DB admin if the exclusive lock is on table or on the row when you try insertign or updating information.
    You can share the user from the receiver channel.
    Regards,
    Hiren A.

  • Issue in getting data from popup?

    i hav created a popup window called simpleWindow, and a custom event to retrieve data from the popup called "popupMessage" in follwing way.
    simpleWindow.addEventListener("popupMessage",windowClose);
    In popup i call the dispatchEvent in following way
    var outgoingEvent:Event = new Event("popupMessage",false);
            dispatchEvent(outgoingEvent);
    but the event is not called?. what may be the issue?...

    Hi,
    To retrieve the data from the popup, you first need to create a custom class which wil be
    used to handle the events.
    I created the class as CustomEvents.as and then pass the data to the constructor of the
    class and the class look like as:
    package
    import flash.events.Event;
    public class CustomEvents extends Event
      public static const POPUPDATA:String = "popupMessage";
      public var data:*;
      public function CustomEvents(type:String,data:*)
       this.data = data;
       super(type);
    once this is done then suppose on close of a popup you want to send data then this would be
    done by creating object of this customEvents.as Class and passing the data u want to send.
    in this u can dispatch event like this:
    outgoingEvent = new CustomEvents(CustomEvents.POPUPDATA,textInput.text);
        dispatchEvent(outgoingEvent);
    Above code is in the popup class and the corresponding event listener for that is in the
    main class and which is like:
    popUp.addEventListener(CustomEvents.POPUPDATA,windowClose);
    Hopefully this will solve your problem and if nowt do let me know. and
    if you are able to solve the problem mark it as such

  • Sender JDBC.....pick data from table view?

    Hi Experts,
    working on JDBC for first time, so have few questions.
    data base guys want to create a table view and we need to pick the data from table view.
    my question is can we import the structure form data view?
    if i am not able to import, so i need to create the structure same as in data base table view and is it case sensitive?
    they dont want to update the data base table view, very time the SQL query will pick all the records form data base.
    the records will be less then 10,000.
    my question is as we are not updating the table view, what we need to write in update query as it is mandatory?
    Regards,
    Chinna

    Hello,
    i hope below option help in update query
    In place of the SQL statement, you can also enter <TEST>. Once the data determined from Query SQL Statement has been successfully sent, the data in the database remains unaltered.
    This is recommended if the data has not only been read, but also changed by a stored procedure entered under Query SQL Statement.

  • Data type structure while picking data from MS Access database

    Dear All,
    I have to start on new interface in which data from MS Access database will be updated in the z-table in SAP. Is there any blog available which gives step by step process for MS Access-XI-RFC interface. Or please guide me on what should be the structure of the Data Type for picking the data from the MS Access database.
    Regards,
    NJ

    Hi Nishu,
    Sender side the structure is as follows
    db_sen_dt
    ..... emp_row
    ..........  f1
    ..........  f2
    Structure is complex then check this blog
    /people/alessandro.berta/blog/2005/10/04/save-time-with-generalized-jdbc-datatypes
    JDBC to RFC Scenario, but it is synchronous
    SYNCHRONOUS SOAP TO JDBC - END TO END WALKTHROUGH  
    Also check this link
    Regards
    Ramesh

Maybe you are looking for