Journal Voucher last entry
Hai,
I have created Journal Voucher using Code.I want the last created Journal Voucher No. How to get it?
Thanks in advance.
Hi
lRetCode = oInvoice.Add()
If lRetCode <> 0 Then
Dim lErrCode As Long
Dim sErrMsg As String = ""
B1Connections.diCompany.GetLastError(lErrCode, sErrMsg)
B1Connections.theAppl.MessageBox(sErrMsg)
Return False
Else
Dim sDocEntry As String = String.Empty
Dim sDocNum As String = String.Empty
B1Connections.diCompany.GetNewObjectCode(sDocNum)
oInvoice.GetByKey(CInt(sDocNum))
sDocEntry = oInvoice.DocEntry
end if
the above code is used to get the last created invoice document no through code , try the same wy in your code
Regards
Arun
Similar Messages
-
Successfully posted Journal Voucher but no Journal Entry created
Hi All,
Today our customer experiences a case mentioned in the subject, she has chacked the status is already "Closed" in the Journal Voucher. But there is no Journal Entry created for that Journal Voucher. Is there any explanation for this?
Thanks,
AlvinHi,
Kindly run the following select query :
Select * from OJDT T1 WHERE T1.[BatchNum] = 'xx'
where 'xx' is the voucher number and check if it displays any result.
If there are no results, please log a support ticket on SAP Portal to get the issue investigated.
Regards,
Jitin
SAP Business One Forum Team -
SDK coding to Remove Journal Entry, Journal Voucher
Hai,
I have created journal entry.But before creating, I want to check whether journal entry, journal voucher already created for this month. If it is, already created, I want to remove the existing one.
My coding is as follows,
oSBOJournalvouchers = DirectCast(ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oJournalVouchers), SAPbobsCOM.JournalVouchers)
Try
oSBOJournalvouchers.JournalEntries.GetByKey(10)
Catch ex As Exception
SBO_Application.MessageBox(ex.Message)
End Try
If oSBOJournalvouchers.JournalEntries.Remove() <> 0 Then
ocompany.GetLastError(errcode, errmsg1)
SBO_Application.MessageBox(errcode & "-" & errmsg1)
End If
oSBOJournalvouchers.JournalEntries.GetByKey(10) --In this line error occurs.
Error Message is:
The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))
Any help is appreciated.
Thanks in Advance.
Thanks,
Parvatha Solai.NHi,
I get the same exception, I'm using 8.81 PL08 ... The creation for Journal Voucher success but when I'm trying to update the update failed ... please advice
JournalVouchers voucher = (JournalVouchers)Company.SBO_Company.GetBusinessObject(BoObjectTypes.oJournalVouchers);
voucher.JournalEntries.GetByKey(TransId); // This line make exception The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)) -
Not able to post journal voucher because of unbalanced system currency
Hi
I am not able to post journal voucher because of unbalanced system currency (the local currency is matching).
what should be done, i have posted close to 70 entries!!!!!
I am using SAP 2005B patch level 44
please help
ThanksHi santosh,
To the account to which you are posting the entry.What currency you have set for it.
regards,
PankajK -
Journal Voucher Posting Authorizations
SAP Business One 2007A. User cannot see button "Post journal" on journal voucher screen. Reviewed authorizations and according to How to define authorizations user needs journal voucher full, document numbering series, and journal entry. User has all of these authorizations and more as well as professional license and still cannot see button.
How do I determine which authorization is missing?hi
Please make sure that the user is having the full authorization and not read only authorization under financial-journal voucher
Regards,
Manish -
Smartform Prob. in Journal Voucher(FICO)
Hi Friends,
I am doing SMARTFORM for Journal Voucher and I want the out put as when ever i entered the Accounting doc. No in input screen I want display the DEBITS in one Column and CREDITS in another column.. when the conditions satisfies... conditions are K, D, S..
Example :
credit debit
1,550.00
2,550.00
6,550.00
when ever the conditions satisfy i need the output like above...
Edited by: muralipsharma on Aug 4, 2010 5:44 PM
Moderator message: "spec dumping", please work yourself first on your requirement.
locked by: Thomas Zloch on Aug 4, 2010 2:30 PMHello,
This functionality is not supported in FICA....
Ofcourse when items are posted to clarification, there shall be 2 GL entries
DR Bank Clearing Account
CR Clarification Account
Ofcourse this may not meet your requirement
Rgds
Rajendra -
Journal voucher select fuction module
Dear gurus,
pls. tell me journal voucher fuction module or any idea.
thank's & regards,
Shiv Pujan SharmaHello,
This functionality is not supported in FICA....
Ofcourse when items are posted to clarification, there shall be 2 GL entries
DR Bank Clearing Account
CR Clarification Account
Ofcourse this may not meet your requirement
Rgds
Rajendra -
Journal Voucher PLD, Reversal Date
Dear Experts,
At Journal Voucher PLD, choose Source Type = Database, Table = Journal Voucher Entry, Column = Reversal Date.
But the printout is blank.
Check database OBTF, StornoDate got value there, may i know why it is not printed? The SAP Version is 8.8.
Thanks.
Regards,
Lay ChinYes, StornoDate is also available in OBTF (Journal Voucher) and I can see the value stored inside properly.
But it is not appearing in the JV PLD when i choose database type , I wonder will there any system variable that can help.
Thanks.
Regards,
Lay Chin -
'Remarks' on the Journal Voucher print layout
It is not possible to display the line level Remarks field from the Journal Entry on the Journal Voucher print layout. The header Remarks are displayed but it can be different from the row level values.
Hi Coasts
Definitely u can get those udfs in pld if u have created in journal entry line level check the JDT1 table and see the whether the required created Udf is their r not if it is their go to layout take one database field select table as JDT1 and column name select created udf i think this vil solve ur problem
Regards
Jenny -
Hi,
Is there any way to customize the print layout of a journal voucher to include more columns such as user defined fields that may be present in the journal voucher Entry rows?
thanks,
CostasHi Coasts
Definitely u can get those udfs in pld if u have created in journal entry line level check the JDT1 table and see the whether the required created Udf is their r not if it is their go to layout take one database field select table as JDT1 and column name select created udf i think this vil solve ur problem
Regards
Jenny -
Journal Voucher concept in FICA
Hi Friends,
We all know that we have a very good feature in SAP FICO module that is of journal voucher(JV) by using which we can pass any adjustment entry from one
GL to other.
Debit one GL & credit the other.
Now
As far as i know in SAP FICA module there is no concept of JV, since accounting entry is passed from FICA to FICO using Main/Sub Transaction combination using a reco key concept.
We can only transfer document from one BP to other using Transfer Items(FP40).
Is there anyway in which i can pass a JV in FICA module or some workaround for the same.
Ex: In case i want to raise a debit or credit note (special case)
Debit Receivables
To Sales
To VAT
How to handle this scenario in FICA.
Will appreciate if u all can share ur ideas & views on this.
Regards,
GaganHello,
This functionality is not supported in FICA....
Ofcourse when items are posted to clarification, there shall be 2 GL entries
DR Bank Clearing Account
CR Clarification Account
Ofcourse this may not meet your requirement
Rgds
Rajendra -
Hi Experts,
Good day!
I have a problem posting the journal voucher. The status of transaction is closed, but did not reflect on journal entry. How come?
But when I created the same accounts posted in journal voucher in journal entry, it authomatically reflected. Meaning, is the journal voucher not functioning... PLease help me on this asap pls. Thanks .
MariDea Mari,
If you had created the journal voucher using the journal voucher screen by adding an entry to the journal voucher and then you had chosen this 'open' journal to 'Post Voucher' then Its strange that the voucher is closed with no transaction created in the jounal entry.
Please try again the above procedure on a test database, and if this issue still exists, then post your query to SAP or your local SAP partner.
Thanks
Asif -
How to make a query to list out Journal voucher that hasn't been posted
Hi, do you know how to make a query to list out Journal voucher that hasn't been posted?
By what code name identify that?
Thanks.
Raymond
Edited by: Rui Pereira on Aug 6, 2008 3:57 PMjack,
there is no link with OBTD to OJDT and JDT1.
voucher number in obdt is different,
after posting voucher is saved as journal entry seperate
number is generated.
you can link OACT,OCRD WITH OJDT,JDT1.
Jeyakanthan -
Hi
I am trying to use J1INJV to post a Journal Voucher where i want to correct the basic, Surcharge and Cess TDS amount. However, i am only able to select only one line item of the three i want to correct. If i post a journal voucher after selecting the basic line item, the system is not allowing me to post any other voucher for the correction. Its saying that an adjustment entry has already been posted for this document.
can anyone kindly help me as to how can i correct all the line items.
RegardsHi
Can you guide me when the T-Code J1INJV needs to be used with an example for both value adjustment and tax code adjustment each.
I understand that the posted document needss to be cleared before any adjustment can be done. If it is not cleared, then SAP standard system suggests to reverse the original document itself.
Regards
Abhishek -
Unable to delete last entry in Custom table
Hi,
I have one custom table which allows only some specific entries to be maintained in the table.I have used a standard table as a check table for dis.I found no issue while maintaining entries in the table.But when i try to delete the last entry in the table i get the message "No entry exist".Long textNo entries were found when importing data from the database.
Kindly help.Hi,
If it is not possible through table maintainence then write a small Z program to delete the entries in devlopment system and then if then if you want you can transfer those to other systems.
delete from ZTABLE where {give your condition for the last record}.
Regards,
Sandipan
Maybe you are looking for
-
How to restore my iTunes Mediathek?
Under "iTunes for Windows" I can export (save) my Mediathek by "Mediathek > export Mediathek" with the filename "Mediathek.xml" onto an external drive. However, how can I restore my Mediathek using this file? In the menulists I can't find a pertinent
-
Why is my adobe photoshop trying to crash when i use the puppet warp tool?
Every time i go to use the puppet warp tool i need to finish my assignment, photoshop says it is trying to fix the problem and then says it cant fix it and shuts the whole program down. And would like to know why is my adobe photoshop trying to crash
-
Rotate object based on the mouse movement
Hi, how can I do to make the object rotate based on the direction and movement of the mouse? Similar to this: http://activeden.net/item/billboard-style-xml-photo-viewer/22111 Thanks in advanced.
-
More space used after a harddrive upgrade
I just upgraded my MabBook HD from 500GB to 750GB. I "Reinstall" Mac OS X 10.8.4 and then used Migration Assit to bring over all my old "stuff", settings, etc. My old 500GB drive used 330.52GB and the new 750GB is using 453.5GB. Why the 122.98GB incr
-
Update Portal Web Project with ALBPM WAR file
I'm trying to follow the procedures for merging ALBPM WAR file and WebLogic Portal WAR file. See link below: http://edocs.bea.com/albsi/docs60/config_wls/index.html?t=enterprise/wlp/c_HEAD_WLP_Config.html#c_HEAD_WLP_Config I brought 08-workspace-wlp-