How to find whether MIRO is done for a PO

Hi All,
Is there any indicator attached to POs that indicates whether MIRO is done for that PO?
I mean after PO creation in ME21N -> GR in MIGO -> Excise (if applicable) and -> MIRO... how to find whether MIRO is done for a particular PO?
Helpful tips will be gratefully rewarded...
Regards,
Karthik

See if an entry exist in EKBE for the PO Number and its items.
The complete process though is, to find the GR Quantity for each PO Item and see if it matches with the PO Item quantity.
  SELECT EBELN
         EBELP
         MENGE
         LOEKZ
    FROM EKPO
    INTO TABLE LT_EKPO
   WHERE EBELN = P_EBELN.
  IF NOT LT_EKPO[] IS INITIAL.
    SELECT EBELN
           EBELP
           MENGE
           BEWTP
           GJAHR
           BELNR
           BUZEI
           SHKZG
      FROM EKBE
      INTO TABLE LT_EKBE
      FOR ALL ENTRIES IN LT_EKPO
     WHERE EBELN = LT_EKPO-EBELN
       AND EBELP = LT_EKPO-EBELP
       AND VGABE = '1'.
  ENDIF.
  LOOP AT LT_EKBE.
* Change the sign of the quantity for debit
    IF LT_EKBE-SHKZG = C_SHKZG_H.
      LT_EKBE-MENGE = -1 * LT_EKBE-MENGE.
    ENDIF.
    MOVE-CORRESPONDING LT_EKBE TO LT_EKBE_SUM.
    COLLECT LT_EKBE_SUM INTO LT_EKBE_SUM.
    CLEAR LT_EKBE_SUM.
    ENDLOOP.
   loop at it_ekpo.
** For each line item, calculate the total GR Quanity
    READ TABLE LT_EKBE_SUM WITH KEY EBELN = LT_EKPO-EBELN
                                    EBELP = LT_AWKEY-EBELP.
    IF SY-SUBRC = 0.
* If the PO Item Quantity is equal to GR Quantity
        IF LT_EKPO-MENGE <= LT_EKBE_SUM-MENGE.
* The PO Item can be considered completed GRed
        ENDIF.
    ENDIF.
  ENDLOOP.

