Updating Journal Entry By DTW
Dear Experts
How can I update Posted journal Entry by DTW, is there any consideration in Template on DTW in oJournalEntry?
Thanks
I 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
Similar Messages
-
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.
MartinHello 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 -
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 -
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. -
Documents, Journal entries and DTW
Hello,
Is there a way that when I import a journal entry, DTW tells me that I can't because this JE is coming from a document and the JE already exists ?
I saw that there is the field "Origin No." (table OJDT, BaseRef) which is displayed when a document is created in SBO.
But is there a way to import this number (coming from the document) in this field using DTW ?
Thank you
ThibaultHi again
The best would be to import all your documents. Then once you are done make a dump of all the documents and journals created, use sql and link them in sql already. The new journals you are going to import, use vlookup in excel to match keys and debit and credits to pick up possible duplication.
Hope this helps -
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 -
DTW error (Journal Entry)
Hi,
Please help me to know what is wrong to import Journal Entry by DTW;
Reason is
"You are not allowed to edit posting date by row Application-defined or object-defined error 65171"
Version is 2005B SP00 PL41
I create the header file as below;
RecordKey, JdtNum, DueDate, ReferenceDate, TaxDate, TransactionCode, Memo
1,,20081110,20081110,20081110,100,ABC
the line file is;
RecordKey, LineNum, AccountCode, Debit, Credit, Reference1, Reference2, AdditionalReference, LineMemo, CostingCode
1,0,738008,4800,0,21486,20081017,ABC,DEF,212
1,1,112200,0,4800,21486,20081017,ABC,DEF,212
The first time I tried it was successful to import, but after change amount I can not import them.
If you have any solution or instructions, please let me know.
Thank you for your help in advance.
KAORIHi
I create the header file as below;
RecordKey, JdtNum, DueDate, ReferenceDate, TaxDate, TransactionCode, Memo
1,,20081110,20081110,20081110,100,ABC
1. Please aviod transaction code
2. you have to add AutoVAT coloumn tYES.
RecordKey, LineNum, AccountCode, Debit, Credit, Reference1, Reference2, AdditionalReference, LineMemo, CostingCode
1,0,738008,4800,0,21486,20081017,ABC,DEF,212
1,1,112200,0,4800,21486,20081017,ABC,DEF,212
1. You have to add vat details if it is no need in the last 5 colomns.
2. tax date , tax group , vat amount , vat date , vat line.
20081110 , Exempt , 0 , 20081110 , tYES
3. tax group is the tax code. You should be given the tax code. if no tax code in the JE, nesessary you should be use tax exempt in the colomn.
4. forthur you have to check the GL Accounts whether it is ok.
let me know
regards -
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 -
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 -
UDF is not updating in journal Entry rows
Hi Experts,
I have created an UDF in journal entry and trying to insert the values in it based on the transactions.
But the UDF is not getting updated through coding where as same query if i run in the SQL database it is getting executed properly and UDF is getting updated.
Please help in this regard
Thank You
Regards
Md.nazeer ShaikhHi,
Please post the code that u are using.
Vasu Natari. -
DTW How to Import Journal Entries
I am attempting to test import some journal entries, but I cannot get DTW to work.
I need help with the .csv format (date format, account code format, any crucial fields i need)
I also need to know what could be causing DTW to constantly crash, and freeze after an action is performed.
This is my current setup:
OJDT Journal Entries.csv
1,08/31/2014,Test 1,BN,,,,,,,,,,,,,,,,,,
2,08/31/2014,Test 2,BN,,,,,,,,,,,,,,,,,,
3,08/31/2014,Test 3,BN,,,,,,,,,,,,,,,,,,
JDT1 Journal Entries_Lines.csv
1,,,1000-00-00,1000.2,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
1,,,2120-00-00,,1000.2,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
2,,,1000-00-00,255.95,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
2,,,2120-00-00,,255.95,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
3,,,1000-00-00,165123.5,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
3,,,2120-00-00,,165123.5,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Is the JdtNum field supposed to be the next journal entry number sequence? i.e. 36745,36746...
I would hope the import would automatically select the next available je number.
Thank you for any help.Hi Nadeem,
OJDT -
JdtNum
TaxDate
VatDate
DueDate
Memo
JdtNum
TaxDate
VatDate
AutoVAT
Memo
1
20140831
20140831
20140831
Test
JDT1-
ParentKey
LineNum
AccountCode
Debit
Credit
JdtNum
LineNum
Account
Debit
Credit
1
0
OACT.ACCTCODE
100
1
1
OACT.ACCTCODE
100
is your GL segmented ? If yes, get the acctcode value and not 1000-00-00 .
Try to run a query for the accountcode -
select AcctCode From OACT
Hope this helps.
Regards,
Darius -
How to update UDF from marketing documents to Journal Entry UDF
Hi Experts,
I have a UDF in the marketing documents and I want to save the value to Journal Entry UDF.
Regards,
JummieHello Jummie,
If I understand correctly, the scenario is that copy the value of UDF from marketing document to the UDF its target JE from when the marketing document is created.
if so, just listen to FormDataAdd Event for the marketing document, copy the value of udf when document is created.
Here is the sample code.
Private Sub FormDataEventHandler( _
ByRef BusinessObjectInfo As SAPbouiCOM.BusinessObjectInfo, _
ByRef BubbleEvent As Boolean) Handles oApp.FormDataEvent
'You may add the target documents, 133 - A/R invoice.
'Before action = true, start the transation
If BusinessObjectInfo.FormTypeEx = "133" _
And BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD _
And BusinessObjectInfo.BeforeAction = True Then
oCompany.StartTransaction()
'BubbleEvent = False
End If
'Before Action = false,
'Update product item tree
'Succeed, commit, otherwise rollback
If BusinessObjectInfo.FormTypeEx = "133" _
And (BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD) Then
If BusinessObjectInfo.BeforeAction = False And BusinessObjectInfo.ActionSuccess Then
Dim objectKey As String = String.Empty
oCompany.GetNewObjectCode(objectKey)
MsgBox(BusinessObjectInfo.Type)
Dim oInvoice As SAPbobsCOM.Documents = Nothing
oInvoice = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
If oInvoice.GetByKey(CInt(objectKey)) Then
'Retrieve the UDF value in documents
Dim udfValueInDoc As String = oInvoice.UserFields.Fields.Item("***").Value
Dim oJE As SAPbobsCOM.JournalEntries = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oJournalEntries)
'Retrieve the JE for the document
oJE.GetByKey(CInt(oInvoice.JournalMemo))
Dim succeeded = True
'add you code to copy the UDF from document into JE
If succeeded Then
'update the production tree succesfully,
oCompany.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_Commit)
Else
oCompany.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_RollBack)
End If
End If
End If
End If
End Sub
Regards, Yatsea -
DTW - Series not deifned for Journal Entry
2007B
Importing AP invoices thru DTW.
using Document Series
The document series assigned for AP Invoice is "APINV" and the same document series is selected for JE also.
The code for APINV is "7"
The field in DTW to define the document series is "Series" and the series code is given (eg : "7")
DTW gives error "series not defined for Journal Entry Application defined or object defined.."
where as when tried to create an AP Invoice manually, it was successful.
what could be the issue?
vijayI managed to find the issue.
IN the DTW template,
the field, "handwritten' was tYES, which I changed to tNO as we follow document series and numbering series.
nothing is entered in the 'docnum' field.
now I get the error " to generate this document, first define document series'
vijay -
Script to update UDF in document to journal entries
Hi,
Customer is using 2007A PL30. In SAP B1, there is only 2 global analysis codes(ie Project and Profit Center) but customer has more information to analyse. We add UDF in document row(eg UDF=Customer)but after adding such UDF did not automatically flow to journal entries.
May I know how to update those additional UDF in document row into journal entries as well so that the "Financial people" will be able to analyse company position by pulling these information in journal entries rather than from AR, AP, Incoming & outgoing payment etc?
Regards
ThomasThomas,
Out of the box the system is designed to take User field defined in the marketing document from the base marketing document to the target document when you use a Copy from or Copy to function.
This will not work for JE's as JE is not a marketing document. Updating JE through Transaction Notification might be possible but it is not supported by SAP as it is in violation of their Support agreement.
Leaving the choice finally to create a SDK solution
Suda -
Dear All,
I just want to know that can we upload Profit Centre(Distribution Rule) details through DTW Of Journal Entry Template ?
I need to add Profit Centre details along with the LIne Details of JE.
Regards,
KashinathThankx Tanga Raj
But when i am doing dtw of journal entry i have filled up Profit Code but still it is not taking and i have to fill two fields in Distribution Rule at Journal Entry Product LIne and Another is is for Region (For Ex: In distribution Rule two dimentions one is Product LIne and another is Region : Ex : Product LIne: XYZ and Region : Mumbai)
can u help me out ?
Maybe you are looking for
-
Problem with siteminder in struts application
In our application we are using the siteminder for the authentication of the users. Whenever the user is authenticated by the siteminder the user is being taken to the application welcome page.Then user performs his own activities and after that when
-
IPod Touch not being recognized in iTunes
Hello Apple Discussions, my name is Wong Meng. iPod Details: iPod Touch 4G FW: 4.2.1 I just ran across a problem with my iTouch where it would be recognized in Windows under My Computer, but iTunes would freeze and lag when it loaded when my Touch wa
-
I create a simple one step workflow with a decision step using task TS00008267. I turn on advance with dialog and processing can be rejected. Agent is initiator. When I test, it displays the decision and I can cancel it and then reject from inbox
-
The reload button blinks continually with certain sites; how do I stop it?
Reload butto blinks continuously at certain sites. How do I make it stop without resetting Firefox?
-
How to read/use RPC/Encoded WSDL in BPEL
Hi All, We are developing a new application using Oracle BPEL and interface with an existing application. The existing application (in mainframes) sends us the wsdl in rpc/encoded format. How to read thie wsdl into BPEL? What we found so far is that