Error adding Sales order via DI-SERVER Posting Date deviates from the defin
When adding a sales order via the DI-API we have started receiving the following error:
Error: Posting Date deviates from the defined range. To complete the operation, define the posting period to match the entered Posting Date. [(----) 131-204]
I have verified that the posting dates within the document exist within the defined posting periods in SAP and that the posting period in question is unlocked.
I can add the document within the SAP B1 interface without any issues.
This process and code was also working up until the start of the new financial year. There have been no changes to the code or the financial periods in the new year.
There is a peculiarity with the financial periods for this company in that they have moved from calendar periods in the past to financial periods. Has anyone come accross any issues with posting dates and the DI SERVER API?
The dates in the XML document that we are trying to add are shown below.
<Documents>
<row>
<DocDate>20100310</DocDate>
<DocDueDate>20100310</DocDueDate>
<CardCode>C9999</CardCode>
The following are the financial period values from OFPR
Posting Date From/To: 06.03.10 02.04.10
Due Date From/To: 01.01.10 01.04.11
Document Date From/To: 01.01.10 02.04.10
Start of Fiscal Year: 01.01.10
Regards,
Sean
Hi Gordon,
Our customer has moved their financial year end from 1 April / 31 March using calendar months to a 4/4/5 financial period model with a year start date from Jan.
This was necessary after the company was purchased by a US firm that wanted to align the reporting calendars.
Under the 4/4/5 model their financial year start date does not start 1st January. Hence the 3/1/2010 being the first date of the January period.
No matter how the periods are setup the financial year start date in SAP Business One cannot be anything other than the 1st of the month.
All posting within SAP appears to be working fine, it is only via the DI SERVER requests that we seem to be having problems.
However, we suspect that the issue may be unrelated to the posting periods due to some other testing performed.
Regards,
Sean
Similar Messages
-
Error creating sales order via Interaction Center
While creating a sales order via Interaction Center, I am getting an error "Error while creating member activity for order 5129793", as a result the points are not getting accrued for the account.
Can anyone please help? I am very new to this
Regards,
HarshHi,
Check the partner determination profile in spro for this activity. Try to use a standard profile and see what happens.
Best regards,
Caíque Escaler -
How to change sales order no. in already posted down payment?
A sales order was created and a down payment was also posted.
Later sales order was deleted, but the related down payment still exists.
Subsequently a new sales order was created for the same customer.
Now customer is asking to clear his current sales order against the older down payment (which has reference of the deleted sales order)
An error is getting raised while clearing the sales order and down payment in F-32 as the down payment has reference to deleted sales order.
Now can I change the sales order no. in the down payment document?
or is there any other way to clear these transactions, current sales order and old down payment?Hi,
Reverse the down payment entry and repost the same with reference to the new sales order number.
FB08 to reverse accounting document.
Regards,
Srinu -
Price conditions on Sales Orders via EDI
Hi,
I need to know if there is a way to bring prices over on the IDOC while posting a sales order via EDI. I have a situation where the price does not have to be determined based on condition records setup within SAP but rather update the price sent on the IDOC itself.
Thanks
MRHi,
Let the inbound Idoc have the price field and the price of the material. And keep the price condition type open/manual entry allowed. Once this is done the system will not do it from the condition record and will populate the data that is there in the Idoc.
Hope this helps.
Kind Regards
Chakradhar -
Error in Sales Order Creation - Template material processing is deactivated
HI,
I am getting the following error in all clients in my server while creating the sales order. I am getting this after uploading the Patch 17,probably.
what should i do! All settings given by message below are tried, but not helping.
Template material processing is deactivated
Message no. CB01412
Diagnosis
You attempted to enter a material in an SD document that is set as a template or one-time material. An error occurred that can have the following causes:
Template and one-time material processing is not activated
No determination routine is specified for the SD documents for the permitted combinations
The combination of sales organization, document category, and document type or delivery type for the SD document is not permitted
System response
The system prevents you editing the document any further.
Procedure
Activate template and one-time material processing in the IMG activity Activate Dangerous Goods Checks.
Edit the determination routines in the IMG activity Specify Determination Routines for Sales and Shipping Documents.
Edit the IMG activities Specify Permitted Combinations for Sales Documents and
Specify Permitted Combinations for Shipping Documents.
Thanks in advance.Hi,
Go to MM03 and check the material (you are creating sales order ) wheather sales views selected or not.
Regards,
Biju K -
Hi,
I want to close Sales Orders using DTW but I got an error:
Document rows Cannot be closed concurrently.
I read some threads:
Link: [Document rows Cannot be closed concurrently - Purchase Orders;
Link: [How to close a row in a Sales Order?;
Link: [Closing Order rows;
Link: [Documents rows cannot be closed concurrently with the other document modify;
and many more but couldn't solve problem.
I work on 8.8 version and try to close Sale Order that has few rows. I can close line via UI ( right mouse button and choose close line) but when I try to do it via DTW I have an error.
I disabled all formatted searches and it didn't help.
Need help.
Reagrds
SzymonHi,
the problem now is not the error message. The problem is: what about the sales order which should be lost after we regenerate the program RSM13000?
We installed the following support packages:
1. SPAM and SAINT from 26 to 38
2. SAP Basis: From SAPKB62047 to SAPKB62068
3. SAP_ABA: SAPKA62047 to SAPKA62068
a. And 2 CRT
4. SAP_APPL SAPKH47022 to SAPKH47033
5. SAP_HR: SAPKE47024 to SAPKE47099
6. SAP_IPPE: SAPKGPIA06 to SAPKGPIA28
7. PI: SAPKIPZI55 to SAPKIPZI59
8. PI_Basis: SAPKIPYI57 to SAPKIPYI59
9. ST_PI: SAPKITLQG7 to SAPKITLQG8
10. EA_APPL: SAPKGPAA06 to SAPKGPAA29
11. EA_FINSERV: SAPKGPFA06 to SAPKGPFA29
12. EA_GL TRADE SAPKGPGA06 to SAPKGPGA29
13. EA_HR SAPKGPHA10 to u2026u2026 SAPKGPHA99
14. EA_PS SAPKGPPA06 to SAPKGPPA29
15. EA_RETAIL: SAPKGPRA06 to SAPKGPRA29
Thanks in advance
Hanseatik -
Adding Sales Order Lines repeating for all orders
I have a C# program whereby I am trying to get Sales Orders from one database (source) and create them in another database (destination). I asked a question on how to set the current line and was helped.
The only problem now is that for all Business Partners, the lines being added are all the same (i.e. with the same row numbers and details as the first Sales Order to be entered)
Source database (TCount represents the number of lines in the document & the DocNum each separate sales order)
Destination database (compare columns with above)
As you can see the rows of Source docnum 6 are repeated in the destination table always
How can I fix it so that it adds the sales orders properly? My code snippet below:
unaddedSOs = sList.Except(dList).ToList();
// Add the Sales Orders that are missing to destination database
SAPbobsCOM.Documents sboSO = (SAPbobsCOM.Documents)oCompanyDestination.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders);
if (unaddedSOs.Count > 0)
// Loop through unadded Sales Orders
foreach (var item in unaddedSOs)
// Set properties of the Sales Order object
sboSO.CardCode = item.cardCode;
sboSO.CardName = item.cardName;
sboSO.DocDate = item.docDate;
sboSO.DocDueDate = item.docDueDate;
// Add Sales Order Document Lines
SAPbobsCOM.Recordset rsLines = oCompanySource.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
// Get Sales Orders from source database
rsLines.DoQuery("SELECT ItemCode, Quantity, Price FROM RDR1 WHERE DocEntry = '" + item.docNum + "'");
rsLines.MoveFirst();
if (rsLines.RecordCount > 0)
int row = 0;
while (!rsLines.EoF)
sboSO.Lines.SetCurrentLine(row);
sboSO.Lines.ItemCode = rsLines.Fields.Item("ItemCode").Value;
sboSO.Lines.Quantity = rsLines.Fields.Item("Quantity").Value;
sboSO.Lines.Price = rsLines.Fields.Item("Price").Value;
sboSO.Lines.Add();
rsLines.MoveNext();
row++;
// Try to add the Sales Order to the database
int lRetCode = sboSO.Add();
if (lRetCode != 0)
int temp_int = lErrorCode;
string temp_string = sErrorMsg;
oCompanyDestination.GetLastError(out temp_int, out temp_string);
// Incase adding a Sales Order failed
if (lErrorCode != -4006)
// Display error message
MessageBox.Show(lErrorCode + " " + sErrorMsg);
MessageBox.Show("Syncing Complete!!!");
Any help appreciated,
Regards KinyanjuiHi Kinyanjui,
Are you using the same SO for all unadded orders?
unaddedSOs = sList.Except(dList).ToList();
// Add the Sales Orders that are missing to destination database
if (unaddedSOs.Count > 0)
// Loop through unadded Sales Orders
foreach (var item in unaddedSOs)
SAPbobsCOM.Documents sboSO = (SAPbobsCOM.Documents)oCompanyDestination.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders);
// Set properties of the Sales Order object
sboSO.CardCode = item.cardCode;
sboSO.CardName = item.cardName;
sboSO.DocDate = item.docDate;
sboSO.DocDueDate = item.docDueDate;
// Add Sales Order Document Lines
SAPbobsCOM.Recordset rsLines = oCompanySource.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
// Get Sales Orders from source database
rsLines.DoQuery("SELECT ItemCode, Quantity, Price FROM RDR1 WHERE DocEntry = '" + item.docNum + "'");
rsLines.MoveFirst();
if (rsLines.RecordCount > 0)
int row = 0;
while (!rsLines.EoF)
sboSO.Lines.SetCurrentLine(row);
sboSO.Lines.ItemCode = rsLines.Fields.Item("ItemCode").Value;
sboSO.Lines.Quantity = rsLines.Fields.Item("Quantity").Value;
sboSO.Lines.Price = rsLines.Fields.Item("Price").Value;
sboSO.Lines.Add();
rsLines.MoveNext();
row++;
// Try to add the Sales Order to the database
int lRetCode = sboSO.Add();
if (lRetCode != 0)
int temp_int = lErrorCode;
string temp_string = sErrorMsg;
oCompanyDestination.GetLastError(out temp_int, out temp_string);
// Incase adding a Sales Order failed
if (lErrorCode != -4006)
// Display error message
MessageBox.Show(lErrorCode + " " + sErrorMsg);
Marshal.ReleaseComObject(sboSO);
GC.Collect();
MessageBox.Show("Syncing Complete!!!");
Best regards,
Pedro Magueija -
Pricing Error on Sales order :Critical:
Hi all,
I'm creating a sales order, where in I'm getting Pricing Error.
Condition record is maintained for PR00 in USD
It is getting populated but showing red signal.
VPRS also showing Red signal. If I go in analysis of VPRS , it shows message exchage rate error. But Company code currency & document currency is same USD.
so It should not give this error.
But If I go to customer master & in sales area tab & maintain currency as USD, then there is no error in Sales order. All is fine.
But logically , system should not ask the exchage rate as Company code & document currency both are USD.
I expect some quick replies as we are now in impact analysis & on verge of go live next month.Thats what I mention in previous post that
Its a standard beheviour, Document currency is proposed/determined in sales order or billing doc on the bases of customer master record of the Sold-to Party.
And exchange rate for same currency is out of question.
Thats why, when maintain curreny in customer master (Sold-to Party), you don't get error.
As, system is able determine/propose a currency for document currency.
Further, what you can do is press F1 button on the following fie,lds for more clarification.
> Sales Order - Header - Sales Tab - Pricing & Statistics Section - Doc. Currency Field
> Customer Master - Sold-to Party - Sales Data - Sales Tab - Currency Field
I hope that clarifies.
Regards
JP -
Account determination error in sales order
Dear all,
Please help. Trying to release a billing document to accounting. Getting the error:
Document 90000004 saved (error in account determination)
Message no. VF051
While analysing: going to Environment - Accnt determination analysis - Revenue accounts :- no condition types are coming under the procedure KOFI000. Checked settings in vkoa. All G/L accounts are mapped. There are invoices of the same document type, with the same condition types in production with correct account determination.
On further analysis, found that no condition types are coming not determined in the sales orders. Yet there is no incompletion log. Quite baffled. The users are punching in cut over sales orders into production. Please help me rectify the situation.
Thanks,
KasturiI hope you have incompletion log (OVA2) maintain for WBS element in your sales order.
Like
Table
Fld Name
Desc
Screen
Status
VBAK
PS_PSP_PNR
WBS Element
KKNT
Based your requirement , say, 01
VBAP
PS_PSP_PNR
WBS Element
PKNT
Based your requirement , say, 06
Regards
JP -
Error on Sales Order - u201Cyou cannot open rows in the document"
Hi everyone,
Does anyone have any idea why this error would be occuring when a user tries to add a sales order?
u201Cyou cannot open rows in the document [sales order u2013Rows u2013 Rows status] [line0] [Message131 -194]?
If the user closes the sales order and then recaptures it, the sales order goes through. As you can imagine, the order clerks are getting a bit angry when their large orders have to be closed.
Thanks.
Kind regards,
Simon CarolinHi
If it is affecting your business severly ,log a support to SAP .Meanwhile ,
Lets start some troubleshooting your system
1.Are you using formatted search in Sales Order
2.Are you using sp_transaction notification
3.Did you do any changes in your system recently like upgrade ,
4.Is it happen only to certain item or BP
Hint :
1.Disable all addon
2.Disable your formatted search
3.Disable sp_transaction notification
4.Try to create a sales order and .,
Does error occur again? Please also specify your SBO version and Patch level
<Note> Try test your issue test environment
This will help to narrow down
Thank you
Bishal -
Creation of sales order via IDoc ORDERS05 - specify a reason of rejectio
Hi,
I want to create a sales order via IDoc (type:ORDERS05), i specify for an E1EDP01 segment a reason of rejection (ABGRU),
The sales order is created succefully by calling the FM IDOC_INPUT_ORDERS but the order quantity of the item where i have specified a reason of rejection is equals to 0.
Is this normal? i want that this will take 3 value either 0?
Could anyone help me?
ThxHi,
Thank you for ur answer.
I've followed the procedure that you have explained and the Quantity 3 have been succefully passed to VA01 but is set to zero when i execute the next OK-CODE (=UER2, i think it is llike Enter button ). I simulate the same procedure by creating a sales order on VA01 and i've finally found the problem : at item level, if i enter the Material (MATNR), the order Quantity (KWMENG) and the Reason of rejection (ABGRU), the quantity is set to zero after clicking the enter button ; but if i enter only The material and The quantity followed by enter button, and enter after the Reason of rejection, it works fine, the Quantity doesn't change.
What is the solution that you propose to me?
I've try this one on debugger mode:
The FM which interpret the Idoc create the sales order by CALLING TRANSACTION 'VA01' USING bdcdata....
I've modified the bdcdata to implement the sequence of the steps before (MATNR + QTY <ENTER> ABGRU <ENTER>).
1. Is it possible to code this modification?
2. Is there a way to structure the Idoc for having this sequence in bdcdata?
Thanks in advance!
Narivelo -
Error in Sales order - Consumption account not found
Hi Gurus,
I am facing an error in Sales order - 'Consumption account not found'. The scenario is third party. In sales order, it says 'Consumption account not found'. the item category is TAS and scedule line category has general modification key 'VKA'. And as it is third party, thr is no movement type for the schedule line category. The valuation class of the material is 3334 (software services). I was thinking In OBYC, under GBB key, this combination of my val. grping code+ 3334 + VKA and relevant GLs shud exist.
But in my development client, i dont get any error for the same material. And in thr also, thr is no mention of entry like above combination in OBYC. So its making me think that its not config error. But its an issue of master data or GL data.
Please help me . This is critical.
-PrashantHi,
Your observation is perfectly write, the possible errors are
1. Check the combination of Account modifier of Purchase order account assignmnet or PR. Based on the modifier and check the relevent combination in OBYC
Valuation ClassAccount ModifierIf Groups is there + Transaction Event Key + Gl Accounts
2. If GL Account is available then check the GL Master through FS00 for validation of mandatory consumption is required and i feel there is no issue with material master.
Rewards if it helps
Regards
Goutham -
Error in sales order when selecting a warranty item in configurator 'Please enter required information - Service Reference Type Code'
Not able to book the sales order because of this issueOrder Management does not support the inclusion of optional service items in a configured Model BOM (see Support article #1296751.1 for more detail). Allowing for such would therefore require customization.
As you've found, there's no modeling restriction that prevents you from creating a Model BOM that includes optional service items, nor is there any problem with creating a Configurator Model for it. And required service items (such as a warranty item that is a required child of an optional BOM component) do not present a problem; they have nothing to do with Configurator, and would never appear as sub-lines in OM. The problem arises in OM, which requires that any service item be "associated" to the item it's "servicing". OM does not automatically make such an association with service sub-lines, even though it might be argued that an association may be inferred by the BOM structure (i.e., OM does not assume that an optional service sub-line is necessarily associated, from a service standpoint, with its BOM parent). OM customization is therefore required in order to hook any service item up to its corresponding product item. Many customers who configure service along with product have implemented such a customization.
(Another gap in such a solution that may be relevant to you is that for an included optional service item requiring recurring billing, Order Management does not create the requisite Service Contract. Customers have likewise developed customizations to address this, as well.)
As this is not specifically a Configurator matter (you could have created your order without using Configurator at all, and you would have experienced the exact same behavior), please do not take my explanation as being either authoritative or comprehensive (I am a Configurator expert, and only knowledgeable enough about Order Management to be dangerous). It would be advisable for you to seek more detailed information/recommendations from the Order Management forum.
Eogan -
Creating a sales order via lsmw.
Hi,
I am creating sales orders via lsmw. Each of these sales orders may contain any number of line items, i.e. sales order 1 might have 3 line items and the next sales order may have 10.
How do I cater for this in lsmw. Is there a way of saying: when last line item, then start next sales order record?
Any help appreciated.
Regards,
Warren.HI, I create LSMW for sales order. It is working fine for 9 line items. IF more than 9 line item, other item is not updating. Pls provide me a solution. Thanks in Advance.
my email is [email protected] -
How to add freight in sales order via DI ?
Hi,
Does anyone know how I can set the freight value when I try to create sales order via DI. I checked SDK help, there is fields like BaseAmountSC. But it is read-only in DI. And I also found there is a table called RDR3, it says it is about freight in sales order but how I can access it in DI? Any suggestion?
Thanks a lot !
LanHi Gordon,
Thanks for your reply. I think we have setup the code in SAP B1 because when I click the arrow button beside freight label in SAP B1, it will pop up a screen which I can type freight. But my question is how I can set the freight in DI? Which object in DI level refers to freight and how I can link this object to sales order document?
Thanks,
Lan
Maybe you are looking for
-
Iphone recordings not playing on ipod
Clips recorded on an iphone (m4a) will play in itunes, but not all will play on my ipod. Do they need to be converted to another format?
-
I cannot enter a URL, or move back to the previous page. This started just this morning.Yesterday it worked normally.
-
Keyboard shortcuts for applying styles in Pages 5.0
In Pages '09, you could set a function key as a keyboard shortcut to apply either paragraph or character styles. But I don't see this in Pages 5.0. Have they taken it away or is there another way to do this? This feature was key for me-it saved me a
-
Pl/sql using enterprise manager or toad
A basic question : When it comes to writing PL/SQL code, testing, debugging and performance tuning(the pl/sql code itself), which of the tools are better (The OEM or would it be toad). I am looking for advantages that either or both of them have. Any
-
Stop and start while loop on order
Hallo everyone, I have this small IV, it means nothing but I want to know if it's possible to control each while loop. what I wish to do is to press the boolean button, then the while loop starts running and when i press it again the loop stops but w