Reg. DB Table for SD Order item which is billing relevant
Dear Experts,
My requirement is that for each WBS Element, i need the SD Order item which is relevant for billing to enable the report to check whether final billing was done. If final billing was done for all line items the report will select the latest billing date at least three months ago. What is the Database Table i need to look into? Kindly help me in this regard.
Thanks,
Ramesh Manoharan
What data you are looking for the database tables??
Guess,
you will get WBS element from VBAP table, Key in WBS element in this table & you will get all SD orders with Item Category (PSTYV).
with this Item Category, Goto Table:TVAP to check whether item is relevant for billing or not
sort all the SD orders with TVAP_FKREL ne "blank" ,
Now check the status of SD orders @ item level from Table:VBUP ( if billing is done SD order status will get updated as"Complete") , To find out the Billing no, Use doc flow table:VBFA with subseq doc cat:M ( applicable invoice doc cat's) & SD order as selection criteria.
Similar Messages
-
User exit for additional data B for sale order item .
Hi., all
my client requirement is
( This business requirement will make the Last Price for a given item be visible during order entry. )
u2022Retrieve & display during order entry, the most recent unit price given to a customer for a specific item, from the Billing data.
. Display the Last Price under Additional Data B Screen
add new field (last extended price) in additional data b screen.
after that 1. Using the Sales Order Material Number (VBAP-MATNR), Sales Order Sales Organization (VBAK-VKORG), Sales Order Distribution Channel (VBAK-VTWEG), Sales Order Division (VBAK-SPART), Sales Order Sold-to Number (VBPA-KUNNR for VBPA-PARVW=u2019AGu2019) to access the Billing Items By Material Index Table (VRPMA) and specify a billing date (VRPMA-FKDAT) of less than 60 days from current Sales Order requested delivery date (if specified at header VBAK-VDATU or at the schedule line level (VBEP-EDATU). This will result in all the billing documents where the Sold-to bought the item but isnu2019t completely refined as of yet. Retain the billing document (VRPMA-VBELN), item (VBPMA-POSNR), and billing date (VRPMA-FKDAT) in a temporary table to pass to number 2 as the input.
2. Use the billing document (VRPMA-VBELN) and item (VRPMA-POSNR) to read the Sales Document Partners Table (VBPA) where the partner function (VBPA-PARVW = u201CSHu201D) and the Sales Order Ship-To (VBPA-KUNNR for VBPA-PARVW=u2019WEu2019) to select ONLY billing documents that are for that given ship-to location. This filters out only billing documents relevant for that ship-to location.
3. From the resulting list of billing documents, select the most recent date (VRPMA-FKDAT) which will refine the search for the last Billing Document (VRPMA-VBELN) and item (VRPMA-POSNR).
4. Using the most recent Billing Document (VBPA-VBELN), access the Billing Document Item Table (VBRP). To result in the Last Extended Price as VBRP-KZWI1.
5. This price will be an extended price which needs to be calculated as a u2018unit priceu2019. For this billing item, select the sales unit (VBRP-VRKME) to determine if the sales unit is in cases or eaches.
a. If the unit of measure is in cases, then simple math is required to divide the Last Extended Price (VBRP-KZWI1) by the billing quantity (VBRP-FKIMG). Standard rounding should apply when .005 results in a .01.
how to achive this ?Hi Chakravarthy,
use the Exits provided in SAPMV45A -includes MV45*ZZ and screen exits as well 8309 8310 8459, 8460. Just be sure to
use zznnnnnn include in the SAP provided forms instead of coding directly in the forms.
You can check below user exits:
MV45ATZZ :For entering metadata for sales document processing. User-specific metadata must start with "ZZ".
MV45AOZZ:
For entering additional installation-specific modules for sales document processing which are called up by the screen and run under PBO (Process Before Output) prior to output of the screen. The modules must start with "ZZ".
MV45AIZZ:
For entering additional installation-specific modules for sales document processing. These are called up by the screen and run under PAI (Process After Input) after data input (for example, data validation). The modules must start with "ZZ".
MV45AFZZ and MV45EFZ1:
For entering installation-specific FORM routines and for using user exits, which may be required and can be used if necessary. These program components are called up by the modules in MV45AOZZ or MV45AIZZ.
Reddy -
Table for purachse order tax( Invoice tab)
Hi,
Can anybody tell me table name for purchase order taxes which are matainined in invoice tab.
Thanks and Regards
Anilhi
check KONP table in SE16
following are condition related tables
check following tables
TSTL Taxes: Valid Tax Categories for Each Country
KNVI Customer Master Tax Indicator
KNAT Customer Master Record (Tax Groupings)
KONH Conditions (Header)
KONP Conditions (Item)
KONV Conditions (Transaction Data)
Vishal... -
Function Module or BAPI to update Short text for sales order item(vl02n)
Hi All,
I need to update the Short text for sales order item in vl02n transaction from an internal table with Delivery number and other relevant details .
Does any body know any Function Module or BAPI which can accomplish this purpose .
Or else writing BDC is the only option I have got ? .
Please clarify .
Thanking you in advance .
With Regards,
Suriya .Hi
You can try using BAPI_SALESORDER_CHANGE if you want to change sales order
Regards
MD -
Table for sales order change by field
Dear Friends,
I want to get the data @ table level for the list of sales orders with changed by field. Can you please tell which table/s for sales order change by field can be used?
Thanks,
pinkyHi
You can get the changes for SALES ORDER item in CDPOS table
Goto SE16 and find the changes.
hope it will serve your purpose.
thanks,
santosh -
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,
BahiaHi
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 -
Can you please tell me what is the TABLE for 'Work Order'?
Regards,
Subhasishhi 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 -
BOM Cost Estimate for sales order items
Hi experts,
Which data source could extract data created by CK51N (Order BOM Cost Estimate )? We need to get BOM Cost estimate (including input material and activity) for sales order items.
The closest one is 0CO_PC_01, but it extracts itemizations for production order.
It's urgent.Helpful answers would be awarded.Thanks.
Regards,
AaronHi Henry,
They even do not have Sales Order segment. How could I get cost estimate data based on sales order?
Regards,
Aaron -
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?
thanksDear 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. -
Object table for production order
Hi all,
I want to create a print program to create a barcode label (sapscript) triggered out of a shop (production) order.
I know for example for deliveries, all delivery data are stored into the NAST table.
Is there a similar table for production order that holds the necessary data?
Thanks
AnneHi,
Tables for production order
AUFK Production order headers
AFIH Maintenance order header
AUFM Goods movement for prod. order
AFKO Order header data PP orders
AFPO Order item
RESB Order component
AFVC Order operations
JEST Object status
AFRU Order completion confirmations
Regards,
Vishal -
Hi Experts,
Can anyone tell me which is the table for Production Order Planned Values.
The one which we get to see in CO02.
Thanks,
RaviHi Ravi,
<b>AFKO</b> Production Order Header
<b>AFPO</b> Production Order Position (details)
Regards
Sudheer -
Class for Purchase order item components and Production order components
I'm looking for a some classes. I'm very new to objects, so I could be searching for them incorrectly.
The first class I'm looking for is a purchase order class that contains the item components. I've looked at CL_PO_ITEM_HANDLE_MM and CL_PO_HEADER_HANDLE_MM. I couldn't find components as a part of either of the classes.
The second one I'm looking for is not as critical. It is for the components for a production order. I have a function module: BAPI_PRODORD_GET_DETAIL that gets the components for the order. However, to take advantage of objects - I read somewhere - that if possible I should avoid calling a function module.
Any help that you could give would be greatly appreciated.
Thank you!
MichelleHello Michelle
I do not think there are already classes available on ERP 6.0 for reading production order (yet I might be wrong...). However, regarding purchase order you are already on the right track.
*& Report ZUS_SDN_OO_READ_PO
*& Thread: Class for Purchase order item components and Production order components
*& <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1206523"></a>
"& NOTE: Coding adapted from BAPI_PO_GETDETAIL1
REPORT zus_sdn_oo_read_po.
TYPE-POOLS: abap, mmpur.
PARAMETER:
p_ebeln TYPE ebeln DEFAULT '3000000045'.
DATA: gs_document TYPE mepo_document,
go_po TYPE REF TO cl_po_header_handle_mm,
gs_header TYPE mepoheader,
gd_tcode TYPE sy-tcode,
gd_result TYPE mmpur_bool.
data: gt_items type PURCHASE_ORDER_ITEMS,
gs_itm type PURCHASE_ORDER_ITEM,
gs_item type mepoitem.
START-OF-SELECTION.
* prepare creation of PO instance
gs_document-doc_type = 'F'.
gs_document-process = mmpur_po_process.
gs_document-trtyp = 'A'. " anz. => display
gs_document-doc_key(10) = p_ebeln.
* object creation and initialization
** l_ebeln = purchaseorder.
CREATE OBJECT go_po.
CALL METHOD go_po->po_initialize( im_document = gs_document ).
CALL METHOD go_po->set_po_number( im_po_number = p_ebeln ).
CALL METHOD go_po->set_state( cl_po_header_handle_mm=>c_available ).
* read purchase order from database
gd_tcode = 'ME23N'.
CALL METHOD go_po->po_read
EXPORTING
im_tcode = gd_tcode
im_trtyp = gs_document-trtyp
im_aktyp = gs_document-trtyp
im_po_number = p_ebeln
im_document = gs_document
IMPORTING
ex_result = gd_result.
* there was a problem in reading the PO
IF ( gd_result EQ mmpur_no ).
** l_messages = l_handler->get_list_for_bapi( ).
** PERFORM return TABLES l_messages return
** poitem poschedule poaccount.
** CALL METHOD l_po->po_close( ).
ELSE.
gs_header = go_po->if_purchase_order_mm~get_data( ).
WRITE: / gs_header-ebeln,
gs_header-bukrs,
gs_header-bsart,
gs_header-lifnr.
ENDIF.
gt_items = go_po->if_purchase_order_mm~get_items( ).
LOOP AT gt_items INTO gs_itm.
gs_item = gs_itm-item->get_data( ).
write: / gs_item-ebelp,
gs_item-matnr,
gs_item-menge.
ENDLOOP.
END-OF-SELECTION.
Regards
Uwe -
Report / Table for getting Datewise item cost
Friends,
Can u help me know MM Report / Table for getting Datewise item cost in a plant.hi,
try table S031...Movement of stocks....
THis shd help you..
Regards
Priyanka.P -
How to draw horizontal line at the end of table for multiple line items
Dear Experts,
Pls can anyone help me how to draw horizontal line at the end of table for multiple line items . kindly help me regarding this
Thanks
Ramesh ManoharanHi
I tried as per your logic but it is not solving my problem . when i am gone to table painter it is showing line type 1 and line type 2
is below format.. if u see here line type 1 bottom line and line type 2 top line both are same.. so how to avoid this ?
line type 1
line type 2 -
Non-valuated Goods Receipt for Purch.Order Item with multiple acct assgnt
Dears,
i used multiple account assignment functionality based on percentage for purchase order item and the system forced the goods receipt as "Non-valuated Goods receipt".
In this way i don't have FI-CO documents at Goods receipt; i got them only at Invoice verification. So i totally lose analysis on account "Invoice to Receive".
Please, give me some suggestion if you know something in matter.
Thanks in advance,
Regards
EnricoIt means that i didn't set non-valuated goods receipt.
The system automatically set the flag if more than one account assignment are used for one purchase order item.
If happens that just one account asignment is used for one purchase order item then the goods receipt is still valuated.
i didn't try so far with quantity instead of percentage but, anyway, i need to use percentage.
Maybe you are looking for
-
How can I access iTunes on my Mac Air to use with iPhoto?
Itues shows my music and I can play all, but when I try to add music to a slidshow in iPhoto, it shows no music, only the folders.
-
as title. I will be very appreciated if someone can actually help me to solve this problem. Thanks a lot.
-
Master Data conflict between different sources
Hello Experts, We have conflict in Master data which is getting extracted from different R3 systems. So we have maintained the transcodifiction by adding Prefix ID of logical system ID for the second R/3 system where we have a confict in the Master d
-
FIXED LENGTH files supported by SAP
Hi All, While loading Flatfile in SAP BI system we can specify data file format as either FIXED LENGTH or CSV(in Extraction tab of Datasource). So my question is which files we can store in a FIXED LENGTH data format. Thanks, Shamkant
-
Split development env + wlcompile + EJB3
Hi Bea, in a Weblogic 10 environment using EJB3 annoted stateless session beans in a split development directory structure. The wlcompile ant task does not recognizes the module as EJB module around the EJB3 beans and compiles all of the sources into