Additional Expenses in PLD
Hi,
How i can print additional expences in PLD line by line.
eg.
Packing Charge = 10
Freight = 20
Total 30
regards
Suresh S
Suresh,
The forum that you have posted your question in is for questions related to the SAP Business One SDK. Your question seems application related to the SAP Business One PLD. While you may get a response here, you may receive a faster response by posting your question in the SAP Business One Discussion Forum or entering a message with SAP Support.
Eddy
Similar Messages
-
Hi All,
We are using SAP 8.8 PL 15.
We take following steps for a import cycle.
PURCHASE ORDER
GOODS RECEIPT PO
LANDED COST
AP INVOICE
WHEN WE RECEIVE FREIGHT , CLEARING , INSURANCE ETC BILLS (The additional expenses occured in import) we book them .
After that we are interested in knowing raw material cost. Because we are unable to link our freight bills to the LANDED COST
DOCUMENT which is pulled from GRPO.
Any help would be greatly appreciated.
Thanks
Malhaaar.Hi Rahul,
Our inventory is getting re valuated properly.
Only thing is that , when we see a service invoice let us say for clearing charges in A/P Invoice then we are unable to make out against which shipment we paid this clearing charges.
Or to put it in other words , If in a financial year we pay X amount towards clearing charges to S.J Thacker then we do not know the shipments associated with the bills.
Through Form Settings, I displayed base ref , base type etc columns but no trace. They are blank.
Thanks
Malhaar -
List of invoices where some additional expenses were posted
Dear All ,
Is there any reports to list the of invoices, where some additional expenses were posted ?
Thanks,
DashI assume you have a specific document type for your invoice posting. If you have, a simple GL line item list will suffice for your requirement. Use the Document Type and the Expense GL account as parameters.
-
Internal Error (-5002) on adding Additional Expenses in a sales-document
Hi All,
I try to add an additional expense in a sales-document. I receice an internal error (-5002) What is the problem ?
I want to transfer the additional expense from a sales-order to my target delivery note.
See my example in C#:
oDlvNote.CardCode = cuno;
oDlvNote.DocDueDate = oDate;
string queryvx2 = "Select ExpnsCode, LineTotal, Comments,
DocEntry, LineNum From " + tablenameexp + " Where DocEntry
= " + origornov;
using (System.Data.SqlClient.SqlDataReader sqlReadervx2 =
SwissAddonFramework.B1Connector.GetB1Connector().ExecuteQuery(queryvx2))
while (sqlReadervx2.Read())
expcode = sqlReadervx2.GetInt32(0);
linetotexp =
Decimal.ToDouble((Decimal)sqlReadervx2.GetSqlDecimal(1));
remarksexp = sqlReadervx2.GetString(2);
docentryexp = sqlReadervx2.GetInt32(3);
linenumexp = sqlReadervx2.GetInt32(4);
oDlvNote.Expenses.BaseDocEntry = docentryexp;
oDlvNote.Expenses.BaseDocLine = linenumexp;
oDlvNote.Expenses.BaseDocType = objectnr;
oDlvNote.Expenses.ExpenseCode = expcode;
oDlvNote.Expenses.LineTotal = linetotexp;
oDlvNote.Expenses.Remarks = remarksexp;
---> oDlvNote.Expenses.Add();
oDlvNote.Lines.ItemCode = Artikel;
Regards,
RolandHi Roland,
I think it's the same issue as here:
-5002,if you reference production in a row,so all rows should be refer prod
Regards,
Frank
PS: Expenses are a "lines" type oject - just like Document_Lines - which are handled in the TB1300
Message was edited by:
Frank Moebius -
Additional expenses on existing delivery
Im trying to add additional expenses on delivery which is created already and has no invoice (customer direction).
I have code
Dim odocument As SAPbobsCOM.Documents
odocument = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDeliveryNotes)
If odocument.GetByKey(docentry) Then
odocument.Expenses.Add()
odocument.Expenses.SetCurrentLine(1)
odocument.Expenses.ExpenseCode = 1
odocument.Expenses.LineTotal = value
Dim err_code As Integer
err_code = odocument.Update()
Dim err_msg As String
If err_code <> 0 Then
oCompany.GetLastError(err_code, err_msg)
MsgBox(err_msg)
End If
End If
but it alwazs ends with internal error after .update. Is it even possible to update existing delivery with expenses through DI?Have you tried manually update this existing delivery with additional expenses? If you can, update should work from DI too. Otherwise, it is not possible.
Thanks,
Gordon -
Add Additional Expenses to Invoice
Hi,
I have a problem that I hope you can help me with. See description below:
Workflow
1. User genrates delivery in B1 and adds info. Performs external process to calculate shipping expenses.
2. The expenses calculated in step get filled in a UDF on the Delivery.
3. User opens A/Rinvoice and converts the delivery added in Step 1 to an invoice.
At this stage, I would like to be able to pull the expenses from the UDF on the delivery to the invoice.
Please advise on best solution.
This is a big problem for us. Any help is appreaciated.
Thanks.Hi,
I think you can try this approach:
1. Create a UDF in the Invoice to store the info (if its already created just for testing create another one).
2. In the Invoice UDF create a Formatted search that based on the BaseType and BaseEntry of the first line of the invoice (Table INV1), query the UDF Field in the delivery (ODLN).
If the invoice is based in more than one delivery this approach will not work and you will have to develop a solution for this (that is not that difficult).
Hope it helps :-D
-M -
Additional expenses in a documents
Hi
I need to add the additionalexpenses (with SDK) before to save the invoice with the client. I try to use the documentadditionalexpenses object but I have some problems to use this object.
The first problem is that there isn't the docentry of the document that is the key of the inv3 table.
Can you help me?
thanks
Ritatry something like this
oInvoice = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
oDelivery = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDeliveryNotes)
'Looping through the expenses
For y = 0 To oDelivery.Expenses.Count - 1
'Setting the Delivery expense
oDelivery.Expenses.SetCurrentLine(y)
If y > 0 Then
oInvoice.Expenses.Add()
End If
'Checking if the total is NOT 0
If oDelivery.Expenses.LineTotal <> 0 Then
oInvoice.Expenses.BaseDocEntry = iDeliveryNote
oInvoice.Expenses.BaseDocLine = oDelivery.Expenses.LineNum
oInvoice.Expenses.BaseDocType = 15
End If
Next y -
Add additional join to a PLD report
Hi. I would like to print the address for the father card on the AR invoice. To do this I need to add an additional join to the ocrd table. Can you add an additional join in PLD reports or do I need to recreate this in Crystal?
Thanks!
Serena CyrHi. Thanks so much for your response. The problem is I'm trying to display the ship to address for the customer which is how the joins are already setup to the ocrd table. I'm trying to display the bill to address for the consolidated business problem. This is where the problem is. Can I create an additional reference to the ocrd table with a different join to the fathercard instead of the business partner in PLD or do I need to recreate this report in Crystal?
Thanks!
Serena -
Freight Charges Break up in PLD
Dear all,
Can any one help me in showing the freight charges break up in PLD. My client is putting Packing and Forwarding charges along with the freight charges in the freight
for example,
freight = 100
P&F = 20
but in document it will display as freight = 120
how can i show this break up in PLD
please help me experts..
thanks and regards,
Yeshwanth PrakashDear Yeshwanth,
This could be possible via UDF and FMS. Please try the following:
1. Create UDFs on Marketing Document header level - number of UDF
depending on the max number of Additional Expenses from the OEXD
2. Use query like below for UDF1:
SELECT T2.EXPNSNAME + ' ' + STR(T1.LINETOTAL) + ' ' +
STR(T1.VATSUM) + ' ' + STR(T1.VATPRCNT)
+ ' ' + STR(T1.LINEVAT)
FROM OINV T0
INNER JOIN INV3 T1
ON T0.DOCENTRY = T1.DOCENTRY
INNER JOIN OEXD T2
ON T1.EXPNSCODE = T2.EXPNSCODE
WHERE T0.DOCNUM = $OINV.DocNum
AND T1.LINENUM = 0
Use query like below for UDF2:
SELECT T2.EXPNSNAME + ' ' + STR(T1.LINETOTAL) + ' ' +
STR(T1.VATSUM) + ' ' + STR(T1.VATPRCNT)
+ ' ' + STR(T1.LINEVAT)
FROM OINV T0
INNER JOIN INV3 T1
ON T0.DOCENTRY = T1.DOCENTRY
INNER JOIN OEXD T2
ON T1.EXPNSCODE = T2.EXPNSCODE
WHERE T0.DOCNUM = $OINV.DocNum
AND T1.LINENUM = 1
and so on.
NOTE: The line number is important as there can be more than
one additional expense for the same Document Number;
Note that the query draws the details of one single record per
from the Add Expenses Table. You can make the amendments in the
query as required by either removing or adding more fields;
like increase space between the fields etc
3. Add the UDF to the Layout.
Hope this will help.
Regards,
Gagan Thareja
SAP Business One Forums Team
Edited by: Gagan Thareja on Mar 24, 2009 2:27 PM -
PLD Freight in Repetative Area
Hi Experts,
I have 20 items in A/R Invoice, and have 1 Freight amount say at 1500/-
I am trying to give detail in the A/R Invoice PLD, for this I added one more Repetative Area, but the Freigt details are appearing 21 times (as many times the number of items there are in the invoice).
How can I make the detail appear only once in the another repetative area.
Is there any way to group the freight field, and prevent it from appearing more than 1 number of times
Regards,
Murtaza R.E.Hi,
Could you please try out the following:
1. Create UDFs on Marketing Document header level - number of UDF
depending on the max number of Additional Expenses from the OEXD
2. Use query like below for UDF1:
SELECT T2.EXPNSNAME + ' ' + STR(T1.LINETOTAL) + ' ' +
STR(T1.VATSUM) + ' ' + STR(T1.VATPRCNT)
+ ' ' + STR(T1.LINEVAT)
FROM OINV T0
INNER JOIN INV3 T1
ON T0.DOCENTRY = T1.DOCENTRY
INNER JOIN OEXD T2
ON T1.EXPNSCODE = T2.EXPNSCODE
WHERE T0.DOCNUM = $[OINV.DocNum]
AND T1.LINENUM = 0
Use query like below for UDF2:
SELECT T2.EXPNSNAME + ' ' + STR(T1.LINETOTAL) + ' ' +
STR(T1.VATSUM) + ' ' + STR(T1.VATPRCNT)
+ ' ' + STR(T1.LINEVAT)
FROM OINV T0
INNER JOIN INV3 T1
ON T0.DOCENTRY = T1.DOCENTRY
INNER JOIN OEXD T2
ON T1.EXPNSCODE = T2.EXPNSCODE
WHERE T0.DOCNUM = $[OINV.DocNum]
AND T1.LINENUM = 1
and so on.
3. Add the UDF to the Layout.
NOTE: The line number is important as there can be more than
one additional expense for the same Document Number;
Note that the query draws the details of one single record per
from the Add Expenses Table. You can make the amendments in the
query as required by either removing or adding more fields;
like increase space between the fields etc
Hope this will help.
Regards,
Gagan Thareja
SAP Business One Forums Team -
Freight Breakup of A/R Document in PLD
I need Freight Breakup of A/R Document in PLD.
I have created multiple freight seeting in the the Freight Setup.
When Adding these values in A/R Invoice I need the breakup in PLD
Please help.Dear Aslam,
Could you please try the following:
1. Create UDFs on Marketing Document header level - number of UDF
depending on the max number of Additional Expenses from the OEXD
2. Use query like below for UDF1:
SELECT T2.EXPNSNAME + ' ' + STR(T1.LINETOTAL) + ' ' +
STR(T1.VATSUM) + ' ' + STR(T1.VATPRCNT)
+ ' ' + STR(T1.LINEVAT)
FROM OINV T0
INNER JOIN INV3 T1
ON T0.DOCENTRY = T1.DOCENTRY
INNER JOIN OEXD T2
ON T1.EXPNSCODE = T2.EXPNSCODE
WHERE T0.DOCNUM = $OINV.DocNum
AND T1.LINENUM = 0
Use query like below for UDF2:
SELECT T2.EXPNSNAME + ' ' + STR(T1.LINETOTAL) + ' ' +
STR(T1.VATSUM) + ' ' + STR(T1.VATPRCNT)
+ ' ' + STR(T1.LINEVAT)
FROM OINV T0
INNER JOIN INV3 T1
ON T0.DOCENTRY = T1.DOCENTRY
INNER JOIN OEXD T2
ON T1.EXPNSCODE = T2.EXPNSCODE
WHERE T0.DOCNUM = $OINV.DocNum
AND T1.LINENUM = 1
and so on.
NOTE: The line number is important as there can be more than
one additional expense for the same Document Number;
Note that the query draws the details of one single record per
from the Add Expenses Table. You can make the amendments in the
query as required by either removing or adding more fields;
like increase space between the fields etc
3. Add the UDF to the Layout.
Hope this will help.
Regards,
Gagan Thareja
SAP Business One Forums Team
Edited by: Gagan Thareja on Apr 6, 2009 3:08 PM -
Adding additional expenes via DI API
Hi folks,
I have an addon which creates an Invoice based upon a Delivery which has been working fine. The client is now using additional expenses and I need to move these across from the Delivery Note to the Invoice.
I am receiving an error of 2028 but with no description.
Here is the code I am using...
For iLineCount = 0 To oDelNotes.Lines.count - 1
With oInv.Lines
oDelNotes.Lines.SetCurrentLine iLineCount
If iLineCount <> 0 Then
.Add
End If
.BaseEntry = lDocEntry
.BaseType = 15 'Type Delivery
.BaseLine = oDelNotes.Lines.LineNum
.SalesPersonCode = oDelNotes.SalesPersonCode
'ADD THE EXPENSES
If oDelNotes.Lines.Expenses.LineTotal > 0 Then
.Expenses.SetCurrentLine iLineCount
.Expenses.Add
.Expenses.ExpenseCode = oDelNotes.Expenses.ExpenseCode
.Expenses.LineTotal = oDelNotes.Lines.Expenses.LineTotal
End If
End With
Next iLineCount
l = oInv.Add
Can anyone see what is incorrect or shed some light on error -2028?
Thanks,
RobinHi,
Just in case anyone has a similar issue, I was missing the Vat Group field...
.Expenses.VatGroup = oDelNotes.Lines.Expenses.VatGroup
Thanks,
Robin -
Extra expenses at invoiving stage
Hi Experts!!
How to charge expense on PO after goods receipt (MIGO). Actually, some expenses are included on provisional basis in PO (purchase order) and for the sake of operations, we have to post goods receipt (MIGO) and later on, at invoicing stage (MIRO) we get actual bills to be paid. My question is, how should i treat extra expenses (i.e. not included in PO previously).
problem is that, if i hit stock for that, then it will update moving average for materials available in stock; which would not be justified, because we have high consumption rate (i.e. only 20% of the purchased material are available at invoicing stage).
Please guide me, what should i do.
RegardsHI,
The additional expenses which are not included during Purchase ORder creation, can be booked in the Invoice Verification
We can include expense line items in the GL Account tab during MIRO.
It would suffice your requirement as I believe.
Work this out and let me know if you need more information.
Regards,
Ramesh. -
Why is Captivate 4 so expensive for Aussies?
Sorry people, complain / whinging here, not a question:
Can anyone explain why my Captivate 4 upgrade costs so much more just because I'm based in Australia?
How can something priced USD299 be A$482?
My company's been a loyal Captivate user since the macromedia version 1, and we've never even called Adobe for support since the forum and other online resources are so good.
Just doesn't make any sense to me, but unfortuantely everyone from Adobe to Apple thinks it's OK to rip us off.Hi there
Hopefully Michael's suggestion will work for you.
Just to let you know, the issue extends beyond AU. I have a good friend in England that has the same issue. I may be wrong, but I think it's got something to do with the fact that things are in other countries and different languages are used in many places. As a result, they have to localize into the other languages and an additional expense is involved with that and it drives up the cost of the software.
Unfortunately, you likely use English where you are and localization isn't really needed. So you are effectively subsidizing the cost for the other countries where English isn't the main language.
Just my .02 worth. But given today's economic conditions, I think I probably owe you $20 because of the devaluation!
Cheers... Rick
Helpful and Handy Links
Captivate Wish Form/Bug Reporting Form
Adobe Certified Captivate Training
SorcerStone Blog
Captivate eBooks -
Writing additional charges in Order
Hi,
I have to write additional charges in the Dialog Order (139) in relation to weight.
Some facts affecting the proceeding:
1)
The weight have to be sumed up iterative. So it is not possible to work with Formatted Search and I have to work over the UI.
Steps I finished already:
1)
Activating the devilery-costs in the settings of Order. The Form "dumps" is available over a linked button.
The column 3 is the column that takes the amount and sends his value to the textbox additional charges.
2)
A program that reads all the values I need to determine the value of costs out of a UDT
the following steps I tried:
1)writing in the matrix of dumps
this.form = null;
this.form = this.sboConnection.getSBOApplication().Forms.GetFormByTypeAndCount(3007,1); //formType = 3007
this.matrix = (Matrix)this.form.Items.Item("3").Specific;
this.editText = (EditText)this.matrix.Columns.Item("3").Cells.Item("1").Specific;
this.editText.Value = amount;
problem: the program drops out when I try to initialize the form
2)writing to the textbox additional charges in form Order
this.form = this.sboConnection.getSBOApplication().Forms.GetFormByTypeAndCount(139,1);
this.editText = (EditText)this.form.Items.Item("89").Specific;
this.editText.String = amount;
problem: I cannot set the value, I because the item disabled. When I try to enable it the program drops out.
The table for the charges is OEXD. But the only value that affects the corresponding cell or textbox is fixed amount.
The Order- Dialog gets it, when it is loading.
Maybe somebody has a hint for me.
I will appreciate it.
MarcFrom my point of view, i would suggest to use the DI-API,
access the Document-Object (and the Document-Objects
child, the DocumentsAdditionalExpenses-Object) after
the order is saved.
But I suppose you would like to add the Additional Expenses before the order is saved,
so the user who wants to save the order can see the additional costs
and decide whether to save or not?
According to the Manual, Additional Expenses must be defined.
(Administration-> System Initialization-> Document Settings, General Tab->
Define Expenses button)
By DI-API, use the AdditionalExpenses-Object, in VB6 something like
Dim objAddExp As AdditionalExpenses
Set objAddExp = vCmp.GetBusinessObject(oAdditionalExpenses)
'// set needed properties here
objAddExp.Add
1)
"UI-API-Clicking" Item 91 will open the Expenses Window
with type 3007 (I think thats what you do at the moment).
Hm, you get the handle to the window GetFormByTypeAndCount..
> problem: the program drops out when I try to initialize the form
What do you mean with: the program drops? When you call GetFormByTypeAndCount?
Maybe you are to early with GetFormByTypeAndCount and should Sleep() and DoEvents or
something until the form is loaded?
Personally I would try to store the "new" Expenses value somewhere,
react on the FORM_OPEN, fill the remembered value to the matrix
and UI-press Item 1.
This way you don't need to have a reference from the order form to the expenses form
or the other way arround, the expenses form is modal, anyway.
2)
According to the UI-API manual, you can't enable system items.
Message was edited by: Frank Moebius
Maybe you are looking for
-
Error message downloading iTunes 8 to XP
Recently I got an iPod touch and needed to update my iTunes on my computer so it would be compatible with my iPod. When I tried to update my iTunes to the latest version however, an error message popped up halfway through the installation that said:
-
VmWare, Solaris 10, x86, Patch 120536-05, video drivers
Hello, I have Solaris 10 x86 working under VmWare 5.x with JDS. I use the Xorg VmWare video driver with a resolution of 1280x1024. Everything works fine as long I don't apply the patch 120536-05 (updated video drivers and fixes). I mean the only reas
-
Application server 8.1 alternative for Setting the Document Preferences
hi All, I used to do the following under application server 7 to set the Document preferences: To use the Administration interface to set the document preferences, follow these steps: 1. In the left pane, for the application server instance, open HTT
-
HT204053 i lost my ipad and i want to block it, how do i go about it?
i lost my ipad and i want to block it, how do i go about it?
-
I am having the 1000 files in a directory and all the files are of extension ".jad". So how can i change the extension of all files from ".jad" to ".java" through a java program.