Need standard BAPI and Table for PO order

Hi all,
is there any standard bapi for  vendors last purchase order (based on document type).
thanks in advance.
Edited by: Dhanush on Oct 21, 2008 1:25 AM

ok i cleared.i prepare report like this..
types : begin of ty_ekko,
ebeln type ekko-ebeln,
lifnr type ekko-lifnr,
bedat type ekko-bedat,
bsart type ekko-bsart,
*ernam TYPE ekko-ernam,
*pincr TYPE ekko-pincr,
*lponr TYPE ekko-lponr,
end of ty_ekko.
TYPES :BEGIN OF ty_ekpo,
  ebeln TYPE ekpo-ebeln,
  matnr TYPE ekpo-matnr,
  ebelp TYPE ekpo-ebelp,
  werks TYPE ekpo-werks,
END OF ty_ekpo.
data: maxdt TYPE ekko-ebeln.
data : it_ekko type table of ty_ekko,
       it_ekpo TYPE TABLE OF ty_ekpo,
       wa_ekko type ty_ekko,
       wa_ekpo type ty_ekpo.
parameters : lifnr like ekko-lifnr .
SELECT MAX( ebeln ) INTO maxdt FROM ekko WHERE lifnr = lifnr .
*select ebeln lifnr bedat bsart into table it_ekko from ekko where lifnr = lifnr AND bsart = bsart.
*select matnr ebelp werks into wa_ekko1 from ekpo where  matnr = matnr AND bsart = bsart.
select ebeln lifnr bedat bsart   into wa_ekko  from ekko WHERE lifnr = lifnr AND ebeln = maxdt.
   ENDSELECT.
select ebeln  matnr ebelp werks from ekpo into TABLE it_ekpo where ebeln = wa_ekko-ebeln.                                                                          .
write: / 'Vendor', 10 'Purchasing Doc' , 30 'Document type', 45 'Documentdate' , 65 'Material', 79 'Item number', 94 'plant'.
ULINE.
loop at it_ekpo into wa_ekpo.
write : / wa_ekko-lifnr,
       10 wa_ekko-ebeln,
       30 wa_ekko-bsart,
       45 wa_ekko-bedat,
       65 wa_ekpo-matnr,
       79 wa_ekpo-ebelp,
       94 wa_ekpo-werks.
endloop.
Edited by: Dhanush on Oct 22, 2008 3:23 AM

