Purchase order EKKN/EKBE tables
Hi,
I m creating a report based on purchase order. I'm getting sequence number from EKKN table and then getting the invoice details from EKBE table using where clause on EBELN, EBELP and ZEKKN(Seq number) fields.
My question is in some cases in EKBE table, 00 seq number is populated, mostly for VGABE = 1 (Mat doc number) or VGABE= 9(Service entry sheet). But this 00 is not in EKKN table. So in that case i miss these invoices in my internal table, bcoz i'm querying based on seq number, and 00 is not there.
Bcoz you cann't use 00 seq number at the time of PO creation.
Can any body tell me how and in which senarios seq no (EKBE-ZEKKN) field is being populated, so that i can write the code accordingly....
Thanks,
Start your selection query from EKBE first and then go to EKKN based on the EBELN, EBELP & ZEKKN.
Regards,
Naimesh Patel
Similar Messages
-
Retrieve the Purchase Order Condition Records Table
Hallo!
I have found this code right here:
http://www.sap-basis-abap.com/sapab025.htm
It is very useful particular for purposes which I need. Please can somebody
try to fix the error to get it working. There is an internal table missing.
Regards
Ilhan
Retrieve the Purchase Order Condition Records Table
select * from ekko.
select * from konv where knumv = ekko-knumv
"Get all the condition records for the purchase order
endselect.
endselect.
* Get the info record conditions record
* First declare the record structure for the key
data: begin of int_konp,
txt1(5),
lifnr(5),
matnr(18),
txt2(4),
txt3(1),
end of int_konp.
clear: konh, konp, int_konp.
* data for the record key konh-vakey
int_konp-txt1 = '00000'.
int_konp-lifnr = ekko-lifnr+5(5).
int_konp-matnr = ekpo-matnr(18).
int_konp-txt2 = 'ALL'.
int_konp-werks = ekpo-werks.
int_konp-txt3 = '0'.
select * from konh where kschl = 'PB00' "Conditions (Header)
and datab => p_datum. "valid from date
if konh-vakey = int_konp. "Conditions (Item)
select single * from konp where knumh = konh-knumh.
continue.
endif.
endselect.Hi flora
Just get through the sequence .
see the table fields ...
1. From EKKO table take an entry which is having pricing conditions.
Now in the fields list check out for field EKKO-KNUMV(document condition number).
2.Take this condition number and now goto table KONV.
Give the document condition number in the field KONV-KNUMV and execute .
This will lead to a list of document condition numbers and some other fields .
3.Now check for field KONV-KNUMH ,KONV-KAWRT(quantity) and note the value KONV-KWERT .
(Remember this is at header level).
This is ur condition record number.
**comments
Now from document condition number we got the condition record number (KNUMH).
4. now since u want the item level tax procedure go to table KONP and give the condition record number and execute .
This will give u a list of details .
Now concentrate on KONV-KAWRT (scale quantity) KONP-KBETR(rate) as this table will store Pricing per UNIT so product of these two will give u the total pricing tax, for a particular condition type say PR00 .
For that particular condition item .
Check the pricing procedure .
See t-code VK13 and check the pricing procedure .
From me23 check the same PO num select the item and check the pricing conditions applicable .
Select a particular pricing and goto condition->analysis->analysis pricing ,
Better take help of a SD functional consultant in the process.
regards,
vijay. -
Purchase order release history table
Hi,
I would like to know the table where we can have history of purchase order releases.
For example, If the purchase order created and released. Later purchase order release is cancelled. Again i will release the purchase order.
Even the the release history is not maintained in the table EKBE. I am not aware of the reason for not having the data in EKBE.
I would like know all the release history would be maintained . In the table EKKO, i can find only latest release status.
Can you please throw light on this. Thanks.
Regards
Badari
Edited by: Badari Narayana1 on Nov 19, 2009 8:10 PM
Edited by: Badari Narayana1 on Nov 19, 2009 8:11 PMIf memory serves correctly, you have to use change documents for this.
Read the documentation for FM CHANGEDOCUMENT_READ . You will also find lots of information in the forum.
Rob
Edited by: Rob Burbank on Nov 19, 2009 2:22 PM -
Sales Order and Purchase Order linkage in tables for third party orders
Hi all ,
For third party process order s
In which table can I find the Sales order and Purchase Order linkage .
thanks
ksrHi Sridhar ,
Refer Table EKKN for PO and SO Linkage.
Table EBKN for PR and SO Linkage.
Regards
Ramesh Ch -
Purchase order delivery shedule tabl , no Good issue date, loading date.?
Hi Experts
We found some Purchase order, in po item, it is without goods issue date, loading date and so on.
Material has set ATP check on mrp3. what's possbile wrong? something wrong for matieral setup or others?
Thanks
AliceHi
Really thanks for your help. You mentioned " SD delivery of the sending plant is created and processed."
Do you mean in material master , the sales view -delivery plant will impact this po GI date and Loading date? It maybe something wrong?
Thanks
Alice -
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
thanksHi 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. -
Table shows link between delivery no and purchase order no
Hi All
For particular delivery no, I want to know the purchase order no. which table stores this info.
cheers
AJ>
Karthik D wrote:
> Hi Anup,
>
> If you know the billing number(VBRK-VBELN) you can get the PO number from VBRK-BSTNK_VF.
>
> Even if you know delivery number pass it to VBFA table, get the salesorder number and pass it to VBAK and get the po number(VBAK-BSTNK)
>
> Revert back if you have any doubts.
>
> Regards
> Karthik D
And If SO is not derived from purchace order than? -
How to Enable Delta for a Custom MM Purchase Order History ODS ???
Hi all,
We have a Customized MM Purchase Order History ODS with Full Update on Monthly basis. We want to enable the DELTA for this ODS and how can I proceed, PLEASE.
Please find the Key Figures and Data Fields in the below:
ODS Structure for PO History ODS:
Key Fields
SAP R/3 Field Description Technical Name
Purchasing Document Number EKBE-EBELN
Purchasing Line Item Number EKBE-EBELP
Sequential number of account assignment EKBE-ZEKKN
Transaction/event type, purchase order history EKBE-VGABE
FI Fiscal Period FISCPER (from BKPF-GJAHR + BKPF-MONAT) in the format YYYYPPPP
Number of Material Document EKBE-BELNR
Item in Material Document EKBE-BUZEI
Data Fields
SAP R/3 Field Description Technical Name
Company Code EKKO-BUKRS
Plant EKPO-EWERK
Account Number of the Vendor EKKO-LIFNR
Currency Key (of PO) EKKO-WAERS
Deletion indicator in purchasing document EKPO-LOEKZ
Purchasing Document Date EKKO-BEDAT
Responsible salesperson at vendor's office EKKO-VERKF
Vendor's telephone number EKKO-TELF1
Incoterms (part 1) EKKO-INCO1
Incoterms (part 2) EKKO-INCO2
Short text EKPO-TXZ01
Material Group EKPO-MATKL
Material Number used by Vendor EKPO-IDNLF
Expected Delivery Date EKET-EINDT
Order unit (UOM) EKPO-BSTME
Delivery Completed Indicator EKPO-ELIKZ
Account assignment category EKPO-KNTTP
Business Area (from PO) EKKN-GSBER
Name of requisitioner/requester EKPO-AFNAM
Purchasing organization EKKO-EKORG
Purchasing group EKKO-BKGRP
G/L Account Number (from PO) EKKN-SAKTO
Cost Center (from PO) EKKN-KOSTL
Work Breakdown Structure Element (WBS Element) EKKN-PS_PSP_PNR
Payment Terms (from PO) EKKO-ZTERM
PO History Category EKBE-BEWTP
Movement Type EKBE-BWART, MSEG-BWART
Debit/Credit Indicator EKBE-SHKZG
Reference from Invoice RBKP-XBLNR
Payment Terms (from Invoice) RBKP-ZTERM
Posting Date RBKP-BUDAT for IR, MKPF-BLDAT for GR
Document Date RBKP-BLDAT for Invoice, MKPF-BLDAT for GR
Baseline Date RBKP-ZFBDT
FI Document Number BKPF-BELNR, found through BKPF-AWKEY (IR # or GR # + fiscal year) or MSEG-LFBNR
FI Dcoument Year BKPF-GJAHR
FI Document Type BKPF-BLART
Fiscal Variant Hardcoded: S4
Payment Method (invoice header level) RBKP-ZLSCH
GL Account (from GR/IR document) MSEG-SAKTO for GR, DRSEG-SAKNR for IR (DRSEG is a structure)
Cost Cener (from GR/IR document) MSEG-KOSTL for GR, DRSEG-KOSTL (DRSEG is a structure) for IR
Business Area (from GR/IR document) MSEG-PARGB; not sure on IR
Local Currency BKPF-HWAE
Local Currency 2 BKPF-HWAE2
Amount posted to GR/IR Clearing (LC) EKBE-AREWR
Amount posted to GR/IR Clearing (GC) EKBE-AREWR converted to Group Currecny found through BKPF-KURS2 if BKPF-HWAE2 is USD
Purchase order quantity EKPO-BSTMG
Price Unit (for PO) EKPO-PEINH
Net price in purchasing document (in document currency) EKPO-BPREI
Amount in local currency; amount in document currency MSEG-DMBTR for material document, RSEG-WRBTR for invoice
Amount in local currency; amount in document currency (GC) MSEG-DMBTR for material document,
RSEG-WRBTR for invoice converted to USD
Quantity MSEG-ERFMG for material document;
RSEG-MENGE for Invoice
Delivery costs' share of item value RSEG-BNKAN
Delivery costs' share of item value (GC)RSEG-BNKAN converted to USD
Tax Amount (accrued) BSEG-PSWBT
Freight Amount (accrued) BSEG-PSWBT
Discount Amount (invoice header level) RBKP-WSKTO
Thanks.Hi Venkat,
If you are using a Custom DataSource/Extractor the main problem is that you are collecting data from a lot of tables, so it is really difficult to determine a field for the delta.
If for you is important only a change at Key Fields Table (EKBE) you can set the Generic Delta only on a field of this table (Doc Number or Position Number - Date - Timestamp).
But if you are interested in all changes you have to determine a single field for every tables...
I think it is really difficult to find a delta in all these tables.
Maybe you can think to use in BW an ODS without Reporting BEx flag to determine Delta, and then introduce delta records in a Cube.
Ciao.
Riccardo. -
Transaction ME23N; Create purchase order- Account assignment tab
Hello , do you know in which table the info for account assignment for a purchase order is kept?
e.g just like EKBE is used for Purchase order history.
thx.Table Description u2013 All Tables: Purchasing
EBAN Purchase Requisition
EBKN Purchase Requisition Account Assignment
EBUB Index for Stock Transport Requisitions for Materi
EINA Purchasing Info Record: General Data
EINE Purchasing Info Record: Purchasing Organization D
EIPA Order Price History: Info Record
EKAB Release Documentation
EKAN Vendor Address: Purchasing Document
EKBE History per Purchasing Document
EKBEH Removed PO History Records
EKBZ History per Purchasing Document: Delivery Costs
EKBZH History per Purchasing Document: Delivery Costs
EKEH Scheduling Agreement Release Documentation
EKEK Header Data for Scheduling Agreement Releases
EKES Vendor Confirmations
EKET Scheduling Agreement Schedule Lines
EKETH Scheduling Agreement Schedules: History Tables
EKKI Purchasing Condition Index
EKKN Account Assignment in Purchasing Document
EKKO Purchasing Document Header
EKPA Partner Roles in Purchasing
EKPB "Material Provided" Item in Purchasing Document
EKPO Purchasing Document Item
EKPV Shipping Specific Data on Stock Tfr. for Purch. D
EKRS ERS Procedure: Goods (Merchandise) Movements to b
EKUB Index for Stock Transport Orders for Material
EORD Purchasing Source List
EQUK Quota File: Header
EQUP Quota File: Item
T- Tables
T024 Purchasing Groups
T024E Purchasing Organizations
T024W Valid Purchasing Organizations for Plant
T024Z Purchasing Organizations
T027A Shipping Instructions, Purchasing
T027B Texts: Shipping Instructions
T027C Codes for Compliance with Shipping Instructions
T027D Compliance with Shipping Instructions: Texts
T069 Certificate Categories
T069Q Control Data for Source Determination and Checkin
T069T Certificate Categories: Text Description
T160 SAP Transaction Control, Purchasing
T160B SAP Transaction Control, List Displays, Purchasin
T160C SAP Transaction Control for List Displays in CALL
T160D Function Authorizations: Purchase Order
T160E Function Authorizations: Purchasing: Descriptions
T160I Control of Intrastat Reports
T160J Text Table for Intrastat Reports
T160L Scope of Purchasing Lists
T160M Message Control: Purchasing (System Messages)
T160O Description of Scope of List
T160P Entities Table Routines
T160Q Scope of List: Buyeru2019s Negotiation Sheet: Routine
T160R Routines for Buyeru2019s Negotiation Sheet
T160S Selection Parameters for Purchasing Lists
T160T Description of Selection Parameters
T160V Default Values for Purchasing
T160W Description for Default Values for Purchasing Ope
T160X Scope of List: Buyeru2019s Negotiation Sheet
T160Y Scope of List: Buyeru2019s Negotiation Sheet: Descrip
T161 Purchasing Document Types
T161A Linkage of Requisition Doc. Type to Purchasing Do
T161B Default Business Transaction Type for Import
T161E Release Codes
T161F Release Point Assignment for Purchase Requisition
T161G Release Prerequisite, Purchase Requisition
T161H Fields for Release Procedure, Purchase Requisitio
T161I Determination of Release Strategy
T161M FineTuned Control: Message Types
T161N Message Determination Schemas: Assignment
T161P Check of Document Type, Document Category, Item C
T161R REORG Control, Purchasing
T161S Release Indicator, Purchase Requisition
T161T Texts for Purchasing Document Types
T161U Texts for Release Indicator
T161V Shipping Specific Data for Stock Tfr. for Purch.
T161W Order Types for Stock Transfer
T161Z Additional Checks for Outline Agreements on Reorg
T162 Field Selection, Purchasing Document
T162K Field Selection, Account Assignment Fields, Purch
T162T Description of Field Selection Reference Key
T162X Description of Field Groups from T162/T162K
T162Y Groups: Field Selection
T163 Item Categories in Purchasing Document
T163A Check Item Category/Account Assignment Category
T163B Purchase Order History Categories
T163C Texts for Purchase Order History Categories
T163D Assignment Internal/External Confirmation Categor
T163E Confirmation Categories
T163F Confirmation Categories: Descriptions
T163G Confirmation Control
T163I Texts for Account Assignment Categories
T163K Account Assignment Categories in Purchasing Docum
T163KS Assignment of Tax Indicator to Account Assignment
T163L Confirmation Control Keys
T163M Confirmation Control Keys: Description
T163P Release Creation Profile
T163S Description for Release Creation Profile
T163X "Zombie" T163X
T163Y Texts for Item Categories
T165K Copying Options: Header Texts
T165P Copying Options: Item texts
T166A Supplement Text in Purchasing Document Printouts
T166C Print Relevant Purchasing Document Changes
T166K Header Texts in Purchasing Document Printouts
T166P Item Texts in Purchasing Document Printouts
T166T Change Texts in Purchasing Document Printouts
T166U Headings in Purchasing Document Printout
T167 Number Range Management for Purchasing Master Dat
T167T Transaction Description
T168 Screen Control, Purchasing
T168F Function Codes, Purchasing
T168T Screen Titles
T16FB Release Indicators: Purchasing Document
T16FC Release Codes
T16FD Description of Release Codes
T16FE Descriptions of Release Indicators: Purchasing Do
T16FG Release Groups
T16FH Descriptions of Release Groups
T16FK Release Statuses
T16FS Release Strategies -
Purchase order fields in MRO type
Hi Experts,
I have Searching fields for service POs - MRO type, received acknowledgment or not, received ASN,Delivered, Invoice received, In Process, Processed etc... for purchase order.In which table this data can maintained. Could you pls suggest.
Thank you,
Dinesh Reddy.Hi,
See tables EKBE, EKBEH, EKBZ, EKBZH. Among these EKBE is generally used.
Regards,
Rajesh -
Account assignment of the incoming invoice and the purchase order
Hi,
I am trying to control the account assignment of an incoming invoice against the account assignment of the purchase order used. The link I found is the field ZEKKN. I think RBCO-ZEKKN tells me what account assignment of the purchase order (EKKN-ZEKKN) I am using (just as RSEG-EBELN and RSEG-EBELP help to point the item of the PO used in the invoice). This link is working pretty well in 99% of my Pos and invoices. But sometimes when I create an assignment line in the PO, this line is created with a key EBELN, EBELP, ZEKKN = 02, even if any assignment was created wit an ZEKKN = 01.
In this case, when I park an invoice on this PO, the value of RBCO-ZEKKN is 01 and not 02 as in the table EKKN.
It is very annoying because the control I implement blocks the posting of the invoice..
Any idea or any new link between tables RBCO and EKKN will be very appreciable.
Thanks in advanceHi, I've got the same issue if someones has a clue it would be very helpfull
-
Open Qty and Received Qty for Open Purchase Order.
How to Fetch the open qty and received Qty of every Open purchase orders in EKPO table where ELIKZ = SPACE OR LOEKZ = SPACE. What are the table and field used? Kindly help me.
Hello Senthilramkumar,
Use ME2L/ME2N/ME2M with selection parameter WE101.
Hope this will help. -
Open Purchase order - urgent please
Hi Friends,
How to find an open purchase order, in which table i
need to check that.
Please let me know.
Thanks in advance.
Regards,
Roberts.KHi Roberts,
You have to consider the movement type along with the debit/credit indicator. A 101 movement type is for a Goods receipt for a PO and 102 is a reversal movement of the same. So to get all the GR quantity against a particular PO item, I would sum up all the 101(SHKZG = H) and subtract all the 102(SHKZG = S). The result is my total GR quantity. Line item quantity minus this GR quantity is my open quantity. The only exception to this is when the 'delivery complete' indicator is set, which means even though my GR quantity does not match my item ordered quantity, there are no more deliveries expected against this line item.
You can get these kind of reports from standard SAP reports. There is some configuration required, but you should be able to get open POs easily.
Hope this helps,
Srinivas -
User exit or BADI for purchase order
Hi,
I want send outbound IDOC for purchase order to 3rd party integration system.
It is too hard to map between standard purchase order IDOC and business object of 3rd party system because the structure of standard purchase order IDOC is so complicated.
So I want bring purchase order data into CBO table when purchase order is created or released. And this data will be inserted CBO IDOC for more simple structure than standard one.
I'm trying to find some of user exit or BADI to insert from standard purchase order to CBO table in the time of purchase order is created or released.
And I'm trying to find another way using message type.
As far as I know it is possible to set sending IDOC in the purchase order message type setting in IMG.
Is anyone who has related situation or know the way to do this?Hi,
I have similar requirement, however the BADI name you mentioned does not exist.
Pls let me know the right one.
Thanks,
Dipak -
Calculation of Purchase Order TAX in Smart Form
Hi All !
I am facing problem in purchase Order, how to calculate the value of tax in Purchase order .
in KONV Table, I am getting the value of condition type which r maintained on pricing procedure but, we r not getting the condition type for particular TAX code.
How we can calculate the tax. or
Is there any problem in VOFM/formulas/condition value.
please suggest me.
Thanks & Regards
PritiHi Jitendra,
Thanks for your wonderful co-operation. The issue is almost solved. One lat wuery-
We are at present using 20 tax conditions in our tax procedure. But in a single PO we are using only 3 or 4 conditions out of them How can I identify in my program that which tax conditions are actually used in the current printable PO????
I can use table A363 for searching condition records only after identifying the relevent condition type used in a PO otherwise I have to search for all 20 condition types. Please note we are using TAXINN ( condition based) tax procedure.
I am eagerly awaiting for your suggestion. Thanks again,
Priti
Maybe you are looking for
-
IOS 8.1.2 car bluetooth connection
I have lost the Bluetooth connectivity in my 2014 Hyundai Santa Fe since I updated my phone to iOS 8.1.2. I have tried to reset car Bluetooth features as well as on my phone. Nothing seems to work. Is anyone else having issues and are there any so
-
Compass direction in Extended Info
I have the new new Sony Cybershot HX5V which records GPS co-ordinates, altitude and compass setting with each photo. In iPhoto 09 I pull up extended info for a photo and see the GPS coordinates and the Altitude but I do not see any Compass setting da
-
how to send database table one sever to another server in the form of tms request. i want send a particular database table one server to another as a request. give solution plz Message was edited by: mahesh
-
Hello, I am new to Primavera support and need to get information concerning version levels and upgrade paths. Our company uses Primavera Expedition V10 and P3, V3. What are the current version levels of these products and what is the upgrade path to
-
Administration Assistant for Windows Startup/Shutdown Options
I run 10.2.0.1.0 and use Administration Assistant for Windows.It worked fine Then the error was: Snap-in failed to initializeName:<unknown>CLSID:{50D06DC1-CFFE-11D1-8271-00C04FD945C7} Everything with environment variable PATH appeared to be correct I