Purpose of field finncpriod when updating journal entries by DI API
Hello,
I have to update the project code within the journal entries on line basis. For this reason I use following code (DI API):
public static void UpdateOjdtJdt1()
SAPbobsCOM.JournalEntries oJE;
SAPbobsCOM.Recordset oRS;
string s;
int i,j;
oJE = ((SAPbobsCOM.JournalEntries)(oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oJournalEntries)));
oRS = ((SAPbobsCOM.Recordset)(oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)));
string sqlStatement = "select transid from ojdt";
oRS = ((SAPbobsCOM.Recordset)(oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)));
oRS.DoQuery(sqlStatement);
while (!oRS.EoF)
s = oRS.Fields.Item(0).Value.ToString();
i = Convert.ToInt32(oRS.Fields.Item(0).Value);
if (oJE.GetByKey(i))
j = oJE.Lines.Count;
for (int k=0; k < j; k++)
oJE.Lines.SetCurrentLine(k);
oJE.Lines.ProjectCode = "PRJNEW";
oJE.Update();
oRS.MoveNext();
Executing this code, the financial period of the updated journal entry within table JDT1 may change but never in OJDT!
This looked very strange to me, so I updated the project code simply by using the SBO application. In this case there is no change for the financial period at all (not in OJDT, not in JDT1).
My questions:
1) Why does DI API update the financial period within JDT1. In the above mentioned context this does not make sense for me at all.
2) Why do the SBO application and DI API lead to other results?
3) Is my way of updating the project code within journal entry lines conform to SAP standards?
Thank you for your soon response.
Martin
Hello Martin
You have found a BUG.
To Do:
. You may check in notes, that somebody has been reported in already and it has been fixed or not.
- If it is not fixed, please report it to GSC as a message.
I think the correct would be the SAP B1 standard ...
Regards
J
Similar Messages
-
Change the field 'StornoToTr' in new journal entry.
6.50.098 SP:01 EF:14
Hi,
When I reverse (Cancel) a journal entry (Storno), I create a new one with
opposite values and then I insert it (with oJournalEntries Object). But in table 'OJDT' the field 'StornoToTr' in new journal entry, must be changed with transID of cancelled Journal Entry.
How can I do that with 'oJournalEntries' Object?
Best Regards,
Ricardp Pereirahi,
Here is a nice piece of code that set the journal entries for reversal on a certain date. So when a user logs into B1 on that date they will be shown a list of journal entries that are scheduled to be reversed. The user click execute and the journal entries are revered and the functionality you are looking for will be implemented.
Dim journal As SAPbobsCOM.JournalEntries
journal =
oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oJournalEntries)
If journal.GetByKey("665") = True Then
journal.StornoDate = "1/11/04"
journal.UseAutoStorno = SAPbobsCOM.BoYesNoEnum.tYES
lErrCode = journal.Update()
'// Check for errors d
oCompany.GetLastError(lErrCode, sErrMsg)
If lErrCode <> 0 Then
MsgBox(sErrMsg)
End If
End If
Its an alternative way to reverse journal entries.
Thanks,
Cormac -
How to update Ref fields in JDT1 for Journal Entries update
Hi Forum,
I am this situation:
While Creating Journal Entries using DTW:
==================================
I can create Ref1 and Ref2 data at JE Header level using OJDT DTW template.
I can not update Ref1 and Ref2 (different from Ref1 and Ref2 data at header level) at line level using JDT1 template. No error in DTW, all successful, however, the Ref1 and Ref2 data at line level is copied from header level.
While updating using JDT1 DTW Template:
===================================
I thought may be DTW can update since the entries are present. It does not even do that. That is DTW does not update Ref1 and Ref2 data on JDT1 line level even with update DTW. Just to ensure I am using right template etc. I tried to update the due date and it seems to work.
Note: While entering manual Journal Entires directly on SAP B1, I could put different Ref1 and Ref2 at header and line levels.
Thanks for you help.hi
u may use the follwing fields to do it
RecordKey LineNum AccountCode ContraAccount CostingCode Credit Debit DueDate LineMemo ShortName
RecordKey LineNum AccountCode ContraAccount CostingCode Credit Debit DueDate LineMemo ShortName
1 0 3274426 20110430 Basic 520010
1 1 1344031 20110430 Hra 520020
1 2 229251 20110430 Convey 520030
1 3 631301 20110430 Bonus 525020
1 4 2128839 20110430 Spl All 520040
1 5 44003 20110430 CCA/Outlocation 520050
Regards
Manish -
Hi all,
I'm using DI API to update a DueDate of a journal entry. But when executing the update method i get the following error:
"-10, Invalid Code [JDT1.ContraAct][line: 1], 'XXXXXXXX'" where XXXXXXXX is an account number.
This is my code:
If (oJournalEntry.GetByKey(iTransId)) Then
oJournalEntry.DueDate = Today
If (oJournalEntry.Update <> 0) Then
vCompany.GetLastError(nErr, sErr)
End If
End If
The same update can be made in the SBO Application. By the way, I'm using SBO 2005A SP01 PL3. Haven't tried in SP00.
Thanks in advance,
IanHi Ian,
Very strange...
I have tried to reproduce your problem in my machine (B1 version in the about window "2005A (6.80.316) SP:01 PL:03") and it works fine...
Are you sure there is nothing special in your Journal entry regarding the accounts?
My code is:
Dim ret As Integer
Dim je As SAPbobsCOM.JournalEntries
je = pCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oJournalEntries)
If (je.GetByKey(76)) Then
je.DueDate = DateTime.Today
ret = je.Update()
If (ret <> 0) Then
MessageBox.Show(pCompany.GetLastErrorDescription())
Return
End If
End If
Where 76 is the number of my last Journal Entry.
Regards
Trinidad. -
Dear Experts
How can I update Posted journal Entry by DTW, is there any consideration in Template on DTW in oJournalEntry?
ThanksI would like to update Just Ref2 in detail of some JE. which template I have to use?which filed I have to mention in oJournalEntry. I tried following template but system said could not find mentioned object
RecordKey JdtNum Series
RecordKey JdtNum Series
1 4020219 65
RecordKey LineNum AccountCode ReferenceDate2
RecordKey LineNum AccountCode ReferenceDate2
1 0 1111111 D950
Edited by: Farhadn on Apr 10, 2010 3:52 PM -
Hi Experts,
My Client is using the FOXPRO system now and there is a lot of entries to be enter in SAP.
We would like to know whether there is any possibility of updatting the Journal Entries & Sales orders thru Data Transfer wizard.If so , Pls suggest the type of template to be used..
Thanx in Advance,
Regards,
Vamsi.Hi Vamsi,
You may use DTW but not DTS to upload JE and other documents. All templates are available under DTW folders.
Thanks,
Gordon -
Get all the field's value of addressbook entry using c++ api
How can i get all the field values of address book entry in groupwise using c++ api.
You should be able to do that via the Token API. There is an AddressBookGetEntry method. You could createsome sort of AddressbookEntry class that fetches (via iteration over the defined ABFields) all the innformation.
-
Hi All,
I have to update one field(Header- User defined) in journal entry using DI API for each and every transaction. I know how to update journal entries using DI API but my issue is under which event i will write my update code when system post Journal entries automatically
or
How I will update journal entry which is posted by system using DI API.
I dont want to write update query in Transaction notification Procedure also.
Regards
FirosHello Firoz,
The problem:
Documents using integration booking (JE-s) are notified by SP_TRANSACTIONNOTIFICATION, but JE.-s are not recorded there. So you cannot monitor the creation of JE-s.
But, some logic you can find the JE-s booked by Integration
You monitor the et_form_data_Add event on all forms,
- if you are before action, record the journal entry autokey from ONNM (object type 30)
- and when this event executed, you can compare the autokey of journal entries in ONNM table as you have recorded. If the number is difference, you have a background posting happened, so you can call your DI API update procedure.
What i would do in this situation (running logic of the addon)
1. Create an SQL table for storing the updated JE keys
2. Check the OJDT table by time to time (ET_FORM_DATA_ADD event is a good)
3. Update JE headers and record the updated keys in the SQL table created in point 1.
By this method you can populate your field. This solution is also good when an addon is not running on each client.
Regards
János -
Unbalance transaction Error - Journal Entry Posting
Hi all,
Good afternoon. i posted journal entry using DI -API. I have two Journal Entry when i add the first journal Entry added the second journal entry not added its show the Error Unbalanced transaction
Each Journal Entry have 2 lines
I am using 8.8 patch Level 12
Please anyone help me out of this issue
Edited by: lakshmi narayanan on Oct 19, 2011 9:11 AMHi Jitin,
Did you solved this issue? I just have the same problem with SAP Business One 2007 A (8.00.181) SP: 00 PL: 47
Here my oJournalEntry XML before Add.
You can see that Debit amount is equal to Credit amount (highlited with red)
I would like to receive some suggestions.
<?xml version="1.0" encoding="UTF-16"?>
<BOM>
<BO>
<AdmInfo>
<Object>30</Object>
</AdmInfo>
<OJDT>
<row>
<BatchNum>0</BatchNum>
<TransId>0</TransId>
<BtfStatus>O</BtfStatus>
<TransType>-1</TransType>
<BaseRef/>
<RefDate>20140104</RefDate>
<Memo>AS400-89532</Memo>
<Ref1/>
<Ref2/>
<CreatedBy>0</CreatedBy>
<LocTotal>0.000000</LocTotal>
<FcTotal>0.000000</FcTotal>
<SysTotal>0.000000</SysTotal>
<TransCode/>
<OrignCurr/>
<TransRate>0.000000</TransRate>
<BtfLine>0</BtfLine>
<TransCurr/>
<Project/>
<DueDate/>
<TaxDate>20140104</TaxDate>
<PCAddition>N</PCAddition>
<FinncPriod>0</FinncPriod>
<DataSource>N</DataSource>
<UpdateDate/>
<CreateDate/>
<UserSign>0</UserSign>
<UserSign2>0</UserSign2>
<RefndRprt>N</RefndRprt>
<LogInstanc>0</LogInstanc>
<ObjType>30</ObjType>
<Indicator/>
<AdjTran>N</AdjTran>
<RevSource>N</RevSource>
<StornoDate/>
<StornoToTr>0</StornoToTr>
<AutoStorno>N</AutoStorno>
<Corisptivi>N</Corisptivi>
<VatDate/>
<StampTax>N</StampTax>
<Series>1543</Series>
<Number>0</Number>
<AutoVAT>N</AutoVAT>
<DocSeries>0</DocSeries>
<FolioPref/>
<FolioNum>0</FolioNum>
<CreateTime>0</CreateTime>
<BlockDunn>N</BlockDunn>
<ReportEU>N</ReportEU>
<Report347>N</Report347>
<Printed>N</Printed>
<BaseTrans>0</BaseTrans>
<U_MIGSAP_KEY/>
<U_YVA_RENDI/>
<U_YVA_NUMREN>0</U_YVA_NUMREN>
<U_YVA_ANULADO/>
</row>
</OJDT>
<JDT1>
<row>
<TransId>0</TransId>
<Line_ID>0</Line_ID>
<Account>12121</Account>
<Debit>0.000000</Debit>
<Credit>0.000000</Credit>
<SYSCred>0.000000</SYSCred>
<SYSDeb>0.000000</SYSDeb>
<FCDebit>0.000000</FCDebit>
<FCCredit>863.420000</FCCredit>
<FCCurrency>USD</FCCurrency>
<DueDate>20140104</DueDate>
<SourceID>0</SourceID>
<SourceLine>0</SourceLine>
<ShortName>C10211220550</ShortName>
<IntrnMatch>0</IntrnMatch>
<ExtrMatch>0</ExtrMatch>
<ContraAct>C10211220550</ContraAct>
<LineMemo>AS400-89532</LineMemo>
<Ref3Line/>
<TransType>-1</TransType>
<RefDate/>
<Ref2Date/>
<Ref1/>
<Ref2>89532</Ref2>
<CreatedBy>0</CreatedBy>
<BaseRef/>
<Project/>
<TransCode/>
<ProfitCode/>
<TaxDate/>
<SystemRate>0.000000</SystemRate>
<MthDate/>
<ToMthSum>0.000000</ToMthSum>
<UserSign>0</UserSign>
<BatchNum>0</BatchNum>
<FinncPriod>0</FinncPriod>
<RelTransId>-1</RelTransId>
<RelLineID>-1</RelLineID>
<RelType>N</RelType>
<LogInstanc>0</LogInstanc>
<VatGroup/>
<BaseSum>0.000000</BaseSum>
<VatRate>0.000000</VatRate>
<Indicator/>
<AdjTran>N</AdjTran>
<RevSource>N</RevSource>
<ObjType>30</ObjType>
<VatDate/>
<PaymentRef/>
<SYSBaseSum>0.000000</SYSBaseSum>
<MultMatch>0</MultMatch>
<VatLine>N</VatLine>
<VatAmount>0.000000</VatAmount>
<SYSVatSum>0.000000</SYSVatSum>
<Closed>N</Closed>
<GrossValue>0.000000</GrossValue>
<CheckAbs>0</CheckAbs>
<LineType>0</LineType>
<DebCred/>
<SequenceNr>0</SequenceNr>
<StornoAcc/>
<BalDueDeb>0.000000</BalDueDeb>
<BalDueCred>0.000000</BalDueCred>
<BalFcDeb>0.000000</BalFcDeb>
<BalFcCred>0.000000</BalFcCred>
<BalScDeb>0.000000</BalScDeb>
<BalScCred>0.000000</BalScCred>
<IsNet>Y</IsNet>
<DunWizBlck>N</DunWizBlck>
<DunnLevel>0</DunnLevel>
<DunDate/>
<TaxType>0</TaxType>
<TaxPostAcc>N</TaxPostAcc>
<StaCode/>
<StaType>0</StaType>
<TaxCode/>
<ValidFrom>19000101</ValidFrom>
<GrossValFc>0.000000</GrossValFc>
<LvlUpdDate/>
<U_BPP_CTAD/>
<U_BPP_CTAPAT/>
<U_BPP_DCCD>0</U_BPP_DCCD>
<U_BPP_DCPR>N</U_BPP_DCPR>
<U_INFOPE01/>
<U_INFOPE02/>
<U_INFOPE03/>
<U_InfoCo01/>
<U_YVA_TIENDA/>
<U_YVA_UNDTRANS/>
<U_YVA_FECDOC/>
<U_HYP_Status>3</U_HYP_Status>
<U_HYP_BofEx400>89532</U_HYP_BofEx400>
<U_HYP_Closed>N</U_HYP_Closed>
</row>
<row>
<TransId>0</TransId>
<Line_ID>0</Line_ID>
<Account>12311</Account>
<Debit>0.000000</Debit>
<Credit>0.000000</Credit>
<SYSCred>0.000000</SYSCred>
<SYSDeb>0.000000</SYSDeb>
<FCDebit>431.710000</FCDebit>
<FCCredit>0.000000</FCCredit>
<FCCurrency>USD</FCCurrency>
<DueDate>20140203</DueDate>
<SourceID>0</SourceID>
<SourceLine>0</SourceLine>
<ShortName>C10211220550</ShortName>
<IntrnMatch>0</IntrnMatch>
<ExtrMatch>0</ExtrMatch>
<ContraAct>C10211220550</ContraAct>
<LineMemo>LT-268302</LineMemo>
<Ref3Line/>
<TransType>-1</TransType>
<RefDate/>
<Ref2Date/>
<Ref1/>
<Ref2>268302</Ref2>
<CreatedBy>0</CreatedBy>
<BaseRef/>
<Project/>
<TransCode/>
<ProfitCode/>
<TaxDate/>
<SystemRate>0.000000</SystemRate>
<MthDate/>
<ToMthSum>0.000000</ToMthSum>
<UserSign>0</UserSign>
<BatchNum>0</BatchNum>
<FinncPriod>0</FinncPriod>
<RelTransId>-1</RelTransId>
<RelLineID>-1</RelLineID>
<RelType>N</RelType>
<LogInstanc>0</LogInstanc>
<VatGroup/>
<BaseSum>0.000000</BaseSum>
<VatRate>0.000000</VatRate>
<Indicator/>
<AdjTran>N</AdjTran>
<RevSource>N</RevSource>
<ObjType>30</ObjType>
<VatDate/>
<PaymentRef/>
<SYSBaseSum>0.000000</SYSBaseSum>
<MultMatch>0</MultMatch>
<VatLine>N</VatLine>
<VatAmount>0.000000</VatAmount>
<SYSVatSum>0.000000</SYSVatSum>
<Closed>N</Closed>
<GrossValue>0.000000</GrossValue>
<CheckAbs>0</CheckAbs>
<LineType>0</LineType>
<DebCred/>
<SequenceNr>0</SequenceNr>
<StornoAcc/>
<BalDueDeb>0.000000</BalDueDeb>
<BalDueCred>0.000000</BalDueCred>
<BalFcDeb>0.000000</BalFcDeb>
<BalFcCred>0.000000</BalFcCred>
<BalScDeb>0.000000</BalScDeb>
<BalScCred>0.000000</BalScCred>
<IsNet>Y</IsNet>
<DunWizBlck>N</DunWizBlck>
<DunnLevel>0</DunnLevel>
<DunDate/>
<TaxType>0</TaxType>
<TaxPostAcc>N</TaxPostAcc>
<StaCode/>
<StaType>0</StaType>
<TaxCode/>
<ValidFrom>19000101</ValidFrom>
<GrossValFc>0.000000</GrossValFc>
<LvlUpdDate/>
<U_BPP_CTAD/>
<U_BPP_CTAPAT/>
<U_BPP_DCCD>0</U_BPP_DCCD>
<U_BPP_DCPR>N</U_BPP_DCPR>
<U_INFOPE01/>
<U_INFOPE02/>
<U_INFOPE03/>
<U_InfoCo01/>
<U_YVA_TIENDA/>
<U_YVA_UNDTRANS/>
<U_YVA_FECDOC/>
<U_HYP_Status>3</U_HYP_Status>
<U_HYP_BofEx400>268302</U_HYP_BofEx400>
<U_HYP_Closed>N</U_HYP_Closed>
</row>
<row>
<TransId>0</TransId>
<Line_ID>0</Line_ID>
<Account>12311</Account>
<Debit>0.000000</Debit>
<Credit>0.000000</Credit>
<SYSCred>0.000000</SYSCred>
<SYSDeb>0.000000</SYSDeb>
<FCDebit>431.710000</FCDebit>
<FCCredit>0.000000</FCCredit>
<FCCurrency>USD</FCCurrency>
<DueDate>20140305</DueDate>
<SourceID>0</SourceID>
<SourceLine>0</SourceLine>
<ShortName>C10211220550</ShortName>
<IntrnMatch>0</IntrnMatch>
<ExtrMatch>0</ExtrMatch>
<ContraAct>C10211220550</ContraAct>
<LineMemo>LT-268303</LineMemo>
<Ref3Line/>
<TransType>-1</TransType>
<RefDate/>
<Ref2Date/>
<Ref1/>
<Ref2>268303</Ref2>
<CreatedBy>0</CreatedBy>
<BaseRef/>
<Project/>
<TransCode/>
<ProfitCode/>
<TaxDate/>
<SystemRate>0.000000</SystemRate>
<MthDate/>
<ToMthSum>0.000000</ToMthSum>
<UserSign>0</UserSign>
<BatchNum>0</BatchNum>
<FinncPriod>0</FinncPriod>
<RelTransId>-1</RelTransId>
<RelLineID>-1</RelLineID>
<RelType>N</RelType>
<LogInstanc>0</LogInstanc>
<VatGroup/>
<BaseSum>0.000000</BaseSum>
<VatRate>0.000000</VatRate>
<Indicator/>
<AdjTran>N</AdjTran>
<RevSource>N</RevSource>
<ObjType>30</ObjType>
<VatDate/>
<PaymentRef/>
<SYSBaseSum>0.000000</SYSBaseSum>
<MultMatch>0</MultMatch>
<VatLine>N</VatLine>
<VatAmount>0.000000</VatAmount>
<SYSVatSum>0.000000</SYSVatSum>
<Closed>N</Closed>
<GrossValue>0.000000</GrossValue>
<CheckAbs>0</CheckAbs>
<LineType>0</LineType>
<DebCred/>
<SequenceNr>0</SequenceNr>
<StornoAcc/>
<BalDueDeb>0.000000</BalDueDeb>
<BalDueCred>0.000000</BalDueCred>
<BalFcDeb>0.000000</BalFcDeb>
<BalFcCred>0.000000</BalFcCred>
<BalScDeb>0.000000</BalScDeb>
<BalScCred>0.000000</BalScCred>
<IsNet>Y</IsNet>
<DunWizBlck>N</DunWizBlck>
<DunnLevel>0</DunnLevel>
<DunDate/>
<TaxType>0</TaxType>
<TaxPostAcc>N</TaxPostAcc>
<StaCode/>
<StaType>0</StaType>
<TaxCode/>
<ValidFrom>19000101</ValidFrom>
<GrossValFc>0.000000</GrossValFc>
<LvlUpdDate/>
<U_BPP_CTAD/>
<U_BPP_CTAPAT/>
<U_BPP_DCCD>0</U_BPP_DCCD>
<U_BPP_DCPR>N</U_BPP_DCPR>
<U_INFOPE01/>
<U_INFOPE02/>
<U_INFOPE03/>
<U_InfoCo01/>
<U_YVA_TIENDA/>
<U_YVA_UNDTRANS/>
<U_YVA_FECDOC/>
<U_HYP_Status>3</U_HYP_Status>
<U_HYP_BofEx400>268303</U_HYP_BofEx400>
<U_HYP_Closed>N</U_HYP_Closed>
</row>
</JDT1>
</BO>
</BOM> -
Invalid Code [Journal Entry] Line 2
Hi All
I did a patch upgrade from SP00 PL49 to SP01 PL05, now i get the error message listed in the Title;
Invalid Code [Journal Entry] Line 2, 2000/100
when doing outgoing payments to Creditors if I select the AP invoices, if i say payment on account it goes through as there is no auto-reconciling happening.
2000/100 from the error is the account code, which is my Accounts Payable account.
Any ideas, the account is not locked.Hi,
You may check these threads first:
Error message when reconcile BP
Invalid code [JE rows-account][Line 2] '1040104001 '[Message 173-36]
Object Type
Updating journal entry
Thanks,
Gordon -
hello sap experts
how can i track Booking Document No.( SO & PO DOC NO's)
Document date (SO & PO DOC date)
Posting Date (SO & PO DOC posting date)
vendor name
vendor address in journal entry pld pls answer asap
regards
JennyHi Jenny,
IF you need to get the SO (or) PO No, Doc Date & Posting Date(invoice based) on Journal Entry.
Try this,
When you add the invoice at that time
you can add the SO (or) PO No, Doc Date & Posting Date in Journal Remarks Field in invoice.
Journal Remark field value will be store to Remarks field on Journal Entry document.
Table -> OJDT - Journal Entry.
Column -> Memo - Details.
Try this,
->> Open the Journal Entry(System) PLD and Save as the New PLD.
->> Open the New *J.E *PLD and Create Database Field then Assign the Journal Entry Remarks field.
Table -> OJDT - Journal Entry.
Column -> Memo - Details.
Save the PLD and run Print Preview.
Else,
Try to Create QPLD
Regards,
Madhan. -
"21141: Error while posting journal entry :-10 / Internal error"
Hi All,
I'm want to dispose fixed asset by using retirement function in Fixed asset module. Anyone know the solution for this error message "21141: Error while posting journal entry :-10 / Internal error". Please help me.
Thanks in advance.
uddinHello Muhd
Please could you go in Administartion > Set Up > Fixed assets > GL
Account Detemination and check the settings of 'Clearing Acc. Asset
Acquisition' account, which is used when creating Journal Entry for
'Acquisition without vendor'.
Could you check if there is a 'Default VAT Code' assigned to this
account. In this case could you to clear the Default VAT Code assigned
to this account and try to do 'Acquisition without vendor' again?
Also,please try to check below option to see if that could help:
1)Check asset Class Land
2)Check GL accounts settings
3)Check the checkbox "Permit Other VAT Group"
Regards,
Syn Qin
SAP Business One Forums Team -
Journal Entry Remarks not comming
Hello Everyone,
I am trying to create Journal Entry using DI API .The problem i am facing is that the remarks at the row level is not coming in certain cases.
Code:-
/*this is to add remarks at header level*/
_journalEntries.ReferenceDate = Convert.ToDateTime(_dataRowHeader["EntryDate"]);
_journalEntries.Memo = Convert.ToString(_dataRowHeader["Description"]);
/**This is to add remarks at row level/
_journalEntries.Lines.PaymentBlock = SAPbobsCOM.BoYesNoEnum.tNO;
_journalEntries.Lines.Credit = Convert.ToDouble(row["CreditAmount"]);
_journalEntries.Lines.Debit = Convert.ToDouble(row["DebitAmount"]);
_journalEntries.Lines.CostingCode = Convert.ToString(row["CostCenterCode"]);
_journalEntries.Lines.LineMemo = Convert.ToString(row["Remark"]);
_journalEntries.Lines.Add();
By default in SAP B1 the remarks at the header level gets filled at the row level..so is this issue because of this reason.is there any way i can prevent the remarks at header level to be filled at row level..??
Thanks and Regards,
Anuj KumraHi Anuj,
With this code I got the remarks on the line. Even when setting Memo to null.
var je = oCompany.GetBusinessObject(BoObjectTypes.oJournalEntries) as JournalEntries;
je.Memo = null;
je.Lines.AccountCode = "100000";
je.Lines.Credit = 0;
je.Lines.Debit = 150;
je.Lines.LineMemo = "some string";
je.Lines.TaxDate = DateTime.Now;
je.Lines.Add();
je.Lines.SetCurrentLine(1);
je.Lines.AccountCode = "101000";
je.Lines.Credit = 150;
je.Lines.Debit = 0;
je.Lines.LineMemo = "some string";
je.Lines.TaxDate = DateTime.Now;
if(je.Add()!=0)
throw new Exception(oCompany.GetLastErrorDescription());
So I guess in your case it might be that the row["Remark"] has no data in it.
Best regards,
Pedro Magueija -
Posting Journal Entry in v4.2SP4: Strange Issue. Anyone?
Behaviour:
The post button doesn't work. You can click it but it does nothing
When opening the journal manager and selecting the journal id and then posting, it says: "You cannot post/unpost until finishing journal post"
After this, you cannot post any journal entry on any application.
(multiserver environment)
Has anyone had this behaviour?Hello Muhd
Please could you go in Administartion > Set Up > Fixed assets > GL
Account Detemination and check the settings of 'Clearing Acc. Asset
Acquisition' account, which is used when creating Journal Entry for
'Acquisition without vendor'.
Could you check if there is a 'Default VAT Code' assigned to this
account. In this case could you to clear the Default VAT Code assigned
to this account and try to do 'Acquisition without vendor' again?
Also,please try to check below option to see if that could help:
1)Check asset Class Land
2)Check GL accounts settings
3)Check the checkbox "Permit Other VAT Group"
Regards,
Syn Qin
SAP Business One Forums Team -
Financial Consolidation failure when updating invoice or journal entry
Hello
We installed successfilly the SAP Business One Intergration for SAP NetWeaver.
By adding invoices, creditmemos or journbal entries everything works fine.
When we try to update a journal entry the following error occurs in the message log:
com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception: com.sap.b1i.bizprocessor.BizProcException: BPE001 Nested exception: com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception: com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception: java.lang.RuntimeException: Dispatch object expected
When we try to update the corresponding invoice this error occurs:
com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception: com.sap.b1i.bizprocessor.BizProcException: BPE001 Nested exception: com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception: com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception: java.lang.RuntimeException: DI Error: (-1029) Field cannot be updated (ODBC -1029)
Any ideas ?
thanks in advanceHi,
JE numbering document can not base on origin document. But they can be set default by user only. That is system behavior.
Hope this helps,
TVSon
Maybe you are looking for
-
BAPI/FM to update the condition value in Rebate agreement(VBO2)
Hi All, Please help me in solving the below requirement. The requirement, 1) In VBO2 ---> Enter agreement 2) Go to conditions in the application tool bar 3) A pop up 'Valid condition types and Key combinations' will appear. Select a particular key co
-
How to add and remove storage from ASM at the same time?
Scenario: I want to drop some disks from asm 1- Add disk to asm -----> rebalance 2- drop disk from asm ----> rebalance Is there anyway to make this process faster instead of going to rebalancing twice?
-
In table pa0002 need which fields is used for what countries
Hi My client is implementing PA for 10 countries From pa0002 table the client wants a reports where he wants fields and the countries in which thats fields are used ? How and where can i get this information Thanks Raj
-
hi folks, after using lightroom 1.0 for almost a month, i posted a draft of a review article in my lexar blog. the final version will be published this week in the Lexar ProCorner. please take a look and bash it as you please :) sorry, there are no s
-
Compatibility of ink cartridges?
Hi I have brought my D2560 printer from the US. In the US the cartridges are HP 80's. could not find one here in the Uk so was advised to buy the HP 300 tricolour cartridge. when I try to install it the printer tells me not compatible! Any clues to m