Similar Messages

  • Need a bapi or table for GL Report

    Hi experts,
    I need a bapi or table for generating report period balance for GL accounts. i found one bapi BAPI_GL_GETGLACCPERIODBALANCES which is closer to my requirement. But i want to get the balances for cost center and particular material. As Cost center and product ranges are in my selection fields.
    Can anyone tell me table or BAPI?

    SAP standard infoset query provides a report STDCOST for this.
    May be this will suit your requirement. It will give material wise costing.
    hope this helps.
    reward if helpful.

  • Need standard Bapi or FM for creating General Ledger (FS00 transaction)

    Hi,
    I need to upload (create) Master General Ledger data.
    My requirement is to use standard Bapi or FM for this purpose.
    Please tell me which Bapi or FM i can use for this purpose.
    Thanks in advance.

    Hi Suresh,
    The Function module you specified is not released. So, I cant use it. Thanks for your suggestion.
    Hi friends,
    My requirement is to create General Ledger Account (FS00 or FS01) using a standard Bapi or FM. Please tell me which Bapi or FM I can use for this purpose.
    I identified one related Bapi for this purpose (BAPI_ACC_GL_POSTING_POST). But my functional consultant says it is for posting General Ledger and cannot be used for ceating General Ledger account.
    Please clarify me.

  • Bapis and IDOC for Service order... etc.

    Hi  Experts,
    Can any body please tell me what are the bapis for creating
    following things.
    Create Service Order or Sales Order
    Update Service Order
    Goods Issue & Goods Receipt
    Inventory Balanceses
    Purchase Requisition Information
    Purchase Order Information
    For this above are there any standard inbound and outbound
    idoc for data transfer.
    Thanks  & Regards,
    Chetan

    Hi,
    Thank you very much For the Information.
    I had asked one more question below that.
    "For this above are there any standard inbound and outbound
    idoc for data transfer".
    Thanks & Regards,
    Chetan

  • Quotation Creation and Billing for Service Orders--node details needed

    Hi ,
    I need to work on node "Quotation Creation and Billing for Service Orders" ....I see lot of integration with SD and FICO . Can any one give details about integrations required and what is done in this node ....
    Regards
    NPB

    There are different steps to be done for that.
    1. Create DIP Profile in ODP1 & check the consistency in ODP2 - DIP will be used to bill the customer based on resource (labor & material) usage. Creation of DIP profile has been discussed many times in this forum. Please check.
    2. Assign the Quotation document type & Billing type used in DIP profile to your sales area - Your document type should be assigned to your sales organisation, distribution channel & division combination.

  • Reference field and table for AUFK for F4 help in alv.

    Hi All,
       I need to put F4 help on ALV for order no (AUFK) what is the reference field and table for that?
      i tried giving field as aufk and table as ccss but its not working.
       ls_fcat-ref_field = 'AUFNR'.
        ls_fcat-ref_table = 'CCSS'.
    Thanks & Regards,
    Ruchi Tiwari

    Hi,
    Try this.
    Set the f4 help for the field in the fieldcatalog
      ls_fcat-f4availabl = 'X'.
    1. Create a event of ONF4 for the alv grid.
    2. Set the event handler.
    3. Append the field for the F4 help in the internal table and call the below method
        CALL METHOD g_mprn->register_f4_for_fields
        EXPORTING
          it_f4 = i_f4.
    4. create a class definition and implementation
        refer sample pgms (BCALV_F4, BCALV_GRID_EDIT_DELTA and BCALV_GRID_EDIT)
    Hope this may be helpful.
    Regards,
    Sharin.

  • What is the field and Table for "Batch Class" and "Class Type" in QM.

    Hi All,
    What is the field and Table for "Batch Class" and "Class Type" in QM.
    Thanks,

    Hi,
      For batch class the class type value is '023' . This you can find from KLAH table and the fileld for class type is KLART..
    And also all the data related to batch class are found in tables INOB, KLAH,KKSK and for the characeteristics of batch materials you can refer AUSP table.
    In INOB table, for batch class, you need to give 023 in KLART field and  value MCH1 in OBTAB filed.
    Please check this and let me know if this you need any more details?

  • Tables for purchase order history

    what r  the tables for purchase order history.
    thanks in advance

    Hi Srinivas,
    Check out the link for detail PP module and tables.
    http://www.sap-img.com/sap-pp.htm
    Hope this helps.
    Manish

  • Table for Work Order

    Can you please tell me what is the TABLE for 'Work Order'?
    Regards,
    Subhasish

    hi Subhasish Ganguly,
      these are the tables of worked order which used in work order make and udates
        AFIH, AUFM, PMCOQT, PMFLAGS, AFFL, AFKO, AFPO, AFVC .............
    Hope i will help u.
      with regard
    chetan vishnoi

  • User Exit and BADI for Sales Order

    Dear Experts,
                        please give me available user exits and BADI for sales order .i want to take the data from sales order at the time of sales order posting .

    Hi,
    In debugging you can find some Enhancement Spots where you can implement your code. This lets you ignore the need for access key, but its a time consuming process spotting out the exact enhancement point.
    Regards
    Karthik D

  • Table for Sales order Cost Est?

    Cost estimate data for sales orders used to be kept in KEKO and KEPH -
    Now that we've upgrade to 5.0 - there are only product cost estimates.
    Anybody know the tables for sales orders?
    thanks

    Dear Althea,
    please check with this tables.
    VBAG                           Sales Document: Release Data by Schedule Line in Sch.Agrmt.
    VBAK                           Sales Document: Header Data                               
    VBAP                           Sales Document: Item Data                                 
    VBBE                           Sales Requirements: Individual Records                    
    VBBS                           Sales Requirement Totals Record                           
    VBDATA                         Update data      
    Regards
    Mangal.

  • I need T.Codes and Tables in SAP-ICM  module

    I need T.Codes and Tables in SAP-ICM  module
    Thanks in Advance.

    Here are some of the source tables for the FI-CO extractors.
    FI-CO T-Codes
    FK10N - Vendor Balance Display (FI-AP)
    FD10N - Customer Balance Display (FI-AR)
    S_ALR_87013611 - Cost Centers: Actual/Plan/Variance (CCA)
    2KEE - Profit Center: Totals Records (COPA)
    FS10N - Balance Display (FI-GL)
    KE5Z - Profit Center: Actual Line Items (PCA)
    FI-CO Tables
    BSEG - Accounting Document Segment
    BSAK - Accounting: Secondary Index for Vendors (Cleared Items)
    BSIK - Accounting: Secondary Index for Vendors
    BSAD - Accounting: Secondary Index for Customers (Cleared Items)
    BSID - Accounting: Secondary Index for Customers
    GLPCA - EC-PCA: Actual Line Items
    GLPCT - EC-PCA: Totals Table
    CE1* - COPA Line Items (* is desination for Industry Solution)
    CE4* - COPA Totals
    COSP - CO Object: Cost Totals for External Postings
    COSS - CO Object: Cost Totals for Internal Postings

  • Table for purchase order status

    Hello friends,
    There's a tab STATUS in purchase order (tcoe ME21N).
    I can't find a table which contains theses statuses.
    Anybody knows what's the table for purchase orders status ??
    Regards,
    Bahia

    Hi
    PO status is stored in Structure not in the table.
    Please use the List displays to get the information like ME2N,ME2L, ME2M, ME2K etc
    You can also get the information from the table EKKO, EKPO, EKET,EKBE
    Hope it helps
    thanks/karthik

  • Different GL accunts during GR for PO and GR for production order

    Hi
    For posting GR for PO and GR for Production order we use movement 101 only then how we can define or e different GL accounts for both the transactions ?

    Hi,
    As per my undestanding
    If you want to hit different GL for same material type for e.g. GR for PO and GR for Production order.
    you can define split valuation, Suppose material A has two Split valuation External Procurement or Inhouse Production.
    Now For valuation type External Procurement assign valuation class 1000 and for Inhouse Production 2000.
    Now in GBB for valuation modifier BSX assign two separate GL
    Like
    GBB     BSX     1000           120000(External Procurement)
    GBB     BSX      2000           130000(Inhouse Production)
    Solution 2 :-
    Define other movement type for Production create and create a new event key and assign GL to that one.
    Hope HElp U !
    Regards,
    Pardeep Malik

  • Tables for production orders

    Hi,
    Any database tables for production orders? please help me.
    Thanks & Regards
    Santhosh

    Plz SEARCH in SCN before posting.
    You will get lot of posts with tables AFKO,AFPO.

Maybe you are looking for

  • How can I change my iCloud account ?

    So, here's the story: I changed my Apple e-mail ID because it was hacked, and I accidentally used that e-mail for my iCloud and forgot 'cause I don't use iCloud, and forgot the password for it. Now, I'm trying to restore my iPod but it says that I ne

  • How to implement FI-CA module in BI

    Hi Experts,                   I am doing SAP BI project on FI-CA module.I have no idea about this module.             please guide me how to implement this module thanks in Advance....youwill  surley get  points. regards ABHI

  • Hot to call processValueChange() method of the file upload component?

    When the value changes (when I choose a new file to upload) in the file upload component the processValueChange() method is not called. I am planing to show the preview of the image to be uploaded using the processValueChange(). Thanks.

  • IMovie 9 Stops Operating

    I am teaching Broadcasting at Southeast Raleigh High School in, Raleigh, N.C.  We are running iMovie 9 on 10.6 Operating System.  Our Macs were just re-imaged.  Now we are having a couple of problems with iMovie.  When we insert transitions or text,

  • Bridge does not show image previews anymore on one of my drives

    Bridge isn't showing image previews on one of my drives. I have tried resetting the preferences as well as deleting the cache to no avail.