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
Similar Messages
-
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 -
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.
-
Error adding Freight as Expense to Invoice in DI API after SAP upgrade
Hi All,
We recently upgrade from
SAP B1 2005 A (6.80.320) SP: 01 Patch Level 36
to
SAP B1 2007 A (8.00.178) SP: 00 Patch Level 42.
A .Net application using the DI API has successfully created orders/invoices with Tax and Freight charges successfully for years. We upgraded to SAP 2007 and I upgraded the SAPbobComm library in the application (and 3 other integration apps). Now, I can currently create new Invoices as long as the invoices don't require me to add the Freight charges. If I include freight charges, I receive the following error:
"Internal error (-5002) occurred"
Here's the code I'm using to add the Freight charges:
oInvoice.Expenses.Add()
oInvoice.Expenses.ExpenseCode = 1 'ExpnsCode value for the "Freight" expense in the OEXD table
oInvoice.Expenses.LineTotal = dblFreight
oInvoice.Expenses.TaxCode = "GEN"
returnCode = oInvoice.Add
I haven't touched this code in years, so any help would greatly appreciated.
Thanks.How did you fix this issue?
Thanks,
Shea -
Payment proposal Exception list - Add additional items to the exception lis
Hi,
We have a requirement to add additional vendor open items (having Bank type as ABC and Payment method as Y) to the Exception list of the payment proposal when we run F110. Along with other open items which are may be blocked for payment or which require corrections that normally appear in the exception list, we also need the vendor open items satisfying the criteria of (having Bank type as ABC and Payment method as Y) to be appearing in the exception list.
We don't want to exclude these items altogether by putting them in the 'Free selection' tab of F110 but rather want them to be in the exception list.
Any inputs are appreciated.Hi
All payments due will be selected by the payment run depending on the selection criteria you enter. I.e. if you need invoices due with payment method Y, enter Y in the payment method selection.
I am not clear to what you mean by Bank type. However, do note that in the "Free Selection" tab allows you to include specific fields as well. I.e. by not selecting "Exclude values". -
Allowing users to add additional lines in a PDF form?
I'm using Adobe acrobat X Pro to create PDF forms to capture invoicing information. Yet I can't figure out how to allow a user to add additional charges. I could create a form that just had a large amount of charge lines that could be left blank but was hopeing to allow for a dynamically adjusting form where someone could click a button to just add a new line entry into the form and the form would adjust down and enter in a new set of line entries. Is it possible to do this in Acrobat X Pro?
For the foorm to auto-adjust in response to adding a new line, you should look into what a dynamic XFA form that you create with LiveCycle Designer has to offer. LiveCycle Designer comes with Acrobat Pro as a separate application. More information is in the Designer help docs, in the LiveCycle Designer forum here, and in a number of tutorials at acrobatusers.com
-
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 -
Bill Presentment Architecture - Add additional line columns in template
Hi,
I am going to add additional columns in lines level in BPA template. The template is for all our invoices which include manually entered invoices and invoices imported from other systems. I knew we need to create a supplemental data source base on a context value, but manually entered invoices don't have a context.
How can I create a supplemental data source for manually entered invoices?
We have three context values defined for ar invoice import from different legacy systems and plus manually entered invoices. Do we need to create 4 templates base on 4 data sources?. Can we only create one template (need additional columns in line level) for all invoices? Would be very helpful, if I get how to do these.
Thanks.
RichardThanks to all I have got solution.
Regards
[email protected]
Ravi.
Edited by: Ravi G on May 20, 2013 1:54 PM -
Add additional page to Remittance Advice
Hello Experts,
I am working on Remittance Script.
In Remittance Advice , there are three pages, FIRST,NEXT and LAST.
I need to add additional page to the existing Remittance layout.
This page should show the additional data for all PO/SES related to the invoice and should be printed before the last page which just contains summary.
I am able to add the additional page with CONTROL_FORM but am not sure how to print the data
on it. I tried creating an additional main window but it says there can be only one main window (which already exists in the layout)
there can be multiple pages with the PO/SES data.
Requst you to please help me in this.
Many thanks in advance,
Priyanka GaurHi,
Try to check for the Page name equal to your summary page in Main window and print the details which you want to present only in that page. You can use the symbol &ITCTG-TDPAGE& to get the current page.
Regards,
Vimala P -
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 -
How to add additional fields to zreport which contains standard report code
Hi Experts,
In order to add additional fields to standard report i copied the code into zreport but i am unable to add additonal field into report because the code is looking so complex.
standard report:AQZZ/SAPQUERY/FKF1============
or
sapmenu->accounting->financial accounting->accounts payable->information system->reports for accounts payable accounting->master data->S_ALR_87012087-Addresslist.
Additional feilds to add is :Region,company code,country
Please let me know how toidentify ALV and guide me how to solve this.
Regards,
naresh.Hello Naresh,
First check whether these three fields are available in the text elements area.
Please write your code in the subroutine %comp_ldesc.
Repeat the code for your three new fields
perform ldesc(rsaqexce) using 'G00010000X010 00 A1'
%txt1 %txt2 %txt3 'LFA1-LIFNR' LFA1-LIFNR 'LFA1-LIFNR'.
read table %textpool_langu into %textpool_langu_line
with key ID = 'I' key = 'A01'.
if sy-subrc is initial. %txt1 = %textpool_langu_line-entry.
else. %txt1 = %txt_unknown.
endif.
So this subroutine will give you the basic list. Now Program is creating ALV with this basic list. So I think you don't need to worry about that. Please have a thorugh look at the code over this perform, and write accordingly.
I think this is enoogh.
Please update if you got the solution, which will be informative for others.
regards,
Antony Thomas
Edited by: Antony Thomas on Jul 27, 2010 7:57 AM -
How To Add Additional Fields When Creating New Contact From w/in Mac Mail?
Hi there. When in Mac Mail and clicking on contact information provided within an email, we are able to either (1) CREATE NEW CONTACT or (2) ADD TO EXISTING CONTACT (by clicking on the arrow next to a phone number, address, etc.). If I choose "Create New Contact," how can I add additional fields BEFORE clicking on "Add to Address Book" button in lower right corner? Let's say, for example, I know this new contacts URL or company. (Currently, I am creating the new contact from within Mac Mail and then going to Address Book and finding the contact, then editing, the adding the additional fields, then saving, and then going back to Mac Mail. This all takes time.)
Note: When creating a new iCal event from within Mac Mail, we can click on Option/Alt key when selecting drop-down arrow...and this will allow us to add additional information. The same feature isn't available for address book???I have the exact same question and problem. If there was a way to automatically open the AB entry after "creating new contact" this would solve it.
Thanks for any suggestion -
when i open safari on my Imac if i also open an additional window, when i then close them down and reopen safari they both paper again.also if i then add additional windows the additional windows keep coming up too
If you are running v10.7 Lion, disable Resume > How To Disable Lion's 'Resume' Feature - MacRumors.com
-
How to add additional field to the existing report
hi,
report name is RHXPE_EXPIRED_QUALI
if u execute report alv list is genereted with like this.
object type, id of related object, object name, object type, id of related object,last name, first name like this
where can i get these field descriptios in the prigram becoz many perform ststements r there. i want to add additional field text.
program is:
CORRECTIONS
DATE CORRECTION NOTE AUTHOR DESCRIPTION
09.03.2001 0388404 XSC Wrong list output for multiple Os
05.06.2001 AL0K023393 0410219 Lud Wrong keydate for search with
Pchbegda and pchendda.
30.01.2002 S6BK000033 0491055 TS Report: RHXPE_EXPIRED_QUALI
doesn't provide a spool list.
REPORT rhpk_find_pers_with_expired_qu MESSAGE-ID pq.
TABLES : pchdy.
INCLUDES
INCLUDE rhxmacro.
INCLUDE rhpeini0.
TABLES
DATA: objects LIKE hrsobid OCCURS 1 WITH HEADER LINE.
VARIABLES
DATA: subrc LIKE sy-subrc.
DATA: orgeh_text LIKE t777o-otext.
SELECTION SCREEN
objid
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
PARAMETERS:
pchplvar LIKE p1000-plvar NO-DISPLAY, "plan version
pchotype LIKE pchdy-otype NO-DISPLAY. "objecttype
Objid
rhx-f4-objid-data.
SELECT-OPTIONS: pchobjid FOR pchdy-objid_str NO INTERVALS.
Search
PARAMETERS:
pchseark LIKE pchdy-seark. "matchcode object plom.
SELECTION-SCREEN END OF BLOCK b1.
Objecttime
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-001.
PARAMETERS: se_begd LIKE p1000-begda DEFAULT sy-datum, "'19000101',
se_endd LIKE p1000-endda DEFAULT high_date.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-005.
PARAMETERS:
h_events LIKE dynp_rhpp-gen_train, "with training sugg
h_qual LIKE dynp_rhpp-expired_qual. "with Qual
SELECTION-SCREEN END OF BLOCK b3.
AT SELECTION-SCREEN ON pchobjid.
PERFORM check_objid_sign(rhxchk00) USING pchobjid-sign.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR pchobjid-low.
rhx-f4-objid-low pchplvar pchotype pchobjid '' ''.
AT SELECTION-SCREEN.
PERFORM check_plvar(rhxchk00) USING pchplvar.
PERFORM check_seark(rhxchk00) TABLES pchobjid
USING pchseark pchplvar pchotype.
INITIALIZATION
INITIALIZATION.
PERFORM read_t77s0_parameters_for_pe.
get user parameters/Planvariante und Beginndatum setzen:
pchotype = $orgeh.
CALL FUNCTION 'RHP0_USER_PARAMETERS_GET'
EXPORTING
fill_if_initial = 'X'
IMPORTING
plvar = pchplvar
begda = se_begd
endda = se_endd
with_key =
SUBSTITUTE =
ESSENTIAL = only_essential
org_unit = pchobjid-low
EXCEPTIONS
OTHERS = 0.
SE_BEGD = LOW_DATE. "Correction AL0K023393 0410219
IF NOT pchobjid-low IS INITIAL.
pchobjid-sign = 'I'.
pchobjid-option = 'EQ'.
APPEND pchobjid.
ENDIF.
START-OF-SELECTION
START-OF-SELECTION.
correction 0491055
correction was done for getting a spool list in background-processing.
CASE sy-batch.
WHEN space.
SUBMIT rhpe_expired_quali
WITH pchplvar = pchplvar
WITH pchotype = pchotype
WITH pchobjid IN pchobjid
WITH pchbegda = se_begd
WITH pchendda = se_endd
WITH h_qual = h_qual
WITH h_events = h_events
AND RETURN.
WHEN 'X'.
SUBMIT rhpe_expired_quali
WITH pchplvar = pchplvar
WITH pchotype = pchotype
WITH pchobjid IN pchobjid
WITH pchbegda = se_begd
WITH pchendda = se_endd
WITH h_qual = h_qual
WITH h_events = h_events
TO SAP-SPOOL.
ENDCASE.
END-OF-SELECTION
END-OF-SELECTION.Hi,
I think you need to show more programs.
you said, the report program is 'RHXPE_EXPIRED_QUALI', but you upload 'rhpk_find_pers_with_expired_qu' program.
usually, ALV field is modifyed in 'PERFORM fieldcatalog_modify', if you use Functional ALV.
Try to search 'fieldcatalog function', you will find easy.
Regard,
SY Kim -
How to add additional lines to the Order Form template?
I purchased and installed Acrobat Pro 9 because of its ability to create forms and found the Order Form template is just perfect for what I need, why reinvent the wheel, right? Except I found I can't figure out how to add additional object that duplicate what is already there. I highlighted an entire row and tried to just copy and paste but the past function put the copied objects at the bottom of the form in what looks like a group, all out of order. I tried looking in the online help for a possible key combination that would inset an additional row of objects but couldn't find any.
Also the form doesn't move down and create a new page keeping all the other elements in line, it moves to the bottom of the current page and stops. Thought the template was based on a table so I was going to insert additional rows thinking once it reached the bottom of the current page it would automatically break to a new page and continue, but it's not a table. So my question is, how can I add duplicate object that match the Order Form templates Item, Description, etc. objects? I've come to realize learning to use this product is not going to be as simple a proposition as I was lead to believe. O well, live and learn!
If someone can point me in the right direction, any help is greatly appreciated.
Tony RodriguezThanks, Barney! It's even easier than the solution I came to: copying and pasting into the field.
Maybe you are looking for
-
TS1292 The content code Apple sent me to download mountain lion for free is invalid.
I was trying to download mountain lion for free on my mbair, but the code Apple sent me is invalid. Any ideas on how to resolve it?
-
Help needed on writing a SQL query
Here is my table that shows records of 3 ORDER_ID (10, 20 and 30). All I need to do is, pick the first record of each order_id and check the event_id, if the event_id is same for the next record, ignore it, else show it and ignore rest all records fo
-
Problem in Transferring activity ID structure to activity codes
Hi, I am working on a power plant schedule. We have two sets of structure for Activities i.e. Activity ID consisting of 10 digits and activity codes. we have setup a database as per our requirement. People who have worked on Power plant projects migh
-
Asset Serial Number entry via SRM Receipting
Hello, We have a situation where in our SRM environment, users are creating shopping carts where the Material on the shopping cart line item requires a serial number to be entered upon receipt. We have not found a good way to allow users to enter the
-
HT200164 where i can watch my serial number inside de software?
where i can watch my serial number inside de software?