DTW - Line Status in Marketing Documents
In SBO 8.8 SP00 PL13, I'm trying to load Sales Orders and use the "LineStatus" column to set the row to either 'Open' or 'Closed'. The SDK indicates that valid field values are bost_Open or bost_Close. The database column contains either 'O' or 'C'. However, it seems that DTW only accepts a value of 'O'. Thus, there is no way to load, or later change, a row status to closed within DTW.
There also is no field to set the entire SO to a closed status. If it were possible to set all rows to closed, then I presume the document itself would be closed when all lines have been entered.
I guess the only alternative is to load all lines as open, and then write a short app that uses the bost_ values to later update the status via DIAPI.
Dave
We are loading historical sales orders from a legacy system so that the customer can continue to track the items, quantities, and dates sold at various customer locations. The customer is a large, multinational organization that requires access to this history to drive their daily processes. We've already verified the data load techniques and the customer is satisfied. The only hickup was setting the line status of the documents, per my original message.
The SOs and POs are being loaded as documents connected to an Activity, which is connected to a Service Call, which is in turn connected to an Equipment Card. Most of the 58k order lines are closed, and needed for reference purposes only. These are the lines that I will close after loading, so that they do not continue to drive demand. The open order lines will, of course, be left open and be managed under the standard business flows.
Similar Messages
-
Field Freight 1 Acquisition in marketing documents
Hello All,
Can any-one tell me the behaviour of the field Freight 1 Acquisition in the lines of the marketing documents.
In my case it is automatically filled with the value 'N' and I'm not able to change it.
Thanks for your help!
gr. FreekHi Freek
This is for acquisition tax and will correspond to your tax group settings. The tax group selected under Freight 1 Tax Group in your case will force a no as this tax group is not configured as an acquisition type. The acquisition tax is only relevant to EU countries.
Kind regards
Peter Juby -
Sales order - update line status to close the document with DTW
Hi everybody,
yesterday i tried to update the line status of sales order lines from "O" to "C" with DTW. At first he ask me for DocRate. Then set DocRate to "1". After then DTW wrote, that I can't update the lines, during update the document... Can someone help me..., maybe with an example for DTW.
Happy new year to everyone.
Best regards
StefanHi Stefan Ressel,
Welcome To SAP Community Network Forum
Sales Order line status close that means for particular line Item Quantity Delivered through Delivery document and sales order line status open to close.
OR
You have to manually close Sales Order line status without delivered Quantity.
Check in your case Item Quantity are to be delivered through Delivery document. Right click on line & check Target document.
If Sales Order Item Quantity are to be delivered through Delivery document then SAP restrict to update line status.
Thanks,
Srujal Patel -
How can I retrieve the document line status value from UI
Hi,
Right now I need to do some check with the each document line status in UI, but it seems it doesn't exist in the the matrix. When I try to use code like this:
oEditText = (SAPbouiCOM.EditText)oMatrix.Columns.Item("LineStatus").Cells.Item(i).Specific;
It gives me Invalit Column error, I guess the line status field does not exist in the matrix. Do I have to use DI or SQL query to retrieve the like status value?
Thanks,
LanIf the document is open on the screen, you can of course get line status from the UI.
It is column 40:
oEditText = (SAPbouiCOM.EditText)oMatrix.Columns.Item("40").Cells.Item(i).Specific; -
Hi,
I developed an addon that creates the invoices with special logics leaving from the delivery.
I loop on the delivery line but I don't find the line status in DI API.
For example if a line has been returned (Shipment Return) how can I not consider this row?
Do I have to use a recordset with a query?
Thank you
AndyHi,
Do you mean that the property LineStatus (Open / Close) does not provide information that is detailled enough for your purposes?
In this case I think you are right (if I didn't overlook something):
You need to run a query for that purpose.
Sorry,
Frank -
Line Discounts on Sales Documents
Hi All,
On a current implementation, our client offers a standard discount to each of his customers. This discount is across all items but will differ for each customer. I have set this up in the OCRD.Discount field against the BP. This works fine but only calculates at document total level, not at line level.
The client needs to show their clients a list price, item discount and net price, so this solution is not acceptable.
Without using any coding, the only solution I can think of is to set up BP Special Prices for each client, but this seem like a huge overkill?
Is there a way of coding to pick up a discount from a UDF in the client record to populate the line discount field on the marketing document, unless there is already a BP Special Price in existance for the client / product?
Any help would be appreciated.
Kind regards,
IanHi Dave & Suda,
Thanks for your input. To clarify, the client has a number of standard discounts raising in 2.5% from 25% to 60%, so by my calcualtion, this would require 14 different price lists.
Whilst this is acheivable and has the benefit of rolling any price increases / decreases through from the master price list, it will not deliver the required information at item line level.
The sales document will show the list price as the discounted price from the price list, not he list price from the matser price list and the discount.
i.e. if PART A has a list price of £10.00 and is on 'discount price list 20%' @ £8.00 when the item is drawn down for a client assocuated to this price list, it will show as a price of £8.00 not £10.00 less 20% giving a net price of £8.00.
For this reason, it will not work in this instance.
This leaves one option using the standard system functionallity, as far as I can see, which is to generate a customer special price list for each client, holding all stock records at their relevant discount %.
Based on the fact they have approx 1500 client & 1500 stock records this would equate to 22,500,000 records, and this worries me!
Also, the mechanisam for copying these is obly viable by customer group (already used for somthing else) or properties, which would mean reserving 14 for this reason alone.
I am sure the better solution would be to use a UDF on the customer record card to contain their discount% and use a formatted search to populate this into the discount field at line level, if there is nothing there already.
I just don't have the coding skills to do this and wondered if anyone could give me a head start.
Many thanks,
Ian -
Changing Status of preceeding document in CHARM
Hi Experts ,
I need to change the status of a preceeding document in CHARM.
I created a YDAD document from YDCR.
When i change status of YDAD to cancelled i need to change status of YDCR to Cancelled.
Steps i followed :
1 . While changing status of YDAD to cancelled i added a new parameter PREDOC_STATUS and given status of YDCR as E0009.
2. In "Assign actions" for status "cancelled" of YDAD i hve given a action SET_PREDOC .
3.In "Specify Status Attributes" for status "cancelled" of YDAD i hve given YDCR YDCRHEAD E0009.
But still it is not working . Please help me on this .
Thanks , VijayHello,
please take a look to this Re: Change status of previous document
If solution is not provided; please put break points as stated lines and tell us what you see
Regards
Khalil -
Searching DI API Property for column text in marketing document
Hi,
I am searching the property for entering information into the column rdr1.text.
I found the following information in the help file:
ItemDetails Sets or returns the item details in the marketing document line.
Field name: Text.
Length: 16 characters.
Text Returns the text property.
Field name: text.
Both properties are not working because the second one is a read only field.
Thanks and Regards ChrisHello Chris,
you may try the property "FreeText" of DocumentLines.
Cheers,
Roland
PS.:
You can switch on the system-information (CtrlShiftD).
Then in the bottom of B1 the propertys of a form-field are shown on mouseover. This helps often to find the right keyword for the SDK-Help.
In this case it shows the column name in DB: "FreeTxt"
Edited by: Roland Toschek on Mar 10, 2009 3:07 PM -
Unit Price and Document Total in a Marketing Document
Hi Experts,
I am trying to post a marketing document through the DI API. I have assigned value to the document lines as follows:
sapDocument.Lines.ItemCode = items.MaterialCode;
sapDocument.Lines.Quantity = items.Quantity;
//sapDocument.Lines.Price = items.Price; // tried assigning to both Price and Unit Price
sapDocument.Lines.UnitPrice = items.Price;
//sapDocument.Lines.LineTotal = items.LineTotal // Also tried assigning this.
All my documents have been successfully posted in SAP Business One except that there is no Price saved and therefore follows that my Line Total and Document Total are all 0.00.
Hope someone could help me out.
Thanks.
Melvin BalingitHello Guys,
So the correct method is
first assign the unitprice, than assign the qty.
Dim oDoc As SAPbobsCOM.Documents = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
oDoc.CardCode = "C20007"
oDoc.DocType = BoDocumentTypes.dDocument_Items
oDoc.DocDueDate = Today
oDoc.Lines.ItemCode = "A00002"
oDoc.Lines.Quantity = 2
oDoc.Lines.UnitPrice = 100
oDoc.Lines.Add()
oDoc.Lines.ItemCode = "A00003"
oDoc.Lines.Quantity = 2
oDoc.Lines.UnitPrice = 100
If oDoc.Add <> 0 Then
MsgBox("Erreur " + oCompany.GetLastErrorDescription())
Else
Dim newCode As String = oCompany.GetNewObjectKey()
MsgBox(newCode)
AddInvoiceEx(newCode)
End If
Regards
János -
Sales BOM - Allow to delete individual components on Marketing Documents
At the moment, we are not allowed to delete the individual component on the Marketing Document.
I faced a scenario that some client need to substitute a higher value component if there is insufficient quantity of a cheaper value that can be delivered. Currently they have to ship out the higher value component and ship in the lower value item to increase the quantity on hand before cutting the invoice. This involves three steps which can be reduced to a single step if i first defined a Sales BOM with all possible alternatives and let the user decides which item to be shipped out and delete the lines which are not shipped out.
Of course, you also have to take into consideration during version upgrade, that it should not be looking at the BOM anymore to pump unnecessary lines into OINM.
Thanks
Regards
YG LimHi
oItems = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems)
oPT = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oProductTrees)
opt.Items.Warehouse="WarehouseCode"
oPT.Items.Add()
RetVal = oPT.Add
If RetVal <> 0 Then
oCompany.GetLastError(ErrCode, ErrMsg)
MsgBox(ErrCode & " " & ErrMsg)
End If -
Status Message - Park Document
Hi All,
In F-64 Park Document, while Parking, a Document Number appears in the status bar as Document '510000001' was parked. How to retreive this number into transaction Display Document 'FB03'in Document Number Field.
Or how to get that number into a table field. Since i want to display the line items of the parked document,i need to store the document number in a table field.
Can anyone help me out to solve it.
Regards,
Suryai am uable to Understand what are u trying to get ?
1.If u using BDC to park the document, in the Return messages u will get the Park Document Numer.
2.If it wis manual Entry no body can help.
Regards
Prabhu -
WSH DELIVERY LINE STATUS에 대한 해석
제품 : MFG_SE
작성날짜 : 2003-11-20
WSH DELIVERY LINE STATUS에 대한 해석
====================================
PURPOSE
Delivery line status는 현재 진행중인 shipping process가 어떤 상태인지를
보여준다.이 status를 잘 인식하고 있으면 shipping process에 문제가 발생할
경우 여러 도움을 줄 수 있다.
Explanation
Delivery line의 released status는 진행중인 shipping process의 progress
를 나타낸다.이 released status는
Oracle Shipping Execution Shipping Transactions window나,
Oracle Order Management Order window/Actions button, Additional
information, Delivery tab에서 조회할 수 있다.
Delivery line status를 조회하기
1. Navigate to the Query Manager window, delivery lines를 찾으면 이
delivery lines이 Shipping Transactions 화면에 조회된다.
2. Line을 선택하고 Detail button을 click하면 Pick Status field에
조회된 delivery line의 현재 status를 보여준다.
3. Main tab으로 이동하기 위해 Done button을 click 한다.
4. Main tab에서 Pick status column이 보이도록 right scroll을 사용한다.
Delivery line statuses의 차이점
===============================
-.Not Applicable (Code: X)
: delivery line이 invoice 생성은 가능하나 non-shippable.
ex) service line, warranty line
-.Not Ready for Release (Code: N)
: delivery line이 pick release를 할 수 있는 상태가 아님.
이런 상태는 보통 order line이 Import Delivery Line Concurrent process
를 이용하여 manual하게 Shipping Execution에 import된 경우이다.
이는 Awaiting Shipping workflow acrivity에 도달하지 못함을 의미한다.
-.Ready for Release (Code: R)
: pick release가 가능한 delivery line.
Order line이 Awaiting Shipping workflow activity에 닿아 있는 상태.
(Booked, Scheduled)
-.Submitted to Warehouse (Code: S)
: Pick release가 delivery line을 진행시켰으며, move order header, line
을 생성, available qty를 찾아 inventory allications을 생성.
Pick confirm은 아직 하지 않은 상태이나, 만약 pick release시 auto-pick
confirm을 사용했다면 status를 release에서 Staged로 바꾼다.
Auto-pick confirm을 사용하지 않았고 delivery line을 계속 진핼시키려면
Inventory Move Order Transaction 화면에서 pick confirm을 manual하게
실행한다.
-.Staged (Code: Y)
: delivery line은 pick confirm 되었고,inventory는 storage subinv에서
staging subinv으로 transfer 되어진 상태.
ship confirm 실행 전까지는 staged 상태로 남아 있다.
-.Backordered (Code: B)
: Pick release가 delivery line을 진행시켰으나 entire 수량을 찾지
못했을때 -Inventory에 충분한 material이 없거나 inventory balance가
안 맞을때- backordered 상태가 된다.
-.Shipped (Code: C)
: delivery line의 delivery가 ship confirm 되고, OM/INV interface
processes가 완료되었으며 trip 또한 closed 된 상태이다.
-.Cancelled (Code: D)
: delivery line에 연결되어 있는 order line이 cancelled 된 상태이다.
Example
Reference Documents
Note 205708.1 -
Cancelling Marketing Documents
There is a feature not present in SAP Business One that would help to get a better fit of SBO at our customers: The ability of cancel some marketing documents, such as Invoice, Delivery, Returns, and other marketing documents that do not have this feature.
Sometimes, users do make mistakes. And, in order to correct thos mistakes, they need to create a "reverse" mkt doc to cancel the document created in a worng way. The problem with this approach is that those documents (create with the purpose of cancel another mkt document) mix with the same mkt documents create in a regular way (i.e. "real" documents).
By creating the "cancelling" feature, SBO can produce journal entries in order to annul mistake maded by user (preserving the architecture of SBO in this matter), but setting the status of document as "cancelled".Dear Vincent Motte,
We are located in Brazil. Here, the Invoice is a legal document, and it can be issued by the company not only in invoices, but also in returns (in some cases where company is performing return does not have the legal obligation to issue an invoice in such cases. In those cases, our customer must issue an invoice in order to get goods entries legally).
It is perfectly resonable that user make mistakes. When those errors take place in issuing an invoice, because of the "legal" sense of it, this become more sensible. Usually, users need to "register" wrong invoices, legally speaking.
By creating a credit memo to annul an invoice (or vice-versa), those kind of operations stay in the same way "real" operations are, creating a fake sense operation was a real one.
It would be much more practical to have a simple cancellation process in invoices, deliveries, credit memos, an so on. In that way, we can register errors without the need of correct the problem by issuing another legal document. -
Update form Marketing Document screens from one user to other
I know there is a query somewhere where I can set up all Marketing Document screens for a user then copy it to other users so their Marketing documents have the same look and I don't have to go through each user.
Does anybody has that query? ThanksHi Rosi
A query would imply some sort of direct write to SAP tables and that is not wise. You could rather have a look at the DI API or DTW templates for updating user defaults. If I recall correctly it is called UserMenuService.
Kind regards
Peter Juby -
Marketing Documents Transfer to New Database
Hey all,
We have been using Copy Express to copy most of the information from one database to another in preparation for a COA overhaul. It's worked pretty well so far, but we realized that this tool does not bring over marketing documents.
I am curious if importing a complete set of marketing documents (with links eg Sales Order -> Delivery -> A/R Invoice) is possible or reasonable. Having spent some time importing Service Invoices, I know how to import them, but I'm not so sure that importing linked documents would be a reasonable expectation on a two year old database.
Does anyone have any feedback on this?
Thanks,
KevinHi Kevin,
Copy express is used to copy the database setting and master data (items, COA and BP) and so on (pls read the copy express help file).
The marketing documents will not be imported to the new database since it will make a big effort and the result will not 100% correct.
you just do opening balance (A/R invoice, A/P invoice, stock and G/L account opening balances, all of the documents mentioned are open status), meanwhile the opening document in the old database is still maintaining until invoices created. If the time for invoices created are coming, you do that in the new database and just use document type service and not item. I always suggest that to our clients if they want to make a database cut off due to some certain reasons. The new database go live date is the new document date that created on the go live date.
Rgds,
Maybe you are looking for
-
Library won't play music purchased on phone even after syncing phone
Bought 2 albums on my iphone, which plays them fine, but when synced to my computer a few of the songs show in itunes library but have a next to them and can't be played on the computer. I look in itunes store, which says they've been purchased, but
-
Fatal errors while installing oracle 10 r2 in RHL AS 4 update 5
hi i am trying to install oracle 10 r2 in red hat linux AS 4 update 5. getting these errors while installing.... 1. Error in invoking target 'install' of make file 'u01app/oracle/product/10.2.0/db_1/ctx/lib/ins_ctx.mx See '/u01/app/oracle/oraInventor
-
Why does the PDFs' name change when i view them in the iBooks app?
i have some past papers and marking schemes in my iTunes library....when i sync them to my iPad, they appear just fine....they are there just the way i named them and all... but when i open them, the name changes to some coded-ish name with lots of n
-
IPod 30 GB 'Do Not Disconnect'
The message of 'DO NOT DISCONNECT' continually shows on my iPod 30 GB even after fully updated and charged. This happened after I downloaded an update as specified when I logged into iTunes. Any ideas? Thanks Fujitsu siemens Windows XP
-
Hello; I seek a code to implement a list with multiple selection for a browser Web (HTML is imited). I have a list containing of the years, the user can select one or several years and I created dynamically a array : for each year a column. Thank you