Shippment, sales delivery tables
Hi Friends,
Can any one help me on..
How MKPF table is linked with the Delivery, LIKP LIPS or the Shipment VTTK, VTTP or with the sales tables VBAK VBAP.
I have data in my Internal table which is a pull from Sales, Delivery and the Shipment table. I need to add MKPF-MBLNR to this internal table.
Any suggestions.
Ster.
Hi,
Please check table MSEG.
MSEG-KDAUF = VBAP-VBELN
MSEG-KDPOS = VBAP-POSNR
Regards,
Ferry Lianto
Similar Messages
-
Crystal Report for Sales, Delivery and Payment.
Hi Guys,
Need some expert advice over here. Currently, our sales team are using 3 separate report, one report on sales per month for each specific customers, one report on delivered amount per month for specific customers again and the last one report on payment received per month for specific customers as well.
We have the idea of joining this 3 report so that I can report on sales, delivery and payment all at once so that they can see the trend better. However, after trying for quite a few times, we fail to create a common joining between ORDR, ODLN and ORCT. Is there any possible way to work something out ?
I have thought of using subreport, but I just cant find the way to plug in the figure correctly.
Need some advice over there.
Thank you.
Best Regards,
AlexBased on what you have told me, then you should then join Sales Order, Delivery, Invoice and Incoming Payments into one.
The reason I say Invoice table also is because, you cannot directly link Delivery and Incoming Payments window.
Also you it is not enough that you link the ORDR, ODLN and ORCT, you will need to get the details from RDR1 and DLN1.
In SAP Business One, each line in SAP Business One can have a different Delivery documnet.
The TrgetEntry, TargetType will give you this information. For example, if a line for Sales Order has TargetType 15, then TrgetEntry will be the DocEntry in the ODLN. But if it TargetType is 13 it means the Sales order was converted directly to and Invoice and bypassed the creation of Delivery step, which is possible in SAP.
So here is how I think you will need to link Sales order and Delivery
RDR1.TrgetEntry INNER JOIN DLN1.DocEntry AND
RDR1.TargetType INNER JOIN DLN1.ObjType AND
RDR1.LineNum INNER JOIN DLN1.BaseLine
Now this could get a little more complicated if you do partial deliveries. For example if a line in your Sales Order has say 10 items and 6 of them are delivered using Delivery Note 123 and the remaining are delivered using Delivery Note 124, then the join will give you 2 different lines.
So basically you will need to link the tables in this fashion
ORDR <-> RDR1 <-> DLN1 <-> INV1 <-> RCT2 <-> ORCT
Unfortunately, this linking process can get complicated if you do not follow certain steps, like for example if you do not create a Delivery Note and converted your Sales order to Invoice. Then the link would be
ORDR <-> RDR1 <-> INV1 <-> RCT2 <-> ORCT
I hope I didn't confuse you.
Krishnan -
I want to bring the sale order table to BI. What are the activities required to be done in r/3 as well as in bi.
Hi.........
It depends which fields u want to extract..............If there are any Standard Datasource then u can use it...............otherwise u can go for Generic datasource.............since SD belongs to LO Extraction...........U hav to follow the below Steps........
The following section describes the steps that are necessary to configure a data
flow for logistics data extraction.
1. Transfer the logistics DataSource for transaction data from Business Content
With the transfer of the DataSource, the associated extraction structure is
also delivered, but the extraction structure is based on LIS communication
structures. Furthermore, based on the extraction structure for the DataSource,
a restructuring table that is used for the initialization and full update to BI
is generated.
Naming convention:
DataSource 2LIS_<Application>_<Event><Suffix>; where <Event> is
optional
Examples:
2LIS_11_VAITM: 11 = SD Sales VA = sales order, delivery schedule ITM
(u2192 ITEM) = document position
Extraction structure MC<Application><Event/group of
events>0<Suffix>; where MC is derived from the associated communication
structures and <Suffix> is optional
Examples:
MC11VA0ITM: Extraction structure for the DataSource 2LIS_11_VAITM
MC02M_0HDR: Extraction structure for the DataSource 2LIS_02_HDR,
where M_ indicates the group for the events MA (order), MD (delivery
schedule), ME (contact) and MF (request).
Restructuring table (= setup table) <Extraction structure>SETUP
Example:
Extraction structure: MC11VA0IT u21D2 Restructuring table:
MC11VA0ITSETUP
2. Maintain extraction structure (transaction LBWE)
This means that fields can be added to the extraction structure that is
delivered with the DataSource without modifying anything. On the one
hand, fields from the LIS communication structures that are assigned to the
extraction structure can be used, that means standard fields that SAP has
not selected, and on the other hand, customer fields that were attached to
the LIS communication structures with the append technique can be used.
After the extraction structure is created, it is generated automatically and the
associated restructuring table is adapted.
3. Maintain/generate DataSource
In the DataSource maintenance, you can assign the properties Selection,
Hide, Inversion (= Cancellation) and Field Only Known in Customer Exit to
the fields of the extraction structure. After enhancing the extraction structure,
the DataSource always has to be generated again!
4. Replicate and activate DataSource in SAP BI (=metadata upload)
5. Maintain Data Target (Data Store Object, InfoCube)
6. Maintain Transformations between DataSource and Data Target
7. Create a Data Transfer Process
the Data Transfer Process will be used later to update the data from the PSA
table into the Data Target.
8. Set extraction structure for updating to active (transaction LBWE)
In this way, data can be written to the restructuring table or the delta queue
from then on using the extraction structure (see following steps).
9. Filling the restructuring table/restructure (OLI*BW)
During this process, no documents should be created or changed in the
system! In some applications, it is possible to fill the restructuring table
beforehand in simulation mode. These results are listed in a log (transaction
LBWF). Before filling the restructuring table, you must ensure that the
content of the tables is deleted (transaction LBWG), preventing the table
from being filled multiple times. Once the restructuring tables are filled,
document editing can resume as long as Unserialized V3 Update or Queued
Delta is selected in the next step. Be absolutely sure that no V3 collection
run is started until the next successful posting of an InfoPackage for delta
initialization (see step 11).
10. Select update method
Unserialized V3 update
Queued delta
Direct delta
11. Create an InfoPackage for the DataSource and schedule the Delta
Initialization in the Scheduler
This updates the BI-relevant data from the restructuring table to the
PSA table. Since the restructuring table is no longer needed after delta
initialization, the content can be deleted (transaction LBWG).
Use the Data Transfer Process created in step 7 to update the data from
the PSA table into the Data Targets. After successful delta initialization,
document editing can resume, as long as the direct delta update method
was selected in step 13. This means that BI-relevant delta data is written
directly to the delta queue.
Note:
If the DataSource supports early-delta initialization, the delta data can
be written to the delta queue during delta initialization. This feature is
controlled with an indicator in the Scheduler.
12. Start V3 collection run (transaction LBWE)
This step is only necessary when the update method unserialized V3 Update
or Queued Delta was selected in step 10. By starting a corresponding job for
an application, the BI-relevant delta data is read from the update tables or
extraction queue and written to the delta queue.
13. Create an InfoPackage for the DataSource in BI and schedule the Delta
Update in the Scheduler
The BI-relevant delta data from the delta queue for the DataSource is updated
to the PSA table. Use the Data Transfer Process created in step 7 to update
the data from the PSA table into the Data Targets.
And if u want to create a Generic datasource............use tcode RSO2.................if u r Extracting data from a single table...........then create the datasource based on the condition table.................if u r extracting from two or three tables go for View...............and if u r extracting data from many tables...........its better to go for function module...........If u don't know how to create generic datasource.........U can search in Forum.............u will get good documents..........
Hope this helps.........
Regards,
Debjani............... -
Linking column for sales,delivery and invoices
I just have a question regarding database schema in SAP B1.
I would like to know how SAP b1 links
Sales Delivery and invoices
In other words
i want to know all invoices based on Sales and delivery
all invoices based on just delivery etc
What is the linking field or column between these three tables
rdr1, dln1,inv1
How does Sap keep track of whether a invoice is based on sales or delivery or
both.? I appreciate your help.
Thanks,
JoshHi Joshua,
What you need to look at are the BaseEntry, BaseType and BaseLine fields in the item row (ie INV1 or DLN1). It works as follows:
BaseType = The originating document type where 17 is a sales order and 15 a delivery
BaseEntry = The DocEntry of the originating document
BaseLine = The LineNum of the originating document
A simple example is as follows:
1) I create an order (DocEntry 10) with 2 rows (LineNum 0 and 1)
2) I create a delivery (DocEntry 5) based on this order with both rows. In the DLN1 table my rows will have BaseEntry 10, BaseType 17 and BaseLine 0 and 1.
3) I create an invoice for the second row from the delivery. In the INV1 table I will see BaseEntry 5, BaseType 15 and BaseLine 1.
You also have TargetType and TargetEntry which show the target document details but these are not that useful as they only show the last target number and type and cannot be used where you have multiple target documents.
Kind Regards,
Owen -
Purchase order and sales order table name
hi al,
i want to know purchase order and sales order table name in abap.
thanks
varun
Moderator message: please do some own research, this should not take too long.
Edited by: Thomas Zloch on Jan 27, 2012Hi Sunrag......
If your PO is linked with SO. Then you can fetch customer name easily by FMS in PO.
From there you ca gte the Customer Name into your PLD and it wont hang also.....
Regards,
Rahul -
Creating Excise Invoice from Sales Delivery using DI API.
Hi Experts,
I have been searching a lot for any Business Object for creating Excise Invoice base on Sales Delivery using DI API.. But have not yet found any one.
I want to create Invoice for excisable items from Sales Delivery using DI API.,for Excisable items we cannot create standalone A/R Invoice . We need to create Excise Invoice also . But How to create Excise Invoice based on Sales Delivery using DI API. Is there any Business Object for that.
Please suggest me.
Thanks and Regards,
Pooja Singh.Hi all,
I have not received any reply for this thread. Does this mean that there is no provision for creating Excise Invoice from Sales Delivery ? Actually I was asked to create sales delivery and then Outgoing Excise Invoice and then Sales Invoice using DI API.
But I don't find any Business Object for this in SDK ? Is it really not possible to create Outgoing Excise Invoice from Sales Delivery using DI API.? If possible then how?
Please reply me if anyone has got any idea in this regard.
Thanks and Regards,
Pooja Singh. -
Correct procedure to transfers Sales Delivery to Sales A/R Invoice
Hi,
Is there someone who can white some code to explain the best way to transfers a Sales Delivery to A/R Invoice with the SDK the same way as Copy To (A/R Invoice) from the Delivery window in SAP ?
I've been successful at transfering one by hand saving every properties of the document source to the document destination for a simple document
but now I'm faced with documents that have BP's with Credit Limit exceeded etc..etc and I'm getting (XXXX) Internal Error (-5002) occured
Which XXXX is different from one document to anotherHi Marc,
I don't think there is a simple procedure as such because there are quite a few ways to code this, depending on your requirements. It obviously gets more complex where you are copying multiple deliveries to a single invoice or splitting a delivery in to multiple invoices based on the originating orders. If you use additional expenses (eg freight) then you also need to copy this across otherwise it will be left on the delivery and never invoiced.
It makes sense to check for available credit before you add an invoice. In this way you can give a much more user-friendly error message than the one that SBO gives (ie the 5002 error). You'd still need to trap any errors returned by the Add method.
Kind Regards,
Owen -
Block the Quantity in Sales Delivery
Hi,
I want to block the Quantity in Sales Delivery if it is Exceeding the Quantity in Sales Order.
The scenario is..............
I m creating a sales order for one or more line items with Quantity as 100.
based on this sales order i m creating a Sales delivery (it can b partial too)
if the Deliver Quantity exceeds the Order Quantity,
either it shoudn't allow the Document to b added
or show a error msg
Thanks in advanceHi,
Please select this and paste in "SBO_SP_TransactionNotification"- Stored Procedure
IF @transaction_type IN (N'A', N'U') AND (@Object_type = N'15')
BEGIN
declare @numlinii int
SELECT @numlinii = (LineNum + 1) FROM DLN1
WHERE DLN1.DocEntry = @list_of_cols_val_tab_del AND
((Quantity > BaseOpnQty))
ORDER BY LineNum ASC
IF (not ISNULL(@numlinii, 0) = 0)
BEGIN
SET @error = 10
SET @error_message = N'Quantity is invalid in Line ' + CONVERT(nvarchar(4), @numlinii) + N' !'
end
END
SAGAR -
Multiple printing option of Sales, Delivery and Billing
Hi All,
How to take multiple print of sales, Delivery and Billing from Standard transactions.Hi
You have to handle in the driver program by writing the function modules
START_FORM....WRITE FORM...END_FORM in the loop of documents
example for sales orders:
Sort ITAB by vbeln.
loop at ITAb.
at new VBELN.
call function START_FORM....
endat.
call function WRITE FORM.
at end of vbeln.
call function END_FORM..
endat.
endloop.
Reward points if useful
Regards
Anji -
Repeated entries in VAPMA-sales index table-order item
Hi,
I want to know in which scenario SAP system create repeated entries in VAPMA-sales index table for same material and same order.as in my scenario system had created a repeated entries in VAPMA for same material in sales order.so it looks like duplicate entries except there is difference in some of the primary keys.
Thanks
Manish GuptaUhm... VAPMA is just an index table of VBAP/VBAK entries, so when you have different key fields that's when you'll see the "repeated" entries. When the key fields are different it's not a duplicate.
-
Creation of Sales Delivery via SDK
Hi,
I'm using SAP B1 2004A(6.70.190) PL32.
Can anyone tell me definitively, if it is possible to create a Sales Delivery based on MULTIPLE Orders for the same BP, via the SDK?
Thanks for any help,
RobinIf anyone is wondering, you can...
-
Exit to block Sales Delivery and Invoice?
Hi Experts,
Does there exist any exit to block the sales delivery and invoice?badi LE_SHP_DELIVERY_PROC
Regards. -
Invoice Receipt document (TABLE RBKP) based on Sales Order (table VBAK).
Hi Folks,
I have to find Invoice Receipt document (Table RBKP) based on Sales Order (table VBAK).
Please tell me how the two documents are linked.
Thanks,
PunitI don't know table RBKP, but I would start by seeing if I could find the value of RBKP-BELNR or XBLNR as the next document in table VBFA. If found, then you know how to read VBFA forward from sales order (VBAK) to VBFA with correct next document type, then to RBKP with the document number....
Don't know if this will work, but this is the first approach I would take. -
Approval Query for Sale Delivery Problem
Hello,
I have to set approval procedure of Sale Delivery in following condition
If i add sale order for Specific item for 10 Qty for example C01 customer & after that i add sale order for same item qty 10 for another customer ie C02 & i have stock for that item 50 but user give delivery first to C02 in staid of C01 but C01 give me first order
on this condition i have to set approval user can't deliver second sale order first he have to take approval from manager to do this & he deliver first order first then then don't have to need approval.
Can any one help me?Hi,
Row level approval is not possible in SBO.
You may check this for your reference: http://www.beonesolutions.com/ip/Solutions/ap.html
Thanks,
Joseph -
Sales charges in Sales Fact table
Hi
I need to build a Sales Fact table, i am putting Order No, line No, Product Sold , Quantity sold, Unit Price.
How can i add Order charges to this table? As this is a charge on the order level and not on the order line level. Will this duplicate the value of Order Charge when i create my reports later if i have an Order with multiple Order lines ?
Thank you.The 'correct design' depends entirely on the business requirements. The business needs to answer the question 'What do we need to know about sales?' The design then needs to support the business requirements. I can see several potential
scenarios so I can't answer that question for you. Does the company treat shipping as a pass-thru cost? The customer pays the shipping charges? If so, then it's relevance would be only related to analyzing if shipping costs are effecting
sales volume. It would not have an effect on product sales and margin so it likely wouldn't be needed in a sales fact table. Then again, does the company offer 'free shipping' on purchases over a certain dollar amount? If so, is the shipping
cost that the company pays factored into the gross margin of the product? Is it effectively treated as a sales discount? If so, then that shipping cost would need to be SKU-allocated to the cost of the ordered items.
See? There is no one-size-fits-all answer as it depends entirely on the business rules. The one thing that does apply is the concept of granularity... items on an order are the lowest grain. Order-level items are a level above that.
For shipping charges to appear in a sales fact table would require either the charge to be a separate item on the order, or an allocation of the charges to be pro-rated out to the other items ordered.
Makes sense?
Maybe you are looking for
-
Can you use iCloud with garageband on a mac?
i know you can use it on a phone and ipad.but i cant figure out how to do it with mac.(i want to upload songs on there to access from other devices)
-
Hi GRC Experts Can anybody please share his experience/knowledge on role of Netweaver Administrators in GRC Process Control & Access Control? Thanks in Advance Varun
-
My iPod classic 120 GB is not recognized on MacBook pro
I have tried all the resets and other recommended remedies but I can't get my MacBook or my hp pc to recognize the iPod. The battery is fully charged, all music plays. What next can I do?
-
Tranforming a Preference in Expression builder expression
Hi there. I have a BPEL processo Preferecence populated with something like: concat('this is a test: ', bpws:getVariableData('inputVariable','payload','/client:TesteDescriptoresProcessRequest/client:input')) And when I do the ora:getPreference('TestP
-
Tape does not expire after 2 weeks
Hi Guys, I have looked all forums and tried registry fix to expire HKLM\Software\Microsoft\Data protection manager\Media manage\ExpiryDatesetondaystart and set the value to 1. I have got two sets of tapes Monday to Friday being used for long term pr