DSO Lookup - Cannot get correct result

Hi
I have a requirement to create new report that will contain the following PO quantity , PO quantity received in time and PO quantity received late.
I have identified in 2LIS_02_SCL DS that ProcessKey 001 is for PO quantity and ProcessKey 002 is the goods receipts (BWMNG-> CPQUAOU) while (DBWMNG-> CPDEOGQUOU) is for delta change
The data is now in DSO but  I would like to have them in Cube
Steps I have taken
-     I have Created new Inobject ZPO_QUANTITY and ZPO_QTY_REC
-     Added this infoobjects to the cube
I wrote this code in END ROUTINE when loading from  DSO to the cube but I am not getting the required result. Instead  I get same values e.g 2  for all PO document numbers even though the values are different.
u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
DATA: rp TYPE tys_tg_1.
LOOP AT RESULT_PACKAGE INTO rp.
SELECT SINGLE CPQUAOU FROM /BIC/APMMSC00 into rp-/BIC/ ZPO_QUANTITY
WHERE PROCESSKEY = 001.
MODIFY RESULT_PACKAGE FROM rp.
ENDLOOP.
u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
Please whats wrong with my code and I can I achieve the result
thanks

Hello Vamsi and Mansi,
thanks alot guys. Unfortunately I don't get correct result for all PO Documents
I am trying to extract only CPQUAOU from DSO but not getting same in Infocube
This is the code
DOC_NUM    PROCESSKEY PSTNG_DATE MATERIAL           SCL_DELDAT COMPL_DEL CPQUAOU
4500000118 001        00.00.0000 000000000500024490 18.05.2009                           12,000
4500000118 002        18.05.2009 000000000500024490 18.05.2009                           10,000
4500000119 011        00.00.0000 000000000400000023 18.05.2009                          100,000
4500000120 001        00.00.0000 000000000500024490 18.05.2009                           20,000
4500000120 002        21.05.2009 000000000500024490 18.05.2009 X                         20,000
4500000121 002        18.05.2009 000000000500024490 18.05.2009 X                         10,000
4500000121 001        00.00.0000 000000000500024490 18.05.2009                           10,000
4500000122 001        00.00.0000 000000000500024490 18.05.2009                            4,000
4500000122 002        24.05.2009 000000000500024490 18.05.2009 X                          4,000
4500000123 011        00.00.0000 000000000400000026 18.05.2009                            4,000
4500000124 001        00.00.0000 000000000500024490 18.05.2009                            5,000
4500000124 002        25.05.2009 000000000500024490 18.05.2009 X                          5,000
4500000125 011        00.00.0000 000000000400000026 18.05.2009                            2,000
DATA: rp TYPE tys_tg_1.
LOOP AT RESULT_PACKAGE INTO rp.
SELECT SINGLE CPQUAOU FROM /BIC/AMOMMSC00 into rp-/BIC/ZPO_QTY
WHERE DOC_NUM = rp-DOC_NUM AND PROCESSKEY = 001.
*Deriving PO Quantity received in time based on posting date, planned
*delivery date and delivery completed flag
SELECT SINGLE CPQUAOU FROM /BIC/AMOMMSC00 into rp-/BIC/ZPO_REC
WHERE DOC_NUM = rp-DOC_NUM AND PROCESSKEY = 002 AND COMPL_DEL = 'X' AND
PSTNG_DATE <= rp-SCL_DELDAT.
if sy-subrc = 0.
MODIFY RESULT_PACKAGE FROM rp.
endif.
clear rp.
ENDLOOP.
Thanks alot

