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.

Similar Messages

  • How to find total recs in a local table for a particular condition

    Hi,
    How to find total recs in a local table for a particular condition?
    Thanks,
    CD

    Well, you may want to try this as well, and compare to the LOOP way.  Not sure what kind of overhead you may get doing this way. Here ITAB is our main internal table, and ITAB_TMP is a copy of it.  Again I think there may be some overhead in doing the copy.  Next, delete out all records which are the reverse of your condition.  Then whatever is left is the rows that you want to count.  Then simply do a LINES operator on the internal table, passing the number of lines to LV_COUNT.
    data: itab type table of ttab.
    data: itab_tmp type table of ttab.
    itab_tmp[] = itab[].
    delete table itab_tmp where fld1 <> 'A'.
    lv_count = lines( itab_tmp ).
    Regards,
    Rich Heilman

  • How to check whether MRP run has been executed for a sales order or not

    Dear Experts,
    In Strategy:20, Make to Order scenario, I have run MRP for sales order in T Code:MD50,
    then how can I check whether MRP run has been executed for a sales order or not.  Is there any report where I can find some indication?
    Thanks and regards,
    Vikas

    Dear,
    In MTO scenario with Planning strategy group 20 in material master .
    After sales order is created, Run MRP , then planned order will be created then go to planned order details in MD04 or MD12 you will get sales order number in assigment tab.
    or check the Table PLAF field  PALTR ,and field name KDAUF its sales order, for all created planned order.
    Regards,
    R.Brahmankar

  • How to check whether an invoice has been paid or not?

    Hi,
        In FI, how should I check whether an invoice is paid fully and also whether it has any residual item?
    And how should I pay an invoice with some residue? Which transaction I should use and what are the steps to do that?
    Since I'm new to FI, any guidance will help me a lot...
    Thanks,
    Priya.

    Hi Priya,
    you create a posting with residual items as follows:
    <b>Incoming payment</b>
    1. Start transaction F-28
    2. Enter all required information and click on <i>Process open items</i>
    3. On the next screen click on the tab <i>Res. items</i>
    4. Make sure that only the items that you want to pay are highlighted ((Net amount appears in blue)
    5. For each line item enter the residual amount that is still to be paid (Example: you have one invoice over 100 USD and 80 USD are paid, you enter 20 USD, since this is your residual that still needs to be paid)
    6. Save
    <b>Outgoing payment</b>
    1. Start transaction F-53
    2-6. is identical to incoming payment
    Regards,
    Claus

  • How to find open SO Items with tax code for a particular day?

    Dear all
    If i want to see all open SOs(items), with tax code for a particular day, how to find using table VBAP in SE16?
    Please guide me
    Edited by: Julius Bussche on Mar 3, 2009 11:10 PM
    Please use descriptive subject titles and the search

    Hi GB,
    Its always better to see through the standard reports , as you will be able to see the aditional info as well.
    In the case of table in se16 you will be able to see one table at a time and then you need to manually figure out the fields that required.
    For example if you want to see the sales order details through tables then
    1.You have to go to VBAK to see the document type and then you need to go to VBAP to see the items , it means that you need to access 2 tables for this simple thing ....
    In standard reports there will be lot of joins between the tables and you can view the data more elobarately as weel.
    Note : In general if you want to see the complete details of the documents(open), then pls use the reports.
    Regards,
    Vvieks

  • How to find out the cost of SAP user for a particular user id

    Dear All,
    I got one issue like how to find out the cost of SAP user, i mean for a particular user id.
    Could you please advice me regarding this.
    Raghu

    Hello Raghu,
    I got one issue like how to find out the cost of SAP user, i mean for a particular user id.
    Could you please advice me regarding this.
    I think you need to reach out to BASIS consultant to check out the Cost involved for User ID for the SAP application.
    Regards,
    Sarthak

  • How to know weather Vendor ID  has been created for a Particular employee

    HI Experts,
    We have got ticket from  emploee pertaining to  his Vendor Id.
    How we can check weather the vendor Id has been created for him.
    What is the transaction code we use to check this.
    Thanks in advance.
    Sairam.

    Hi,
    For this you need to go for coustom only..
    Before the following should be identify.
    1. Personnel number should be assign in vendor master single field only because in vendor master there are five fields can mapp with personnel number.
    2. For vendor creation of employee should have different vendor group in Vedor master
    3. vender nuber range must be same as Employee number range.
    Based on above conditions you can create coustom report.

  • How to find out the list of field exists for a particular transaction

    Hi all,
    Can u please help me find out the list of field exits available for a particular Tcode?
    Is it similar to User exit or . . . . ?
    Thanks,
    C.Selvaraj
    SAP-QM

    Create a program and add this code to find user exit
    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
    tables : tstct.
    data : jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : v_devclass like tadir-devclass.
    parameters : p_tcode like tstc-tcode obligatory.
    select single * from tstc where tcode eq p_tcode.
    if sy-subrc eq 0.
      select single * from tadir where pgmid = 'R3TR'
      and object = 'PROG'
      and obj_name = tstc-pgmna.
      move : tadir-devclass to v_devclass.
      if sy-subrc ne 0.
        select single * from trdir where name = tstc-pgmna.
        if trdir-subc eq 'F'.
          select single * from tfdir where pname = tstc-pgmna.
          select single * from enlfdir where funcname =
          tfdir-funcname.
          select single * from tadir where pgmid = 'R3TR'
          and object = 'FUGR'
          and obj_name eq enlfdir-area.
          move : tadir-devclass to v_devclass.
        endif.
      endif.
      select * from tadir into table jtab
      where pgmid = 'R3TR'
      and object = 'SMOD'
      and devclass = v_devclass.
      select single * from tstct where sprsl eq sy-langu and
      tcode eq p_tcode.
      format color col_positive intensified off.
      write:/(19) 'Transaction Code - ',                        "#EC NOTEXT
      20(20) p_tcode,
      45(50) tstct-ttext.
      skip.
      if not jtab[] is initial.
        write:/(95) sy-uline.
        format color col_heading intensified on.
        write:/1 sy-vline,
        2 'Exit Name',                                          "#EC NOTEXT
        21 sy-vline ,
        22 'Description',                                       "#EC NOTEXT
        95 sy-vline.
        write:/(95) sy-uline.
        loop at jtab.
          select single * from modsapt
          where sprsl = sy-langu and
          name = jtab-obj_name.
          format color col_normal intensified off.
          write:/1 sy-vline,
          2 jtab-obj_name hotspot on,
          21 sy-vline ,
          22 modsapt-modtext,
          95 sy-vline.
        endloop.
        write:/(95) sy-uline.
        describe table jtab.
        skip.
        format color col_total intensified on.
        write:/ 'No of Exits:' , sy-tfill.                      "#EC NOTEXT
      else.
        format color col_negative intensified on.
        write:/(95) 'No User Exit exists'.                      "#EC NOTEXT
      endif.
    else.
      format color col_negative intensified on.
      write:/(95) 'Transaction Code Does Not Exist'.            "#EC NOTEXT
    endif.
    at line-selection.
      get cursor field field1.
      check field1(4) eq 'JTAB'.
      set parameter id 'MON' field sy-lisel+1(10).
      call transaction 'SMOD' and skip first screen.
    Rewards if useful........................
    Minal

  • How to find out if GR has been done

    Hi,
    We are iplementing SRM 4.0, extended classic scenario.
    We have a requirement of sending out mails(reminders) to users to perform goods receipt (confirmations). My question is if I have the PO number and the item GUID for that PO, how can I find out whether Goods Receipt has been done for that particular line item of the PO. Is there any function module which will help?
    Thanks and Regards,
    Jayesh

    Hi Jayesh,
    As a starting point, you could use FM BBP_PD_PO_GETDETAIL and BBP_PD_CONF_GETDETAIL.
    All data are stored in tables displayed in transaction bbp_pd.
    Kind regards,
    Yann

  • How to find function module's and tables used for the particulat screen or TCODE?

    Hello Nation,
    I would like to know how to find the  function modules and tables used for the particular screen or TCODE or program.
    Example : I would like know the function module used in the program RDBGFT?
                     How can i find that?
    Thanks in advance ,Awaiting your reply.

    Make use of Find function  with the keyword "CALL FUNCTION".
    Make use of the same find function with the keyword "Select" to know the database tables used.
    Regards,
    Philip.

  • How to find whether url attachment linked to invoice is deleted

    Hi all,
    I have a scenario in which a URL is retreived from a 3rd party application while creating an invoice (finance and SRM) and is displayed as an attachment (FB03/MIR4). Here PI is used as middleware and using proxies the URL is retreived from the 3rd part application and updated in the respective invoice using standard FMs.
    Now the issue is at any point of time an invoice number say 123 can have only one and the same URL say http://ABC. It was noticed that the same urls are updated twice for the same invoice number when an invoice is parked and later on when the invoice is posted.
    So in the code which updates the invoices with url, one check was made to table SRGBTBREL to check if an entry exits for the invoice number and only if sy-subrc ne 0, the code to update the url is executed and the problem of creating mutiple attachments of the url for the same invoice number was solved. But after doing this encountered another issue. When the user goes and deletes the url from invoice, the next time he tries changing the invoice, the url does not get updated because an entry for the invoice number already exists in SRGBTBREL.
    Hence is there any table or way to find out that the URL is deleted for that particular invoice (Since currently there is no attachment while viewing using FB03/MIR4).
    Please help with your kind suggestions.
    Thanks and regards,
    Hari

    I have solved the issue and closing this question.
    Thanks,
    Harikumar

  • How to identify whether my query is been already transported or not?

    Hi all,
    How to identify whether any transport request are created for my query. And also how to identify whether the query in the production is been transported to the QA.
    Thanxs
    Haritha

    Hi haritha,
    Once the request is generated u can write the request number and chk in the other server STMS ...if u find the request thr ur transportation should be sucessful
    chk this link...
    http://help.sap.com/saphelp_nw04/helpdata/en/b5/1d733b73a8f706e10000000a11402f/content.htm
    It is very simple ,
    Goto RSA1> Trasport connections> drag & drop ur query to right side panel--> observe the coulmns ( pakage column ) --> If the pakage is $TMP u can sy that that perticular query is not transported ---> If it other than $TMP ( That query has Transported alreay).
    Assign points if helpful
    Cheers
    Raj

  • 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 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.

  • How we will know whether RFC destinations have been created for sender and

    Hi,
        How we will know whether RFC destinations have been created for sender and XI system.
    Thanks,
    dhanush.

    Hi Dhanush,
    you can check using the TCODE SM59.
    Regards
      Kenny

Maybe you are looking for

  • New BT vision box appears to keep rebooting

    First, a big hello to everyone. I signed up recently for broadband and vision. Broadband was working from about Saturday although didn't get text from BT to confirm switch on till this morning. Yesterday Vision box said error C04 (wait till your acti

  • Aperture trash

    Can I empty my Aperture trash without deleting the duplicates in the library. By deleting the trash will the photos uploaded on to Facebook and Flickr disappear?

  • Help me with decision about Mac Vs PC

    Dear Board, I currently own the new version of Cubase 4. I am having tremendous problems with jitter and stutter. I have the Tascam US122 (usb) and am considering finally purchasing my mac and going to Logic. If I spec out an IMac at 2.0 ghz with 3 g

  • Updating a timestamp when a column value changes

    Hi, currently i have a table that stores an assigned_to column and an assigned_on column. what i would like to do is update the assigned_on column with the systimestamp when the old value of the assigned_to column is not the same as the new value. i

  • Redetermine Pricing Procedure in Sales Order

    Hi!!, This is a very unique requirement and I was wondering if standard R/3 can handle this. I have new PP which should be redetermined while creating a Sales Order.I am aware that a PP gets determined by Sales area ,Doc PP and Cust PP combination.Bu