HOW WE FIND OUT OPEN PURCHASE ORDER AND CLOSED PURCHASE IN THE TABLE?

HI,
PLZZ HELP ME.
what are fields names for open purchase order and closed purchase order
thanks

Hi param,
Go to mseg table, pass the purchase order number and purchase order item. if the mseg-menge = ekpo-menge for the corresponding purchase order then consider the purchase order is close, else it is still open. even check if the entries are not there for corresponding purchase order in mseg table then also it is open.
select mblnr zeile matnr menge from mseg into it_mseg where ebeln = it_ekko-ebeln
and    ebelp = it_ekpo-ebeln.
if sy-subrc <> 0.
then consider the purchase order is open.
This is the first case.
even u can consider like this
if sy-subrc = 0.
if it_ekpo-menge > it_mseg-menge.
then also the purchase order is open.
Regards,
Santosh Kumar M.
Award points if it is useful.

Similar Messages

  • How to find accurate number of Rows, and size of all the tables of a Schema

    HI,
    How to find the accurate number of Rows, and size of all the tables of a Schema ????
    Thanks.

    SELECT t.table_name AS "Table Name",
    t.num_rows AS "Rows",
    t.avg_row_len AS "Avg Row Len",
    Trunc((t.blocks * p.value)/1024) AS "Size KB",
    t.last_analyzed AS "Last Analyzed"
    FROM dba_tables t,
    v$parameter p
    WHERE t.owner = Decode(Upper('&1'), 'ALL', t.owner, Upper('&1'))
    AND p.name = 'db_block_size'
    ORDER by 4 desc nulls last;
    ## Gather schema stats
    begin
    dbms_stats.gather_schema_stats(ownname=>'SYSLOG');
    end;
    ## Gather a particular table stats of a schema
    begin
    DBMS_STATS.gather_table_stats(ownname=>'syslog',tabname=>'logs');
    end;
    http://www.oradev.com/create_statistics.jsp
    Hope this will work.
    Regards
    Asif Kabir
    -- Mark the answer as correct/helpful

  • How to find out which IPHONE 4 and 4S will work in Armenia?

    how to find out which IPHONE 4 and 4S will work in Armenia?

    Hi Chitwanjit,
    STAD and ST03 are your friends.
    - Get in contact with your SAP Basis in order to get an explanation how
    to use this tools (if necessary).
    - SAP courses ADM315, BC490 explain these tools
    - search in help.sap.com,
    SDN, google, there should be plenty of information available as well.
    Kind regards,
    Hermann

  • How to find out exact labour hour and expenses for each labour attached to

    Team,
    How to find out exact labour hour and expenses for each labour attached to machine
    We are planning to go with CATS.
    But in Cats how Production Planning department get the exact labour coust
    (which includes labour accomodation building , EB etc. paying by comp)
    How to do this in CATS
    REX

    hai
    generally  the schemas are named X000  which stands for common schema  nomination
    x replaced by respective country like for india it is IN00  for US  U000etc
    it is not given according to the group of emplyees but according to the country grouping for your org units
    time schemas are country independent they work for all the countries
    regards
    nalla

  • How to find out Sales organization of a sold to party from tables

    Hi all experts, I have the following questions:
    1. How to find out Sales organization of a sold to party using tables?
    2. Also please tell any function module which gives relationship between sold-to-party and sales organization to which it belongs.

    Hi,
    Check table CRMM_BUT_LNK0141 to obtain the sales area of a BP (by BP Guid).
    If you need the sales office and sales group, read GuidSet of that table and check table CRMM_BUT_SET0140 to list the sales office and sales group by that Guid set.
    There are some function modules too:
    CMS_BUPA_ORGDATA_GET_BL among others.
    Regards,
    Susana Messias

  • Please send me fm regarding to get purchase order and change purchase order

    Hi,
    Please send me fm regarding to get purchase order and change purchase order .
    Regards,
    Gurprit Bhatia

    Hi,
    Function module to get the purchase order details:
    BAPI_PO_GETDETAIL.
    data: po_items type table of bapiekpo with header line.
    parameters: p_ebeln type ekko-ebeln.
    call function 'BAPI_PO_GETDETAIL'
      exporting
        purchaseorder                    = p_ebeln
      ITEMS                            = 'X'
      ACCOUNT_ASSIGNMENT               = ' '
      SCHEDULES                        = ' '
      HISTORY                          = ' '
      ITEM_TEXTS                       = ' '
      HEADER_TEXTS                     = ' '
      SERVICES                         = ' '
      CONFIRMATIONS                    = ' '
      SERVICE_TEXTS                    = ' '
      EXTENSIONS                       = ' '
    IMPORTING
      PO_HEADER                        =
      PO_ADDRESS                       =
    tables
      PO_HEADER_TEXTS                  =
       po_items                         = po_items
      PO_ITEM_ACCOUNT_ASSIGNMENT       =
      PO_ITEM_SCHEDULES                =
      PO_ITEM_CONFIRMATIONS            =
      PO_ITEM_TEXTS                    =
      PO_ITEM_HISTORY                  =
      PO_ITEM_HISTORY_TOTALS           =
      PO_ITEM_LIMITS                   =
      PO_ITEM_CONTRACT_LIMITS          =
      PO_ITEM_SERVICES                 =
      PO_ITEM_SRV_ACCASS_VALUES        =
      RETURN                           =
      PO_SERVICES_TEXTS                =
      EXTENSIONOUT                     =
    check sy-subrc  = 0.
    loop at po_items.
      write:/ po_items.
    endloop.
    Check this program too:
    RFFMFG_INV_CANC_ALL for BAPi_PO_GET_DETAIL.
    Hope it helps you.
    Regards,
    Anjali

  • How to find out open PO in SAP?

    Hi,
    I have a simple question? How to find out if the PO is open?
    Is there any field in any table in SAP which indicates this?
    Is there any report in SAP which gives list of all open PO in the system?
    Thanks,
    Pratik

    Hi
    There is no way you can find out that wheather the particualr PO is open or not and there is no such table indicating that the particular purchase order is open.
    Yes if a purchase order is already open in one system and you want to open that in your system in change mode than you can use the Tcode sm01 where you can know that which form is opened and  you can unlock that particular form and can use that in change mode.
    I hope this will help you to solve your problem
    Thanks
    Mrutyunjaya Tripathy

  • How to find out list of users and their access on Sharepoint

    Hello Everyone
    How can i find out list of users and what access they have on SharePoint site? I want to create table with list of the users and their access?
    Thanks

    you can get the report using below powershell scripts. first one gives list of users in a site collection level.
    The second link generates the permissions reports for each user.
    http://techtrainingnotes.blogspot.com/2010/12/sharepoint-powershell-script-to-list.html
    https://sp2010userperm.codeplex.com/
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • How to find out when 'enable secret' and username secret' was set/changed

    Hi,
    I was wondering if it is possible to find out when 'enable secret' and username secret' was set or changed last time on an IOS based machine.
    Is there any show command or kind of timestamp or MIB which can be read out?
    tnx Ralf

    Probably your syslog server would give you that info.

  • How to find out open POs

    Dear All,
    Can anybody tell me how can I find out all the open POs. Then I need to find out ED rate in each PO. Is there any standard report or if any body can tell different tables so I can pass the records.
    Suggestions will be highly adored.
    Regards
    Rutabhadra Panda

    hi,
    Check  Table J_1IEXCDTL (Excise invoice line item details) ...Choose parameters like Plant,Vendor,material number and it will give BED % (BEDRATE),Additional Excise Duty % (AEDRATE)
    Special Excise Duty %(SEDRATE).
    other relevent tables ,may be useful
    J_1IEXCHDR
    J_1IEXCTAX
    J_1ICONDTAX
    Regards,
    Vineet

  • How to find out list of procedures and functions inside a package

    How I can find out the list of Procedures and Functions inside a Package.

    Look at ALL_PROCEDURES and ALL_ARGUMENTS.

  • BI-Statistics: How to find out Query/InfoProvider-usage and Nav-Steps

    Hi specialists,
    I've got some problems to understand the figures in the bi-statistic cubes.
    I found a lot information about times needed by objects.
    But I didn't find the correct keyfigure yet, that tells me how often a Query was opened and how many Navigation-Step the User has done in that Query. Aggregated this would give me information about how often an InfoProvider has been used.
    Could you please gimme a hint where I can find that information?
    First I thought that the Keyfigure 0TCTQUCOUNT would provide me (at least a part of) this information.
    But a little test showed, that this counter increased by 2 when I opened that query only once.
    Even that is not constant. After having opened that Query 5 Times this key-figures reports 8.
    I'm a little puzzled - maybe you can help me.
    Edit: I'm using BI 7.0. Before 7.0 there existed an Cube 0BWTC_C03 which (depending on help.sap.com) provided exactly the above mentioned information. But it became obsolote in 7.0 and was replaced by the 0TCT_* cubes where I couldn't find that information yet.

    One think came to my mind:
    The "Manage Aggregates" dialog gives some information about the the number of times an aggregate has been used. Where does this info come from? And is there a similar information for basic-cubes?

  • How to find out which schema(time and payroll) is being used for which empl

    Hi,
      Can anyone tell me if there is any way we can find out which schema is relevant for which group of employees, for example in a system which has employees from different countries and for each country there is a diffrerent schema being used ?
    Is there any feature which defaults the schema names according to groups of employees ? If so what is the name of the feature?
    Regards
    QB

    hai
    generally  the schemas are named X000  which stands for common schema  nomination
    x replaced by respective country like for india it is IN00  for US  U000etc
    it is not given according to the group of emplyees but according to the country grouping for your org units
    time schemas are country independent they work for all the countries
    regards
    nalla

  • How to find out batch job failure and taking action:

    Normally We will monitor the batch jobs  through transaction code sm37 for job monitoring. In SM37 we will give a batch job name date and time  as  input. In the first step we will check the batch job for the reason failure or check the spool request for the batch job for failures an help in analyzing the error
    I understand from the my experience is that the batch may fail due to below reasons.
    1.,Data issues :             ex: Invalid character in quantity (Meins) field  >>>> We will correct the corresponding document with correct value or we will manually run or request the team to rerun the batch job by excluding  the problematic documents from the batch job variant  so that it may process other documents.
    2.Configuration issues : Materials XXXX is not extended for Plant >>>> we will contact the material master team or business to correct the data or we will raise sub contract call with support team to correct he data. Once the data been corrected and will request the team to rerun the batch job.
    3.Performance issues : Volume of the data being processed  by the batch job ,network problems.>>>Normally these kind of issues we will encounter during the month end process as there will lot of accounting transactions or documents being posted business hence it may cause the batch job failure as there is enough memory to complete the program or select queries in the program will timeout because of volume of the records.
    4.Network issues. : Temporary connectivity issues in other partner systems :Outage in other partner systems like APO or other system like GTS  will cause the batch job failure as Batch job not in position to connect other system to get the inforamtion and proceed for further steps.Nornmally we will check RFC destination status by running a custom program  weather connectivity between system are in progress or not. then intimate other partner system  for the further actions, Once the partner system comes online then we will intimate the team to restart or manually submit batch job.
    Some times we will create a manual job by transaction code SM36.

    I'm not sure what the question is among all that but if you want to check on jobs that are viewable via SM37 and started via SM36. The tables are TBTCP -Background Job Step Overview and TBTCO - Job Status Overview Table.
    You can use the following FM to get job details:
    GET_JOB_RUNTIME_INFO - Reading Background Job Runtime Data

  • How to find out number of background work processe available in the system?

    Hi All,
    I have a FM that triggers a background job using JOB_OPEN, ABAP_SUBMIT and JOB_CLOSE. But the problem is if there are no background work processes available at that moment, it does not return error. Not sure whether the job is even scheduled!
    Is there a way to find out if there are any background work processes available in the system? I know a FM SPBT_INITIALIZE which gives info about dialog work processes. Is there any other FM similar to this which gives info about background wp??
    Regards,
    Shailesh

    your Job will remain in a queue by message handler. once workprocess is free, your job gets scheduled
    by the way, you can use the functionality used in FM TH_DISPLAY_WORKPROCESS_LIST to read the workprocesses
    the command which gets you the workprocess is:
    CALL 'ThWpInfo' ID 'OPCODE' FIELD OPCODE_WP_LIST
                      ID 'TAB' FIELD LIST_STATE_WPLST-TABL
                      ID 'CPU' FIELD LIST_STATE_WPLST-CPU.
    check how its written in include LSDEBF01, form SET_LIST_WPLST
    Edited by: Soumyaprakash Mishra on Dec 12, 2011 12:17 PM

