Maintaining the mapping information and writing update routine to populate

Hi,
Its my requriment to get the transactional data from r/3, here in the transaction data i will get the data in following format
(for example)
Material no.   Sales value    quantity ..
M001              100           2
M002              200           4
M003              150           3
now my requirement is to take the quantity per material number and multiply it with a factor called as SBU factor
.. my problem is that this SBU factor is not maintained in r/3 means the mapping information of material no. with its relative SBU factor is not maintained. So i thought of two option as this mapping is fixed means it will not changed so we can maintain in bw system through 1) one time upload of flat file or
2) maintaning a table in BW with mapping
so users agreed to give the mapping information as follows
Material no.    SBU factor
M001              5
M002              10
M003              7
now while uplading the transational data i need to take the SBU factor per material that is maintained through flat file or table and multiply it with quantity and store it quantity.
for example(the result i need in cube)
material no.   sales value    quantity(quantity * SBU)
M001             100           2*5=10
M002             200           4*10=40
M003             150           3*7=21
so i can do this at two level at transfer rules or update rules.
I need following clarification
1) shall i load the mapping information through flat file or maintain it in table?
2) If i will do the transformation at update rules so wht routine (start or update) should i write to get the SBU factor per material and do transformations
If possible send the sample routine.
Pls reply ASAP.
Thanks
Saleem.

Hi Saleem,
Nimesh is right..Do the multiplication in the Update rules.
If the data for this SBU factor is less and is always fixed, you can go for one time upload, else set up a RFC Call to load this data to BW from R/3 if no datasource for the same exist.
Else you can also maintain a table in BW, in which one time upload could be done by writing an ABAP, or manually. And then you can provide authorizsation to add more values to it, so that the table can be maintained.
And then in Update rules, use the table for look up and get the SBU Factor per material.
Some thing like
Select * from the <ODS table or Table name> into <internal table>
Loop at Data_Package.
Read table <internal table> for all values in Data_Package where internal table-Material = Data_package-MAterial.
If sy-subrc = 0.
Sales Value = Sales Value * internal table-SBU Factor.
ENDIF.
MODIFY DATA_PACKAGE.
ENDLOOP.
You might need to make more changes to this code as required.
Assign points if useful
Regards
Rohit

