How to read master data in transformation routine?

Hi gurus,
I am loading data from 0HR_PA_0 data source.
I have 2 fields in the DS: PERNR (Personal Number) and CALMONTH (Calendar year/month).
I need to read 0EMPLOYEE's attribute 0ENTRYDATE and count the difference between Entry date and Calendar year/month.
Could you please help me with it? I don't know ABAP that much, so I am not able to write it by myself...
Regards,
Dorota

Hi Dorota ,
I guess your main problem is how to get difference of two dates in no of days.Please find following code for the same .
I am asumming that you want days difference from  01 date of month .If not then it can be changed as per requirement.Here the variable datediff will give you output in no of days .
data :v_date1 like sy-datum ,
v_date2 like sy-datum ,
datediff(6) type n.
v_date1 = '20100301'.
v_date2 = sy-datum.
datediff = v_date1 - v_date2 .
If you please clear some point I can help you to write code .My questions :
1) where you want to write this code .(start/end routine etc)
2) What will be your start day value (1st day of month) or date value from  0ENTRYDATE.
    ex : 0ENTRYDATE = 20101223
           CALMONTH = 201003
so we need day value for calmonth that can be 01  or 23 (as in 0ENTRYDATE).
Hope this will help .
Regards,
Jaya

Similar Messages

  • How to read master data?

    Can anyone tell me the procedure how to read master data?

    Hi,
    I am sorry but your question is a bit vague. What do you mean by your statement? Can you please elaborate your requirement.

  • Problem in Read Master Data rule type in Transformation

    Hi,
    I have 'Tax Classification' & 'Sales Territory' as attributes for 0customer (Master data).  I loaded master data for 0customer & data have come up for this 2 fields.  I want this 2 fields in my DSO with data filled.  As this 2 fields are not in Transaction datasource of my DSO,  i added this 2 fields in the Target side in Transformation of the DSO.  In Transformation, I gave the rule type as 'Read Master Data'  from attribute of '0customer' & mapped KUNAG (Sold-to) to this 2 fields.  Activated the Transformation & executed the DTP.
    When i check the data, i could see that the Infoobject 'Sales Territory' column alone is filled but 'Tax Classification' column is blank.  Tax classification has data in 0customer master data for the displayed customer values but still data is not coming in DSO.
    How does this happen when both the fields have same mapping & rule type and still data not getting populated for one field alone.  Am i missing anything?
    Regards,
    Murali

    hi,
    the green request in MD does not means that the data in MD is activated, you need to activate it after loading everytime so that it reflects in where used list as well.
    regards,
    Arvind.

  • Read Master Data in BW Transformation

    Hi,
         I am using BW 740 SP02 and I need in a transformation rule to use the option "READ MASTER DATA", In fact this enables me to use all attributes of an infoObject and affect them to my data target ( Infocube).
         I was wondering if there would be any possibility to affect also master data text of an infoObject and affect them to a data target?
    I know that master data text are available through Bex queries, but for my case I need to have them in my Infocube.
    Best Regards,
    RAFIK

    Hi Mohamed,
    Using standard rule type this is not possible
    However there are two ways to achieve this:
    1. you use abap routine to read the text value from text table of info object (BIC/Txxx) in transformation
    2. a. add a char info object to your master data
        b. create another transformation from text data source to populate this new field (which is actually text)
        c. create DTP to populate this new field with text values
        d. now you can easily use, 'read master data' rule in transformation and assign the text field to your target field
    hope this helps,
    Purvang

  • Error - InfoObject cannot be used to read master data

    Hi All,
    We am working on mapping objects in a transformation, on some of the transformation I am using the master data attribute to fill the infoobject.  In some cases the mapping happens without incident but in others we are getting the following error
    InfoObject  cannot be used to read master data
    Inside the long text of the message it says:
    InfoObject  does not have the correct attributes to be used to read master data for the target field
    The object is one of the master data attributes, so we are not sure why we are recieving this error?
    We have recieved it with 0COMP_CODE trying to load Fiscal Year Variant and with a non standard enhanced object ZMATERIAL which is a copy of 0MATERIAL with added attributes for Product Class, Product Group and Product Line wich come from the product hierarchy and are populated on the load of the material from product hierarchy.
    Has anyone else had an issue with this error and can you tell us how you fixed it???
    Thank you!
    Caroline

    You received this error for loading 0FISCVARNT (Fiscal Year Variant) because that InfoObject isn't an attribute of 0COMP_CODE (Company Code) and it cannot therefore determine what data to populate based on your input. Instead of using 0COMP_CODE, you may have to enter a constant value for the Fiscal Year Variant if you don't have it in your source InfoProvider.
    When you created ZMATERIAL, did you use 0MATERIAL as a reference so that it would inherit the attributes and texts? If so, Product Class, Product Group and Product Line would have to be attributes of 0MATERIAL. If you didn't reference 0MATERIAL and are loading attributes directly to the custom InfoObject attributes, then Product Class, Product Group and Product Line would have to be attributes in ZMATERIAL in order to use the Use Master Data function for transformations. You may have to derive the values for these different, such as add ABAP for lookup routines.

  • Error while assigning infoobject to the read master data in rule type

    Hi sdns,
    I want to read the zwostd info object data from zemployee master infoobject attribute list. For that i have selected  rule details of zwostd infoobject in transformation of info cube, then i am tring to select the read master data rule type. It is taking more time and then it displayed error like permitted time was  exceeded. Could any one please give me  the solution for this problem.
    thanks
    karun

    Sometimes directly typing the infoobject name in the field helps - otherwise it tries to fetch all the infoobjects available which is possibly why the time out occurs..?
    Enter the Master Data infoobject directly and then you will get the fields assigned.
    However my experience with read master data has been that whenever you change the master data IOBJ by way of adding / removing Nav Attributes / attributes etc - all the transformations using the read master data for the IOBJ that is being changed will get deactivated and it is a pain reactivating and transporting them again - particularly so when you are developing something on them and the changes are stuck across multiple requests ...
    IMHO use a routine instead to do the same - it involves lesser maintenance. SAP is anyway going to run a similar SQL...

  • Read master Data is not behaving properly

    HI All,
    We have upgraded BI server with SAP_BW patch 17.
    we have used Read master data rule type in the transformation to ODS and its giving proper output where as expected .But at the same time it also giving some improper out put ,means for those values which are not there in masterdata it is giving some wrong value , but while testing in to trasformation it is giving message for those entries that they are not available in the master data .What  we did was loaded flat file for billing type in to Z infoobject contains two more info object in to attribute tab and in to those attribute through flat file we are loading some value and during transaction load we want attribute value to be filled for those biling type which were loaded in master data through flat file.
    please help
    regards
    Gaurav

    Hello
    This is further to the problem described by Gaurav.
    Let me explain the proble with an example
    Consider the Master data:
    Doc Type(key)                 Attr 1                   Attr 2
    ZORS                            PRODUCT            Revenue
    ZORD                            PRODUCT            Revenue
    ZORP                            PROJECT             Revenue 
    ZMTO                            PROJECT             Revenue                   
    ZCOS                            SERVICE              Revenue
    Consider Transaction data
    Doc        Doc Type
    10001     ZORS
    10002     ZORD
    10003     ZORP
    10005     S1
    10006     ZBDN
    Expected O/p in the ODS is
    Doc        Doc Type       Attr1  
    10001     ZORS           PRODUCT
    10002     ZORD           PRODUCT
    10003     ZORP           PROJECT
    10005     S1
    10006     ZBDN
    10007     ZCOS           SERVICE
    the Observed O/p
    Doc        Doc Type       Attr1  
    10001     ZORS           PRODUCT
    10002     ZORD           PRODUCT
    10003     ZORP           PROJECT
    10005     S1                PROJECT
    10006     ZBDN           PROJECT
    10007     ZCOS           SERVICE
    We are not able to understand how Attribute values are coming for Doc No 10005 and 10006.
    We have recently applied patch 17.
    Is there any reason for this
    Thanks
    Regards
    zubin Kurian

  • How 2 upload Master Data 4 a Info Object in BI 7.

    Hi,
    I have to load Master Data to a Info Object in BI 7 ( Like Diret Update in 3.5 )
    How 2 upload Master Data 4 a Info Object in BI 7.
    Dont suggest me to " Insert Characteristic as Data Target".
    Points assured.
    Thank you.

    hi...chk these steps..
    Uploading of master data
    Log on to your SAP
    Transaction code RSA1—LEAD YOU TO MODELLING
    1. Creation of Info Objects
    • In left panel select info object
    • Create info area
    • Create info object catalog ( characteristics & Key figures ) by right clicking the created info area
    • Create new characteristics and key figures under respective catalogs according to the project requirement
    • Create required info objects and Activate.
    2. Creation of Data Source
    • In the left panel select data sources
    • Create application component(AC)
    • Right click AC and create datasource
    • Specify data source name, source system, and data type ( master data attributes, text, hierarchies)
    • In general tab give short, medium, and long description.
    • In extraction tab specify file path, header rows to be ignored, data format(csv) and data separator( , )
    • In proposal tab load example data and verify it.
    • In field tab you can you can give the technical name of info objects in the template and you not have to map during the transformation the server will automatically map accordingly. If you are not mapping in this field tab you have to manually map during the transformation in Info providers.
    • Activate data source and read preview data under preview tab.
    • Create info package by right clicking data source and in schedule tab click star to load data to PSA.( make sure to close the flat file during loading )
    3. Creation of data targets
    • In left panel select info provider
    • Select created info area and right click to select Insert Characteristics as info provider
    • Select required info object ( Ex : Employee ID)
    • Under that info object select attributes
    • Right click on attributes and select create transformation.
    • In source of transformation , select object type( data source) and specify its name and source system Note: Source system will be a temporary folder or package into which data is getting stored
    • Activate created transformation
    • Create Data transfer process (DTP) by right clicking the master data attributes
    • In extraction tab specify extraction mode ( full)
    • In update tab specify error handling ( request green)
    • Activate DTP and in execute tab click execute button to load data in data targets.
    4. Monitor
    Right Click data targets and select manage and in contents tab select contents to view the loaded data. Alternatively monitor icon can be used.
    hope this helps..

  • How to load master data from SAP R/3 system like Customer master...........

    How to load master data from SAP R/3 system like Customer master, materioal master , vendor master.............

    Hi Bramha,
            Check ...........
    Re: master data loading in BI 7.0
    /message/4708129#4708129 [original link is broken]
    Re: Master data loading.
    Regards,
    Vijay.

  • How to load master data in bpc 10

    HIi All,
    Could any one please share some documents/PDF  or any link with me as how to load master data in BPC 10 Nw.
    Regards
    Bhupendra Arya

    Bhupendra,
    There are many docs/threads related to this in SDN, pls check.
    SAP BPC NW 10.0 Master Data Load to BPC from BW | SAP BPC Discussions
    Hope this helps..

  • How to load master data and hierarchies from R/3 systems

    HI all,
    how to load master data and hierarchies from R/3 systems.
    Please explain the steps.
    Thanks,
    cheta.

    HI,
    Its normally done following: Transferring the master datasources in RSA5 to RSA6 and then replicating the DS into BW and assignment of DS to Infosource and cretaion of Infopackage and load it into the master tables.
    Generally, the control parameters for data transfer from a source system are maintained in extractor
    customizing. In extractor customizing, you can access the corresponding source system in the source
    system tree of the SAP BW Administrator Workbench by using the context menu.
    To display or change the settings for data transfer at source system level, choose Business
    Information Warehouse → General Settings → Maintaining Control Parameters for Data Transfer.
    Note: The values for the data transfer are not hard limitations. It depends on the DataSource if these
    limits can be followed.
    In the SAP BW Scheduler, you can determine the control parameters for data transfer for individual
    DataSources. You can determine the size of the data packet, the number of parallel processes for
    data transfer and the frequency with which the status IDocs are sent, for every possible update
    method for a DataSource.
    To do so, choose Scheduler → DataSource → Default Settings for Data transfer.
    In this way you can, for example, update transaction data in larger data packets in the PSA. If you
    want to update master data in dialog mode, smaller packets ensure faster processing.
    Hope this info helps.
    Thanks,Ramoji.

  • Read master data example

    hi please tell me the use of transformation ---> read master data.with example please

    Hi,
    Please search the forum before posting.This is again very basic question and has been discussed couple of times.
    Read the below pdfs.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50357f56-5701-2e10-fd8c-a2da94bd95dd?QuickLink=index&overridelayout=true
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/306ccc96-f000-2d10-1985-b20209f2b502?QuickLink=index&overridelayout=true
    Hope it helps.
    Regards,
    AL

  • Read Master Data doesn't work

    hi guys
    i tryied in everyway to use read master data in a transformation in BI 7.0
    but ii always retrieve errors
    "No InfoObject available for reading of master data".
    source SODS with
    infoobject A Master data ( Attribute Ab)
    target TODS with
    infoobject Ab
    infoobject A Master data
    i want to write in the target ODS not only the master data A but also his attribute Ab
    when I go into the Transformation Rule for Ab, I choose the Rule Type "Master Data Read" and I should be able to select the A infoObject in the Source InfoObject list,
    and Ab in IOassignmnt but when I try, I only get an error message saying "No InfoObject available for reading of master data".
    i searched into the forum and there are other cases like this not answered
    thanks

    I just resolved this problem on my computer running Windows 7 64 bit.  \
    Try the following:
    Open Adobe Reader XI
    Choose Edit > Preferences
    A dialogue box will open with a "Categories" Column on the Left, and another broader section on the right with items to check
    FROM THE LEFT COLUMN  choose "Security (Enhanced)"
    Now look to the right of the categories column; you will see a check box with "Enable Protected Mode at Startup" checked
    Uncheck that box.
    When Adobe asks you if you're sure, choose "yes"
    Close Adobe and then restart the program.
    Open a pdf document THAT IS NOT A SCANNED DOCUMENT
    Choose View > Read Out Loud > Activate Read Outloud
    Then click on a section of the doucment you want read.  It will be bounded by a box and start reading.
    You may also choose to read the entire document or a single page.
    Hope this helps.

  • How to read the data in excel sheet

    Dear sir,
    How to read the data in excel sheet when i recieve a data serial communication... ie i have store a data in excel such that
    Cell A       Cell B
       A           Apple 
       B           Ball
       C           Cat
       D           Doll
    when i recieve A from serial communication i have to display Apple, and when i recieve B i have to display Ball and so on.. 

    Hi, 
    I would recommend you to have a look at the VI attached. It makes use of a VI named 'Read from Spreadsheet' to read the row and column data from the tab delimited excel file. The read data is then searched for the Alphabet specified and finally returns you the corresponding string. The test file used to validate the operation of the VI is also attached. 
    Trust this would help you solve the issue. 
    Regards, 
    Sagar G Yadav | Application Engineer | National Instruments
    Attachments:
    read_from_excel.vi ‏10 KB
    Book1.txt ‏1 KB

  • Read Master Data for Process order status change (REL to CRTD)

    I am unable to read master data and thus change the status of process order from REL to CRTD. (COR2)
    The reason it says, error in BOM reading, Transport Requirement (TR) already generated.
    Even after deleting the TR (LB02), the issue still exists.
    Is there another way of changing the status or some more steps are needed for the TR deletion?
    Thnx!
    Abhi.

    Order header Status-
    REL  Released
    MSPT Material shortage
    PRT  Printed
    PRC  Pre-costed
    BASC Batch assignment complete
    BCRQ Order to be handled in batches
    SETC Settlement rule create.
    In the error log it gives-
    Diagnosis
    Transfer requirements have already been generated, so therefore the bill of material cannot be read.
    System Response
    The system does not execute the action.
    Then I deleted the TR (LB02), but still I cannot reread the master data.
    The MSPT was for only 2 materials out of 6 and there is no GMPS status.
    There is prod supply area and control cycle used.
    and the TR generated at order release.

