Source of table EBAN (purchase requisition)
Hi All,
I need to know how ,when and at what time does the table EBAN filled with purchase requisition data?
We in our organization do not use the purchase requisition process,we directly create the Purchase orders.
But still i see that the table EBAN is having the data which is used in certain places in our organization with reference to creating a PO.But am sure that the users do not create the Purchase requisition anywhere in system.
I want to know if there is any default batch program or system process that triggers the population of the table EBAN with the data?
Thanks in advance,
Swati
Hi Swati ,
All these requisitions are cretaed from Production Planning ( PP ).
Transaction : MD02. - MRP run.
Sequence of Steps :
Transactions :
MD87
MC78
MC74
MD04
MD02
MD04
Contact ur PP consultant for further details.
Regards
Ramesh Ch
Similar Messages
-
BAPI for assing source of supply for purchase requisitions
Hi,
can any one let me know if there is any bapi or function module to assing source of supply for purchase requisitions.
Points will be given
regards,
siva prasad.Define fixed indicator in the source of supply , and set the source list usage of MRP to "1 "
Below is help from sap:
==================================================================
Determining the Source of Supply via the Source List
The system first checks whether a quota arrangement has been maintained for the material, which has a validity period that covers the requirements date of the purchase requisition.
It then checks whether only one entry exists in the source list that is relevant to MRP. The indicator for source list usage must therefore be set for a particular vendor so that purchase requisitions and delivery schedules, which are created during the planning run, are automatically assigned to this vendor. In the case of a delivery schedule, you must also have maintained a scheduling agreement for this entry.
If you have maintained all the entries correctly, the system creates a purchase requisition with the source of supply that is recorded in the source list. -
How to attach Source of Supply to Purchase requisition(by MRP)
Hi Friends,
Source list - we are maintaining Source list for source of supply.
Please tell me how to attach Source of supply by means of source determination to the Purchase requisition(generated by MRP) ?. What are the configuration and transaction steps?.
ThanksDefine fixed indicator in the source of supply , and set the source list usage of MRP to "1 "
Below is help from sap:
==================================================================
Determining the Source of Supply via the Source List
The system first checks whether a quota arrangement has been maintained for the material, which has a validity period that covers the requirements date of the purchase requisition.
It then checks whether only one entry exists in the source list that is relevant to MRP. The indicator for source list usage must therefore be set for a particular vendor so that purchase requisitions and delivery schedules, which are created during the planning run, are automatically assigned to this vendor. In the case of a delivery schedule, you must also have maintained a scheduling agreement for this entry.
If you have maintained all the entries correctly, the system creates a purchase requisition with the source of supply that is recorded in the source list. -
Table for Purchase Requisition Item Text
I would like to know, what is the table which stores the item text in tab texts for Purchase Requisition?
Hai,
the table is STXH.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = IT_STXH-TDID "ID
LANGUAGE = IT_STXH-TDSPRAS " LANGUAGE
NAME = IT_STXH-TDNAME
OBJECT = IT_STXH-TDOBJECT
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
TABLES
LINES = L_LINES
Regards,
Venkat -
Reference No. for Purchase requisition
Hi fnds,
i need fields for reference no. & remarks based on purchase requisition number....plz let me knw if possible..
Thanks in advance.hi,
Tables
EBAN Purchase Requisition
EBKN Purchase Requisition Account Assignment
Fields
BANFN Purchase Requisition Number
BNFPO Item Number of Purchase Requisition
BSART Purchase Requisition Document Type
Reward points if useful
Edited by: Raj on May 6, 2008 3:57 PM -
HI all,
I want to know the tables and transactions related to Purchase Requisition.
Also, in which table the Purchase Requisition APPROVAL result and the APPROVER name will get stored?
Regards,
ShanthiHello Shanthi,
Please note that you'll get all the relevant information in EBAN,CDHDR & CDPOS tables. You can pass the value of PR no in OBJECTKEY field of the change tables(CDHDR & CDPOS ).One more condition is that ,when you input PR no. in these change tables, then make sure that the number of digits of PR no. should be 10.
Suppose for eg., if your PR no. is 600012 (6 digits), make sure to add 4 more preceding zeroes, so that total will be 10 & then input that value in OBJECTKEY field as 0000600012 .This will satisy the requirement.
Hope things are clear.
Regards
Mahesh -
Link tables of Sales Order and Purchase Requisition
Hi,
thru which tables we can get the data of purchase requistion for a sales order.
regards,
baluDear Balu,
the fields VBEP-BANFN and VBEP-BNFPO are filled in the third-party process only. It means that there is 1:1 connection between the schedule line of the sales order and the purchase requisition. In the third-party process during saving the sales order the purchase requisition is created automatically and is linked to the order.
If the fields are empty, it means, you have no third-party process and no 1:1 connection between the sales order and the purchase requisition. Probably the sales order created normal requirements, which generate purchase requisition(s) after MRP run. In this case you cannot see the purchase requisition from the sales order as there is no 1:1 connection. You have no chance to get the data from sales order to the purchase requisition.
The only possibility which you (may be, it depends on the process) have, is to find sales order numbers from the purchase requisition: so to develop the process backwards. These data are stored in the database table EBKN: Purchase Requisition Account Assignment.
Please use the following fields:
EBKN-BANFN - Purchase requisition number (key field)
EBKN-BNFPO - Item number of purchase requisition (key field)
EBKN-LOEKZ - Deletion indicator in purchasing document (key field, can be helpful)
The corresponding sales orders are stored in:
EBKN-VBELN - Sales Document Number
EBKN-VBELP - Sales Document Item
EBKN-VETEN - Schedule line number
I hope, this information will help you further and will solve your problem.
Kind regards,
Akmal Vakhidov
Development Support SD, SAP, Walldorf/Germany -
Purchase Requisition fields & table
hi experts,
I have a requirement to make Purchase Requisition report. Is there any standard report so i can copy and modify it. Or u guys have made some report of the same. its urgent.
Or plz tell the table & field names of the following requirement. also help me on what fields I can join that tables.
Purchase Requisition (PR) date
Delivery date
PR No.
PR Material No.
PR Quantity
STO date
STO No.
STO material
STO Qty.
Supplying Plant
Delivery Plant
Delivery No.
Delivery Date ( when delivery created)
Delivery material
Delivery Qty.
PGI
thanks. alot.
KhanREPORT ZPurchase_alvsample .
TABLES: ekko.
type-pools: slis. "ALV Declarations
*Data Declaration
TYPES: BEGIN OF t_ekko,
ebeln TYPE ekpo-ebeln,
ebelp TYPE ekpo-ebelp,
statu TYPE ekpo-statu,
aedat TYPE ekpo-aedat,
matnr TYPE ekpo-matnr,
menge TYPE ekpo-menge,
meins TYPE ekpo-meins,
netpr TYPE ekpo-netpr,
peinh TYPE ekpo-peinh,
END OF t_ekko.
DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
wa_ekko TYPE t_ekko.
*ALV data declarations
data: fieldcatalog type slis_t_fieldcat_alv with header line,
gd_tab_group type slis_t_sp_group_alv,
gd_layout type slis_layout_alv,
gd_repid like sy-repid,
gt_events type slis_t_event,
gd_prntparams type slis_print_alv.
*Start-of-selection.
START-OF-SELECTION.
perform data_retrieval.
perform build_fieldcatalog.
perform build_layout.
perform build_events.
perform build_print_params.
perform display_alv_report.
*& Form BUILD_FIELDCATALOG
Build Fieldcatalog for ALV Report
form build_fieldcatalog.
There are a number of ways to create a fieldcat.
For the purpose of this example i will build the fieldcatalog manualy
by populating the internal table fields individually and then
appending the rows. This method can be the most time consuming but can
also allow you more control of the final product.
Beware though, you need to ensure that all fields required are
populated. When using some of functionality available via ALV, such as
total. You may need to provide more information than if you were
simply displaying the result
I.e. Field type may be required in-order for
the 'TOTAL' function to work.
fieldcatalog-fieldname = 'EBELN'.
fieldcatalog-seltext_m = 'Purchase Order'.
fieldcatalog-col_pos = 0.
fieldcatalog-outputlen = 10.
fieldcatalog-emphasize = 'X'.
fieldcatalog-key = 'X'.
fieldcatalog-do_sum = 'X'.
fieldcatalog-no_zero = 'X'.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'EBELP'.
fieldcatalog-seltext_m = 'PO Item'.
fieldcatalog-col_pos = 1.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'STATU'.
fieldcatalog-seltext_m = 'Status'.
fieldcatalog-col_pos = 2.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'AEDAT'.
fieldcatalog-seltext_m = 'Item change date'.
fieldcatalog-col_pos = 3.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'MATNR'.
fieldcatalog-seltext_m = 'Material Number'.
fieldcatalog-col_pos = 4.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'MENGE'.
fieldcatalog-seltext_m = 'PO quantity'.
fieldcatalog-col_pos = 5.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'MEINS'.
fieldcatalog-seltext_m = 'Order Unit'.
fieldcatalog-col_pos = 6.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'NETPR'.
fieldcatalog-seltext_m = 'Net Price'.
fieldcatalog-col_pos = 7.
fieldcatalog-outputlen = 15.
fieldcatalog-do_sum = 'X'.
fieldcatalog-datatype = 'CURR'.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'PEINH'.
fieldcatalog-seltext_m = 'Price Unit'.
fieldcatalog-col_pos = 8.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
endform. " BUILD_FIELDCATALOG
*& Form BUILD_LAYOUT
Build layout for ALV grid report
form build_layout.
gd_layout-no_input = 'X'.
gd_layout-colwidth_optimize = 'X'.
gd_layout-totals_text = 'Totals'(201).
gd_layout-totals_only = 'X'.
gd_layout-f2code = 'DISP'. "Sets fcode for when double
"click(press f2)
gd_layout-zebra = 'X'.
gd_layout-group_change_edit = 'X'.
gd_layout-header_text = 'helllllo'.
endform. " BUILD_LAYOUT
*& Form DISPLAY_ALV_REPORT
Display report using ALV grid
form display_alv_report.
gd_repid = sy-repid.
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = gd_repid
i_callback_top_of_page = 'TOP-OF-PAGE' "see FORM
i_callback_user_command = 'USER_COMMAND'
i_grid_title = outtext
is_layout = gd_layout
it_fieldcat = fieldcatalog[]
it_special_groups = gd_tabgroup
it_events = gt_events
is_print = gd_prntparams
i_save = 'X'
is_variant = z_template
tables
t_outtab = it_ekko
exceptions
program_error = 1
others = 2.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
endform. " DISPLAY_ALV_REPORT
*& Form DATA_RETRIEVAL
Retrieve data form EKPO table and populate itab it_ekko
form data_retrieval.
select ebeln ebelp statu aedat matnr menge meins netpr peinh
up to 10 rows
from ekpo
into table it_ekko.
endform. " DATA_RETRIEVAL
Form TOP-OF-PAGE *
ALV Report Header *
Form top-of-page.
*ALV Header declarations
data: t_header type slis_t_listheader,
wa_header type slis_listheader,
t_line like wa_header-info,
ld_lines type i,
ld_linesc(10) type c.
Title
wa_header-typ = 'H'.
wa_header-info = 'EKKO Table Report'.
append wa_header to t_header.
clear wa_header.
Date
wa_header-typ = 'S'.
wa_header-key = 'Date: '.
CONCATENATE sy-datum+6(2) '.'
sy-datum+4(2) '.'
sy-datum(4) INTO wa_header-info. "todays date
append wa_header to t_header.
clear: wa_header.
Total No. of Records Selected
describe table it_ekko lines ld_lines.
ld_linesc = ld_lines.
concatenate 'Total No. of Records Selected: ' ld_linesc
into t_line separated by space.
wa_header-typ = 'A'.
wa_header-info = t_line.
append wa_header to t_header.
clear: wa_header, t_line.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
it_list_commentary = t_header.
i_logo = 'Z_LOGO'.
endform.
FORM USER_COMMAND *
--> R_UCOMM *
--> RS_SELFIELD *
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
Check function code
CASE r_ucomm.
WHEN '&IC1'.
Check field clicked on within ALVgrid report
IF rs_selfield-fieldname = 'EBELN'.
Read data table, using index of row user clicked on
READ TABLE it_ekko INTO wa_ekko INDEX rs_selfield-tabindex.
Set parameter ID for transaction screen field
SET PARAMETER ID 'BES' FIELD wa_ekko-ebeln.
Sxecute transaction ME23N, and skip initial data entry screen
CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
ENDIF.
ENDCASE.
ENDFORM.
*& Form BUILD_EVENTS
Build events table
form build_events.
data: ls_event type slis_alv_event.
call function 'REUSE_ALV_EVENTS_GET'
exporting
i_list_type = 0
importing
et_events = gt_events[].
read table gt_events with key name = slis_ev_end_of_page
into ls_event.
if sy-subrc = 0.
move 'END_OF_PAGE' to ls_event-form.
append ls_event to gt_events.
endif.
read table gt_events with key name = slis_ev_end_of_list
into ls_event.
if sy-subrc = 0.
move 'END_OF_LIST' to ls_event-form.
append ls_event to gt_events.
endif.
endform. " BUILD_EVENTS
*& Form BUILD_PRINT_PARAMS
Setup print parameters
form build_print_params.
gd_prntparams-reserve_lines = '3'. "Lines reserved for footer
gd_prntparams-no_coverpage = 'X'.
endform. " BUILD_PRINT_PARAMS
*& Form END_OF_PAGE
form END_OF_PAGE.
data: listwidth type i,
ld_pagepos(10) type c,
ld_page(10) type c.
write: sy-uline(50).
skip.
write:/40 'Page:', sy-pagno .
endform.
*& Form END_OF_LIST
form END_OF_LIST.
data: listwidth type i,
ld_pagepos(10) type c,
ld_page(10) type c.
skip.
write:/40 'Page:', sy-pagno .
endform.
regards,
srinivas
<b>*reward for useful answers*</b> -
Hi Gurus,
I want prepare a purchase register . please tell me the tables for that. please help me out.
regards,
Lakshmihi,
find tables in MM-PUR (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
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
reward points if hlpful. -
Display purchase requisition for a material
Hai...,
can any one help me in developing a report to display purchase requisition based for perticular material number.
tell me the tables and fields to use..
if possible sample code tooo....
thanks in advance.Tables for Purchase Requsition.
For Purchase Requisition
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 -
Get the approver for a purchase requisition
Hello
I am trying to retrieve who approved a purchase requisition. I have the PR number. Is there a bapi or FM returning this info. If not please let me know how to do that
ThanksHi Bobby,
For example, PR 10002620
(1) Browse table CDHDR (Change document header), specify:
Change doc. Object = BANF
Object value = PR number (remember to add first 2 zeros) i.e. 0010002620
Transaction = ME54N (release manually) and/or ME55 (collective release)
The result showing the user who has run transaction ME54N and/or ME55 for the PR, then user may be the approver of the PR. If multiple records found for a particular PR, it may be approve/reject several times. You may only extract the latest record.
(2) Because transaction ME54N can either approver or reject PR, it is necessary to further check table CDPOS (Change document items), specify:
Change doc. Object = BANF
Document number = <found in step (1)>
Table Name = EBAN (Purchase Requisition)
Field Name = FRGKZ (Release Indicator)
In the result, if field FRGKZ (Release Indicator) changed from Old value 'X' (blocked) to New value '2' (PO creation allowed), we know that the user found in step (1) is the PR approver.
Regards,
Donald -
How to update Purchase requisition number in EBAN table through ME51n?
Hi Guru,
I know thoes user exit as below use for ME51N.
EXIT_SAPLMEREQ_005
EXIT_SAPLEBND_001
EXIT_SAPLMEREQ_010
But I don't know which use exit effect after saving PR number in EBAN table and which field to tick PR number = '0010000111' in order to I want update number 00100001111 in EBAN table after clicking save in ME51N.
I need it soon . Please help me,
Thank you so much guru.Hi,
Try with this BADI ME_PROCESS_REQ_CUST and create a new implementation under POST. That would give us the generated new PR number and using that we can access the relevant tables.
And also try this exit given Below EXIT_SAPLMEREQ_009 Document Number Assignment: Purchase Requisition
Regards
kk
Edited by: Krishna KiranN on Dec 20, 2011 5:28 AM -
Looking for table that links a PM Reservation to a MM Purchase Requisition
Looking for table that links a PM Reservation to a MM Purchase Requisition
Hi,
Typically the way most SAP systems are configured, there are two scenarios here:
1. The component reserved in the PM order is item category 'N'. This is a non inventory item and must be directly procured for consumption against the PM order at the point of goods receipt. In this case no reservation is created and instead a requisition is directly created (in table EBAN) and the requisition is account assigned directly to the PM order (in table EBKN - field AUFNR).
2. The component reserved in the PM order is item category 'L'. In this case no requisition is directly created, instead a reservation is created against the item in stock (in table RESB). If there is sufficient stock of the item already then the item is consumed when it is goods issued to the PM order from stock using MIGO and there is no requisition created. In the event that there is not sufficient stock of the item for the reservations that exist, when MRP is run, a requisition will be created to replenish the stock, but this requisition will not be assigned to a specific PM order as it could be replenishing stock of the item for several reservations which are all for different orders. So in this scenario there is no direct link from the reservation generated by the PM order to the requisition. -
Purchase Requisition number : In which table the PR currency field stored?
When we raise a Purchase requisition nr : t codes ME53N / ME21N
the PR nr, item nr, PR doc type, PR group, plant etc are stored in EBAN table.
PR amount can be calculated based on MENGE * PREIS / PEINH from the table EBAN.
Where will be the PR amount currencies like 'EUR' or 'GBP' stored?
How can we relate those Table with EBAN/EBKN?
Please let me know the exact TABLE for this.Hi,
currency keys will be stored in
TCURC table.. ( all currency keys will be available )
eban - waers is the field where the currency key value stored
regards,
Venkatesh -
Purchase Requisition number : In which table the currency field stored?
When we raise a Purchase requisition nr : t codes ME53N / ME21N
the PR nr, item nr, PR doc type, PR group, plant etc are stored in EBAN table.
PR amount can be calculated based on MENGE * PREIS / PEINH from the table EBAN.
Where will be the PR amount currencies like 'EUR' or 'GBP' stored?
How can we relate those Table with EBAN?
Please let me know the exact TABLE for this.hi kpreddy
before going to raise purchage order u must give the purchage requisition plan
why we r going to purchage the material??? so many things to approve to purchage a material
menge - purchage order quntity
preis -
that currencies depend upon the country wise purchage order..........
Maybe you are looking for
-
Failed validation highlights entire column in tabular form
Hi, I have a tabular form where one of the field is a date field. I need to ensure that that the date selected or entered falls in the correct range of another page item P6_WEEK_ENDING. Here is my code. DECLARE last_week_fri DATE; this
-
I have a Canadian iTunes account, but now live in the UK so would like to have a UK one. I don't, however, want to give up using my Canadian one. Is it possible to have both at the same time?
-
Return date of Security Deposit blank on move out bill
Dear All, When a move out is done on a contract account, if no final bill is issued, the security deposit is released and the return date of the security deposit is filled with the move out date. Else if a final invoice is issued, the the security de
-
Checking for updates after System Restore
After installing updates in September I had several problems, but system restore got things working again. However, when I check for updates now the system appears to see the updates that were removed by system restore as if they are still installed
-
I have a request from user. They attach a document from DMS (SAP document management system) in PO. They want to send the PO e-mail to vendor with the attachment.