Table name for sales order with Customer info
Hi Gurus,
Could you please provide me table name for sales order with customer no and customer name.
I have list of sales order number (more than 1000 no's ) i need to identify customer number and customer name (ship to party and sold to party information). I am running this report every week. so i plan to create sqvi for this report.
Thanks and regards,
B.Deethya.
Hello,
Access Tables VBAK & VBAP.
From the above tables you will get Solt to Party & Ship to Party Codes.
For Customer names you have to pass the Customer Codes to Table - KNA1
Hope this clarifies.
Thanks,
Jignesh Mehta
Similar Messages
-
Table Name for Sales Order Header Text.
Hi.
Whats the Table name for Sales Order Header Text???
Reg,
AmolHi Amol,
please Try to check the below link
http://scn.sap.com/thread/1361272
http://scn.sap.com/thread/416757
https://scn.sap.com/thread/1909247
https://scn.sap.com/thread/811915
Regards,
Gurunath -
Table name for sales order history
hi guys,
I want to know the name of table which contains sales order history.
regards
neeleshHi
Use this code it will get all the details
Sales Order Changed History Display
Sales Order Changed History Display
You can execute the report by :
1. Change Date
2. User Name
3. Sales Order Number
Submitted by : SAP Basis, ABAP Programming and Other IMG Stuff
http://www.sap-img.com
REPORT ZSDCHANGE LINE-SIZE 132 NO STANDARD PAGE HEADING
LINE-COUNT 065(001)
MESSAGE-ID VR.
TABLES: DD04T,
CDHDR,
CDPOS,
DD03L,
DD41V,
T685T,
VBPA,
TPART,
KONVC,
VBUK.
DATA: BEGIN OF ICDHDR OCCURS 50.
INCLUDE STRUCTURE CDHDR.
DATA: END OF ICDHDR.
SELECT-OPTIONS: XUDATE FOR ICDHDR-UDATE,
XNAME FOR ICDHDR-USERNAME,
XVBELN FOR VBUK-VBELN.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN BEGIN OF BLOCK BLK1 WITH FRAME TITLE TEXT-001.
PARAMETERS: SUDATE RADIOBUTTON GROUP R1,
SNAME RADIOBUTTON GROUP R1,
SOBID RADIOBUTTON GROUP R1.
SELECTION-SCREEN END OF BLOCK BLK1.
DATA: WFLAG,
WCHANGENR LIKE CDHDR-CHANGENR,
WUDATE LIKE CDHDR-UDATE,
WNAME LIKE CDHDR-USERNAME,
WVBELN LIKE VBUK-VBELN,
WDEC1 TYPE P DECIMALS 3,
WDEC2 TYPE P DECIMALS 3,
WDEC3 TYPE P DECIMALS 3,
WDEC4 TYPE P DECIMALS 3.
DATA: UTEXT(16) VALUE 'has been changed',
ITEXT(16) VALUE 'has been created',
DTEXT(16) VALUE 'has been deleted'.
DATA: BEGIN OF ICDSHW OCCURS 50.
INCLUDE STRUCTURE CDSHW.
DATA: END OF ICDSHW.
DATA: BEGIN OF ITAB OCCURS 10.
INCLUDE STRUCTURE CDSHW.
DATA: UDATE LIKE CDHDR-UDATE,
USERNAME LIKE CDHDR-USERNAME,
CHANGENR LIKE CDHDR-CHANGENR,
VBELN(10),
POSNR(6),
ETENR(4),
INDTEXT(200),
END OF ITAB.
SELECT * FROM VBUK WHERE VBELN IN XVBELN.
CLEAR CDHDR.
CLEAR CDPOS.
CDHDR-OBJECTCLAS = 'VERKBELEG'.
CDHDR-OBJECTID = VBUK-VBELN.
PERFORM READHEADER.
PERFORM READPOS.
LOOP AT ITAB.
CASE ITAB-TABNAME.
WHEN 'VBPA'.
IF ITAB-FNAME = 'KUNNR' OR
ITAB-FNAME = 'LIFNR' OR
ITAB-FNAME = 'PARNR' OR
ITAB-FNAME = 'PERNR' OR
ITAB-FNAME IS INITIAL.
MOVE ITAB-TABKEY TO VBPA.
SELECT SINGLE * FROM TPART WHERE SPRAS = SY-LANGU
AND PARVW = VBPA-PARVW.
IF SY-SUBRC = 0.
REPLACE '&' WITH TPART-VTEXT INTO ITAB-INDTEXT.
ENDIF.
ENDIF.
WHEN 'VBAP'.
IF ITAB-FNAME IS INITIAL.
REPLACE '&' WITH 'Item' INTO ITAB-INDTEXT.
ENDIF.
WHEN 'KONVC'.
MOVE ITAB-TABKEY TO KONVC.
SELECT SINGLE * FROM T685T WHERE SPRAS = SY-LANGU
AND KVEWE = 'A'
AND KAPPL = 'V'
AND KSCHL = KONVC-KSCHL.
IF SY-SUBRC = 0.
REPLACE '&' WITH T685T-VTEXT INTO ITAB-INDTEXT.
ENDIF.
ENDCASE.
IF ITAB-INDTEXT(1) EQ '&'.
REPLACE '&' WITH ITAB-FTEXT(40) INTO ITAB-INDTEXT.
ENDIF.
IF ITAB-CHNGIND = 'I'.
REPLACE '%' WITH ITEXT INTO ITAB-INDTEXT.
ELSEIF ITAB-CHNGIND = 'U'.
REPLACE '%' WITH UTEXT INTO ITAB-INDTEXT.
ELSE.
REPLACE '%' WITH DTEXT INTO ITAB-INDTEXT.
ENDIF.
CONDENSE ITAB-INDTEXT.
MODIFY ITAB.
ENDLOOP.
ENDSELECT.
IF SUDATE = 'X'.
SORT ITAB BY UDATE VBELN POSNR ETENR.
ELSEIF SOBID = 'X'.
SORT ITAB BY VBELN POSNR ETENR UDATE.
ELSE.
SORT ITAB BY USERNAME VBELN POSNR ETENR UDATE.
ENDIF.
LOOP AT ITAB.
CLEAR WFLAG.
IF SUDATE = 'X'.
IF WUDATE NE ITAB-UDATE.
SKIP.
WRITE:/001 ITAB-UDATE,
023 ITAB-USERNAME,
037(10) ITAB-VBELN.
WFLAG = 'X'.
WUDATE = ITAB-UDATE.
WCHANGENR = ITAB-CHANGENR.
ENDIF.
ELSEIF SOBID NE 'X'.
IF WVBELN NE ITAB-VBELN.
SKIP.
WRITE:/001 ITAB-VBELN.
WVBELN = ITAB-VBELN.
ENDIF.
ELSE.
IF WNAME NE ITAB-USERNAME.
SKIP.
WRITE:/001 ITAB-USERNAME.
WNAME = ITAB-USERNAME.
ENDIF.
ENDIF.
IF WCHANGENR NE ITAB-CHANGENR.
WRITE:/023 ITAB-USERNAME,
037(10) ITAB-VBELN.
WFLAG = 'X'.
WCHANGENR = ITAB-CHANGENR.
ENDIF.
IF WFLAG = 'X'.
WRITE: 013 ITAB-CHNGIND,
049 ITAB-POSNR,
057 ITAB-ETENR,
065 ITAB-INDTEXT(60).
ELSE.
WRITE: /013 ITAB-CHNGIND,
049 ITAB-POSNR,
057 ITAB-ETENR,
065 ITAB-INDTEXT(60).
ENDIF.
WRITE:/065 ITAB-F_OLD.
WRITE:/065 ITAB-F_NEW.
ENDLOOP.
FORM READHEADER.
CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
EXPORTING
DATE_OF_CHANGE = CDHDR-UDATE
OBJECTCLASS = CDHDR-OBJECTCLAS
OBJECTID = CDHDR-OBJECTID
TIME_OF_CHANGE = CDHDR-UTIME
USERNAME = CDHDR-USERNAME
TABLES
I_CDHDR = ICDHDR
EXCEPTIONS
NO_POSITION_FOUND = 1
OTHERS = 2.
CASE SY-SUBRC.
WHEN '0000'.
WHEN '0001'.
MESSAGE S311.
LEAVE.
WHEN '0002'.
MESSAGE S311.
LEAVE.
ENDCASE.
ENDFORM.
FORM READPOS.
LOOP AT ICDHDR.
CHECK ICDHDR-UDATE
IN XUDATE.
CHECK ICDHDR-USERNAME
IN XNAME.
CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
EXPORTING
CHANGENUMBER = ICDHDR-CHANGENR
TABLEKEY = CDPOS-TABKEY
TABLENAME = CDPOS-TABNAME
IMPORTING
HEADER = CDHDR
TABLES
EDITPOS = ICDSHW
EXCEPTIONS
NO_POSITION_FOUND = 1
OTHERS = 2.
CASE SY-SUBRC.
WHEN '0000'.
LOOP AT ICDSHW.
CHECK ICDSHW-CHNGIND NE 'E'.
CLEAR ITAB.
MOVE-CORRESPONDING ICDHDR TO ITAB.
MOVE-CORRESPONDING ICDSHW TO ITAB.
CASE ITAB-TABNAME.
WHEN 'KONVC'.
MOVE ICDHDR-OBJECTID TO ITAB-VBELN.
MOVE ICDSHW-TABKEY(6) TO ITAB-POSNR.
WHEN OTHERS.
MOVE ICDSHW-TABKEY+3(10) TO ITAB-VBELN.
MOVE ICDSHW-TABKEY+13(6) TO ITAB-POSNR.
MOVE ICDSHW-TABKEY+19(4) TO ITAB-ETENR.
ENDCASE.
MOVE '& %' TO ITAB-INDTEXT.
APPEND ITAB.
CLEAR ITAB.
ENDLOOP.
WHEN OTHERS.
MESSAGE S311.
LEAVE.
ENDCASE.
ENDLOOP.
ENDFORM.
TOP-OF-PAGE.
WRITE:/ SY-DATUM,SY-UZEIT,
50 'SALES ORDER CHANGE HISTORY',
120 'Page', SY-PAGNO.
WRITE: / SY-REPID,
60 'SALES ORDERS STATISTICS'.
SKIP.
ULINE.
IF SUDATE = 'X'.
WRITE:/001 'Change Date',
013 'Time',
023 'User Name',
037 'Sale Order',
049 'Line',
057 'Sch No',
065 'Changes'.
ELSEIF SOBID = 'X'.
WRITE:/001 'Sale Order',
013 'Line',
021 'Sch No',
029 'Change Date',
041 'Time',
051 'User Name',
065 'Comment'.
ELSE.
WRITE:/001 'User Name',
015 'Time',
025 'Change Date',
037 'Sale Order',
049 'Line',
057 'Sch No',
065 'Changes'.
ENDIF.
ULINE.
*--- End of Program
Regards
Shiva -
Lookup Table Name for Sale Order Types
Hello,
What's the Lookup table name that contains the "meaning" for the column ORDER_TYPE_ID in the OE_ORDER_HEADERS_ALL table?
Thanks,
SmitaThank you Srikanth!
I was just checking into the OE_TRANSACTION_TYPES table and it was empty!?
But OE_TRANSACTION_TYPES_TL did the trick!
Thanks again!
Smita:) -
Customize bapi for sales orders with customer fields
The situation is a following.
Customer has added a structure on table VBAP. They used Append but without include.
Now I have to make a BAPI that will be able to write on those fields. I have used several posts and documentation, but with on change : Instead of passing on BAPE_VBAP, BAPE_VBAPX, etc the original structure, i pass another that is an exact copy.
Could this be the source of the fact that i Dont write anything? The return struct contains tthese :
ORDER_HEADER_IN has been processed successfully
return..:
ITEM_IN has been processed successfully
return..:
But nothing is shown on vbapthanks for the reply, but this is something I knew. My problem was whether the structure added to those BAPE_* has to be exaxtly the structure appended to VBAP, or just an identical structure (eg if I appended VBAPEXT to VBAP, should I append VBAPEXT to BAPE_*, or could I use VBAPEXT_copy, which is exactly the same with different name)?
Anyway, we solved the problem and it seems that we can use an identical structure with same name. -
How to Generate sales orders with custom Fields using BAPI_BUSPROCESSND_CREATEMULTI
Hi,
I need to generate sales orders with custom fields on table CRMD_ORDERADM_H using BAPI_BUSPROCESSND_CREATEMULTI, after changing the structure BAPI_TE_CRMD_ORDERADM_H, and feed the EXTENSIONIN table of the BAPI with data, the order is created, but any value on custom fields.
After debuging, I saw that the BAPI search for structure conversion in table CRMC_OBJECTS_GEN, but we haven't entry with BAPI_TE_CRMD_ORDERADM_H in this table. is that the problem ?, Is there any way to fix it?
Best Regards,
Salah.That depends on where do you have the customer fields, check the table CRMD_CUSTOMER_H, if your custom fields are there, you need to use the changing parameter CUSTOMER_HEAD, I guess your already checked that one, right? but there's no custom fields, well...AET/EEWB doesn't enhance the strcuture of the BAPI, so you should do it manually, check the note following note for further details.
988410 - FAQ: User-defined fields in the BAPI
If you don't have access to the SAP Marketplace, in resume you should create an append on the structure BAPIBUS20001_CUSTOMER_H and include the following strcutrue CI_EEW_CUSTOMER_H
Cheers!
Luis -
BAPI For Create Goods Issue for Sales order with picked quantity
Hi friends,
Is there any BAPI available to create Goods issue For sales order with picked quantity...............?
we hv used BAPI_OUTB_DELIVERY_CREATE_SLS
with sales order .......its creating delivery order but not doing goods issue with piked quantity........pls,reply its argent
-
Table name for Invoice created with PO ref
hi,
I required Table name for Invoice created with PO ref.
Regards,
AliHI,
Check the table RSEG: Document Item: Incoming Invoice
Look for the fields BELNR and EBELN
Regards
KK -
Whats the fieldname and table name for purchase order delivery date
hi all,
whats the fieldname and table name for purchase order delivery date
thanks and regradsEKET-EINDT is the delivery date according to the schedule lines.
for example the line item has 100 qty.
it is sent in three schedules (40, 40, 20).
Then EKET will have 3 records for one PO Line item.
The final delievry data is the EKET-EINDT for the 3rd schedule line item.
Regards,
Ravi -
DIServer insert operations for sales orders with error
DIServer insert operations for sales orders with
That even though the insert is inserted DocDueDate DocDueDate it says error.
Subtracting the value of the format 'yyyy-mm-dd', 'yyyy/mm/dd', 'mm-dd-yyyy', 'mm/dd/yyyy' put all reporting
When the input is entered DocDueDate ShipDate also put together ... but I get an error.
The error message 'env: Receiver-10Enter due date [ORDR.DocDueDate] 171AddObject2EEE7D98-AB71-464A-93AB-933F0AD3D4DC'
Purchase order entered into the normal value because the xml is missing or wrong with you.
Please answer all the possibilities that can be resolved
This Xml used.
"<BOM>" +
"<BO>" +
"<AdmInfo>" +
"<Object>oOrders</Object>" +
"</AdmInfo>" +
"<QueryParams>" +
"<DocEntry />" +
"</QueryParams>" +
"<Documents>" +
"<row>" +
"<DocType>I</DocType>" +
"<DocDate>2012-01-11</DocDate>" +
"<DocDueDate>2012-01-11</DocDueDate>" +
"<CardCode>CD00001</CardCode>" +
"<Address>Anymode</Address>" +
"<DocCurrency>KRW</DocCurrency>" +
"<Comments>[sales orders] LGU TEST</Comments>" +
"<TaxDate>2012-01-11</TaxDate>" +
"<JournalMemo>JournalMemo</JournalMemo>" +
"<Address2>Addr</Address2>" +
"<BPL_IDAssignedToInvoice>1</BPL_IDAssignedToInvoice>" +
"</row>" +
"</Documents>" +
"<Document_Lines>" +
"<row>" +
"<ItemCode>ACDT0100ET</ItemCode>" +
"<Quantity>1</Quantity>" +
"<Price>5000</Price>" +
"<DiscountPercent>10</DiscountPercent>" +
"<WarehouseCode>A100</WarehouseCode>" +
"<VatGroup>A2</VatGroup>" +
"</row>" +
"</Document_Lines>" +
"</BO>" +
"</BOM>";I had the same error change the Date to the format yyyymmdd, and problem solved.
-
TABLE/FIELD FOR SALES ORDER'S SHIP TO LOCATION
Hi everyone,
Does anyone tell me what is the related tables/fields for Sales Order's Ship To Location? Since I want to display the Ship To Location information in the Oracle Report in Oracle Apps R11i.
I tried to use the following SQL select statement to retrieve the Ship to address:-
-- SHIP TO LOCATION
select a.address_id, c.customer_name, C.CUSTOMER_ID, A.SITE_USE_ID from ra_Site_uses_all a, ra_addresses_all b, ra_customers c
where a.site_use_code = 'SHIP_TO' and
a.status = 'A' and
b.address_id = a.address_id and
c.CUSTOMER_ID = b.CUSTOMER_ID and
b.status = 'A' and
c.customer_id in (select customer_id from ra_customers) and
c.status = 'A' and
c.customer_name like 'CLARION (H.K.)%'
But I found that the data is BILL TO address. Can anyone help me? Thanks.Hi all, I managed to solve my problem. Here's the query in case someone need it. Thanks
SELECT party.party_name "Send to" (SELECT party.party_name
FROM hz_cust_site_uses_all bill_su,
hz_cust_acct_sites_all bill_cas,
hz_party_sites bill_ps,
hz_locations bill_loc,
hz_parties party,
oe_order_headers_all h
WHERE h.invoice_to_org_id = bill_su.site_use_id
AND bill_su.cust_acct_site_id = bill_cas.cust_acct_site_id
AND bill_cas.party_site_id = bill_ps.party_site_id
AND bill_loc.location_id = bill_ps.location_id
AND bill_cas.party_site_id = bill_ps.party_site_id
AND bill_ps.party_id = party.party_id
AND h.order_number = 'your_order_number') "Invoice to"
FROM oe_order_headers_all h,
hz_cust_site_uses_all ship_su,
hz_cust_acct_sites_all ship_cas,
hz_party_sites ship_ps,
hz_locations ship_loc,
hz_parties party
WHERE h.ship_to_org_id = ship_su.site_use_id
AND ship_cas.party_site_id = ship_ps.party_site_id
AND ship_su.cust_acct_site_id = ship_cas.cust_acct_site_id
AND ship_cas.party_site_id = ship_ps.party_site_id
AND ship_ps.party_id = party.party_id
AND ship_loc.location_id = ship_ps.location_id
AND h.order_number = 'your_order_number'; -
Table for sales order with incoterms
Hi all,
In which table can i get sales orders with incoterms details.
In VBAK and VBAP it is not available
Regards'
Mano> In which table can i get sales orders with incoterms details.
>
> In VBAK and VBAP it is not available
Hi,
Go to SE16, and type the table name as VBKD. This is the table where all the inco term details are given.
In the new screen, against VBELN, give the sales document numbers for which you want the inco term details and then click on execute.
You will get the info you require.
Hope you find it useful.
Regards,
Swapna -
Report for sales orders with abnormal discounts
Hi
We have a discount condition type say ZDIS with 10% which is not changeable manually in sales order..But incase if the user has changed the condition master to 12% and created the sales order with 12%disc...Hence i need a report, the list of sales orders with the abnormal discounts..(the sales orders with the discount value more or less than 10%)..
How do i get this report..Kindly provide me the table names&logic ...
Reg
JJWe have a discount condition type say ZDIS with 10% which is not changeable manually in sales order..But incase if the user has changed the condition master to 12% and created the sales order with 12%disc...Hence i need a report, the list of sales orders with the abnormal discounts..(the sales orders with the discount value more or less than 10%)..
How do i get this report..Kindly provide me the table names&logic ...
Select KNUMH where KONP-KSCHL EQ ZDIS ( Condition record number)
Select KONV-KNUMV Where KONV-KNUMH EQ KONP-KNUMH
Select VBAK-KNUMV where VBAK-KNUMV EQ KONV-KNUMV
Then with the help of ABAPER hard code the condition amount (KBERT>10%)
Regards
Rohit -
How settlement rule will be created for Sales order with cost object
Dear Experts,
We are using product cost by sales order with valuated stock. In addition we are not using COPA
We also consume some materials at sales order level and at the end of month we want to do the result analysis and settlement for the same amount. In this case can any on explain how system will behave regarding settlement of sales order cost and what entries will get pass in the system.
In our case we have done below activities...
we have created sales order,
All production order activities completed till final GRN including month end activities
Material consumption against sales order
Result analysis executed
At the time of sales order settlement, system throwing error (Sender doesn't have valid receiver, please create settlement rule for sender object)
Then i checked in sales order there sales order settlement rule not defined.
I guess this settlement rule need be generated by system automatically. If not, please let me know the process of it.HI kishore
the reason is that sale order always carry the revenue and production order and production period carry the cost .
cost you can settle to the Material and even management want to be settle the cost to material only in production order OR period
but in sales order when u sell the product it carry the revenue not the cost and management want see and analysis based on profitability segment are profit center level .
Prerequisites
If CO-PA is active, the system generates a settlement rule when you create the sales order. The settlement rule determines whether data is settled to other objects or other areas in Controlling. In accordance with this settlement rule, the relevant data is settled to CO-PA.
If CO-PA is not active, create a settlement rule. This settlement rule that you create manually normally contains a G/L account as a receiver (such as 399999). You can also settle costs and revenues or results analysis data to objects with revenue.
You can also settle the cost of sales calculated in results analysis to a fixed asset or a cost center. To do this, you must add to the allocation structure the results analysis cost elements under which the cost of sales is updated to the order.
The settlement rule includes a distribution rule for the sales order item. The distribution rule is made up of a settlement receiver, a settlement share, and a settlement type:
The settlement receiver (such as profitability segment or G/L account) specifies the object to which the actual costs and revenue of the sales order item are settled. The settlement receiver can be proposed through the settlement profile.
The settlement share defines the percentage or the equivalence numbers used to distribute the costs to the individual settlement receivers. The settlement share for sales order items is usually 100%. A settlement share of 100% is preset in the system.
The settlement type specifies full settlement of the sales order item. This ensures that all the data on the sales order is available for results analysis.
Settlement still takes place in each period. The revenues and the cost of sales are transferred to CO-PA by period, and the work in process and the reserves are transferred to FI. -
Product valuation for Sales order with itemizations
Hi experts,
I'm trying to find a data source which extracts Product valuation for sales order, and which is important, with itemizations. This is for the KMAT material. I tried 0CO_ACT_* and 0CO_PC_PCP_* but found no proper one.
The closest one is 0CO_PC_PCP_03 but which only extracts normal material instead of KMAT.
Points will awarded.
B'R
AaronI found it.
0CO_PC_01
Cost Object Controlling: Plan/Actual Data
Maybe you are looking for
-
Configure SSO Connection from SAP Enterprise Portal to BOE Server
Hi Guys, We recently installed a BOE Server and want to connect it to our SAP Enterprise Portal. What we need is just to display the Crystal Reports via Enterprise Portal. We have set up the following: SAP EP with AD Authentication SAP EP configured
-
Hello when i made the upgrade for my iPod touch 4g 32 Go ios 6 now i cannont do anything it is close
-
I have tried resetting and restoring also but it just wont sync music!
-
Support for Software Configuration Management(SCM) Tools
Hi!, I am using JDevloper for my project. I want to maintain the versions of all files in the project.Also,if all are using one Workspace on network and someone updates a file then message box got dispalyed asking for reloading buffers again. So to a
-
When starting up, my screen turns black, why is this?
When starting up, my screen turns black, why is this?