Sales order document flow error
we do credit memo for one sales order, in the sales order document flow, the credit memo accounting document's status is not cleared. how can we changed it to be cleared?
Hi,
Clearing will be done by finance after the payment is given to the customer. This clearing is done by transaction F-22.
VKM3 is used for releasing document blocked for credit management and not for clearing the accounting document.
Regards
Karan
Similar Messages
-
Sale order document flow-u0091Service Documentsu0092 is coming which should't aper
New Issue with Sales order document flow:
When linking from a sales order in document flow, we were reviewing why the description information varied. In looking at different values, we clicked on a new item within document flow that allows you to like to Service Documents. This is new in 6.0, or it was previously deactivated in 4.6C. If you link from a sales order to a service document, in ECC 6.0, you will get a short dump because the document flow is so great (viewing order #any in VA03 and use document flow and then select the service documents button as seen on the screen below
A Short dump will occur in program SAPLDOCUMENT_FLOW_ALV.
Here in ECC 6.0 is how it looks from sales order 9806:
Documents created from 2004 through 2007 are coming up as linked to this sales order and that is incorrect. There is some type of linkage issue. In the 4.6 C environments, the service documents link is not visible from document flow.
Can any body functional / technical Help on this urgent???Hi Sanjay,
Go to the order VA03 --> Environment --> status overview. The exact status of the header and item can be found here. You may have chances to know why the status is being processed.
Also
Check whether you have checked 'document flow update' field at item level in copy control
Check your settings for completion rule in item category
If it is due to incorrect status message, run report SDVBUK00. That might fix the error. It is recommended to run this first in test mode.
Br, Sats. -
Sales order document flow and delivery document flow are not in sunc
Hi ,
whan I look at the Sales order document flow there are lot of line items rejected with specific reason , but for the same line items already delivery and PGI in place . When we try to do the invoice it shows error , it can't be invoiced because line items in sales order are rejected .
Ideally in business when delivery and PGi created for the sales order , it should not allow the line item to reject . system should look at follow on documents in place . Reverse process should follow .
Pls provide solution to stop item rejection when follow on delivery document in place .
thanks and regards.
Sunil TripathyHi,
Goto the T.Code "VOV7".
Select your item category.
Details.
Maintain the Completion rule as "A(Item is completed with the first reference)".
Save.
If you do this after the follow on document is created,the item is completed and you cannot reject the item.
For your second question,
Goto the T.Code "VTLA".
Select your valid combination.
Click on item.Select your item category.Details.
There is a check box called as "Update document flow".Tick that one.
Save.
Regards,
Krishna. -
Contract not visible in sales order document flow
Hi
I am supposed to create sales order from Contract.The requirement is that only header data should be copied.Thus In Copy Control configuration I did not maintain item level and schedule line level settings for these document types. The issue is that after running the whole cycle from Contract -->SO --> Delivery --> Invoice when I see the Sales Order document flow I can see all other documents but not the contract.Also In Contract document flow I can see only sales order but not delivery and invoice.Please guide.Hello,
Update Document Flow option is available only at Item Level in copy control setting from Contract to Sales Order.
Check out your Copy Control Records at Item Level. There would be "2" mentioned in "pdate document flow" box.
2 means Create doc. flow records except for dely/goods issue/billdoc. Here you to maintain "X" for Complete Document flow.
Hope this helps,
Thanks,
Jignesh Mehta -
PO is incorrectly showing in other sale order document flow
Hi expwrs please help me on this issue. One PO is incorrectly showing in other sale order document flow and there is no relationship between PO and sale order. Why it is showing incorrectly.
Hi,
First you check the SO created with reference and then check teh PO type (based on item category).
I think with of any reference the PO will never show on doc flow, -
Invoice/billing document Number not appearing on sales order document flow
Dear all,
After saving the sales order invoice when i check in va02 sales order document flow invoice number is not generatingReally something is wrong in your configuration. When your delivery status shows Being Processed, I could see subsequent two documents, viz.Confirmation of Service and GD doc reference as complete.
Can you let me know how many line items that delivery contains? The reason for this query is normally, for stock item, we see Material Document reference and for non-stock item, we see Confirmation of service. But in your case, I could see both. From your VBFA table screen shot, I could see two different material document references.
G. Lakshmipathi -
Issue in Updating Sales Order Document flow
Hi Experts,
We have developed a Z Program for posting Material document for the deliveries of Sales Order. This program runs in Batch job everyday.
Here we are getting an issue like in some of the cases it's not updating the Document flow of the Sales order though its Posting Material Document for the Delivery of Sales Order. If there will be a bulk amount of data then its creating issue in updating the Document flow ( Either the 1st set of record or last set of records).
We are using BAPI 'BAPI_GOODSMVT_CREATE' for posting Material Document for the delivery and FM 'RV_DOCUMENT_FLOW_UPDATE_U' for updating the document flow.
It seems it giving issue with bulk amount of data. Will it a time issue?
If any one have faced such issue, please throw some pointers.
Thanks in advance!
Regards,
Priyabrata.It could be a timing issue. After you create the material document, try to enque the material document and move to the next step only if the enque is successful. Keep trying to enque the material document until u are successful. But make sure you exit the loop after certain number of tries to avoid endless loops. Here is a sample code:
DO 20TIMES.
CALL FUNCTION ;'ENQUEUE_EMMKPF'
EXPORTING
MODE_MKPF = co_e
MBLNR = xxxxx
MJAHR = xxxx
EXCEPTIONS
foreign_lock = 1
system_failure = 2
OTHERS = 3.
IF sy-subrc EQ 0.
dequeue/unlock the notification again
CALL FUNCTION DEQUEUE_EMMKPF
EXPORTING
MODE_MKPF= co_e
MBLNR = xxxxx
MJAHR = xxxx
EXIT.
ELSE.
in case of no success, wait 1 seconds, before try again
CALL FUNCTION 'RZL_SLEEP'
EXPORTING
seconds = 1
EXCEPTIONS
argument_error = 1
OTHERS = 2. "#EC *
ENDIF.
ENDDO.
Regards,
Jitendar -
Sales Order document Flow in Reports
Hi All,
I am develoing a Custom Sales Order report in ALV. Here the requirement is to include the Document Flow for the line item. This should be similar to the Icon in VA03 transaction. When I click this icon in my report, it should display the document flow (same as that of available in VA03 transaction). Can you suggest how can I get Document Flow icon in my Report?
Thanks in Advance.
Regards Munna.Just to save time for others who have the same requirement , use below, fill the structure with sales order and other details. Leave the posnr blank if you need document flow , else fill the posnr if it is item level.
CALL DIALOG 'RV_DOCUMENT_FLOW'
EXPORTING
VBCO6 FROM VBCO6
MAKT-MAKTX FROM SPACE
KNA1-KUNNR FROM kunnr2000
KNA1-NAME1 FROM name
MAKT-MATNR FROM SPACE
IVKORG FROM VKORG
IVTWEG FROM VTWEG.
No custom screen required, no tree control required, no coding required except that you need to call this at right place in your module pool/ report etc. SAP internally uses this for display in SAPMV45A.
Hope it helps.
Regards/Ajay -
Hi,
I have a requirement to create an application which shows the data as seen on the "Document Flow" screen of a Sales Order.
I must be able to enter the Sales Order Number and the application must display the status of the order, just like in document flow.
Can someone let me know how to go about this?
Any bapis, relevant tables, etc ?
Thanks and Regards,
ReenaHi Reena,
I would try to call the transaction BAPI (release 4.6C) in sap backend and go to the sales order section and check the input and output parameters of standard SAP BAPIs you need (look for example to BAPI_SALESORDER_GETLIST).
In my case, we have developed our own BAPIs based on standard BAPIs from SAP.
Hope that helps!
Regards,
Frank
By the way, if you are in higher releases like mySAP ERP 2005 there are much more interfaces for Sales Order than in release 4.6c. Don't know your release so I think it's perhaps important to know that for you... -
Commit error while transferring Sales order Document to GTS
Hello,
We faced a transfer error while transferring sales order document to GTS.
When I debugged the code function /SAPSLL/API_6800_SYNCH is called. In this function, /SAPSLL/CUHD_MAINTAIN_SINGLE is called with parameter lv_no_commit = 'X'. When I checked why its value is 'X', I saw that if the RFC destination and the current system are the same, then lv_no_commit = 'X', (means if the R3 and the GTS are in the same server, same client.) In debug mode I set the value of lv_no_commit to space, and then it works. It creates the GTS document.
We are also transferring billing documents and it works fine. When I checked what is the difference between transferring sales order document and transferring Billing document, I saw that in the transferring billing document there is another function is called /SAPSLL/API_6800_CSD_SYNCH, and it's calling parameters(in background, as seperate unit) are different from calling parameters of /SAPSLL/API_6800_SYNCH. You can see the difference below.
For sales document transfer :
CALL FUNCTION '/SAPSLL/API_6800_SYNCH'
DESTINATION cs_transfer-rfc_dest
For billing document transfer :
CALL FUNCTION '/SAPSLL/API_6800_CSD_SYNCH'
IN BACKGROUND TASK
DESTINATION cs_transfer-rfc_dest
AS SEPARATE UNIT
So my question is, do you think is it a sap standard program error, or is there any suitable settings in the customizing or SM59 to fix this error?
Thanks in advance
Serhat
Edited by: Serhat Dirihan on Jan 22, 2009 11:46 AMDear Serhat,
I don't think this is an RFC problem or an error. But you wrote:
When I checked why its value is 'X', I saw that if the RFC destination and the current system are the same, then lv_no_commit = 'X', (means if the R3 and the GTS are in the same server, same client.)
It is impossible to have GTS and R/3 on the same system and same client. At least the client should be different. So try to check why the call is performed like that.
Balazs -
Creating a sales order document
Hi,
When I create a sales order document in one company I want to automatically create a purchase order document (in the same company), and when this one is created I want to create a sales order document (in another company) with the same data as the purchase order. The purchase order is created via DIAPI and it works fine, but the problem is when creating the sales order in the second company. When I add the itemcode to the line , it doesn't write automatically any data of that itemcode, the vatgroup neither. So I have to introduce this field. The thing is that althought introducing the vatgroup manually, it doesn't calculate the vatsum, so in the doctotal isn't added. I've tried writing it manually but the problem is that the vatsum field is readonly.
Why can this be? How can I solve it?
The code is the next (in vb.net):
Dim oPedidoCompra As Documents
Dim oPedidoCompraLineas As Document_Lines
oPedidoCompra = oCompany.GetBusinessObject(BoObjectTypes.oPurchaseOrders)
If Not oPedidoCompra.GetByKey(DocEntry) Then
oApplication.MessageBox(oCompany.GetLastErrorDescription)
End If
oPedidoCompraLineas = oPedidoCompra.Lines
oPedidoVentaB = oCompanyB.GetBusinessObject(BoObjectTypes.oOrders)
oPedidoVentaLineasB = oPedidoVentaB.Lines
oPedidoVentaB.CardCode = ValorSql(s, oCompanyB)
oPedidoVentaB.DocDate = Date.Now.Day.ToString + "/" + Date.Now.Month.ToString + "/" + Date.Now.Year.ToString
oPedidoVentaB.DocDueDate = Date.Now.Day.ToString + "/" + Date.Now.Month.ToString + "/" + Date.Now.Year.ToString
oPedidoVentaB.DocType = BoDocumentTypes.dDocument_Items
oPedidoVentaB.UserFields.Fields.Item("U_NR").Value = oPedidoCompra.DocNum
For i As Integer = 0 To oPedidoCompraLineas.Count - 1
oPedidoCompraLineas.SetCurrentLine(i)
oPedidoLineas.ItemCode = Codigoarticulo
oPedidoLineas.Quantity = Cantidad
oPedidoLineas.Price = Precio
s = "select WhsCode from OWHS where WhsName like '%" & oCompanyB.CompanyDB & "%'"
oPedidoVentaLineasB.WarehouseCode = ValorSql(s, oCompanyB)
oPedidoVentaLineasB.ItemDescription = oPedidoCompraLineas.ItemDescription
oPedidoVentaLineasB.Price = oPedidoCompraLineas.Price
oPedidoVentaLineasB.Currency = oPedidoCompraLineas.Currency
s = "select vatgourpsa from oitm where itemcode = '" & oPedidoVentaLineasB.ItemCode & "'"
oPedidoVentaLineasB.VatGroup = ValorSql(s, oCompanyB)
oPedidoVentaLineasB.LineTotal = oPedidoCompraLineas.LineTotal
s = "select rate from ovtg where code = (select VatGourpSa from OITM where ItemCode = '" & oPedidoVentaLineasB.ItemCode & "')"
oPedidoVentaLineasB.TaxPercentagePerRow = ValorSql(s, oCompanyB)
s = "select suppCatNum from oitm where itemcode = '" & oPedidoVentaLineasB.ItemCode & "'"
oPedidoVentaLineasB.VendorNum = ValorSql(s, oCompanyB)
oPedidoVentaLineasB.PriceAfterVAT = oPedidoCompraLineas.PriceAfterVAT
If i < oPedidoCompraLineas.Count - 1 Then
oPedidoVentaLineasB.Add()
End If
Next
n = oPedidoVentaB.Add
If n <> 0 Then
oApplication.MessageBox(oCompanyB.GetLastErrorDescription)
End If
Thanks in advance,
vanesaHi Vanesa
When makin the sales order you must just select a vat group.It will then calculate it using the settings for that vat group. So, is the vatgroups set up in your other company?? Don't calcualte everyhting like line total. Just do itemcode, price,itemcode, vatgroup, warehouse and then the system will calculate the rest. Dont do PriceAfterVAT and all the extra's.
If you did it through the front end would you enter all that? No, you would just select item,qty,price and wh. The system calculates the rest for you.....same goes for di api. Do this to minimize errors.
Hope this helps -
Mass sales order costing(ck55) error
hi
If i do individual sales order costing , no error.But same sales order has done in ck55,error"item is not relevant for billing" ,but in single sales order costing is ok, .what is reason.
system message
Item is not relevant for billing
Message no. CK_MCSO029
Note
You can remove this message from the log with the customizing
transaction User-Defined Error Management for Mass Costing of Sales
Documents. The item will still not be costed, however.
Diagnosis
System Response
reg
nagesh
Edited by: nageshrr on Jul 5, 2011 2:01 PM
Edited by: nageshrr on Jul 5, 2011 2:04 PMno replies and my thread was dead.
-
BAPI_SALESORDER_CHANGE insert sales order item lines ERRORS
Hello experts,
i have to insert new item lines for a given sales order document number.
i use bapi_salesorder_change but it does not work.
these are the messages in the return table:
Error 1.
Message: ORDER_HEADER_IN has been processed succesfully
Message: No item category available
Message: Error in ITEM_IN
Message: Condition cc_cond is not allowed as header condition
Message: Sales document was not changed
Error 2.
Message: ORDER_HEADER_IN has been processed succesfully
Message:Material is not defined for sales org., distribution chan, language DE {but i checked the table mvke with the matnr and sales org and distribution chanel and the material exists}
Message: Error in ITEM_IN
Message: Condition cc_cond is not allowed as header condition
Message: Sales document was not changed
here is the code:
i_t_item-itm_number = p_posnr.
i_t_item-material = p_matnr.
i_t_item-target_qty = p_qty.
i_t_item-plant = p_plant.
i_t_item-hg_lv_item = p_uepos.
i_t_item-price_date = p_preisdat.
i_t_item-prc_group2 = cc_prc_group.
APPEND i_t_item.
*setting conditions
i_t_bapicond-itm_number = p_posnr.
i_t_bapicond-cond_type = cc_condition_type.
i_t_bapicond-cond_value = l_netwr.
i_t_bapicond-conpricdat = gc_datum.
i_t_bapicond-currency = cc_eur.
APPEND i_t_bapicond.
i_t_itemx-updateflag = cc_i. {= 'I'}
i_t_itemx-itm_number = p_posnr.
i_t_itemx-material = cc_x.
i_t_itemx-target_qty = cc_x.
i_t_itemx-plant = cc_x.
i_t_itemx-hg_lv_item = cc_x.
i_t_itemx-price_date = cc_x.
i_t_itemx-prc_group2 = cc_x.
APPEND i_t_itemx.
i_t_bapicondx-updateflag = cc_i.{'I'}
i_t_bapicondx-itm_number = p_posnr.
i_t_bapicondx-cond_type = cc_x.
i_t_bapicondx-cond_value = cc_x.
i_t_bapicondx-conpricdat = cc_x.
i_t_bapicondx-currency = cc_x.
append i_t_bapicondx.
CLEAR: l_behave, sy-subrc.
CLEAR i_t_header.
i_t_header-updateflag = cc_u. {='U'}
APPEND i_t_header.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = sales_ord_number
ORDER_HEADER_IN =
order_header_inx = i_t_header
simulation = cc_x
behave_when_error = l_behave
INT_NUMBER_ASSIGNMENT = ' '
LOGIC_SWITCH =
TABLES
return = i_t_return
order_item_in = i_t_item
order_item_inx = i_t_itemx
PARTNERS =
PARTNERCHANGES =
PARTNERADDRESSES =
ORDER_CFGS_REF =
ORDER_CFGS_INST =
ORDER_CFGS_PART_OF =
ORDER_CFGS_VALUE =
ORDER_CFGS_BLOB =
ORDER_CFGS_VK =
ORDER_CFGS_REFINST =
SCHEDULE_LINES =
SCHEDULE_LINESX =
order_text = i_t_text
ORDER_KEYS =
conditions_in = i_t_bapicond
conditions_inx = i_t_bapicondx
extensionin = i_t_extensionin.
IF i_t_return-type EQ cc_s OR i_t_return-type EQ cc_w OR i_t_return-type EQ cc_i.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = cc_x.
PERFORM return_code.
ELSE.
p_flag = cc_x.
PERFORM return_code_err.
to rollback the transation for error records
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
ENDIF. " IF i_t_return-type EQ 'S'
i hope you can tell me where my code is wrong.
Best Regards,
EmiliaHello ,
Error 2
i checked about the material number and it seems that everything is in order.
so this is not the problem.:(
Error 1
about the item category error: do i get this error because i don't fill the field ITEM_CATEG?
Error 1 and Error 2
About Message: Condition cc_cond is not allowed as header condition
i really don't undesrtand what this is about.
thank you for your answer.
Best regards,
Emilia -
Creation of sales order document
How to create a sales order document using VA01?Give me the steps?
Hi,
Please search before posting any thread,
[http://help.sap.com/saphelp_ides/helpdata/en/47/ef8c7c124811d2806f0000e8a495b3/content.htm]
Regards,
Durgesh. -
Sales Orders not flowing in COPA if Credit block is set
We are implementing COPA for reporting in BW. The Billing information is flowing well in COPA. However, we have one issue with Sales Orders. Here is the scenario:
When we create a new Sales Order without any credit blocks, the information is flowing to COPA Tables in R/3. However, if the Sales Order is blocked for Credit reasons, then the Sales Order information is not available in COPA. The moment the Credit block is released we are able to see the info in COPA Tables.
The requirement is to have the Sales Order information availabe in COPA no matter what. Is there a way via which we can make the Sales Order info flow in COPA the moment it is created, no matter it has any blocks.
Any info on this is highly appriciated.
Thanks
SriniHi,
I think it is a standard behaviour of Co-PA.Refer the note: 139725
With rgds,
Anil Kumar Sharma .P
Maybe you are looking for
-
I spent the weekend scanning about 120 photos to make a DVD to run during my wife's 50th birthday part, naming them all by year and number within the year so they would be nicely sorted for the slideshow. Much to my disgust when I dragged them into t
-
Trying to understand threads; interesting synchronize question
Ladies and Gentlemen, what would happen if: class c { public synchronized void a() { //do some stuff b(); public synchronized void b() { // do some stuff this should cause a deadlock situation, should it not? The compiler doesnt complain when I try t
-
HT5527 How can I find a list of what documents are stored on I-cloud?
Is there a way to list documents stored on I-cloud? I want to delete any documents or transfer them to computer. In other words, "Is there a directory of I-cloud documents?"
-
I created a movie using iMovie 08 with a whole bunch of photos. I was very pleased with how it came out. I posted it to my mobile me gallery and the quality is pretty good. When I watch it straight from my computer the quality is good as well. I crea
-
I personally prefer Activity Monitor, Server Standard Reports & Database Standard Reports, however, I keep seeing frightening DMV queries which I don't know how to interpret, in fact, I am not even convinced that the queries are correctly formulated.