B1if - Create a journal entry
Hello everyone,
i hope this is the right section for that scenario, which should be easy but i cannot get it to work. I am trying to create a simple journal entry with the given structure from the B1if Object list. It all works like a charm, except for the scenario when i am trying to use a business partner in the
<AccountCode>K123456</AccountCode>
results in: Exception : DI Error: (-5011) Invalid Account Code
It is necessary for me, to be able to do so. Help is greatly appreciated. Here my full xsl. As of right now it is all hardcoded.
<AdmInfo xmlns="">
<Object>30</Object>
<Version>1</Version>
</AdmInfo>
<QueryParams xmlns="">
<JdtNum/>
</QueryParams>
<JournalEntries xmlns="">
<row>
<!--multiple such elements are allowed-->
<ReferenceDate>12.08.2014</ReferenceDate>
<Memo>Memo</Memo>
<Reference>Ref 1</Reference>
<Reference2>Ref 2</Reference2>
<TaxDate>13.08.2014</TaxDate>
<DueDate>13.08.2014</DueDate>
</row>
</JournalEntries>
<JournalEntries_Lines xmlns="">
<row>
<AccountCode>K123456</AccountCode>
<Debit>1.00</Debit>
<Credit>0.00</Credit>
<DueDate>13.08.2014</DueDate>
<LineMemo>string</LineMemo>
<Reference1>R1</Reference1>
<Reference2>R2</Reference2>
</row>
<row>
<AccountCode>102000</AccountCode>
<Debit>0.00</Debit>
<Credit>1.00</Credit>
<DueDate>13.08.2014</DueDate>
<LineMemo>string</LineMemo>
<Reference1>R1</Reference1>
<Reference2>R2</Reference2>
</row>
</JournalEntries_Lines>
I found the solution myself. You need to use the <ShortName> for the business partner and in the <AccountCode> you need to put your Accounts Receivable account.
Similar Messages
-
Error in creating GL journal entry
Hi all,
I'm looking for some help with an error code. I'm trying to Add a direct time entry that is currently saved in draft form only, and I encounter the following message:
Error creating GL Journal entries: 10000415 - Linked value 1329 does not exist
Presumably the 'linked value' refers to the first column of our time entry form, where we enter one of our old format reference numbers and sap brings back its own version of that reference number - so there must be a typo here somewhere? and if this is the case, is there a way sap will point out the relevant entry?
ThanksHI.....
Where you are saving this Journal Entry as Draft?
Is it in Posting Voucher. If yes then is this entry still exists in Posting Voucher?
Please check that first.....
Regards,
Rahul -
"Trying to create a journal entry of the local BP with foreign amounts" error
I have an addon that needs to set the Total (LC) field on the invoice form when a Delivery is copied to an Invoice. In this case, it's $169,978.62. The original Unit Price on the row is $7,000.00, with quantity of 5 MT (selling UoM). After populating the line total field through SDK UI, it calculated discount% to be -385.653. When I press Add, it gives me red bar error "Trying to create a journal entry of the local BP, with foreign amounts [message 3530-11]". This BP uses local currency and there is no foreign currency involved on this document. If I perform the same action through normal UI without SDK, I can add the invoice without a problem. I know it probably has to do with rounding, but how can I get past this error if I have to set the line total through SDK?
Hi Ronnie,
Glad you have found the issue
Regardss,d
Eric -
Goods Issue creates no Journal Entry
Hello-
I'm in something of a unique situation in that (not going into any details) I've been given an only partially complete add-on to Business One and must now finish it. I've had no formal training in the SDK; everything I've learned has been through this forum, the help files and simply experimenting with the code. Given this, there are probably many things of which I'm not aware.
My question, then:
Is there some sort of way to "turn off" the creation of Journal Entries, either in the SDK or in a company's settings, when a Goods Issue is made? I ask because right now no Journal Entry is being created, even though one is made for all other documents (Goods Receipt, Inventory Transfer, etc.). I'd like to turn it back on again, because not creating a Journal Entry doesn't seem like the right thing to do.
Thank you.Hi Van,
There is no setting that will turn off GL postings and a Goods Issue will create journal entries unless it is saved as a draft.
Have you logged this will SAP Support?
Kind Regards,
Owen -
How to create a journal entries by sdk
hi Experts
I know how to create invoice or order by sdk . but I do not know how to create Journal Entry by sdk. i mean what fields are required. Plz send me a basic template for Journal Entry.
Regards
GorgeDim oJounalEntry As SAPbobsCOM.JournalEntries
''Passing Jounal Entry
System.Runtime.InteropServices.Marshal.ReleaseComObject(oRecset)
oJounalEntry = Me.SBO_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oJournalEntries)
oJounalEntry.Series = 14
oJounalEntry.DueDate = Now
oJounalEntry.ReferenceDate = Now
oJounalEntry.TaxDate = Now
oJounalEntry.Lines.ShortName = bpcode
oJounalEntry.Lines.Credit = amount
oJounalEntry.Lines.Debit = 0
oJounalEntry.Lines.DueDate = Now
oJounalEntry.Lines.TaxDate = Now
oJounalEntry.Lines.ReferenceDate1 = Now
oJounalEntry.Lines.Add()
oJounalEntry.Lines.AccountCode = AccountCode
oJounalEntry.Lines.Credit = 0
oJounalEntry.Lines.Debit = amount
oJounalEntry.Lines.DueDate = Now
oJounalEntry.Lines.TaxDate = Now
oJounalEntry.Lines.ReferenceDate1 = Now
oJounalEntry.Lines.Add()
lRetCode = oJounalEntry.Add() -
How to default Ledger to SLA.: Create Subledger Journal Entry
Here we have default the ledger for Data access sets , but also here not default the ledger.
steps:
1. AP-> ACCOUNTING
Subledger Journal Entry Headers:
Ledger[ ]Dear SAP Student
It is just like inter unit cash transfers. Also each department is spending cash on its own. Now that I would like to know the balance cash departmentwise.
As you said if I receive and pay through vendors I would be in a position to know only vendor wise balances. It does not serve my very purpose of deparmentwise balance of cash.
I agree with Selva to go in for creating deparmentwise cash journals in the company code since each deparment is incurring expenses also and each department wise balance is also required.
Aravind -
FM for creating Cash Journal Entries
Hi guys,
What is the FM for making Cash Journal Entries?
Thanks,
ChirantanHi Chirantan,
I am sure you mean FI-CA Cash Journal, so I have listed below some of the useful FMs in CJ
FKK_CD_PAYMENT_CREATE
FKK_S_CASH_JOURNAL_COMMIT
FKK_CJ_CASHDESK_OPEN_OR_CLOSE
FKK_CJ_CHECK_BUKRS_VALIDITY
FKK_CJ_CHECK_BVRKO_VALIDITY
FKK_CJ_CHECK_ROLE_AKTIVITY
FKK_CJ_CREATE_GIVEN_BACK_DATA
FKK_CJ_CREATE_SPECIAL_TASK_DOC
FKK_CJ_GET_DATA_FOR_PRINTING
FKK_CJ_POST_TRANSFER
FKK_CJ_PROHIBIT_RVRSL_OF_DOCS
FKK_CJ_PROHIBIT_SPECIAL_DOC_70
FKK_CJ_READ_ROLE_ACTIVITIES
FKK_CJ_READ_SPECIAL_DOCUMENTS
FKK_CJ_SELECT_DATA
FKK_CJ_SET_AND_CHECK_DATA_CIC
FKK_CJ_SHLP_OFFIC
FKK_CJ_SHOW_ALV_TREE_DETAILS
Best of luck,
David -
hi,
i am trying to add a new line using DI API in the journal entry lines.
i want to add the partener code but when i insert it i get the chosse from list of G/L acount opened.
Is there somthing special to do to insert the BP Code ?
Thanks for your help.when you want to add the business partner code to your journal entry you
should set the shortname to the businesspartner cardcode:
oJnl.Lines.ShortName = "C1000" -
Fixed Assets Has created Unbalanced Journal Entry
Hi All,
Have you faced the following problem?
We have Run FA depreciation by Projects and Profit centers on our test system (B12007 PL 49) and the result journal entires are booked as unbalanced.
Regards,
J.Hello Jitin
I have already checked the note 1227200.
All G/L Accounts set to MultiCurrency, and the Posting of Depreciation is set as suggested.
The depreciation has been run, and there was no error message. Now in the books i see the unbalanced transactions on the application.
If I look the transactions by SQL, I can see that the transaction is balanced.
Currency settings: without decimal.
Any other idea?
Regards,
J.
Edited by: János Nagy on Feb 2, 2010 1:49 PM -
Manual journal entries created in Ap did not see in Accounts Payable Trial
Hi Experts,
Report Accounts Payables Trial Balance, with parameter Include SLA/Manuals/Other Sources Flag set to Yes, does not show manual journal entries.
These Manual journals entries are created in AP
Navigation: Payables -->Accounting --> Subledger accounting --> Journal Entries.
Ofter creating the journal entries i ran Accounts Payable Trial Balance, when i go through the output i did not see the Manual journal entries which are created in AP.
Please help me it is very urgent.
Regards,
Raju.Pl check your 'Report Defintion' once to ensure that liability accounts that you are using in manual entries are included in report definition.
Regards,
Tarun -
Let's say I have a Task named "Build SSIS for Duke Energy" and it has another column called Active. Now every day I look at my task list and If I worked on that task I want to create a Journal entry of what I have done. So from the Task
list I'd like a third column that calls the "Journal Entry" list's new form page and pass it in the ID of the task. I have found several TextToHtml scripts out there, but they have to be stored in a script library, and then sourced to a content
editor web part. The problem is they don't fire when I have my list grouped. In addition to, every time someone creates a new view, I have to go in and add the Content Editor web part, point to the script....
Any thoughts. It is the grouped view that really bug me.Hi,
If you only want to add a hyperlink to create a Journal entry in the task list, I recommend to add a Hyperlink column in the task list and then create workflow to update the column.
You can follow the steps as below:
Open the task list, add a hyperlink column named Create Journal Entry.
Create a workflow associated to the task list, start the workflow automatically when an item is created.
Add actions as below:
Then when a task is created in the task list, the workflow will be stared automatically to update the “Create Journal Entry” column.
Thanks,
Jason
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Jason Guo
TechNet Community Support -
How can I know if a manually created Journal Entries has not been paid yet?
Hi There.
I'm passing through the following situation: I need to find out which Journal Entries that have been manually created ( TransType = 30 ) don't have an Outgoing Payment record associated
Lets suppose that I manually created a Journal Entry. Let's call it OJDT_MAN
Then, I went to the Outgoing Payments Form ( Modules -> Banking -> Outgoing Payments -> Outgoing Payments ) and paid OJDT_MAN.
This process will create another Journal Entry. Let's call it OJDT_AUTO.
I can't find in the database anything that indicates that OJDT_MAN has already been paid. I tried looking for a Status field; Checking if OJDT_AUTO had some code that could get me to OJDT_MAN ( I found BaseRef and TransType = 46, that can guide me to the new OVPM record ); Tried looking at the new OVPM record for some field that could lead me to OJDT_MAN, but I had no success at all...
So, in resume, and again, how can I know if a manually created Journal Entry hasn't been paid?
(When I go to the Outgoing Payments Form and select a Business Partner, it B1 shows me only the not paid ones... How does he knows it? )Just to make it more clear, the SQL we were looking for is this:
Select
From
OJDT
Where
OJDT.TransId Not In ( Select VPM2.DocEntry From VPM2 Where VPM2.InvType = 30 )
And
OJDT.TransType = 30 -
Standard Goods Receipt PO resulting in odd Journal Entries
I posted a Goods Receipt PO which inculded quantity 3 of an item that is $77.60.
Normally, this should create a Journal Entry where Inventory gets debited $7760x3=$232.80 and the allocation Account (GOODS RECEIVED NOT INVOICED) on the credit side for the same amount (232.80).
However this time the resulting JE
(1) credited GOODS RECEIVED NOT INVOICED for the expected amount (price x quantity = 232.80)
(2) also credited COGS for $1472.37 and
(3) debited inventory by $1705.17 (the expected $232.80, plus the unexpected $1472.37).
Why is the $1472.37 included in this transaction at all - it should have only credited GOODS RECEIVED NOT INVOICED and debited INVENTORY both by $232.80.
We use FIFO. We do allow negative inventory, however this inventory item was not in negative quantity.
thanks!
GeoffGordon, thanks
When you say "the cost posted would be the earliest inventory for those items" what do you mean?
I understand that if I posted an AR Invoice , the COGS would be calculated from the oldest available layer, or if the item had a negative quantity on hand, it would have posted the price difference between those transactions that caused the inventory to go negative and the actual price once a transaction occurred that brought the inventory to zero / positive. Or if there is a difference in price between a GRPO and AP Invoice, the difference is allocated to the Price Difference Account.
However in a normal GRPO inventory should be debited, and Goods Received Not Invoiced (allocation account) credited... Why is there a JE to to any other accounts period?
What circumstances could cause these?.
Prior to this GRPO, the inventory audit showed the item at 70 on hand, $670 cumulative value. After the GRPO (on which the GRPO Total is $232.80), the inventory audit says 88 on hand and $2375.34 in cumulative value. This doesn't make sense -
Adding Journal Entry throgh Incoming Payments,
Hi Friend,
I need Help ....
I need to create a journal entry using incoming payment. I have different types of deduction Accounts. All deductions need to display in journal entry and also its reflect in Invoice.Then only invoice going to close.
Dim junEntry As SAPbobsCOM.JournalEntries
Ex :-
:::::Journal Entry::::::
*Account Code/BpName* *AccountName* *DR* *CR*
620005 Deduction1 10
620006 Deduction2 100
620007 Deduction3 100
620008 Deduction4 115
620009 Deduction5 10
6200010 Deduction6 10
6200011 Cash Recived 655 1000
1000 1000
Dim decDebi As Decimal = 0
Dim dtCount As Integer = dtDataTable.Rows.Count - 1
junEntry = objAddOnCentral.objCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oJournalEntries)
junEntry.Memo = strBpCode
junEntry.ReferenceDate = Now.Date
For intLoop = 0 To dtDataTable.Rows.Count - 1
junEntry.Lines.AccountCode = dtDataTable.Rows(intLoop)("Account").ToString()
junEntry.Lines.Debit = dtDataTable.Rows(intLoop)("Amount").ToString()
decDebi += CDec(dtDataTable.Rows(intLoop)("Amount").ToString())
junEntry.Lines.Add()
Next
junEntry.Lines.ShortName = strBpCode.Replace("Incoming Payments", "")
junEntry.Lines.Credit = decDebi
junEntry.Lines.Add()
intErrCode = junEntry.Add()
If intErrCode <> 0 Then
objAddOnCentral.objApplication.StatusBar.SetText("" & objAddOnCentral.objCompany.GetLastErrorCode & " " & objAddOnCentral.objCompany.GetLastErrorDescription & "", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
Return False
End IfHi,
I thing no need addon once u add incoming payment automatically invoice will close and JE also will pass.
Regards,
Siva -
Hi everybody.
We've developed an addon for B1 2007A PL 42 and we are facing some concurrency issues.
Some background information:
The add-on has to create a Journal Entry every time an Incoming Payment is made for an Invoice that is in foreign currency and the exchange rate of the day the document is paid is different of that of the Invoice.
This is acheived by catching a successful Incoming Payment using the following code:
if (pVal.EventType == SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED && pVal.FormTypeEx == "170"
&& pVal.ItemUID == "1" && pVal.Action_Success && !pVal.BeforeAction)
//some calculations
oJEntry.Add();
This works fine except when 2 (or more) users simultaneously add an Incoming Payment (i.e They click the ADD button (almost) at the same time)
When this happens only the last Journal Entry gets added.
Any idea how to solve this?
Thankstry to use transactions in je adding as
If Not SAP.Connection.oCompany.InTransaction Then
SAP.Connection.oCompany.StartTransaction()
End If
create je
if its added ok, use¨
If SAP.Connection.oCompany.InTransaction Then
SAP.Connection.oCompany.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_Commit)
End If
otherwise
If SAP.Connection.oCompany.InTransaction Then
SAP.Connection.oCompany.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_RollBack)
End If
Maybe you are looking for
-
My Photoshop Elements does not start any more. It gives response "Photoshop elements cannot start or continue because of missing file(s). Please reinstall." How do I get the installing file again (I bought it from Adobe via internet the first time de
-
I send emails to a friend in Germany and he recieves it all garbled?
THis is what my email friend recieves when I send a normal email.!!!! Hi Brian I still can't read your e-mails but I thought you might want to read this at least https://uk.eurosport.yahoo.com/blogs/cow-corner/-missing--poster-in-australi a-risks-ups
-
Font Book: Installed postscript Fonts don't always appear in Font Book list
Greetings, I was helping a user the other day with Font Book. I was showing him how to add/enable fonts into Font Book when I noticed a problem I had never seen before. Before I get started, the fonts in question are from the Adobe 7 Font Folio libra
-
Render/Lighting/Background colour buttons automatically switch on layers?!
Hi There, I've discovered what is either a bug in Acrobat 3D v7 or a problem with my scripting (most likely the latter!). I have a series of buttons that i've scripted so that when pressed, switch on/off various objects. However, when any of the Rend
-
Does set up transfer third party apps like airfoil, fruux, drop box and evernote if done at first sign in?