Similar Messages

  • Cannot get correct print layout for multiple page/booklet printing

    In trying to print a pdf file that is landscape, 2 pages per sheet, booklet format, I cannot get the print preview to show the correct layout.  I have tried all the options in the print menu, but either I get the pages in the incorrect order or I get what should be on the right side on the left side and vice versa. Of course, there is NO help in the Adobe knowledge base.  Has anyone else experienced this problem.  Is there a fix?  Additionally, Adobe wants me to pay $39 for assistance that they will not guarantee they can fix.  How crazy is that!
    Thanks for your response.

    I highly recommend Quite Imposing. It can create nearly any booklet you want as a pdf file. Then you will have no problem being sure it is what you want before you print to paper.
    http://www.quite.com

  • Why I cannot get payroll result value ?

    Expert,
    In EBS Payroll R12, I define two elements A and B. A has priority 1500, B has priority 3500. So A will be processed ahead of B. I write a pl/sql package to calculate B, and attach the package to B through formula result. In the package, I will use "Pay value" of A, the logic can be abstracted as " A-Pay value * 0.05". However, the result of B is not my expected. I track my package and find the program doesn't get the Pay Value. I am sure my sql statement is right. So my conclusion is for one assignment calculation, these elements payroll result will be written back to DB together rather than one by one, right?
    For my case, it I want to use the pay value of elements which have been calculated, how to do? Please give me some advice.
    Thanks in advance.

    Dear thierry,
    Thanks for your kindly help. I follow your hints to modify my fast formula of B as below:
    Cal_B:
    dummy=A_BALANCE_ASG_RUN /* A_Balance will contain element A*/ /* a new line added here */
    v_rtvl=CAL_B_external_F /* It is formula function, which will contain external PLSQL call. The plsql will use the Pay value of A */
    return v_rtvl
    Per my understanding, after calling statement "dummy=A_BALANCE_ASG_RUN", the relevant pay result of A should be flushed to DB.
    unfortunately, when I process my payroll, the result still remains unchange. It seems that CAL_B_external_F cannot get the "Pay value" of A
    If I modify fast formula as below:
    Cal_B:
    v_rtvl=A_BALANCE_ASG_RUN
    return v_rtvl
    I can get v_rtvl whose value is equal to A_BALANCE_ASG_RUN. It seems the value of A_BALANCE_ASG_RUN can be captured in the fast formula.
    So, How do I understand your hints as below:
    "A element_A_asg_run in your second fast formula, before calling the plsql, can do the trick, eventually."
    I am eager to your help.
    Regards,
    Michael
    Edited by: Gang2 on Mar 22, 2009 10:45 PM

  • How to get correct result in MD04

    Hi Gurus,
    For a packaging material under this process order A01, it requires 10000 EA.
    Goods issue to order done in 3 batches,
    first posting with 2 batches:
    ABatch - 2372.00
    BBatch - 7610.00
    2nd posting one batch:
    BBatch - 50.00
    When run MD04, it still show that this process order need 7,578.000 qty, and when i checked the material under this
    process order A01, qty withdrawn only 2422.00.
    But in MCRX, the total withdrawal qty is 10032.00, which is correct.
    Why it didn't capture the qty withdrawn of 7610.00 for this BBatch?
    What should I do in order to get the correct result in MD04?
    Please kindly help.
    Many thanks in advance.

    Dear Dhaval & Prasobh,
    The actual scenario is that we have this Process order A01, for this packaging material component it required 10000, but the problem is the stock available is by batch:
    ABatch - 2372.00
    BBatch - 8000.00
    We are practicing FIFO, therefore, during MIGO> Goods Issue> Order, after enter the order A01, all the component under this order will be populated. Since there's only one line populated for this packaging material component under this order, as we need to have 2 batches in order to cater for all the 10000 qty, we have to right click>add new line in the MIGO screen, and enter the material/qty/batch and order number (under account assignment tab) manually, then only post at once (one material document generated)
    How should we do if this is not the correct way of doing?
    Or we need to post those planned GI, then only do another posting for those remaining qty that yet to be posted?
    Or we need to manually set the Final Issue everytime after the above done, before we TECO the process order?
    Dear Dhaval,
    Yes, I have checked in the List documented goods movement, the goods movement indicator for this manual entered line is "2".
    I will try your suggestion to manually activate the check box for "Fls"- Final Issue field in change process order.
    Thanks & Regards,
    Sue

  • How to comple query to get correct results?

    Hello,
    I am having problems getting the results from a query.  I have 2 tables:
    Marriage table
    People1ID People2ID DateMarried
    1 4 5/5/2014
    5 7 6/5/2014
    2 3 7/5/2014
    People table
    PeopleID First Last
    1 Bob Jones
    2 Mary Smith
    3 Steve Smith
    4 Jane Jones
    5 Robert Apple
    6 Julie Jackson
    7 Diane Apple
    Looking for result like this:
    First1 Last1 First2 Last2 DateMarried
    Bob Jones Jane Jones 5/5/2014
    Robert Apple Diane Apple 6/5/2014
    Mary Smith Steve Smith 6/5/2014
    Paul

    I'm little confuse on your expected result specially on the third row column "Datemarried". Are you sure that its 6/5/2014. I think its 7/5/2014. Anyway you can try this query.
    select b.[First], b.[Last],
    c.[First],c.[Last], 
    a.DateMarried from marriage a
    left outer join People b
    on a.people1id=b.peopleid
    left outer join People c
    on a.people2id=c.peopleid
    this will be the result:
    First Last
    First Last
    DateMarried
    Bob Jones
    Jane Jones
    5/5/2014
    Robert Apple
    Diane Apple
    6/5/2014
    Mary Smith
    Steve Smith
    7/5/2014

  • Cannot get correct version

    Hello all,
    Following post:
    http://forums.adobe.com/message/4498995#4498995
    I have same problem with 28pc's win 7 64-bit.
    Download page says " Your version is win7 64-bit & IE" - corrent, but when click download, I get 32-bit version, which cannot been installed.
    What wrong?!?

    B_R_H_ wrote:
    Even when I try link, you send, all my Firefox are receiving 32-bit version. It should be 64-bit.
    Firefox is a 32-bit browser, so it will use the 32-bit Flash Player plugin.
    If you use a 64-bit browser like Waterfox, it will use the 64-bit plugin.
    The installers from my link will install both 32-bit and 64-bit players on a 64-bit operating system.  You can check it yourself in C:\Windows\system32\Macromed\Flash and C:\Windows\syswow64\Macromed\Flash.

  • Cannot get genius results

    After long period of time I just get a message "could not complete the iTunes store request. The store may be busy"

    Hello klbarks,
    Thank you for using Apple Support Communities!
    I first would start by turning off, Genius, then turning it back on.
    Turn Genius on or off
    Turn on Genius: Choose Store > Turn On Genius.
    Turn off Genius: Choose Store > Turn Off Genius.Turning off Genius turns off Genius Mixes and Genius playlists.
    From: iTunes 11 for Windows: Play a Genius playlist or Genius Mix
              http://support.apple.com/kb/PH12342?viewlocale=en_US
    If that does not work then I would try starting iTunes in safe mode and trying again.
    iTunes: Troubleshooting issues with third-party iTunes plug-ins
    http://support.apple.com/kb/TS3430
    Regards,
    Sterling

  • ActiveDirectoryClient IsMemberOfAsync cannot get result

    Hi,
    I got a problem when I use ActiveDirectoryClient.IsMemberOfAsync method to check if a user in the group. The method cannot get the result, and I didn't get any error. I use fiddler captured the network traffic, I see a http post to graph api successfully,
    and a JSON result in the response. But the code keep waiting for the method to finish.
    following is my code:
    I can use ActiveDirectoryClient get group ID successfully, but I meet this issue when I invoke IsMemberOfAsync.
    AuthenticationResult result = ....
    ActiveDirectoryClient adClient = new ActiveDirectoryClient(new Uri(new Uri(ConfigHelper.GraphResourceId), ConfigHelper.Tenant),
    async () => result.AccessToken);
    string searchString = "groupalias";
    IGroup foundGroup = null;
    try
    var getGroupTask = adClient.Groups.Where(group => group.MailNickname.Equals(searchString)).ExecuteAsync();
    getGroupTask.Wait();
    var res = getGroupTask.Result;
    foundGroup = res.CurrentPage.FirstOrDefault(); // can get the group
    var isMemberTask = adClient.IsMemberOfAsync(foundGroup.ObjectId, result.UserInfo.UniqueId);
    isMemberTask.Wait(); // waiting long time without any error
    var isMember = isMemberTask.Result.Value;
    catch (Exception e)

    thanks for you reply.
    the result comes from :
    AuthenticationContext authContext = new AuthenticationContext(ConfigHelper.Authority);
    AuthenticationResult result = authContext.AcquireTokenByAuthorizationCode(......);
    it is triggered by OpenIdConnectAuthenticationOptions.AuthorizationCodeReceived. When I get Authorization Code, i want to check if the user is a member of the group.
    One thing I don't understand is, even I pass wrong ID, it should give me some error or return false, but the code keep waiting there without any error. (form network traffic that fiddler captured, I see 200 and the response)
    Actually, when i query the Group, I had met the same issue, and it is resolved by update nugget package to latest version.

  • Abap error in Transformation Endroutine - DSO Lookup

    Hi,
    I am trying to populate Key figure field in transformation end routine but I got this error.
    I have used similar code to perform DSO lookup without getting errors
    E:Unknown column name  "X_COST" until runtime, you cannot specify a field list.
    Data rp TYPE tys_TG_1.
    LOOP AT RESULT_PACKAGE INTO rp.
    SELECT SINGLE X_COST FROM DSO_CADO00 INTO rp- X_COST
    WHERE X_MATID  EQ rp X_MATID.
    MODIFY RESULT_PACKAGE FROM rp.
    ENDLOOP.
    thanks

    Hi,
    Just realised that  I was using the wrong DSO to fetch the data.
    It has now been corrected and the code is working properly.
    thanks alot

  • Cannot get repeatable stereo calibration

    Hello all. I am struggling to get a repeatable stereo caibration. Hopefully someone can give me some pointers. A little bit about my setup:
    I have a pair of AVT Manta GigE cameras (1292 x 964) paired with Tamron 23FM25SP lenses. The cameras are mounted on a rigid (12mm thick) aluminium plate and are currently set to be around 895mm apart.The cameras are toed in slightly so that the centres of the images intersect around 4 metres from the cameras. The cameras are securely mounted via adapter plates and bolts. They cannot move.
    I have a calibration grid along the lines of the NI example grid. Mine is 28X20 black dots spaced around 13mm apart (centre to cente) with each dot being around 5mm diameter. I am aware of the  NI guidelines on suitable calibration grids, and mine seems to be well within the recommended bounds. The grid was formed by laser printing onto A3 paper and then using spray adhesive to fis to a rigid carbon fibre panel. It is flat and doesn't deform when in use.
    So, here is my problem: when I use the calibration grid to calibrate the cameras I sometimes get a good calibration and sometimes not. When I get a good calibration and attempt to repeat exactly the same process I get a different result. What do I mean by a good calibration? When I go on to use the stereo calibration in my system which tracks a circular feature in 3D space I get good accurate measurements (well sub-mm in the cross camera axes and ~1mm depth resolution, over a ange of 600mm in each axis centred around 3000mm from the cameras. The centres of the circular features in each image lie on the same horizontal image line as expected in the rectified images for a well calibrated camera pair. When I get this 'good' calibration the distance between the cameras as returned by the 'IMAQ get binocular stereo calibration info 2' VI (the magniture of the translation vector) is around the correct distance of 895mm. However, when I perform the calibration lots of times I get quite a spread of camera separations (up to 20mm either side of correct). When I get a significant error in the camera separation the accuracy of the system degrades dramatically and the centres of the circular feature line on progressively further apart horizontal lines (there's one distance from the camera when they're on the same line, and they move apart either side of that distance).
    I have gathered a set of 10 images of the calibration target and set up a VI to use a subset of the images for the calibration process and iterate through permutations to investigate the repeatabilty. I get a similar spread of results for inter-camera distance. 
    Does anyone have a feel for whether what I'm trying to do is sensible / achievable? Any tips for repeatable calibration? For instance, should the calibration grid be at a constant distance from the cameras when it is presented at the different anglres, or should a range of distances be used? If it should be the same distance, how accurately should this distnace be maintained?
    Thanks, Chris
    Regards,
    Chris Vann
    Certified LabVIEW Developer

    Hi Christophe. Thanks for taking an interest. I am pretty sure that structured light is not relevant to the calibration stage being discussed here. Structured light is a useful technique for introducing detail to otherwise bland areas of an image to provide feature matching algorithms something to match against, but I don't see how it's relevant to calibrating against a grid of dots. Happy if someone can correct me of course...
    I have been using the NI example "Stereo Vision Example.vi" located in C:\Program Files (x86)\National Instruments\LabVIEW 2012\examples\Vision\3. Applications, and have also created my own system based upon that example. I get the same poor results with both. The path and file you suggested is not present on my machine (I'm running LV2012). Is the example you suggested the same? Maybe I should be trying it. Any ideas where I can get hold of it?
    I have been using the techniques you suggest of presenting the calibration grid at a variety of angles and ensuring good coverage of the fields of view. I have spent upwards of 20 hours experimenting with different techniques and approaches, and cannot get repeatable results. But with the Matlab-based approach from Caltech using the same techniques I get good results. I am becoming increasingly confident there is an issue in the LV implementation.
    Thanks,
    Chris
    Regards,
    Chris Vann
    Certified LabVIEW Developer

  • I have the iPhone 4S and I cannot get my apps to download. I will click free then install and then it will ask for my password. Once I enter my password correctly it will verify my password an then it won't do anything. what should I do?

    I have the iPhone 4S and I cannot get my apps to download. I will click free then install and then it will ask for my password. Once I enter my password correctly it will verify my password an then it won't do anything. what should I do?

    I just went through this same process.... I changed my credit card, double checked billing info, changed my password, I restored my phone, but the misake I made was I kept restoring it from my back up.... Finally I went to Apple Store.. and sad to say that you have to do a restore, and DO NOT restore from back up.
    I used Gmail so I didnt loose contacts or email.. but I did loose all my text messages and history of that.
    So, I had the EXACT same problem and it was a software issue.. you have to restore your phone to factory settings and start all over.. BLOWS I know!

  • After the latest update, all my apple products reverted to an old icloud account.  As it no longer exists, I cannot get into it to delete it and add the correct id.  How can I change this, especially on my Macbook pro?

    After the latest update, all my apple products reverted to an old icloud account.  As it no longer exists, I cannot get into it to delete it and add the correct id.  How can I change this, especially on my Macbook pro?  There is no p/w related to it and even though I tried to reset "password" it won't allow as the id does not exist, neither does the email associated with the old id.  How do I switch it to a newer id?

    It's all rather odd because the old account cannot 'no longer exist' - if you don't have the correct password you won't be able to get into it, but you can't actually delete an iCloud account from the server.
    I'm afraid you will need the services of iCloud Support. If you currently happen to have AppleCare, either because you recently bought Apple hardware or have paid to extend the inititial period, you can contact them here:
    http://www.apple.com/support/icloud/contact/
    You will need the serial number of the covered hardware.
    If you are not covered by AppleCare, then - in common with other free email services - there is no free support and you may be asked to pay a fee.

  • Cannot get Genius to work - Always get same error message - "Genius results can't be updated right now. The required file cannot be found."  Problem also seems to be affecting iCloud aand Music Match.

    Cannot get Genius to work - Always get same error message - "Genius results can't be updated right now. The required file cannot be found."  Problem also seems to be affecting iCloud aand Music Match. Can anyone help me with this?  What file is missing and from where?

    This is a known problem with Windows 7 Enterprise using certain Group Policy settings. Solution for me was to use another machine running Windows 7 Ultimate.

  • My IPad screen is frozen with a message stating that the IPad has not been backed up to the ICloud for 7 weeks, this is not correct.I cannot get the messageto clear and cannot access any of the other icons; is there an emergency reboot process?

    My IPad screen is frozen with a message stating that the IPad has not been backed up to the ICloud for 7 weeks, this is not correct. I cannot get the messageto clear and cannot access any of the other icons; is there an emergency reboot process?

    Have you tried resetting your iPad?
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10-15 seconds).
    No data will be lost.

  • I am using Numbers on my iPhone5 and cannot get the app to do a simple (SUM) calculation.  It shows the formula correctly in the cell, but all I get for my long list of numbers to add is 0.  How can I get this to work?

    I am using Numbers on my iPhone5 and cannot get the app to do a simple (SUM) calculation.  It shows the formula correctly in the cell, but all I get for my long list of numbers to add is 0.  How can I get this to work?

    Oaky, at least we got that far.  Next step is to determine if all those "numbers" are really numbers.  Changing the format to "number" doesn't necessarily change the string to a number. The string has to be in the form of a number.  Some may appear to you and me as numbers but will not turn into "numbers" when you change the formatting from Text to Number. Unless you've manually formatted the cells to be right justified, one way to tell if it is text or a number is the justification. Text will be justified to the left, numbers will be justified to the right.
    Here are some that will remain as strings:
    +123
    123 with a space after it.
    .123

Maybe you are looking for

  • ID CS3 AS or JS - record/identify order of clicking on objects

    I'm looking for a way to have a user select objects in indesign, and to somehow record the order in which they select. Event Listener doesn't appear to cover selections. My current workaround is to have the user hit a key command after each selection

  • How to set password in the form, request is coming from SPML with no pwd

    Hi , Im using SPML request to create and modify users? I have 2 problems 1) Does anyone know, how to customize the form to call 2 different workflow depending on the request meaning, if SPML request is ADD, then it should call Create User workflow, a

  • Color Correcting MOV file

    Hello,  I have a problem with importing FCP generated XML file into Adobe Premiere Pro, so I can later transfer it to Adobe After Effects for color correcting.  So I'm thinking to color correct a high quality MOV file that I can export from Final Cut

  • Close Client

    how to close client to dont get java.net.SocketException: Connection reseti dont know why Telnet conection is ok I know that i close socket i wrong order but how to do this properly

  • Upgrade 3GS to iOS 5 - itunes says 4.2.1 is current version

    Hi So, the mobileme deadliner is approaching and I need to upgrade my 3GS to iOS 5 and my imac to LION. I've sorted out the iweb histing via another server (phew) and have tried to upgrade to iOS 5 via itunes (10.6.1) but the message I get is that my