Maybe you are looking for

  • When i plug in my ipod, itunes crashes.

    when i plug in my ipod it comes up with the message 'itunes has stopped working' and then the programme stops working and crashes. it also wiped my ipod. i have tried the online repair kit and uninstalling and re-installing itunes but it didnt change

  • With large attachments, TB seems to be "loading message" over and over.

    I'm using TB with as POP with a gmail account. I used to use Outlook. When I receive large (20MB) emails with attachments such as .jpg or videos, it APPEARS that TB keeps going out to get the email from the Internet instead of having it locally on th

  • Can't upload Canon 6D raw images to Lightroom v 4.4

    Hi - hope someone can help. Not very technical but just upgraded my camera to a Canon 6D and tried to upload my raw images to LIghtroom v 4.4.  Keep getting and error message that it does not recognize the files.  Any help would be appreciated

  • Unable to access the Oracle database11g express edition

    Hi, I've installed Oracle database 11g  Express Edition on my pc for some tutorials. My OS is Windows 7 Enterprise 64 bit. Everything seemed to be ok during the installation, but when i try to  log in as the Oracle Database XE Administrator, the page

  • How do I RE-open?

    I successfully imported files/project from robohtml into robo help and created/generated a robohelp file/structure. I had it create the robohelp files in another folder. Now I can't seem to open the new folder/project for further editing. I don't see