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

Similar Messages

  • Call function in background task... How to get the result?

    I want to use Call function in background task parameter.
    But I cannot find the result of this function. (No export parameter, no table result, no exception)
    How to get the result of this function module? Correct or not?

    Hi Heinz,
    You can check the result in SM58 transaction.
    For more information pls. refer this thread :
    No IMPORTING parameters allowed in CALL FUNCTION IN BACKGROUND TASK
    Best regards,
    Prashant

  • How to get query result in comma dilimited text or excel file?

    Does anybody know how to get query results in comma delimited
    text file or excel file, I tried spool abc.txt, but the result
    showed some ------ lines
    Thanks

    Try doing this in your sql scripts
    set heading off
    set pagesize 0
    set linesize 4000
    set feedback off
    set verify off
    set trimespace on
    set colsep ","
    spool output.txt
    select * from dual (or whatever you are querying
    spool off
    There may be a couple other set statement that you could add but
    this should get you started in the right direction

  • 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

  • Af:query - How to get the result rowsets

    Hi,
    I have a requirement where i need to search the db rows on and append the results the adf rich table on each search.
    For this i am using af:query component. And trying to get the result rows for the named criteria.
    String mexpr = "#{bindings.DestinDescVOCriteriaQuery.processQuery}";
    processMethodExpression(mexpr, queryEvent, QueryEvent.class);
    ViewCriteriaManager vcm = getDestinDescViewObj().getViewCriteriaManager();
    ViewCriteria vc = vcm.getViewCriteria("DestinDescVOCriteria");
    getDestinDescViewObj().applyViewCriteria(vc);
    AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
    adfFacesContext.addPartialTarget(tblDestinDesc);
    However on each click of search the rows searched in the previous attempt are not retained.
    Can anyone let me know how to get the result from named criteria and append it the table?
    Thanks
    Ajay

    Can anyone help?

  • How can i do with labview program,when i have 20 different values,and 1 want to add it with constant value.and how to get the results?

    how can i do with labview program,when i have   20 different values,and 1 want to add it with constant value.and how to get the results?

    Why do the 20 values have to be different? The same code should work even if some are equal.
    What do you mean by "get the result"? The result is available at the output terminal and all you need is a wire to get it where you need it. That could be an indicator, another operation, or even a hardware device.
    What is the data type of the 20 values? An array? A cluster? A bunch of scalars? A waveform? Dynamic data?
    LabVIEW Champion . Do more with less code and in less time .

  • How to get the results for given Bind Variable

    Hi
    Can any one help me how to get the result rows from the View Object after executing the view object query by setting bind variable?
    snippet as follows
    viewObject.setNamedWherClauseParams("name","hei");
    viewObject.executeQuery();
    How to get the results from viewObject is my question..?
    Thanks in advance

    Should be something like
    while (vo.hasNext()){
    Row r = vo.next();
    r.getAttribute....
    You might want to read the "most commonly used methods" appendix in the ADF Developer Guide.

  • 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

  • How to get correct coordinate & size of components in scaled swf

    I use canvas (I set it to fit whole screen size) to enclose a swfloader which loads a swf with width & height set to 100%. This swf has a movieclip. How can I get the correct coordinates of its position and its size after scaled in Flex?
    In the Flash CS4, the movielip has x=40, y=700. In Flex, the swf is scaled 100% but when I get the x value of this movieclip, it's still 40. I try to get the scale ratio of x-axis by refering to swf's scaleX. But its 1, weird enough.
    How can I get correct coordinates of movieclip?

    I do try the localToGlobal but it seems its 1:1 ratio, the codes I use:
    // swf is loaded by swfloader, there's a movieclip child named 'child_mc' in it, I want to locate its postion and size. It's top-left coordinates in flash cs4 is 4,740
    var swf_obj:MovieClip = MovieClip(swf.content);
    var mymc:MovieClip = swf_obj.child_mc;
    child_before:Point = new Point(mymc.x, mymc.y);
    child_after:Point = swf.localToGlobal(child_before);
    Alert.show(
         "before:"+child_before.x+","+child_before."y"+"\n"
         + "after:"+child_after.x+","+child_after."y"+"\n"
    the dump result is:
    before:4,740
    after:4,740
    dump screenshot is here: http://img198.imageshack.us/img198/2396/image2ew.png
    I use values of child_after to draw green box. The white box is child_mc's actual position after scaled to fit canvas size (in turn the screen size). You can see they are far from each other. Why?
    Do you mean I have to multiply the transform matrix myself to get the correct position?

  • How to get accurate results from sql code ?

    Hello everybody,
    I have a problem with some portion of my code.
    I get more results than I specify in the where clause.
    Here is the sample code:
    c.gl_acct_id between '110'||'-'||'6890'||'-'||'69000'||'-'||'%'
    and '110'||'-'||'7000'||'-'||'67999'||'-'||'%'
    For some reason I also get the following results back:
    110-6910-51001-001, and 110-6910-51003-001 But I don't need the 51001 and 51003. How do I specify in sql what range I really want. I was sure that the code above is correct. I guess not.
    I would appreciate any help,
    Thanks,
    Sonya

    Have you tried using the query either of the following...
    1) c.gl_acct_id between '110-6890-69000-000'
    and '110-7000-67999-999'
    and c.gl_acct_id not like '110-6910-51001-%'
    and c.gl_acct_id not like '110-6910-51003-%'
    assuming you have only 3 digits at the end of gl_acct.
    2)If you know that your acct_id belongs to only 69000 or 67999
    then
    (c.gl_acct_id LIKE '110-6890-69000-%' OR
    c.gl_acct_id LIKE '110-7000-67999-%' )
    Plz. let me know if this not what you are looking for.
    thanx
    rajkiran
    Here is the whole script:
    select distinct c.gl_acct_id acct_no,
    c.gl_acct_desc,
    min(a.local_act_beg_bal) local_act_beg_bal,
    sum(b.local_act_mtd_dr_amt) debits,
    sum(b.local_act_mtd_cr_amt) credits,
    nvl(min(a.local_act_beg_bal),0)+sum(nvl(b.local_act_mtd_dr_amt,0))-
    sum(nvl(b.local_act_mtd_cr_amt,0)) end_bal
    from gl_acct c, gl_acct_bal a, gl_acct_bal b
    where c.org_unit_id = '110'
    and b.gl_acct_id = c.gl_acct_id
    and a.gl_acct_id = c.gl_acct_id
    and c.sum_det_ind = 'D'
    and c.gl_acct_class_ind in ( 'A' , 'L' , 'Q' , 'I' , 'E' )
    and a.year_no = '2001'--:loyear
    and a.period_no = '1'--:loperiod
    and ( ( b.year_no = '2001'--:hiyear
    and b.period_no between '1'--:loperiod
    and'13')-- :hiperiod
    and c.gl_acct_id between '110'||'-'||'6890'||'-'||'69000'||'-'||'%'
    and '110'||'-'||'7000'||'-'||'67999'||'-'||'%'
    group by c.gl_acct_id, c.gl_acct_desc
    I want to have ability to specify ranges for gl_accoount.
    Thanks,
    Sonya

  • How to get accurate results of RGB adjustment layer Shadows in CMYK?

    Hi Guys,
    This is regarding RGB shadows to CMYK shadows. Most of the times we get the shadows from adjustment layers, when we converting to CMYK shadow as a separate layer it's really difficult to get the results as it in RGB. 
    In this process we won't get accurate results since we are creating manually. So I would like to know your opinions that how we can get the accurate results?
    You can see the following image.
    Regards
    HARI

    I really need to convert to CMYK since I use for packaging.
    Am I right to assume that you print in-house then?
    So might you not be able to obtain the correct profile for the respective press and just correct the RGB-file as necessary and separate a flattened file at the end?
    If you have to to maintain vector- and type-elements you could separate on pdf-creation and subsequently correct those vector elements in Illustrator (if necessary).
    Though I have to admit this would hardly be an ideal process as a converted psd-pdf can be a bit complicated.
    Another option might be to convert all pertinent elements to a Smart Object in RGB (including the background), keep the vector-/type-elements separate and convert that file to the proper CMYK-space without flattening the SO.
    Anyway, handling material from many different sources can of course be quite a challenge depending on the providing parties.

  • How to get the results in one line

    Hi
    if i use the script below i get the name of path and then : and in next line i get the results.is there a way to get the results from every path after the : and not in the next line?
    another question - is there a way that the script will not show the server name on every path?
    (Get-Counter -ListSet LogicalDisk).PathsWithInstances | Get-Counter
    THC

    If you take you script and pipe it to get member, it will give you a list of various script properties.
    (Get-Counter -ListSet LogicalDisk).PathsWithInstances | Get-Counter | get-member
    You will see that the object type returned by "Get-Counter" is Microsoft.PowerShell.Commands.GetCounter.PerformanceCounterSampleSet.
    TypeName:
    Microsoft.PowerShell.Commands.GetCounter.PerformanceCounterSampleSet
    Name MemberType Definition
    Equals Method bool Equals(System.Object obj)
    GetHashCode Method int GetHashCode()
    GetType Method type GetType()
    ToString Method string ToString()
    CounterSamples Property Microsoft.PowerShell.Commands.GetCounter.Perfo...
    Timestamp Property datetime Timestamp {get;set;}
    Readings ScriptProperty System.Object Readings {get=$strPaths = ""...
    You can try grabbing different properties, and they will print out differently, displaying the data on the same line in some cases. For example, pipe your output to a "foreach-object" block, and then for each object print out the CounterSamples property.
    (Get-Counter -ListSet LogicalDisk).PathsWithInstances | Get-Counter | foreach-object { ($_).CounterSamples }
    This should all print on one line now. However, you also asked if there was a way to not have the server print out on every line. The way to control the format of these outputs is to use the "format-table" cmdlet. So you would pipe your output to format-table
    and then give it various options. This is how you would pipe it (without any options).
    (Get-Counter -ListSet LogicalDisk).PathsWithInstances |
    Get-Counter | object { ($_).CounterSamples | format-table }#OR USE YOUR ORIGINAL CODE(Get-Counter -ListSet LogicalDisk).PathsWithInstances |
    Get-Counter | format-table }
    Now, it's up to you to give format-table the options you want. With no options, output will look unchanged. To see what options are available to you, use get-help.
    get-help format-table
    I hope this helps!
    Thank for all the info...

  • How to get the result set in batches

    I have a query which results into large data. This data i want to display in a group of 20. After every 20 records i want to add header and footer to it.
    Is it possible to get the result set data into batch of 20 ? means can i specify start and end index of query ?
    regards
    Manisha

    What I am saying is that a big query with lots of
    joins will probably be slow, and as such would be a
    ripe candidate for batching the responses, if it were
    not possible to speed/optimize it. Batching is nice
    to look at for the user, but is not a solution for
    performance problems. In essence it is irrelevant
    that it adds a little performance deficit, as it
    appears to be running a lot quicker, and gives more
    feedback to the user.Then let me say it again....
    - "Join" is a term that applies to a method of doing queries in the database....
    - Query 1 which uses a join and returns 15 rows
    - Query 2 which does not use a join and returns 1500 rows.
    Given the above then Query 1 will provide better overall performance for the system than Query 2 in a properly configured database.
    If it doesn't then the database is not set up correctly.
    And again this will be irrespective of whether the query is scrollable or not.

  • How to get correct format in file at Application server

    Hi,
    I am retrieving data MATNR,MAKTX,VENDOR,VENDOR NAME,PRODUCT HIERARCHY,QUANTITY(LABST),BUDAT.
    I am downloading the data into .xls file in both presentation and application server.
    In presentation I am getting correct format.
    Where as in application server I am not getting proper format.
    Quantity(MARD-LABST) is not coming proprely.(###6## instead of 36)
    How to get it in correct forma?I

    symbol means  Space
    Before transfer the data to File..
    condense MARD-LABST and then transfer it.
    I guess you are using charcter field LABST while transferring the data to file.
    Do not use quantity field directly,please move it to charcter field then condense it.
    Thanks
    Seshu

  • How to get correct node in JTree with DISCONTIGUOUS_TREE_SELECTION mode?

    The following code creats a JTree with DISCONTIGUOUS_TREE_SELECTION mode. When select a single node, the node's name is printed correctly as expected. However, in Window environment, after select one node, if holding the ctrl key and select a different node, the program still prints out the name of the first selected node although both nodes are highlighted. Can some one tell me how to get the name of the second (i.e. the last) selected node printed?
    Thank you very much!
    import javax.swing.*;
    import javax.swing.tree.*;
    import javax.swing.event.*;
    import java.io.*;
    public class TestTree extends JFrame {
    JTree tree;
    public TestTree() {
    super();
    setBounds(0,0,500,500);
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    tree = new JTree();
    getContentPane().add(tree);
    TreeSelectionModel model = new DefaultTreeSelectionModel();
    model.setSelectionMode(TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION);
    tree.setSelectionModel(model);
    tree.addTreeSelectionListener(new TreeSelectionListener() {
    public void valueChanged(TreeSelectionEvent e) {
    Object obj = tree.getLastSelectedPathComponent();
    System.out.println(obj.toString());
    public static void main(String [] args) {
    TestTree test = new TestTree();
    test.show();

    Hi!
    Try this, maybe it's what you want?
    /Smedman
    public void valueChanged(TreeSelectionEvent e)
        TreePath[] paths = tree.getSelectionPaths();
        for (int i = 0; i < paths.length; i++)
            System.out.println(paths.getLastPathComponent());

Maybe you are looking for

  • Reconstituting albums in iPhoto

    Hi three months ago I packed my G5 ready to move and work overseas. When I got overseas and re-assembled my Mac I found that all my meticulous sorting of some 3000 family photos going back almost a century into year by year 'album' folders had vanish

  • Import/Export from Excel ?

    Many revisions of Nokia PC Suite ago, using my PC I used to be able to import my phones address book to a .CSV file...open it in Excel....tidy it up neatly using Excel....save it as a .CSV file...and then export it back to my phone. I've been without

  • Add Exisiting Table to an Already Exising Dataset at run time

    I have searched and searched I have found the followind to "Create" a dataset and then create and add a table to the dataset,  Example Below: Dim customerOrders As DataSet = New DataSet("CustomerOrders") Dim ordersTable As DataTable = customerOrders.

  • VBScript input parameters

    Hi there everyone I need to deploy printers on a windows 7 machine through Group Policy. In the past a GPO has run a .vbs script that installs the printer including it's name, port, drivers (with location on server of those drivers). Recently it seem

  • Can I control what an uploaded file plays on?

    When I upload an MPEG-4 Quicktime movie from my Mac, and then download it from a PC, the PC defaults to RealTime, tries to play it on that, and then determines that it can't. Is there a way for me to export and upload a file that will automatically p