Maybe you are looking for

  • A problem with Itunes and adding music to library

    I've been using my Ipod touch for about a month now (recently purchased). I first connected my Ipod to my laptop, because my desktop needed a format and reinstall of the OS, so I wanted to be slightly organized with it. I finally got around to format

  • This is a stumper of a problem

    This is quite a specialised problem and i hope someone can help me I am writing a jsp web page to display information from a ldap directory. It works fine except i need to specify where the program is to search the ldap tree. When i specify no locati

  • Error 0xc1440137 0x2000c installing 8.1. Pro as upgrade on HP Stream 8

    I'm getting the error 0xc1440137 0x2000c after about 3% of the installation. I tried a few of thing that I found like the 1) dism /online /cleanup-image /restorehealth 2) http://support2.microsoft.com/kb/929135/en-us 3) Making a USB Bootable with Win

  • HELPPP !! SapScript: print window only on first page

    Hello, can somebody help me? I have 2 pages (1 full and 1 almost empty) because the STANDARD print program send 2 pages into my form And I would like to print some windows (address, info) ONLY ON THE FIRST PAGE but I can't... I try to use some system

  • Workflow u2013 some tasks are u201Cunlaunchedu201D

    I have a Workflow configured to start immediately for actions Import, Add and Update. Some records canu2019t start automatically for any reason. For this cases, an u201Cunlaunchedu201D task is created and several records is added to this task (some r