Generating sales order and reserve invoice in a row
Hi all,
i'm using B1iSN PL14 with sap B1 8.8.
I need to build the following scenario :
I receive an xml file representing a sales order, i have to create :
- a sales order
- a reserve invoice based on the sales order
I've create two BIUs that currently work.
But now i'd like to chain the two BIUs and execute the the invoice creation only if a sales order has been created.
What is the best way to do tha kind of thing ?
thanks !
I found it difficult in a similar situation & unfortunately didn't get much response from here.
My workaround solution was:
- I removed the filter for the B1i user; it's explained in the extensibility guide I think. Basically B1i ignores any events created by itself, but I removed that so B1i received all events including ones created by B1i itself.
- When creating my first document (for the example lets say it was a Sales Order), I entered a specific text in the remarks field - you could also use a UDF
- Then my BIU for the second document then had the following conditions
Document = Sales Order
User = B1i
Remarks = CreatedWithB1i (for example)
So using this, any time my first BIU completed succesfully, it triggered the second one... it's clearly a workaround solution, but it worked for me.
Similar Messages
-
Table For Open Sales Order And Customer Invoices
Dear Gurus,
Are there any table to know open Sales orders and pending invoices for Customers?
Wishes,
AbhishekHi,
Go to T code VA05 and select open sales order radio button. Put other input parameters like date range or sold to . Execute you shal get list of all open sales order.
For pending invoices go to T code VL04 and you get list of all billing not yet created even though GI is done.
These are standard SAP functionality and can be used rather than looking in a table level.
Regards
Vivek -
How to make the connection between a sale order and an invoice in SDK
Hi,
Im trying to make the connection between a sales order and an invoice using the SDK.
Here is how i create each of them:
Invoice:
public int SalesInvoiceInternalSave(string buisnesspartnerCardCode, DateTime dueDate, double discountPercent, string id, IList<InternalItem> items, ref int invoiceId)
int res = 0;
SAPbobsCOM.Documents invoice_entry = (SAPbobsCOM.Documents)Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices);
invoice_entry.CardCode = buisnesspartnerCardCode;
invoice_entry.DocDueDate = dueDate;
invoice_entry.DiscountPercent = discountPercent;
invoice_entry.Reference2 = id;
foreach (InternalItem item in items)
invoice_entry.Lines.WarehouseCode = item.Shopid;
invoice_entry.Lines.ItemCode = item.Code;
invoice_entry.Lines.ItemDescription = item.Name;
invoice_entry.Lines.Quantity = item.Quantity;
invoice_entry.Lines.UnitPrice = item.Price;
invoice_entry.Lines.Add();
res = invoice_entry.Add();
return res;
Sales order:
public Boolean SalesOrderInternalSave(string orderId, string buisnesspartnerCardCode, DateTime dueDate, IList<InternalItem> items)
SAPbobsCOM.Documents order_entry = (SAPbobsCOM.Documents)Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders);
order_entry.CardCode = buisnesspartnerCardCode;
order_entry.DocDueDate = dueDate;
foreach (InternalItem item in items)
order_entry.Lines.WarehouseCode = item.Shopid;
order_entry.Lines.ItemCode = item.Code;
order_entry.Lines.ItemDescription = item.Name;
order_entry.Lines.Quantity = item.Quantity;
order_entry.Lines.UnitPrice = item.Price;
order_entry.Lines.Add();
int res = order_entry.Add();
return res == 0;
What do i need to change to get the connection between the two of them?
And how do you insert a amount (not percent) discount into an invoice?
Regards,
TorbenHi,
Add the sale order, then add the invoice. and while adding the invoice please add the following details to the invoce documen
invoice_entry.Lines.BaseEntry = 'Doc entry of the newly created SO
invoice_entry.Lines.BaseLine = 'Line No of the SO
invoice_entry.Lines.BaseType = 17 'For sales order document type.
Hope it helps,
Vasu Natari. -
Sales Orders And Downpayment Invoices
Hi,
I am trying to get a link between the Sales Order and the Downpayment Invoices.
As I open a Sales Order I cannot directly figure out weather it has a down payment
invoice or not. (DP Invoices will not show on Target Document Button on the tool bar)
Is there a way to Find it out??
When I am going through the ORDR Table I have noticed DpmDrawn, DpmPrcnt, DpmAmnt, DpmAmntFC, DpmAmntSC, Columns.
DpmDrawn Shows Values 'Y' or 'N' but rest of the fields are just showing default values (null or 0.00) for every Sales order.
Is there any setting I have to set up to fill those fields?
or is there a better way to check that Sales Order has a Downpayment Invoice??
Thank you very much for your help.Hi Suda,
Thanks for the quick answer. True, that is the way I use to find the DP invoices.
Problem is no one check it before they generate a new DP invoice for the Sales Order.
We end up creating few DP invoices for the same Sales order.
I just want to stop that. Thats why i am trying find out a link between sales order and the
DP invoice and show it with the Sales order or give a rule.
Thank you very much for the help.
Kind Regards
Sanjaya -
Query for Sales Order and AR Invoice Information
Hi,
I need to write a query which gives the flollowing sales order info along with the coressponding AR invoices info
Sales Order columns reqd:
OPERATING_UNIT
ORDER_NUMBER
CUSTOMER_NUM
CUSTOMER_NAME
ORDERED_DATE
FLOW_STATUS_CODE
TOTAL_ORDER_AMOUNT
AR invoice columns reqd for the sales orders:
Invoice number,
Invoice date,
Invoice Total.
Can anyone help me out with this?
Thanks,
AshHi Ash,
Table RA_CUSTOMER_TRX_ALL can be joined to RA_CUSTOMER_TRX_LINES_ALL table through CUSTOMER_TRX_ID column. The table RA_CUSTOMER_TRX_LINES_ALL.INTERFACE_LINE_ATTRIBUTE6 = OE_ORDER_LINES_ALL.LINE_ID. And from the LineId, you can get the HeaderId os the OE_ORDER_HEADERS_ALL table.
You must have visualized the query by now.
Thanks
Sumit -
Sales orders ans reservations not taken into account on MPS / MRP
Hello,
I am implementing the MPS / MRP and I have the following problem:
I have modified the necessary material master fields to take into account some materials on the MPS / MRP execution. These fields are MRP type, Lot Size, Strategy group and Availability Check.
Then, executing the MPS / MRP I have realised that only the sales orders and reservations created after the material master modifications are taken into account when I execute the MPS / MRP.
I suppose this is because the sales orders and reservations created before the material master modifications did not create the requirements because the availability check was not set for the material and so on... but I need to take into account these "old" reservations and sales orders .
Is there any way to "update" these orders and reservations?? Or I need to delete them and create new ones??
There are several sales orders and reservations created before the material master modifications. I think there have to be an standard way to update them.
Thank you very much in advanced,
Jordi.Dear,
Are you getting these reservation in MD04?
Check the Planning file entry for these material in MD21 if not then create it through MD20 and take MRP run with planning mode -3 Deleted and recreated. And Processing key NETCH.
Also check the The firmed receipt is within the rescheduling horizon. The rescheduling horizon is set in Customizing for the MRP group (Transaction OPPR, Table T438M). A default value can be predefined in the Customizing of plant data (Transaction OPPQ, Table T399D). define the longer duration for it.
The firmed receipt (the MRP element) participates in the rescheduling check. You can set which MRP elements participate in the rescheduling check in the Customizing of the plant data (Transaction OPPQ).
Else you can carry out modification A using the MD_CHANGE_MRP_DATA BAdI and the CONSIDER_RESB method without making a modification.
Regards,
R.Brahmankar -
Dump after creating new header text on sales order and invoice.
Hello,
We have created one header text on sales order and the same text for invoices, on VOTXN customizing.
Testing the new text, system let us save the text fine, but later, if we display the text, system give us dump error.
My question is, after transport the customizing to the next environment, is necessary run a standard program. Since VOTXN, we have generated the new access created, but dump appear displaying text header tab.
Any help on this?
Thanks in advanceHello Customer master table man
1) Did you review the dump analysis- ST22? Do that because the dump amy or may not be related to the Text config changes.
2) You are also mentioning about transporting? Did you already transport and are facing this issue in the target client or is it happening in the source client and you want to avoid it in the target? OSS note 1117467 throws light on transporting issues.
Review the following OSS notes:
548615 - FAQ: Text determination in SD II
548517 - FAQ: Text determination in SD I
1117467 - Text Customizing change not transferred in target system II
970153 - Change to Customizing text not transferred to target system
Hope this helps. -
Importing Sales orders and Invoices thru DTW
Hi every one,
I am facing a unique problem when using DTW to import sales orders and invoices through DTW.
I am using the two templates- Documents and Document Lines. But the imported Invoice or the sales order(In both cases) the dicount field in the row is taking a negetive discount value. Let me elaborate....
1. I am taking a BP which has been alloted a Particular pricelistcode in the BP Master.( say it be Purchase price).
2. Now In the Doc_lines Template I have put the value in the price column- (eg. Rs. 500).
3. Now the itemcode used in the template is already having a masters and the prices are also defined in SAP B1. Say the Purchase price defined for the item is Rs.400
4.When I am importing the order/nvoice then the discount field in the row automatically takes a value of -25%, the unit price has the value Rs.400 and the Total Field shows Rs.500.
( this Implies that the price I have suggested to Import i.e. Rs500 is some how not taken by the system. The system takes the price defined for the BP and then adjusts it with the price suggested by the user during import) So a negetive discount is taken.
On the other hand if the same procedure is followed for an item where the prices are not updated in the master data then there is no such problem. the unit price field reflects the price which is given in yhe template.
please suggest a way to get out of this problem.Hi Debraj,
Try the following..
In Admin > System init > Document Settings > General Tab ..Calculate the Row total using Unit price ....... leave this unchecked
Also, at the Document_lines template fill the discount column with 0
Suda -
Report to list manual changes to conditions in sales orders and invoices
Hi experts,
Is there a Standard Report to list the manual changes of pricing conditions in sales orders and invoices?
Should be a selection on the field KONV-KMPRS.
Please advice.
Rgds,
PriHi priya,
In the Sales Order,Select Environment and then Changes to See all Changes made.
Follow the Same procdure for Invoice also.
There is no Standard report as such to see the changes.
Thanks,
Neelima. -
How to create Sales order and Invoice in Foreign Currency
Dear All,
What are the procedures I have to do to create the sale order and Invoice in Foreign currency.
Is it enough if I maintain the currency in the Customer Master and Excahge rate OBBS.
or
We have to do someting in the Sales order (Change the currency document header level)?
Kindly explain.
Regards,
MullairajaDear Mullairaja
Under customer master you can maintain currency eg. usd, eur etc. that will do.. (hope you have maintain diift. Dist. Channel for Export sales and maintain Recon A/c for export revenue.) This will copy to Sales order.
Under t.code OB08 we maintain the Currency Exchange Rates which will help for copying control.
Under Displaying Billing document - Accounting - you can click on Display Currency Tab, here you will understand the rate conversion i.e from USD to INR.
Thanks & Regards
Hrishikesh K -
Creation of u201CHeader Textu201D in sales Order and Invoice
Dear friends,
Can any one guide me the complete configuration settings that are required for creation of u201CHeader Textu201D in sales Order and Invoice. Please help me to overcome this issue.
Regards,
Bhanu.Hello Bhanu...
Hope you are aware of the configurations you need to maintain for the Text determination.Anyway, herewith are the steps that may help you to accomplish your requirement.
Text Determination procedure for sales document header:
Text can be determined at sales document header level or it can be imported from customer master. The process is...
Define Text types:Path: Imgsales and distributionbasic functionstext controldefine text types
Select sales document header. Click on text types go to new entries and define text types. For Eg:Z1
Define Access sequence:
Select sales document header
Click on change icon
Click on access sequence control button under dialog structure
Go to new entries and define access sequence number with description.Ex: 55
Save it and exit
Define text determination procedure:
Go to new entries
Define text determination procedure.Ex: ZX save it and exit
Assign text id's to text determination procedure:
Select your text determination procedure(ZX)
click on text id's in text procedure control button under dialog structure
go to new entries and maintain entries. Text id:assign text id (Z1) that we defined in the previous step
Specify sequence No-10
Check Reference: this indicator specify that the text is reference or copies from preceding object
Text in obligatory: text will be displayed during copying. the value of this field specifies whether text is obligatory or not and if it is obligatory the how it is to be displayed
Apart from this... you also have to maintain the text in the Customer master as mentioned in the previous mail..
For this you have to maintain the customer text.Do the following steps.
1. Go to Customer master, Choose from the Menu Extras --> Text and mention the text
2. Then in a sales order automatically wehn you are entering that sold to party..the header message will be appearing..
In a nutshell i would request you to check weather you have maintained the Sales-Customer text KNVV and also that you have maintained all the required customizing settings for the text procedure, access sequence etc were completed....?
Also make sure that the text type is also inclueded in the text determination procedure of the sales document header...
Note: If all the settings of text determination exists and still if the text is not appearing then In sales document Header Text procedure, select sales header procedure, then select Texts in procedure. Check for the Header note, No. box is checked. This check mark ensures text is to be displayed when it is copied..
Its should be working if all the requried setting are made....
Reward if this helps..
Thanks,
Safeer Rahman -
Inconsistent updation of sales group in Sales order and invoice
Dear all,
The sales office and sales group is properly updated in the specific sales area master data of the customer but not flowing in the sales order and subsquently in the invoice. For some documents it gets updated and for others the filed is blank.
I have checked the master data and also the documents and found no errors. Please help in how to solve the issue. I need 100% updation of sales office and sales group in the order and invoice. Please advice how to solve the issue.
Regards,
Parthasarathy.RDear Parthasarathy,
Request You to post the same query in SD Forum
You will get quick response there
this is PP forum
Hope You Understand
Regards
kumar -
Text copy from customer master to Sales order and invoice
Dear friends,
when i maintain the text in the customer master ther needs to copy to sales order and from sales order to invoice.
Can you please guide me how to do this config
Thanks
Raju.Dear Raju,
First you need to do the Text determination for all areas(i.e Customer Sales and distribution,Sales order header,delivery header and billing header) through VOTXN transaction.
-->Create the Customer text ID under Object KNVV
Maintain the text for Text ID in the customer master >sales area data>Extras-> Text
To copy the customer text to the sales order you need to keep KNVV table as Text object in the sales order text access sequence for the text ID.
If you want to copy the sales order header text to the invoice header first you need to copy the sales order header text to the delivery header from delivery you can copy to invoice.
When you want to copy the Text from Sales order to delivery the Access sequence will place a role
If you want to copy the sales order text to the delivery document The Text Object should be VBBK in the delivery Header Text determination access sequence for that Text ID
Again you can copy the text from delivery to Billing document through checking the Delivery Text field in the billing document detail screen (Top most bottom of the screen).
Go to VOFA transaction select your billing document type then go in to the details here you can find the Delivery Text field you just check that check box.
Now system will copy the sales order header text to the delivery header then it will copy to the invoice header.
I hope this will help you,
Regards,
Murali. -
Max.cond.base value - wrong line totals in Sales Order and Invoice
Dear Experts,
In my pricing procedure, I have set the field Max.cond.base value as 1 in VK12 (in additional data) for one of my condition type ZR16 . If Max.cond.base value is set as 1 for ZR16 condition type, the value for ZR16 will be considered only for the 1st quantity for that item. All subsequent quantities for that item will not be considered. This works fine in Sales Order and when I enter the same material in 2 line items with qty 1 each, only the first line item considers ZR16 value in total net value and the second line item does not consider the value of ZR16 in the total, which is correct.
Problem arises when I create individual deliveries and individual invoices for each line item. Although the ZR16 value is not considered in the total for the second line item in the sales order the value is being considered in the invoice which is wrong. I tried various scenarios and found this issue arises only with domestic customer and not with overseas customer. Issue is that the line total value value calculated correctly in sales order is reflecting wrongly in Invoice when I use Max.cond.base value. I am confused if this is a pricing procedure related issue or copy control related. Please share your valuable inputs.
Regards,
MadhavanI tried various scenarios and found this issue arises only with domestic customer and not with overseas customer
Compare the access sequence combination and condition record in both the above cases and check which one is differing and creating issue.
the line total value value calculated correctly in sales order is reflecting wrongly in Invoice
Again here also, compare the Analysis tab which should be self explanatory to find out the root cause of the issue.
G. Lakshmipathi -
Hide the cost and margin fields on Sales Orders and Invoices
Hi all,
I need to hide the cost and margin fields in Sales Orders and Invoices. We sell our products to our employees sometimes, hence we don't want them to know cost and margin information.
Can this be done?
CheersGo to VOV7 & as per the Item category ,de - select the Check Box Determine Cost.
Else remove the Condition Type VPRS & Margin Condition type from the Pricing Procedure
Best Regards,
Ankur
Maybe you are looking for
-
Hi everyone , i am building a simple GUI playing mp3 files in a certain directory. A bug or something wrong with the codes listed down here is very confusing me and makes me desperate. Can anyone help me please ? import javax.swing.*; import javax.me
-
HOw i make id for my kids after being ask to add credit card and ones on file
-
Passing values from multiline container
Hello Gurus, I am new to workflow and I have a requirement wherein I have a multiline container element (DiscDocStatus of type EDISCDOC-STATUS) filled with the status values. If all the values in container DiscDocStatus are 10 or 11, then I need to e
-
HT1551 apple tv was downloading update and power went out
Cant get the Apple tv to work, I was updateing the software and the power went out, now it won't work at all? any idea what to do ?
-
Issue in migrating analysis service job from one server to another
Hi All, I'm migrating analysis services from one server to another, within the source server there is a job with the name denreportingprocess which executes a batch file within local drive on server. I have moved all the analysis services cubes from