How to enhance 0HR_PT_2 DataSource.

I need to add a Field from table PA2001 to 0HR_PT_2 datasource
Field is KALTG ( Calendar Days ) this field is not available in the DS.
I have enhanced the Structure I add the field like ZZKALTG.
I need to write abap code to populate the data from PA2001 to this field.
Can any one provide me Code and Suggestions which Enhancement I have to take in CMOD for HR User Exit.
Regards,
SHAIK.

Hi Subray Hegde,
Thanks for sending code, as per your replay i have wrote the below code.
DATA: HRPT LIKE PTDW_TIMES OCCURS 0 WITH HEADER LINE.
DATA: L_TABIX LIKE SY-TABIX.
CASE I_DATASOURCE.
WHEN '0HR_PT_2'.
DATA : BEGIN OF ITAB6 OCCURS 0,
       KALTG LIKE PA2001-KALTG,
END OF ITAB6.
    LOOP AT C_T_DATA INTO HRPT.
      L_TABIX = SY-TABIX.
SELECT SINGLE KALTG  FROM PA2001 INTO CORRESPONDING FIELDS OF ITAB6 WHERE PERNR = HRPT-PERNR.
     IF SY-SUBRC = 0.
        HRPT-ZZKALTG = ITAB6-KALTG.
        MODIFY C_T_DATA FROM HRPT INDEX SY-TABIX.
      ENDIF.
    ENDLOOP.
This is not working perfectly, it is not fetching the records from PA2001-KALTG.
then i change the logic in select statement. in where condition i have taken date also.
example.....
SELECT SINGLE KALTG  FROM PA2001 INTO CORRESPONDING FIELDS OF ITAB6 WHERE PERNR = HRPT-PERNR AND BEGDA = HRPT-KDAY.
now this is working fine but still i have issue.  sometimes 0HR_PT_2  calday ( field: KDATE) and Table PA2001 date ( BEGDA )  is deferent in this case recorde are not coming it is geving 0 records for the particular date.
means i cont tack date as a condition.
can you provide me any other logic.....
Thanks & Regards  ..
SHAIK.

