Info cube data doesn't match with R3

Hi,
We are using "0AFMM_C02" Info cube for Inventory data.
for some records its not fatching data for distribution channel.
I checked the update routine for Distribution Channel.
PROGRAM UPDATE_ROUTINE.
$$ begin of global - insert your declaration only below this line  -
TABLES: ...
DATA:  BEGIN OF it_data OCCURS 0,
     material LIKE /bic/cs2af_mm_inv_1-material,
     plant LIKE /bic/cs2af_mm_inv_1-plant,
     val_type LIKE /bic/cs2af_mm_inv_1-val_type,
     END OF it_data.
DATA: lt_mrpods TYPE TABLE OF /bic/ascm_d0500.
INCLUDE rs_bct_retail_update_rules.
$$ end of global - insert your declaration only before this line   -
FORM compute_key_field
  TABLES   MONITOR STRUCTURE RSMONITOR "user defined monitoring
  USING    COMM_STRUCTURE LIKE /BIC/CS2AF_MM_INV_1
           RECORD_NO LIKE SY-TABIX
           RECORD_ALL LIKE SY-TABIX
           SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
  CHANGING RESULT LIKE /BI0/V0AFMM_C02T-DISTR_CHAN
           RETURNCODE LIKE SY-SUBRC
           ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
$$ begin of routine - insert your code only below this line        -
fill the internal table "MONITOR", to make monitor entries
data:DISTR_CHAN LIKE /BI0/MCUST_SALES-DISTR_CHAN.
SELECT SINGLE DISTR_CHAN INTO DISTR_CHAN FROM /BI0/MCUST_SALES
    WHERE CUST_SALES = COMM_STRUCTURE-CUST_SALES.
    IF SY-SUBRC EQ 0.
      RESULT = DISTR_CHAN.
    ELSE.
      RESULT = COMM_STRUCTURE-DISTR_CHAN.
    ENDIF.
result value of the routine
RESULT = .
if the returncode is not equal zero, the result will not be updated
  RETURNCODE = 0.
if abort is not equal zero, the update process will be canceled
  ABORT = 0.
$$ end of routine - insert your code only before this line         -
ENDFORM.
Can any body tell for what distribution channel it will get data..
Please help .. its very urgent..
Regards,
Viren.

Hi,
I have a better suggestion..Try to write this code in Start Routine of Update Rule.
DATA:  S_DATA TYPE STANDARD TABLE OF DATA_PACKAGE_STRUCTURE
       WITH HEADER LINE
       WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
DATA:  ITEM_TABLE TYPE STANDARD TABLE OF /BI0/MCUST_SALES
       WITH HEADER LINE
       WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
*start of modification
*Populating the item status data from the item status ODS table
SELECT * FROM  /BI0/MCUST_SALES INTO TABLE ITEM_TABLE.
LOOP AT DATA_PACKAGE INTO S_DATA.
   LOOP AT ITEM_TABLE WHERE CUST_SALES = S_DATA-CUST_SALES.
     MOVE item_table-DISTR_CHAN to s_data-DISTR_CHAN.
     APPEND S_DATA.
   ENDLOOP.
ENDLOOP.
DATA_PACKAGE[] = S_DATA[].
Hope this works...
Regards,
San!