Similar Messages

  • How to know  Whether Partition is done for Cube or not

    Hi All,
    I need information regarding Partition of a cube.
    a)How do i know the Partition is done or not for Cube
    b)On what basis we should make parttion of Cube.
    Thanks and Regards,
    C.V.

    There are several threads on partitioning, so it would be a good start for this question (as with any question) to search the BI forums on "Partitioning" and review thsoe first.
    Some basic considerations on partitioning -
    - Your DB must support Range partitioning to permit partitioning your InfoCube. The option will be greyed out if it is not available.
    - InfoCube must be empty to be partitioned.
    - InfoCube can only be partitioned on 0FISCPER or 0CALMONTH.  You can define it so that you have a partition for each month/fiscper, or so that each partition will hold a few or several months of data.
    - Generally, you would not partition small cubes.
    - Thru BW 3.5 Aggregates automatically get partitioned the sme way the InfoCube is partitioned as long as the partitioning characteristic is in the aggregate.  In 2004s, I believe you have options as to whether an aggregate gets partitioned or not.
    - Partitioning may be done for query performance reasons and data administration.  If the queries on the InfoCube regularly run with restrictions/filters on the partitioning characteristic (FISCPER or CALMONTH), the database will "prune" any partitions that do not contain the FISCPER/CALMONTH value(s), so that it does not need to consider them , e.g. most of your users only run a sales query for the current and previous month, but your cube contains 3 years of data.  By partitioning on CALMONTH (we'll assume 1 partition / month), the database will exclude all but the two partitions from consideration.  This could help query performance a lot. or maybe only a little, depending on a variety of other factors.
    Again - it is important that the queries restrict onthe partitioning characteristic to be of any value on query performance.  So don't partition on FISCPER if all the queries use CALMONTH for restrictions.
    The data adminsitration reason you might partition is to improve selective deletion or archiving time.  These processes are capable of using a DB function to Drop the partition, which quickly removes the data from the cube, rather than having to run a resource intensive Delete query.  This only happens if you deletion/archiving criteria is set to remove an entire partition of data.
    Again - review the other threads on the BI forums on Partitioning.  Most questions you have will already have been asked and answered before, and post again on SDN if there is something you still have a question about.

  • How to find the role modification done for what objects

    dear all
    role modificaton done for some objects, when execute the suim for change document for roles with option "authorization data",out put is not showing old value and new value.we are using ECC 5.0,report is showing only objects modified.how to know the old values and new values?

    Dear thanks for nice reply,
    how to read this format
    take for example for object F_BKPF_BLA which is old value and new value
    F_BKPF_BLA *** Authorization created ***
                                           Activity
                                            03, 77
                                   Authorization Group
                                            SA
    F_BKPF_BLA     *** Authorization created ***
                                           Activity
                                               77
                                     Authorization Group
                                               SA
    F_BKPF_BLA                    Activity
                                               03
    report is showing values above mentioned.

  • How to find whether an Invoice is been posted for a particular PO

    Hi,
    How to find whether an Invoice is been posted for a particular PO.
    I have a scenario where I fetch data into an internal table T_CDHDR(It has PO and other details). For each and every entry(PO) in that internal table I have to see whether an Invoice is been posted or not. They told to use <b>EKBE(Purchasing document history)</b> table. But, I don't know which field to check for and based on what conditions.
    Can someone help me with sample code or some valuable inputs.
    Thanks in advance.
    Regards,
    Paddu.

    HI,
    TABLE IS RIGHT.
    IN THAT TABLE FOR THE FIELD BEWTP CHECK WHETHER ENTRY IS "Q".
    Q STANDS FOR IR-L THAT MEANS INVOICE IS DONE.
    ON THE SELECTION SCREEN OF EKBE TABLE ENTER THE PO NUMBER.
    THEN CHECK WHETHER IT HAS ENTRY FOR BEWTP 'Q'.
    YOU CAN CROSS-CHECK THIS DATA FROM TABLE WITH THAT IN ACTUAL PO IN T.CODE - ME23N.
    ENTER PO NUMBER ,THEN IN ITEM DETAILS , IN HISTORY TAB SEE FOR THAT INVOICE NO.

  • How to find the exact user exit for our requirement?

    Dear Mr. keerthi,
    can you please explain me how to find the exact user exit for our requirement?

    Hi sandip
    There is more than one method in which you can check for user-exits.The following method is used very often.
    <b>How to find the exact user-exit for your requirement.</b>
    1.     You can check the user exists using transaction SE85.
    2.     Repository Information System -> Enhancements -> Customer exits
    3.     You can search the user-exits by package name.
    4.     Double click on each exit name to check the function module exits.
    <b>The procedure to find the package name.</b>
    Execute transaction SE93 
    Enter the tcode of the transaction for which you want to check the user exit.
    Example: if you want to find the user-exit for purchase orders while changing, enter ME22n  and press display.
    You will get to see the package name
    But you need to confirm that the user exit will get triggered at the appropriate event.
    ( example: you might want some validations to be done ON SAVE of a purchase order)
    <b>Checking if the user-exit is getting triggered or not.</b>
    1.     Open the user exit function module (that you have got in step 4) in Tcode SE37.
    2.     Click on where used button. In the pop up that immediately appears choose only programs .
    3.     You will get a list of programs. Double click on the program name.
    4.     You will get the list of location where this function module user exit is used.
    5.     Place session break points at each of these location ( at each CALL FUNCTION statement)
    6.     Now go to your transaction ( say change purchase order tcode:Me22n) and check if the user exit is getting triggered on appropriate event.
    regards,
    Prasad

  • Hi guys,Explain how to find whether the user request is dialog or bc ...

    how to find whether the user request is dialog or bc or some other wp and where we can see that ?

    Hello Damodar,
    You can find out that in SM50.
    However one piece of advice. I have noticed that you are raising lots of questions about very basic questions. Either you new to SAP or dont know anything about SAP Basis and want to get in this area. Or else you are preparing for some interview. In either of these cases expecting solutions given at SDN are not going to be of much help. Better read yorself in SAP Help as most people do. SDN should not be overly used for such purposes. Basic questions are welcome but you want to learn SAP through SDN !!!
    Regards.
    Ruchit.

  • How to find that a sales order for which there is  delivery but no goods

    Hi
    How to find that a sales order for which there is  delivery but no goods issue has been done i.e we have an open delivery for a sales order.
    How in VBUK table can we find  out with the sales order no .
    Thanks in advance

    make use of table VBFA.
    Regards
    Peram

  • How to find the recent changes done in the workflow by user id ?

    Hello all,
    How to find the recent changes done in the workflow by user id ?
    I have made changed in Production system .
    Like changing the status ,
    changing the agent ,
    but for these it will , not ask for any request .
    So i want to know is there any method to find what are the changes done by me ?
    Thanks and regards
    Prem

    Hi,
    This is caused by mandant settings in scc4. It's better not to make changes in PRD, because then your DEV en QA systems differ.
    Kind regards, Rob Dielemans

  • How to find whether the installed sap software is 32 bit or 64 bit?

    How to find whether the installed sap software is 32 bit or 64 bit?
    Hi Community,
    We have Windows machine - 64 bit - x64. So, we can install either 32 bit or 64 bit sap software, both are supported, right. Now, a sap system is already installed on this machine and i would like to find out whether the sap software is 32 bit or 64 bit, how can i check?
    I have already seen under Menu System - Status - Other Kernel Info & at OS level, with the command disp+work but i cant find the info iam looking for.
    Please help.
    Regards,
    Mohan.

    Hi Sunny,
    Thank you very much for your quick reply.
    Didnt know that one has to look under "Compiled for".
    Regards,
    Mohan.

  • How to find whether remote database is up or not (connected via dblink)

    Hi,
    I am using dblink to connect Biz database from Dev database.(Biz, Dev - database names)
    Running dbms job using the dblink from the Dev database to update data on Biz database...
    Problem is dbms job should run if and only if the Biz database is up for which i created the dblink...
    1) How to make sure or implement the check to find whether the Biz is database is up or not in Pl/sql or sql...
    2) How to reschedule the dbms jobs once the database is up
    pls suggest me how to find whether the database is up or not b4 running the dbms job?
    Using- Oracle 10g

    The only way to know whether the remote database is up (and whether the network between the two databases is up and whether the remote database's listener is up and whether the password configured in the database link is correct and whether the local TNS alias is correct, etc) would be to actually run a query against the remote database over the database link. In other words, the way to figure out whether the link is up is to let the job run and catch & handle exceptions when there are problems.
    By default, a job scheduled via DBMS_JOB will automatically reschedule itself if there is an unhandled exception by geometrically backing off (it waits 1 minute after the first failure, 2 minutes after the second, 4, 8, 16, 32 minutes, etc until it's marked as broken after 16 failures). You could, of course, catch appropriate exceptions and handle them in a reasonable fashion and manually reschedule jobs at intervals that make more sense for your particular job.
    Justin

  • How to find a Transport Request no for Task or Workflow Template

    Hi All,
    Any body tell me.
    How to find a Transport Request No for Task or Workflow Template.
    Thanks,
    Lakhshmi.

    Hi.
    Next to the options already mentioned you can also try transaction SE03.
    Select: Search for objects in Requests/Tasks.
    Next, fill an empty line with the objectnumber you want to search (don't forget the checkbox).
    For workflow tasks use the object type PDTS, for workflow templates use PDWS.
    Kind regards,
    Jasper Blok

  • How to find the E-Mail address for my HP 6700? Printer shows E-Print connected.

    I got help on the board about getting a new printer code and the Home Printer page shows that it is on, but now I don't know how to find the E-Mail address for my computer -
    This question was solved.
    View Solution.

    Hi,
    From the printer Front panel, navigate to Setup. Locate and enter Web Services. Aprove any of the steps to enable the service... allow the device several minutes to complete the registration, a page will print automatically with the printer code and the directions to select the email address from hpeprint.com.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How To Find Opening Stock And Value For a Material

    Hi Experts,
    How To Find Opening Stock And Value For a Material  in Given Dates
    Moderator Message: Search.
    Edited by: kishan P on Sep 15, 2010 4:05 PM

    Thanks For Answering.....
    But I Need Any Function Module To Get Opening Stock And Value For Given Material With in Dates.

  • How to find the appropriate user exit for invoic02 idoc in idoc_output_invo

    Hi all,
    I am new to this community p
    i have issue regarding  the How to find the appropriate user exit for invoic02 idoc in idoc_output_invoic function module.........
    thanks,

    Hi ,
    welcome to SDN.
    You can select the appropriate Customer exit accrding to the available parameters .
    The list of exits available are 
    EXIT_SAPLVEDF_001
    EXIT_SAPLVEDF_002
    EXIT_SAPLVEDF_003
    EXIT_SAPLVEDF_004
    For Example , if you want  to modify the Idoc data(EDIDD) you have to use the EXIT_SAPLVEDF_002. accodingly you can select the user exit according to the avaialable parametres.Use Table MODSAP fto get the Enhancement name.
    Hope this Helps
    Rgds
    Sree
    Edited by: Sree on Jul 23, 2010 12:11 PM

  • How to find and install right java for ECC6 intstallation on AIX5.3

    Hello
    I wander how to find and install right java for ECC6 intstallation on AIX5.3. I went thruroughly thru note 723909 and underlying 716927, 1008311 and 1039948 notes but I still do not understand.
    I guess I should logon to IBM site http://www.ibm.com/developerworks/java/jdk/aix/service.html
    where I can choose :
    " Java 1.4.2 64-bit "
    and then :
    "64-bit SDK 1.4.2 base images (at 1.4.2.0 level; in installp format) "->"Base SDK (required)
    Java14_64.sdk.tar  ((50001920)
    then I assume (on AIX ) I should "tar xvf Java14_64.sdk.tar".
    then I get extracted "Java14_64.sdk"
    Is this ok?
    I know on Linux(
    from IBM site I downloaded "IBMJava2-amd64-142.rpm"
    then I issued
    "rpm -i IBMJava2-amd64-142.rpm "
    and finally issued
    "export JAVA_HOME=/opt/IBMJava2-amd64-142")
    What in case of AIX5.3? Could you help me?

    I was told to use smitty (just I am not familiar with it). furdermore i do not hace read.me file. the ziped files are:
    Java14_64.ext
    -rw-rr 1  202 bin    371712 Mar  2  2010 Java14_64.license
    -rw-rr 1  202 bin      3072 Mar  2  2010 Java14_64.msg.ja_JP
    -rw-rr 1  202 bin      3072 Mar  2  2010 Java14_64.msg.Ja_JP
    -rw-rr 1  202 bin      3072 Mar  2  2010 Java14_64.msg.ko_KR
    -rw-rr 1  202 bin      3072 Mar  2  2010 Java14_64.msg.zh_CN
    -rw-rr 1  202 bin      3072 Mar  2  2010 Java14_64.msg.Zh_CN
    -rw-rr 1  202 bin      3072 Mar  2  2010 Java14_64.msg.zh_TW
    -rw-rr 1  202 bin      3072 Mar  2  2010 Java14_64.msg.Zh_TW
    -rw-rr 1  202 bin   4888576 Mar  2  2010 Java14_64.samples
    -rw-r----- 1 root root 67190784 Oct  4 09:53 Java14_64.sdk
    -rw-rr 1 root root 77370639 Nov 20 19:36 Java14_64.sdk.tar.gz
    -rw-r----- 1 root root 12612608 Oct  4 09:53 Java14_64.source

Maybe you are looking for

  • Uninstall problem in cc applications after time machine migration to new mac

    Newbie to cc. Having problems with cc programs that were migrated across to new iMac via Time Machine back up when setting up new mac. Attempting to open PS cc results in error message 86. I have now uninstalled Creative Cloud program and a PS cc pro

  • External Isight Not Working With Mac Mini

    Hello Thank You for taking the time to look at this for me , I have 2 external isight cameras and i can get neither one to work with my late 2009 mac mini running snow leopard , although they both work on the latest mac mini (running lion) , When con

  • YTD in the report

    Hi I have some KF's in my report . 1)  When user enter the<b> "month"</b> in the selection paramter then he should get those KF's for that current month . 2) And he also wants those KF's values from <b>"Starting Month Of that Year to Current Month(YT

  • Mac Book pro almost complete the starting up

    Hello, when I turn the computer on, it seems to start up normally, grey screen, blue screen, Mac OS System starting up, the desktop can be seen and THERE is the problem. Any icons (files, folders, disks) on the desktop can be seen and the menu bar on

  • Classic is installed but won't open apps

    I've confirmed the Classic OS in System preferences. However, when I try to open an OS9 app, it will appear in the OSX Dock, but will not open. I think I may have to reinstall Classic. Any ideas?