Similar Messages

  • How to enhance the datasource 0SRM_TD_PO using table BBP_PDIHP

    In R3 when any PO is deleted at the header/item level the field LOEKZ is populated in tables EKKO(Header)/EKPO(item level).
    Similarly in SRM when any PO is deleted at the header/item level the field DEL_IND is populated in tables BBP_PDHGP(Header)/BBP_PDIHP(item level). In current situation we have standard datasource 0SRM_TD_PO, this has a field as ITM_DEL_IND which is coming from table BBP_PDIHP(item level) and its always blank and its not getting populated , so we are not able to eliminate the deleted PO's in BW.
    To overcome this, I have a following approach :
    =====================================
    Enhance the datasource 0SRM_TD_PO to include a "ZZDELIND" field and populate this field via CMOD from tables BBP_PDHGP(Header)/BBP_PDIHP(item level). The issue is I'm not able to determine the relation/join/data model between the datasource and the tables. The datasource 0SRM_TD_PO has a PO#(OBJECT_ID) but the tables BBP_PDHGP(Header)/BBP_PDIHP(item level) dont have a PO# instead these tables have a key as "GUID"which is HEXA decimal.
    Can someone please help me out.

    two ways:
    1. call FM bapi_po_getdetail and pass the PO number, you will get all your details
    2. pass PO number to CRMD_ORDERADM_H to get the the GUID and use this GUID on BBP_PDHGP(if version control is active then you need to consider the active version only)
    and for item guid, pass the GUID picked from CRMD_ORDERADM_H to CRMD_ORDERADM_I-HEADER, you will get all the item guids as CRMD_ORDERADM_I.
    this can be passed to BBP_PDIGP.
    there are beautiful views as well joining these tables(BBP_PDVIEW*).. which you can use as well

  • How to enhance open Item data source from R/3 ??

    Hello All,
    I am trying to enhance the business content extractor for open items in R/3 . The data source is 0FC_OP_01. i know this is coming from the table DFKKOP.
    I need to add sub GL ffield rom another  table from DFKKOPK .
    Please advise the step by step to enhance the existing structure and add the new field to the extractor.
    Points will be rewarded for any helpful answers.
    thanks in advance,
    AG..

    Hi,
    please check out the forums, there are lot of threads about the issue 'how to enhance a datasource'. Just to give you a hint. Use transaction rsa6 in your source system for that. Here you can enhance the extract structure, the datasource and you can do the coding...
    regards
    Siggi

  • IP: How to enhance/enrich planning-data

    Dear experts,
    we would like to trigger a parameterized (customizable filters) process based on the mechanisms of the integrated planning.
    This process shall enrich the existing quantitive planning-figures by its monetary value. The evaluation of the value needs to be part of this process.
    Could you please gimme some hint which technologie is best-practive for this kind of requests?
    Can this be done using FOX-Formulars? Or is a custom planning-function the way of choice for this szenario?
    Does anybody know an example or template which I could use for orientation?
    Thanks for your comments in advance,
      Marco

    Hi,
    please check out the forums, there are lot of threads about the issue 'how to enhance a datasource'. Just to give you a hint. Use transaction rsa6 in your source system for that. Here you can enhance the extract structure, the datasource and you can do the coding...
    regards
    Siggi

  • How does an enhancement of datasource affect my production data

    Hello All,
    We have enhanced a datasource 2LIS_11_VAITM, I want to know what will happen to my existing data in the production after i move the enanced datasource to production???
    will i need to clear the existing data in production after moving the same to another dummy cube O r will just running the deltas bring in the data for the enhanced fields as well without disturbing the existing data...
    Please respond. The issue is very critical..

    Hi,
    For all the historical data that already exists in your BI system, the data for the enhanced fields will not be populated but deltas would work absolutely fine and for all the new transactional changes, these fields will be filled. If you want to populate the data for historical data as well, you will have to carry out fill up of setup tables and reload the data to BI by initialising the data. If the data is being fed to DSO, I dont think that there is any need for deleting the data, as it would get overwritten by the new initialisation load.
    As such, please note that deltas will not get triggered if the only changes to Sales Order are for enhanced fields. Deltas will only be captured for the fields that are part of main communication structure. The motive for adding the enhaned fields is only to bring information for these fields.
    Edited by: Rahul K Rai on Sep 14, 2010 11:26 AM

  • How to check the Datasource name for Virtual cube

    Hello Experts,
                          I have a report which is built on one multiproviider for which we are getting balance sheet data reporting on company code,enduser told us that he wanted to  see the data on plant level...
    The problem here is that I have checked the data flow for the multiprovider,It is showing as getting data from virtual cube.
    So,from there It is not showing the datasource and infosource under it(under virtual cube)..so how can I check the datasource name for it,so that I can go and enhance the datasource in case the plant(WERKS) is not there
    thanks
    reddy

    Hi Friend,
    go virtual cube lavel and see the data flow with "downward & upward" option in RSA1
    Go to RSA1
    Select the Virtual cube> right click > display data flow> select "downward & upward"
    it may help you

  • Steps to enhance a datasource from SAP CRM

    Dear Forum,
    Could you please provide me with some document to enhance a datasource from SAP CRM. Is it any different from enhancement of datasource from ECC datasources,
    Thanks and regards,

    Hi,
    please look this:
    Business Intelligence How-to Guides for SAP NetWeaver 2004 [original link is broken]
    or here: How-to Guides for SAP NetWeaver Business Warehouse  7.0 [original link is broken]
    Creating a datasource for generic extraction
    regards
    CSM Reddy

  • Delta in enhanced 0HR_PT_1 DataSource

    Hi gurus,
    I have a problem with enhanced 0HR_PT_1 DataSource.
    There are some fields added to the extractor structure and one of these fields (ZNIEOB) should be the base for delta queue.
    Unfortunatelly the delta mechanism doesn't work as it should - the changes in ZNIEOB field don't generate delta records.
    How should I modify the extractor to make the delta work?

    Hi,
    Please check if pseudo delta helps:
    dummy delta/pseudo delta
    -Vikram

  • Steps to Enhance Custom DataSource

    Hello All,
    I have one custom datasource ZZ_PROD. From which I am extracting data and populatd in a ODS and then in to Cube in BI 7.0
    Now I have to enhance it and add about more 20 fields from two different ECC tables.
    These two tables are custom tables for a particular departmens.
    Can somebody explain me the steps  how I can accomplish this?
    Thanks in Advance
    Kumar M.

    I would recommend to change the function Module or the program it generates the ZZ_PROD.
    First Add the fields to the extract Structure.
    Unhide the newly added fields in the data source.
    Write the logic to grab the data from the two tables and assign it to proper extract structure fields.
    We normally enhance the datasource using User Exit since we don't want to make changes to SAP Delivered programs that would be overwritten during upgrades.
    Hope that helps.
    thanks.
    Wond

  • How to find the datasource of the planned ship date

    Hi All,
    how to find the datasource of the planned ship date in shipping history report , whether we go for enhancement or we can get from SAP Std. pls help me on step by step process.
    Thanks and Regards
    malempati

    Hi Govardhan,
    The best place to start looking for the standard data source will be http://help.sap.com/saphelp_nw04/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm .
    If you can not find anything, from the source table, find if the table is included in any of the structures/views for BW. Hope this helps.
    Thanks and Regards
    Subray Hegde

  • How to find which datasource is using table JCDS?

    How to find which datasource is using table JCDS?

    Hi,
    Please find the below link and identify whether will it meet your requirement or not ... If it meets your requirement then I can provide you more documents related to the same which we have in our project.   We were using the same for Plant Maintanance project...
    For this report the required information is gathering from the different data sources from the ECC system. This report requires object status functional location attributes, Equipment attributes and some specific information apart from normal transaction data for an order.
    u2022     Main feeding data sources for this report are 2LIS_17_ORDER and 2LIS_18_ORDER.
    u2022     Requires the object status data (system status, number object status and un-number system status) is feeding from different DSO where the status data is staging with different data flow.
    u2022     Requires the Order planned end date which is dependent on the operation  planned completion date. so we are feeding this field from Operationu2019s DSO where the planned date is staging with different data flow.
    u2022     Required characteristic data and attributes of the Functional location  is getting from the master data .The 0FUNCT_LOC is updating by master data data sources
    u2022     Required standard class  of the functional location is updating from other DSO where the  classification  data is staging with the help of different data flow.
    2LIS_17_ORDER and 2LIS_18_ORDER Data flow Details : No enhancement was done for these data sources .
    Status Data Flow Details:
    The status data is staged because ,this dat is required for the reports based on the Orders, Operations , Notifications, Functional Location and Equipment.
    To load suitable data to different DSOs from the Status DSO we maintain the Filters for status profile and status at DTP level.
    Required status change dates  are deriving based on changed on date ,system status while loading from status DSO to Order DSO.
    The system status ,Number object status and un- numberd object status are feeding from status DSO only.The status DSO is updating by u20180TE_OBJ_STATUS_HISTu2019.This Is based on the tables JCDS,JSTO and T000.
    JCDS     MANDT     =     JSTO     MANDT
    JCDS     OBJNR          =     JSTO     OBJNR
    T000     MANDT     =     JCDS     MANDT
    This DS has enhanced for the below  two fields
    1.     Order Number
    2.     Operation/Activity Number
    The Logic to populate the above two fileds is as below.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/e4/1522bae6aa46b8802dca454e846d58/frameset.htm
    regards
    BVR

  • I upload iPhone pics to Shutterfly, which gives me a "low resolution" warning and blurry prints. Does anyone know how to enhance resolution/printing quality of iPhone pictures? iPhone 5

    i upload iPhone pics to Shutterfly, which gives me a "low resolution" warning and blurry prints. Does anyone know how to enhance resolution/printing quality of iPhone pictures?
    iPhone 5

    How does iPhoto play a part in this?  You're in the iPhoto forum.  Shouldn't you be asking your question in the iPhone forum?  I'll ask the powers to be to move you question to the iPhone forum.
    OT

  • How to enhance table control in DMS. Need to display doknr more than 25 cha

    Hi there.
    In transaction IL03 - document tab - I need to display a doknr which is longer than 25 characters.
    I search for exit/enhancement for DMS - saplcv140/control SUB_DOC, but cant find anything.
    If it is not possible to enhance this field, i would like to add a new field (more than 25 char) and fill in the long doknr.
    The documents that are attached contains both an internal docnumber(from the external system) and an external docnumber (functional location type of number). It is very important to show external documentno in the table control.
    Actually in the table DRAW the external dok number is in the field MRK_FILEP. Can this field somehow get in the tablecontrol?
    Anybody has experience with docno longer than 25 characters? Or how to enhance tablecontrol sub_doc (screen 0204) in fuction group CV140.
    Br,
    Liselotte.

    The BAdI CRM_BADI_RF_Q1O_SEARCH is for enhancing OneOrder based searches. Not for business partners.
    The BAdI CRM_BUPA_IL_SEARCH is the way to go. I just checked in our system.
    In the method SEARCH_CRITERIA_INITIAL check if your field is supplied in IS_PARAMETERS. If yes return CV_IS_NOT_INITIAL = 'X'.
    Then in SEARCH_PARTNERS you delete the entries from table CT_PARTNER_KEYS according to your parameter.
    However this is not very performant. If you have a search with criteria only of your own for the BAdI SAP coding will first select everything and then you filter out.
    Anyway, it is much faster to implement than a new search...
    cheers Carsten
    Edited by: Carsten Kasper on Nov 18, 2008 7:44 PM

  • How to Enhance the info type in ECC 6.0,

    I  face a problem while enhanceing the infotype in EEC 6.0 ,
    but i know how to enhance in 4.7, here i face a problem is
    a error message comming like this
    "" SCREEN STRUCTURES AND CONVERSION CLASSES ARE NOT CREATED IN CORE SYSTEM"""
    what is that mean.
    actually i follow procedure in EEC 6.0 is
    initally go to T-CODE PM01 , then enter the info type num and click on edit button ,it will navigate into create the strrecture ,then iam creating the domain ,data element and save active.
    then  i click on GENERATE OBJECT button.
    finalliy i face above message like that,
    plz give me an idia ..
    Thank& Regards
    varma

    Please follow follwoing steps for PA infotypes.
    1. Execute PM01.
    2. Select 4th Tab as "SingleScrn" and enter infotype no. (eg. 0001).
    3. click Generate Objects button.
    4. Will get a screen for entering fields which u want to append to infotypes.
    5. Activate it.
    Pls mark necessary points if this helps to u.
    Regards,
    Ranjith

  • How to handle multiple datasources in a web application?

    I have a J2EE Web application with Servlets and Java ServerPages. Beside this I have a in-house developed API for certain services built using Hibernate and Spring with POJO's and some EJB.
    There are 8 databases which will be used by the web application. I have heard that multiple datasources with Spring is hard to design around. Considering that I have no choice not to use Spring or Hibernate as the API's are using it.
    Anyone have a good design spesification for how to handle multiple datasources. The datasource(database) will be chosen by the user in the web application.

    Let me get this straight. You have a web application that uses spring framework and hibernate to access the database. You want the user to be able to select the database that he wants to access using spring and hibernate.
    Hopefully you are using the Spring Framework Hibernate DAO. I know you can have more that one spring application context. You can then trying to load a seperate spring application context for each database. Each application context would have it's own configuration files with the connection parameters for each datasource. You could still use JNDi entries in the web.xml for each datasource.
    Then you would need a service locater so that when a user selected a datasource he would get the application context for that datasource which he would use for the rest of his session.
    I think it is doable. It means a long load time. And you'll need to keep the application contexts as small as possible to conserve resources.

Maybe you are looking for

  • "Free up at least 134.3 Mb" issue, not able to download

    Hey everyone, I am having a lot of trouble downloading stuff from the PSN. The first time I encountered this problem when I tried to download the Borderlands Handsome collection. The game itself was loading fine, however the patch didn't even start.

  • Block IP Address in J2SE

    Hi, im try to make aplication when it can block ip address to access my computer. any body know how to block ip address using java??

  • Anyone buy photoshop CS6 from Next Tech Direct?

    I bought Adobe Photoshop CS6 from Next Tech Direct online.  When my friend tried to install it she could not so she went online to chat with an Adobe Chat person.  They could not help with the install as there was not a serial number or key on the bo

  • Rename Paint Bucket Tool

    Clearly the Paint B****t Tool should be renamed to somthing less offensive. Any consensus for Paint Container Tool or Paint Pail Tool? Sigh. At first it was amusing, then annoying, but now just plain insane. Please, someone, remove b_u_c_k_e_t from t

  • Replace Empty Ink Cartridge message flashes after the cartridge has been replaced

    Printer is C61P50 All in One. Has been printing black only, but this morning it said it could not continue unless the empty Magenta cartridge was replaced.   I bought a new one, installed it, and still get the same message.  Occasionally I get anothe