Similar Messages

  • Why my ipad warranty doesn't match with date that i bought? I bought ipad 4 yesterday but as you guys know it was already discontinued.. Has my ipad been used?

    Why my ipad warranty doesn't match with date that i bought? I bought ipad 4 yesterday but as you guys know it was already discontinued.. Has my ipad been used?
    I bought in 14 january 2014 and the expiration said it will be in 5 september 2014
    Is it mean that my ipad had been activated in 5 sept las year?
    But the packaging is good and it looks like very new.
    Please help me....
    I bought in IT plaza in kuala lumpur, malaysia..
    Heeellllppp...

    The merchant told me it is new. And when they opened the box and turn the ipad on, the ipad asked me to activate first.
    Is the 'restore to factory setting' can make us must activate the ipad again??

  • When to compress Info Cube Data?

    Dear Gurus,
    I am mohan.  I have a doubt regarding compression of Info Cube data.  When will we get a situation to compress the info cube data.  Is BW statistics used in taking this decision? Is it to be done by analysing the query runtime in the Transaction ST03?  Please give me detailed information.
    Best Regards
    Mohan Kumar

    Hi,
    For performance reasons, and to save space on the memory, summarize a request as soon as you have established that it is correct, and is no longer to be removed from the InfoCube.
    Note : the request ID concept can also cause the same data record (all characteristics agree, with the exception of the request ID) to appear more than once in the fact table. This unnecessarily increases the volume of data, and reduces performance in Reporting, as the system has to aggregate using the request ID every time you execute a query.
    Using compressing, you can eliminate these disadvantages, and bring data from different requests together into one single request (request ID 0).
    -Shreya

  • Iphone 5 system serial no doesn't match with outer box? Case of misprint? i see only one latter is serial no doesn't match

    I recently bought iphone 5 32gb white. Was surprise to see the outer box serial no doesn't match with iphone 5 system.
    They have print XXXXXXTXXXX on box and on phone its XXXXXX7XXXXXX. Only one latter is mixprint though.
    I check coverage status at apple site. The box serieal no is not found in apple system while the iphone 5 inside serial no i can see warrenty.
    plz help is it normal to have serial no unmatched on phone and box or the phone is not genuine

    You are correct. The SIM Tray of iPhone 5 does not have the Serial #  printed on it. So your Serial # is the one in the Settings app About. This is your true Serial #. A 7 and a T from a box label are not distinct enough to matter. Apple will only honor the Settings About Serial # and the ones located inside the iPhone 5, which will be the same as the About Serial #.

  • Itunes will no longer accept any of my credit cards.  Says security code doesn't match with any card I use.  I have inputted new card info in the apple store area and it still says the same thing in itunes.  Customer service is no help at all.

    Itunes will no longer accept any of my credit cards.  It says vcode doesn't match when it does.  Customer service is no help.  I have re-inputted the info in the account section of the apple store and in itunes--still says vcode doesn't match.

    Itunes will no longer accept any of my credit cards.  It says vcode doesn't match when it does.  Customer service is no help.  I have re-inputted the info in the account section of the apple store and in itunes--still says vcode doesn't match.

  • Info cube data deletion fact only

    When we want to delete the data in the info cube, we get an option dialog box to choose
    Do you want to delete only the contents of the fact table
    in InfoCube IC_SDGR1 or do you
    want to delete the dimension tables as well?
    1)fact table only
    2)fact table and dimension table.
    Could anyone tell me when we use only fact table , is anyone encountered with this scenario.
    Because generally we use fact table and dimensional table option for deletion.
    Thanks for the replies

    as long as you haven't changed anything to the dimension you can leave the data in the dimension tables when deleting.Your reload will go a lot faster as less (or none) entries are to be created. on the other hand if you have made a change to your cube and you transport to production and you need to reload, then you need to delete the entries in the dimension table, as you have a new key in the structures and all old entries are useless...
    M.

  • Function Module to read Info cube data

    Hi Guys,
              Is there any function module which is used to read the data in the info cube and collect the data to an internal table?
    Thanks
    Kumar

    Reading data from ODS is the best choice provided (1) you have full key, (2) there is an index on ODS for the search fields, or (3) ODS doesn't have too many records.
    If performance starts becoming an issue (due to the lack of one of the three conditions mentioned above), you have no other choice but to read from the cube and only reliable way to query a cube is to use the function module mentioned earlier.

  • KE30 doesn't match with sales order gross and net prices of sales order

    KE30 for sales anlysis by sales document amounts are not matching with actual sales order..that too only for credit memo request type of documents,rest of other type of docs match...my controlling area in USD currency where as the sales documnets are created in canadian currency, report is being converted in mean conversion rate..all other documnets are matching, except credit memo request. Do you guys have any idea, where and what to to check? thanks

    Hi,
    Thanks but that is not a soluction. When the sales order is created by DP90, if there is a field mandatory the incompletion log should be activated as when you create the sales order by transaction VA01.
    It's clear that if you go out of the sales order created by DP90 without any change, the incompletion log doesn't active.
    Any idea o reason? Possibly I will send a oss note but I previously hope your considerations.
    Thanks in advance

  • Outline Agreement (Contract) data does not match with EKPO table.

    Hi,
    I have created a outline agreement(Contract) with net price as 100 / 1 Kg. But when I go to EKPO table in front of Net Price it is reflecting net price as 1 / 1 Kg. So it shows that it is dividing the net price by 100 in Table EKPO. This is happening with the currencies which are maintained in T Code OY04 (Currencies like JPY, CLP, ESP, ITL) with decimals as 0.
    Rest all curriencies which have not maintained in OY04, there is no problem in EKPO as the data matches with Outline Agreement Net Price.
    Request you to please provide the input to resolve the same.
    Thanks & Regards,
    Neeraj Singh

    Hi Neeraj Singh,
    The value of data stored in EKPO depends on the decimal places defined
    for the currency. In standard the decimal places is taken as 2 . Therefore the value will be
    the same as order price if the currency is defined for two decimal
    places ( default is 2 ).
    However, if the decimal places for JPY is defined as zero the table
    will show a value of price /100. If you choose a currency with
    3 decimal places the value in the table will be price * 10 and so on.
    Example:
    Currency                          Decimal places      Order price      Value in EKPO
    SGD                                               2               2000               2000
    NLG                                               2               2000               2000
    JPY                                               0               2000               20
    KWD (Kuwati Dinar)                     3               2000               20000
    ITL                                                 0               2000               20
    All currencies that do not have any decimal places at all
    (TCURX-CURRDEC = 0) must have EKPO-NETPR multiplied by 100.
    Please check SAP notes which may be of help to understand this issue 53206 and 137626
    The issue you reported in not an error but standard.  I hope this information is of help.
    Regards,
    Lorraine
    Edited by: Lorraine Donnelly on Jul 12, 2010 6:57 PM

  • ITunes Calendar data doesn't match Outlook's.  How can I fix?

    I have a new iPhone and just recently discovered that the Calendar is not updating, 
    probably since the first time I synced.  And even then it was using old calendar data which 
    doesn't currently show up in Outlook.   (Contacts sync perfectly.)  Applecare took me 
    through their 1st and 2nd-level support troubleshooting and said they couldn't do anything more.  
    They suggested possible corruption of outlook.pst. 
    One glaring example: I used to have 3 calendars in Outlook: "Bridge", "Calendar" and 
    "Others".  I recently deleted all but the one called Calendar, but all 3 still show up in 
    iTunes, even though I've uninstalled/reinstalled iTunes twice.  Only "Calendar" shows up on 
    the iPhone, but it has old data.  I think the data it's displaying has not been refreshed 
    since 9/23/11, when I moved the outlook.pst file to a location in My Documents for easier 
    backup, but that doesn't really make sense since the Contacts update just fine.  (I've had 
    an iPad for about a year, and it's behaving the same as the iPhone now; the Calendar used 
    to update properly.)  Another possible clue: the iPhone shows two instances of one 
    particular recurring appointment.  I don't recall ever having two instances of it in 
    Outlook and wonder if that could be the problem.  I removed it altogether from Outlook and 
    that didn't help.
    I've done extensive testing with a new Windows user account and Outlook, and the calendar 
    syncing seems to work fine.  I've Googled "iPhone calendar won't update" and similar and
    haven't found anything that works for my situation.
    I'm running Office 2003 on Windows XP.  I do NOT use Outlook for mail.

    I was having the same problems after downloading 10.4.1 IStore would only download half way then nothing attempted reinstall no goood checked the Diagnostics with IPad connected, indicated no errors. more than a few hours browsing possible solutions. Found one stating 'Remove all Itunes connected software, i.e. Bonjour, ITunes, Safari etc from PC via the Uninstall Safely Feature and ReInstall. Hey Presto it worked now no issues.
    Good Luck. I am using Windows 7.
    That's my problem exactly, but I can't find the: ''Uninstall Safely Feature and ReInstall''. Where is that??
    Thank You

  • Query data does not match with Multiprovider

    hello,
    I am as confused as my subject.
    I executed the query from Multiprovider, which getting the data from sales and inventory cube.
    Everything works fine until I try to validate some of the data.
    I can validate some early records but I cannot see later ones in any of the cubes or multiprovider.
    I deleted the data and loaded all over again but didnt work.
    I am trying to display the record from Plant, material and calday ... i do see the date and plant # but not material #.
    I hope I am making sense to you guys.
    Any input would be appreciated.
    Khalid

    Hello Kalyan,
    Material is part of both cubes (inventory and sales) and I did flag it in multiprovider when selecting "display data" > dimensions.
    I am not sure if it makes difference ... there is another cube (store planning)  attached to same multiprovider ... which not feed data but as you know does not report on material level.
    Do you think it could create the problem. Again (store planning) cube is not feeding data to multiprovider at the moment.
    Thank You ... any other suggestion.
    Khalid

  • Why is My iPad (serial no. MD*******187) doesn't match with the chip inside, its A5x instead of A6?

    I just acquired this iPad with retina and I'm wondering about its specs so i search the internet using its serial no. MD*******187 model MD515ZP and i found out that its a fourth generation iPad with retina and has an A6 chip on it but when i downloaded an app namely battery doctor it has a feature on it (system) where you can see the hardware specification, from there i found out that the chip installed in my iPad is only A5x, I'm confuse please help. Thanks
    <Edited By Host>

    Clarissa111 wrote:
    Oh okay  thanks a lot for the information anyway do you know how i can see what chip was installed in my iPad?
    If you have a 4th gen iPad, it has an A6. No other chip is used on those models. If you absolutely must check it, try the app System Status. It has been updated to recognize the A6, but you will need to full (paid) version to see that data. The Lite (free) version does not have that screen.

  • 0FI_AR_4 extractor loaded data doesn't match ECC

    Hi all.
    I load data through 0FI_AR_4 into 0FIAR_O03 DSO and 0FIAR_C03 by several FULL loads (closed fiscal periods) and Initial Delta. When I check amounts in BI and ECC using fbl5n I get these figures:
    2 542 230 491,77 in BI
    2 542 229 491,77 in ECC
    As you can see data almost the same except the fact what in BI it is 1000 more.
    I got more amount differences by Dunning Level.
    I have no idea why. Any ideas?

    If you did the history loads then a init no data txf when the users where still posting data then yes you will get balance differences at a dunnign level
    This is because the concept of closed fiscal periods as I explained in another of your posts has absolutely no concept within AR (yes you can close periods for NEW Postings) - when you dunn a customer you will dunn outstanding requestys in a prior period - thus the full loads didnt pick this up
    Of course you could have thought all this through and arranged downtime when you did you history loads and then tht init
    Normally for a AR4 take on after productive start you do a init no data txf - then history repair loads not the other ay around - because the change documents for prioe periods will never come through

  • How do i change the color of "Firefox" button on top-left? It just doesn't match with my favorite firefox personas.

    It is some kind of dark yellow and is very bright as it seems with some personas. Changing color should not be that big of a deal and i don't wanna download any themes.

    It is not straight forward but can be done. You can do this by adding code/scripts to a file called [http://kb.mozillazine.org/UserChrome.css userChrome.css] to change the appearance of the button. The Stylish add-on makes it easier to make the changes, the latest version of Stylish is available from http://forum.userstyles.org/discussion/24534/stylish-for-firefox-1.1b4
    For some samples of scripts you can add to Stylish to change the appearance of the button see http://www.neowin.net/forum/topic/921416-share-your-custom-firefoxminefield-4-stylish-scripts/
    There are also many scripts available at http://userstyles.org/
    Note that some scripts will no longer work as they would have been written for earlier beta versions of Firefox.

  • Sequence Last Number doesn't match with currval

    Hi,
    I have a sequence and i am using that in a procedure to insert records.Often the procedure throws error like primary key violated.
    When i checked the last number used by the sequence it gave me as 27331 and the currval of the sequence as 27312.
    Please advice us to rectify this.

    746379 wrote:
    Hi,
    I have a sequence and i am using that in a procedure to insert records.Often the procedure throws error like primary key violated.
    When i checked the last number used by the sequence it gave me as 27331 and the currval of the sequence as 27312.
    Please advice us to rectify this.First make sure that you understand the difference between a primary key and a sequence.
    A sequence is just a number generator. Oracle guarantees that the sequence will give you a new unique number each time that you call NEXTVAL. If the sequence is cycling then it can even generate the same number again after some time but this is rarely the case.
    A primary key is a constaint on your table that requires all values in the column to be unique and not null.
    When you get an primary key violated error then you just tried to insert a value that was already there in the table.
    Some scenarios might be the reason for this.
    <li>You insert a row using the sequence. You insert a new row using the same number again without fetching it from NEXTVAL (e.g. using currval instead of nextval, or not updating a variable that holds the new ID,...)</li>
    <li>Somebody else already inserted an ID without using the sequence</li>
    <li>A variation is when you import data from another database and resetted the sequences</li>
    <li>There is some test data in your tables. The test data was inserted in a high ID range to separate it from the real data. Your sequence just reached this range.</li>

Maybe you are looking for

  • To convert Smart Form output to PDF format and send it via email.

    Hi Friends, Could any one please tell me, how to convert the Smart Forms output to PDF format and send it via email to customer. If any one have the code, kindly mail me to [email protected] Thanks & Regards, John

  • Newbie ?: EJB vs servlets

    I'm just starting out teaching myself J2EE related technologies. I have extensive development experience in other environments. I've only dabbled in Java quite a few years ago. I have a general sense of the difference between EJB and servlets but cou

  • Tool Box Error

    I have both an HP laserjet 3050 and HP Color Laserjet CP1215 connected to the same computer, since installing the 1215 my tool box for the 3050 gives me errors. Any suggestions?

  • ABAP areas in BI

    Hi Gurus, Could you pls tell me the areas/sections in BI/BW where ABAP will come into picture? Thanks in advance.. Regards, Saj

  • [SOLVED] Drag to edge to maximize: new stupid feature in KWin

    There's a new feature in KWin (KDE 4.4) where dragging a window to the edge of the screen maximizes the window. I keep activating it by accident and it's really annoying. I can't find an option to disable it. Anyone know how I can disable it? Last ed