Similar Messages

  • I am facing a strange problem on new iphone 5 that I bought last week. The maps app and the places in photo gallery shows the pin and my location, however there is no information of locations. Tried to close the apps, phone restart, reset etc. Please help

    I am facing a strange problem on new iphone 5 that I bought last week. The maps app and the places in photo gallery shows the pin and my location, however there is no information of locations. Tried to close the apps, phone restart, reset etc. I am accessing it via strong wireless connection and it works fine on other devices. Please help.

    zapgrap wrote:
    there is no information of locations.
    Then no information exists.  Use the Report a Problem button within the app to report it.

  • HT1338 My Update for OS 10.8.4 is not updating. The update app keeps saying to update the same information and it never updates.  Help

    My Update for OS 10.8.4 is not updating. The update app keeps saying to update the same information and it never updates.  Help

    Exactly the same for me.  Have tried to update three times and my iMac has restarted (after apparently downloading the update) but the update has not been installed.
    My iMac is still at 10.8.3.

  • Is there a BAPI that gives the status information (and possibly more) of a

    Hi All,
    We are using an external document image system where we scan and code vendor invoices. They are send to our SAP system via a BAPI.
    We want to update the status of the invoice in the document image system from the status in the SAP system, so whether it is still open or has been paid and cleared. Is there a BAPI that gives the status information (and possibly more) of a specific vendor open item?
    Regards,
    Gerrit

    Are you sure about that? Several highly regarded, widely downloaded apps, e.g., eReader, have an option to hide the status bar. The developer forums are awash in discussions about the commands to hide the status bar-- it's built in to the SDK.
    I figure someone will have put out a small program that does nothing but hide the status bar or allow its tweaking... much like StatusBar does on the Palm OS 5 PDAs...

  • Hi.  Ever since I downloaded the last itunes and quicktime update (a week or so ago), I can't access any video podcasts or movies I have stored in itunes.  iTunes keeps crashing and telling me I have a quicktime error.  Do I uninstall quicktime? or?

    Hi .  Ever since I downloaded the last itunes and quicktime update ( a week or so ago), I can't access any movies or video podcasts i have store in itunes on my pc (vista).  iTunes crashes and my error reports tell me it is a quicktime error.  Do i uninstall and reinstall quicktime, or completely uninstall itunes and reinstall it -- if so, what will i lose?  Help, please!

    Let's try the following user tip:
    iTunes for Windows 10.7.0.21: "iTunes has stopped working" error messages when playing videos, video podcasts, movies and TV shows

  • I have iphone 5s which when i connect to import the pictures directly to my windows computer. a folder by the name of my phone appears in "My Computer" . when i open it, it shows the storage information and one icon to click on. when opened it shows

    i have iphone 5s which when i connect to import the pictures directly to my windows computer. a folder by the name of my phone appears in "My Computer" . when i open it, it shows the storage information and one icon to click on. when opened it shows a couple of folders to click upon to view pictures. when i open the pictures folder and delete all the pictures , even then a lots of unclickable windows icons remain
    i have attached the picture of that window's screenshot. plus when ever i try deleting them it says,
    please help!.. i shall be really thankful.
    iPhone 5s, iOS 8

    I have the same issue and it has to do with iOS 8.2
    Apple, please mend this ASAP. Really stupid change since iOS 8.1
    If you for some reason must have many different folder make sure that you put the newst photo in the last folder so one can easily find a photo when I don't want to copy all photos to, let' say, my friend computer.

  • Maintain the acct key and accruals/provisions in the calculation schema

    Dear All,
    I have a problem during invoice posting.
    I create a new freight condition type & assigned it to the calculation schema. I also create a  new account key & assigned to the calculation schema in  accrual keys. Then done OBYC settings. During MIGO, its working fine. But when i post the Miro against po, giving an error msg., "Maintain the acct key and accruals/provisions in the calculation schema, Message no. M8434"
    plz help me to solve this issue.

    Have you ticked the 'Acruals' in control data 2 in M/06 for this condition.
    Regards,
    Piyush

  • Maintain the acct key and acurals/provisions in calculation schema-MIRO

    Hi,
    In PO we have maintained different delivery condition.
    When we are doing MIRO we are getting error "maintain the acct key and acurals/provisions in calculation schema" for condition type YLBB and YLBE.
    However we have checked condition type and calulation schema and found that acct key and accurals maintained.
    YLB9     BivacInspec.fee/Quan
    YLBB     LPRC charges/Quant.
    YLBC     Port charges/Quant.
    YLBE     Clearing Charges/Qt.
    Please suggest somesolution.
    Thanks
    Ashok

    Hi Ashok,
    In M/08  check whether   acct key and acurals/provisions in calculation schema" for condition type YLBB and YLBE are maintained or not.
    Also if they are maintained there then check in M/06 for condition type YLBB and YLBE  , whether accurals check box are checked or not...If not check and then try.
    Cheers!!!
    Utsav

  • The document could not be saved. The server said: "The operation failed because an unexpected error occurred. (Result code 0×80020005)" Please ensure you have completed all required properties with the correct information and try again.

    I am having problems  saving documents back to SharePoint when any of the document properties (metadata columns) are set to be "managed metadata". The check-in/save fails with error:
    The document could not be saved. The server said:
    “The operation failed because an unexpected error occurred. (Result code 0×80020005)”
    Please ensure you have completed all required properties with the correct information and try again.
    I have seen similar threads that suggest this is a known issue with this version of Acrobat but I would like conformation from Adobe that this is a known issue and whether it is fixed in a newer version?
    Adobe Acrobat version 10.1.13
    SharePoint 2010

    Hi quodd,,
    We are sorry for the issue being faced by you. I need some information from you so that I take further steps:
    1. Which Adobe product are you using Acrobat or Adobe reader- what is the complete version?
    2. How are you opening and saving the PDF, the exact workflow?
         Are you doing it from within Adobe Reader/Acrobat application or opening it from browser, doing changes and saving it using browser itself.
    3. Can you try to save a PDF to library with Custom template and managed metadata columns using browser directly.
    4. Please verify that columns name do not contain spaces or some other special characters.
       Can you try to save PDF to library with Custom template and just a single managed metadata column  with a simple name
    Thanks,
    Nikhil Gupta

  • I have the iPhone 4 and just updated to iOS 6 and all my text messages are gone. Can I get them back?

    I have the iphone 4 and just updated to iOS 6 and all my text messages are gone. Can I get them back?

    Group messaging simply puts all replies in one conversation in Messages.   It doesn't prevent the behavior you experienced.
    My suggestion which would be much easier in my opinion, is rather than do a text, send out an email and use bcc: , which will keep the audience hidden from each recipient.
    Otherwise, if you're determinted to do only texts, the only way is to send your message to one person at a time.   You can of course copy/paste your msg each time which might be helpful.

  • How do I transfer all photos and music from my old iphone 3gs to new iphone 4s? I have a new laptop because the old one broke and so do not have non camera roll photos or music stored anywhere apart from the iphone 3gs and cannot update io5 on the iphone

    How do I transfer all photos and music from my old iphone 3gs to new iphone 4s? I have a new laptop because the old one broke and so do not have non camera roll photos or music stored anywhere apart from the iphone 3gs and cannot update io5 on the iphone 3gs without erasibng everything. i need help!!!

    Syncing to a new iTunes library or computer will erase your phone. Only if you back up manually before syncing, you can restore your device from that backup again. A manual backup does not include the sync process.
    Do this:
    Disable autosync in iTunes, connect your phone to your new computer and right click on it in the device list and choose backup. iTunes will backup your device without syncing.
    Transfer your purchases the same way, choosing "transfer purchases" this time.
    When you connect your phone for the first time, all media content will be erased. But you can restore your settings and app data from your manual backup afterwards.
    Don't forget to set up at least one contact and event on your new computer to be able to merge calendars and contacts when you sync the iPhone for the first time.
    Music is one way only, from the computer to your device, unless you bought the songs in itunes and transferred your purchases.
    There is 3rd party software out there, but not supported by Apple, see this thread: http://discussions.apple.com/thread.jspa?threadID=2013615&tstart=0
    About backups and what's saved:iTunes: About iOS backups
    How to back up and restore:http://support.apple.com/kb/HT1414
    How to download apps for free again:http://support.apple.com/kb/HT2519
    Saving other data is also described here. How to back up your data and set up as a new device

  • Is there a way to remove the changes to the URL Bar, specifically the status information and the target URL?

    To begin, I utterly despise the changes to the URL Bar and the removal of the Status bar. In order to stay with the latest version of Firefox I am attempting to recreate the look and feel as best I can.
    I have already installed the Status-4-Evar extension. The only thing that remains is to remove the status information and the target URL from the bar.
    Are there any settings in about:config that will allow me to make these changes?
    EDIT: Status information can be removed by toggling. status4evar.statusInUrlBar. Still looking for a way to remove the target URL...

    This code in [http://kb.mozillazine.org/UserChrome.css userChrome.css] below the @namespace line seems to remove the links that appear on hover.
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    .urlbar-textbox-container {color: inherit !important;}
    .urlbar-textbox-container-children {opacity: 1 !important;}
    .urlbar-over-link-box {opacity: 0 !important;}
    </nowiki></pre>
    See http://kb.mozillazine.org/Editing_configuration#How_to_edit_configuration_files

  • I was transferring my information from my old iphone to the new one, and i forgot that i had some pictures in the new one. i did the restoring information and the pictures in new one are gone. how can i get them back????

    i was transferring my information from my old iphone to the new one, and i forgot that i had some pictures in the new one. i did the restoring information and the pictures in new one are gone. how can i get them back???? please

    Only way to get it back is to restore your phone from a backup, if those pics were included in that backup.
    But most likely those pics are gone.
    What you should've done was import http://support.apple.com/kb/HT4083 the pics to your computer and after you restored from your old backup, you could sync those new pics to your phone via itunes.

  • How to create the maps externally and import in to PI

    Hello Gurus,
    Please let me know how to create the maps externally and import into PI
    Regards
    shankar

    Hi,
    Hope these links could help you understand XSLT, JAVA nad ABAP mappings.
    [http://www.riyaz.net/blog/beginners-guide-to-xslt-mapping-in-sap-pi/technology/sap/769/]
    [http://www.dataxstream.com/2009/09/allow-additional-mapping-types/]
    [http://www.riyaz.net/blog/sap-pi-abap-mapping-simplified/technology/sap/837/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3ARiyaznetBlog(riyaz.net)]
    [http://www.riyaz.net/blog/xipi-java-mapping-demystified/technology/sap/415/]
    Regards,
    Prasanna.

  • I am trying to re install my lightroom student addition.  I have the serial number and was told to do the trial again and then update to purchase. i am unable to figure out how to do this

    i am trying to re install my lightroom student addition.  I have the serial number and was told to do the trial again and then update to purchase. i am unable to figure out how to do this

    Emily5lexi which version of Lightroom are you wishing to install?  Also what operating system are you using?

Maybe you are looking for