Setting ext3 to journal

Hi all,
Oracle 11g R2, ELinux 5.2
I have my Oracle database data files stored in a disk formatted with ext3 file system.
I have read the following statement:
"ext3 has three journaling levels that may be set with in the options section of /etc/fstab: data=journal, ordered, or writeback.
Setting data=journal is the fastest and most reliable."
My question is:
Based on the statement above, is it good to change the /etc/fstab so that the mounted file system journal is set to "journal"?
If the answer is yes, how can I do that?
Thanks in advance.
Following is copy of my fstab file. Db files stored in /u02 and /u03:
[oracle@srv100 OPatch]$ cat /etc/fstab
/dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0
/dev/sdb1               /u02           ext3    defaults        1 2
/dev/sdc1               /u03           ext3    defaults        1 2

Dear ahb72,
What happens when you edit the /etc/fstab?
$ vi /etc/fstabWe have an NFS mount (external) on another unix box and we configured it on the /etc/fstab on the unix and we also configured the sharetab for the external directory. We also use vi to edit the sharetab and run the shareall command to share the external directory for the usage of the /etc/fstab on other unix systems.
So what i have said was most verbose, simply i want to add you can edit it in my opinion. I have never seen an impact.
Hope That Helps.
Ogan

Similar Messages

  • Error: object variable or with block variable not set when creating journal

    Hello
    When I try to create a new journal, I get an error "object variable or with block variable not set"
    This is happening with some computers but not all of them, the same user can create a journal in some computers.
    I tried uninstalling and reinstalling BPC office client but that did not work.
    Do you have any other ideas ?
    Thank you in advance.

    Hi,
       You have to check first  if you are able to access the reporting service frm that speific client machine typing:
    http://<reporting server name>/reports. If all is woking well , you have to check also the number of default sheets for an empty excel sheet (should be 3) - I ma not sure what version are you using.
        If still not work, please let me know when exactly the error appear, when you try to open the template (clicking on journal option) or after when you fill the report, save it, so on.
    Best regards,
    Mihaela

  • Setting for Cash Journal Transactions

    Hi all,
    Can someone tell whether the Vendor Line Item clearing and Special GL Transaction is possible in Cash Journal.
    For example -
    1. when we are giving the Advance in Cash to our employees, whether such entries can be posted with Special GL indicator ( as we do in Bank Payment thru T Code - F-48 )
    2. Currently, when we are posting cash payment in Vendor Account ( thru Cash Journal ) , we need to first transaction in vendor account and then for clearing a open item against it , we need to use the T code - F-44 for manually clearing the open items. Is it possible to clear the same while posting Cash Vendor posting ( just like Bank Payment thru F-53 ).
    If you have solution pls let us know.
    Thanks
    ps

    Hi PS,
    Both the functionalities are NOT possible through the cash journal.
    If you pay your vendor by cash, you have to clear the vendor open item seperately.
    Also, splecial GL transactions are not allowed in cash journal.
    Regards,
    Mike

  • --Ext3 using a lot more space than XFS?

    Hi,
    although this question is related to my fileserver I put it in this forum as it's not related to networking in any way, I hope it fits.
    So, I have a fileserver mostly acting as NAS. The main volume consits of 250GB+500GB as one LVM group. I have a second group of the same size for backup. I use rsync for backups, and both volumes contain exactly the same data, only difference is: main volume is formatted with XFS, backup volume is using Ext3 with journal=data.
    df -h:
    Dateisystem Größe Benut Verf Ben% Eingehängt auf
    /dev/mapper/data-fileserver
    699G 605G 94G 87% /mnt/fileserver
    /dev/mapper/data--backup-fileserver
    679G 606G 39G 95% /mnt/backup
    I double checked both filesystems contain the same data, still there is a difference of 55 gigabytes in free space. How come?

    Well mostly. I set it to 1% the numbers looked good and I thought it'd be okay, however after setting the reserved space to 0% I still missed 19GB. On a closer look we can see that the Ext3 filesystem is around 20GB smaller than the XFS one, and I can't really understand that:
    [root@dude ~]# tune2fs -m 0 /dev/data-backup/fileserver
    tune2fs 1.40.3 (05-Dec-2007)
    Setze Verhältnis der reservierten Blöcke auf 0% (0 blocks)
    [root@dude ~]# df -h
    Dateisystem Größe Benut Verf Ben% Eingehängt auf
    /dev/mapper/data-fileserver
    699G 607G 93G 87% /mnt/fileserver
    /dev/mapper/data--backup-fileserver
    679G 606G 74G 90% /mnt/backup
    Both LVM groups have the same size:
    [root@dude ~]# lvm lvscan
    ACTIVE '/dev/data-backup/fileserver' [689,64 GB] inherit
    ACTIVE '/dev/data/fileserver' [698,64 GB] inherit
    And
    [root@dude ~]# tune2fs -l /dev/data-backup/fileserver
    tune2fs 1.40.3 (05-Dec-2007)
    Block count: 180785152
    Since I haven't changed the standard block size of 4K this means we have 723140608 K of data, or 706192 MB or 689,64 GB which is exactly the size of the volumes. So still I wonder what happended to 19GB of space

  • Error while deleting Cash Journal (Numbering group 1001 can be used only for one CoCd and cash journal number)

    Hi,
        While i am try to delete Cash Journal system throws me error (Message No.:FCJ065: Numbering group 1001 can be used only for one Co. Code  and Cash Journal). Kindly provide me solution on that.
    Regards,
    Tarak

    Hi Tarak,
    You can use the config nodes in SPRO to set up number ranges for your cash journal documents.
    IMG Path> FI Global Settings>Bank Accounting>Business transactions>Cash Journal
    Define Number Range Intervals for cash Journal documents
    Define Numbering Groups
    Define Number Ranges for numbering groups
    After defining the number group here, you assign that in "Set up Cash Journal" Check if there is any clash anywhere in your configuration for different cash Journals.
    Regards,
    Kavita

  • The File Replication Service has detected that the replica set "DOMAIN SYSTEM VOLUME (SYSVOL SHARE)" is in JRNL_WRAP_ERROR.

    Hi!
    I recently took over management of a Windows 2003 domain that had only one domain controller.  I was building a second DC for redundancy and discovered that the SYSVOL share on the original DC is in "JRNL_WRAP_ERROR" after the SYSVOL and NETLOGON
    share would not create on the new DC.  This error goes back as far as the log goes back so I don't know how long it has been in this state. 
    The message in the event log states to enable "Enable Journal Wrap Automatic Restore" but I found a KB article that says to use the BurFlags key instead. http://support.microsoft.com/kb/290762
    Should I run an authoritative restore since I don't have another domain controller with a good SYSVOL?
    The File Replication Service has detected that the replica set "DOMAIN SYSTEM VOLUME (SYSVOL SHARE)" is in JRNL_WRAP_ERROR.
     Replica set name is    : "DOMAIN SYSTEM VOLUME (SYSVOL SHARE)"
     Replica root path is   : "c:\windows\sysvol\domain"
     Replica root volume is : "\\.\C:"
     A Replica set hits JRNL_WRAP_ERROR when the record that it is trying to read from the NTFS USN journal is not found.  This can occur because of one of the following reasons.
     [1] Volume "\\.\C:" has been formatted.
     [2] The NTFS USN journal on volume "\\.\C:" has been deleted.
     [3] The NTFS USN journal on volume "\\.\C:" has been truncated. Chkdsk can truncate the journal if it finds corrupt entries at the end of the journal.
     [4] File Replication Service was not running on this computer for a long time.
     [5] File Replication Service could not keep up with the rate of Disk IO activity on "\\.\C:".
     Setting the "Enable Journal Wrap Automatic Restore" registry parameter to 1 will cause the following recovery steps to be taken to automatically recover from this error state.
     [1] At the first poll, which will occur in 5 minutes, this computer will be deleted from the replica set. If you do not want to wait 5 minutes, then run "net stop ntfrs" followed by "net start ntfrs" to restart the File Replication
    Service.
     [2] At the poll following the deletion this computer will be re-added to the replica set. The re-addition will trigger a full tree sync for the replica set.
    WARNING: During the recovery process data in the replica tree may be unavailable. You should reset the registry parameter described above to 0 to prevent automatic recovery from making the data unexpectedly unavailable if this error condition occurs again.
    To change this registry parameter, run regedit.
    Click on Start, Run and type regedit.
    Expand HKEY_LOCAL_MACHINE.
    Click down the key path:
       "System\CurrentControlSet\Services\NtFrs\Parameters"
    Double click on the value name
       "Enable Journal Wrap Automatic Restore"
    and update the value.
    If the value name is not present you may add it with the New->DWORD Value function under the Edit Menu item. Type the value name exactly as shown above.

    > The message in the event log states to enable "Enable Journal Wrap
    > Automatic Restore" but I found a KB article that says to use the
    > BurFlags key instead.
    http://support.microsoft.com/kb/290762
    >
    > Should I run an authoritative restore since I don't have another domain
    > controller with a good SYSVOL?
    The automatic restore process AFAIK will initiate a D2 restore. And if
    there's no other DC, sysvol might be gone.
    I really would prefer to have control - this means I would do a D4.
    Absolutely I would :)
    Martin
    Mal ein
    GUTES Buch über GPOs lesen?
    NO THEY ARE NOT EVIL, if you know what you are doing:
    Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))

  • Format Error : mkfs.ocfs2 1.2.7 file system too small for a journal

    Hi All,
    I am trying to implement Oracle 10g RAC on my laptop using vmware and openfiler software . But while executing the command
    #mkfs.ocfs2 -b 4K -C 32K -N 4 -L oracrsfiles /dev/iscsi/crs11/part1
    I am getting the error
    Format Error : mkfs.ocfs2 1.2.7 file system too small for a journal
    Please anybody can help me to resolve this problem.
    Thanks in Advance.

    How large is the device that you are formatting?
    The default journal size depends on the type specified. If none specified,
    then it assumes "mail" which sets the default journal per slot to 256M.
    If database type, default is 64M.
    Use "-T database" to specify database type, etc.
    BTW, one can always override the defaults. Say "-J size=16M" to make
    a smaller journal.
    man mkfs.ocfs2 and the user's guide has more.

  • Different no range/doc. type for cash journal incoming/outgoing payment

    Hi all,
    I am going to set up cash journal for a customer and they want separate number range for incoming and outgoing payments.
    I have read on this forum and actually don´t understand if that´s possible.
    If I set up two different cash journals (one for outgoing payments and one for incoming payments) the problem is that I can call all transaction type (C, B, R, E, set in transaction FBCJC2) from both. I have a cash journal for outgoing payments where I have set a separate document type and number range for G/L accounts in transaction FBCJC0 and the same for vendor outgoing payment and customer outgoing payment, but no document type for incoming payments from vendor/customer.
    When I then start to use this cash journal for outgoing payments I can´t make outgoing payments if I don´t have any money in my cash journal. Then I have to take money from my housebank by business transaction type C (receipt from bank) set in transaction FBCJC2. This becomes an incoming payment, but I got the same number range as for outgoing payments because I am in that cash journal and that number range is set per G/L account transaction per cash journal. .
    How can I come around this problem?
    Thanks in advance!
    Best regards Lisa

    Hi Pravin,
    Sorry for late answer. I created three document types, one for customer, one for vendor and a third for G/L postings. It was not possible to do in another way, sorry.
    Best regards Lisa

  • AP Journal Import Error

    Hi all,
    While running process to import journal error occured. Description of error are as below:
    1) User run ACCOUNTS PAYABLE JOURNAL ENTRY EXCEPTION REPORT, run completed with no error.
    2) The follow up auto run of JOURNAL IMPORT EXECUTION REPORT was interrupted due to failure of Oracle System resulting in a shutdown of the Server. Status Indicated Journal Import Completed with Error. No output file was generated.
    3) User then follow up with GL Supervisor responsibility and when 'GL Supervisor --> Journal --> Enter' is run and posting the month is queried, no unposted posting can be found for the data imported.
    4) Subsiquent re-run of ACCOUNTS PAYABLE JOURNAL ENTRY EXCEPTION REPORT and JOURNAL IMPORT EXECUTION REPORT completed with no error. However, output indicated NO DATA FOUND.
    Below are the output for the re-run:
    Sawit - Set of Books ACCOUNTS PAYABLE JOURNAL ENTRY EXCEPTION REPORT Date: 02-APR-07 Page: 1
    Invoice Distributions with Exceptions
    |----------------Invoice------------------| |--------------------Distribution------------------| Exception
    Supplier Name Invoice Number Currency Amount Num Amount Description GL Date Code
    *** No data exists for this report ***
    Sawit - Set of Books ACCOUNTS PAYABLE JOURNAL ENTRY EXCEPTION REPORT Date: 02-APR-07 Page: 2
    Invoice Payments with Exceptions
    |----------------Payment------------------| |----------------Invoice Payment---------------| Exception
    Supplier Name Document Number Currency Amount Num Invoice Number Amount GL Date Code
    *** No data exists for this report ***
    Sawit - Set of Books ACCOUNTS PAYABLE JOURNAL ENTRY EXCEPTION REPORT Date: 02-APR-07 Page: 3
    Reconciliation Payment Distributions with Exceptions
    Supplier Name Document Number Currency Amount Line Type GL Date Exception Code
    *** No data exists for this report ***
    Sawit - Set of Books ACCOUNTS PAYABLE JOURNAL ENTRY AUDIT REPORT Date: 02-APR-07 Page: 1
    TRANSFER TO GENERAL LEDGER : POSTED INVOICES
    Currency :
    Supplier Na Invoice Num GL Date Accounting Flex Entered Debit Entered Credit Accounted Debit Accounted Credit
    *** No data exists for this report ***
    Sawit - Set of Books ACCOUNTS PAYABLE JOURNAL ENTRY AUDIT REPORT Date: 02-APR-07 Page: 2
    TRANSFER TO GENERAL LEDGER : POSTED PAYMENTS
    Bank Acccount :
    Payment Document :
    Currency :
    Supplier Na Document Num GL Date Accounting Flex Entered Debit Entered Credit Accounted Debit Accounted Credit
    *** No data exists for this report ***
    Sawit - Set of Books ACCOUNTS PAYABLE JOURNAL ENTRY AUDIT REPORT Date: 02-APR-07 Page: 3
    TRANSFER TO GENERAL LEDGER : POSTED RECONCILIATION DISTRIBUTIONS
    Bank Acccount :
    Payment Document :
    Currency :
    Supplier Na Document Num GL Date Accounting Flex Entered Debit Entered Credit Accounted Debit Accounted Credit
    *** No data exists for this report ***
    Sawit - Set of Books Journal Import Execution Report Date: 02-APR-07 08:28
    Concurrent Request ID: 706386 Page: 1
    Journal Import finds no records in gl_interface for processing.
    Check status, set_of_books_id, je_source_name and interface_run_id of import records.
    ***** End of Report *****
    5) Check done on the gl.gl_interface show no data.
    6) Check done on the gl.gl_je_batches show no such data.
    7) A Sweep of un-imported journal before closing of period is done shows no record found of unposted records.
    8) As of date, user have closed the period of Mar-07.
    The question is, how do we repost the required data for the month of Mar-07 and to allow for posting into GL using the 'GL Supervisor --> Journal --> Enter' form?
    Please help....thanks a lot..

    I would say those exceptions always happening with Java products of Cisco.
    You need to open a Cisco TAC case for them to collect logs and see in details (in programming view) why this exception is happening.
    From my experience this may take sometime because the TAC engineer usually have no idea about the programming so he forward the logs analysis to a programmer who can understand.
    If you can open a TAC case then this should be your next step.
    Good luck.
    Amjad
    P.S: The main reason of most such exceptions is bugs.

  • Enabling Journal approval in 11.5.10.2

    Hi all,
    We have to enable journal approval in Oracle General Ledger on 11.5.10.2 .Can anyone suggest the steps for implementing this process.
    Regards,
    Sushank Vashishtha

    Hi Mujeeb,
    To enable Journal approval you need to do the following:
    1)In your set of books journal approval should be enabled
    2)Define employees(in GL ,in case you are using HRMS you need to define there) and their supervisors
    3)Go to Journal Source form and check the box "requires approval"
    4)In profile options set "Allow Preparer Approval" to yes
    5)In profile options set "Find Approver method" to the appropriate value for your setup
    6)Define Authorisation limit in your GL setup
    Now Journal approval is ready to be used!!!
    Regards,
    Sushank

  • Event ID - 13568 The File Replication Service has detected that the replica set "DOMAIN SYSTEM VOLUME (SYSVOL SHARE)" is in JRNL_WRAP_ERROR.

    We had a major storm over the weekend which caused an unexpected shutdown.
    I am having an issue with one of my domain controller with Event ID 13568
    The domain controller which is running Windows Server 2012 was added successfully just a couple of days ago.
    I do not have a full backup of the server yet.
    It only has a GC role on it.
    What are the things I should look out for before I attempt to Enable Journal Wrap Automatic Restore and set it to 1?
    Would it be safer to just demote the server and start from scratch?
    Thank you all for reading!
    Mladen
    The File Replication Service has detected that the replica set "DOMAIN SYSTEM VOLUME (SYSVOL SHARE)" is in JRNL_WRAP_ERROR.
     Replica set name is    : "DOMAIN SYSTEM VOLUME (SYSVOL SHARE)"
     Replica root path is   : "c:\windows\sysvol\domain"
     Replica root volume is : "\\.\C:"
     A Replica set hits JRNL_WRAP_ERROR when the record that it is trying to read from the NTFS USN journal is not found.  This can occur because of one of the following reasons.
     [1] Volume "\\.\C:" has been formatted.
     [2] The NTFS USN journal on volume "\\.\C:" has been deleted.
     [3] The NTFS USN journal on volume "\\.\C:" has been truncated. Chkdsk can truncate the journal if it finds corrupt entries at the end of the journal.
     [4] File Replication Service was not running on this computer for a long time.
     [5] File Replication Service could not keep up with the rate of Disk IO activity on "\\.\C:".
     Setting the "Enable Journal Wrap Automatic Restore" registry parameter to 1 will cause the following recovery steps to be taken to automatically recover from this
    error state.
     [1] At the first poll, which will occur in 5 minutes, this computer will be deleted from the replica set. If you do not want to wait 5 minutes, then run "net stop ntfrs"
    followed by "net start ntfrs" to restart the File Replication Service.
     [2] At the poll following the deletion this computer will be re-added to the replica set. The re-addition will trigger a full tree sync for the replica set.
    WARNING: During the recovery process data in the replica tree may be unavailable. You should reset the registry parameter described above to 0 to prevent automatic recovery from
    making the data unexpectedly unavailable if this error condition occurs again.
    To change this registry parameter, run regedit.
    Click on Start, Run and type regedit.
    Expand HKEY_LOCAL_MACHINE.
    Click down the key path:
       "System\CurrentControlSet\Services\NtFrs\Parameters"
    Double click on the value name
       "Enable Journal Wrap Automatic Restore"
    and update the value.
    If the value name is not present you may add it with the New->DWORD Value function under the Edit Menu item. Type the value name exactly as shown above.

    I set Enable Journal Wrap Automatic Restore to 1 and it was
    successful.
    I will monitor it to make sure it does not occur again.
    Thanks everyone on your replies
    Mladen

  • Payroll Journal Import Error EF04

    Hi,
    we are working in oracle applications 11i (11.5.0) TEST Instance.
    As monthly operations the payroll personnel upload the salaries journal to Gl Interface with oracle web adi. We have oracle hrms full install.
    We are trying to setup and use the direct payroll gl interface. The following steps are done so far:
    1. Cost Allocation Flexfield is setup and points to the same value sets as in the Accounting Key Flexfield.
    2. KFF qualifiers NOW are all enabled for all segments.
    3. 5 Costing accounts for 5 elements are entered directly to an employee at employee assignment element entry level.
    4. GL map to costing segments is done and although the employee is paid in foreign currency, his payroll is assigned to the functional set of book.
    5. costing is run
    6. cost break down report for costing run and only 2 lines are there! this is my first issue
    7. transfer to GL is requested .
    8. On the attempt to import the journals from payroll the request completes with warning And the two line have error code EF04
    The GL super user have checked the 5 accounts and they are valid and their combinations exist in the system.
    What do we need to check?
    Thanks ...

    Please review these docs and see if it helps.
    Journal Import Error with Status Code EF04 [ID 235029.1]
    Journal Import fails with EF04 error but security rule violation for new code combinations [ID 953109.1
    Journal Import - Record With Two Errors Ef04 And Em30 - Em30 Code Is Incorrect [ID 1175769.1]
    Receiving EF04 Error when Consolidation Run Option is Set to Run Journal Import [ID 150841.1]
    Doing a Journal Import Encounters EF04 Invalid Accounting Flexfields [ID 107896.1]
    EF04 error in GLLEZL incorrect, as code combination gets created [ID 368198.1
    Errors Caused Because of Misclassified Accounts [ID 231948.1]
    How to Use the Journal Import Correction Screen [ID 1056801.6]
    Thanks,
    Hussein

  • Cash Journal Branch creation concept

    Dear Friends,
    Can any one please explain about the Petty cash in sap.
    I did the set up in petty cash like creation of Branch account.
    Please help me to understand the actual concept of petty cash in sap. how its works in the system.
    Thanks in advance.
    Regards,
    Mahendra

    Hi,
    Concept of Cash Journal:
    You can use the cash journal to manage cash transactions in your company. You can post cash receipts and cash payments, print receipts, and print out a cash journal. The cash journal in the R/3 System is a subsidiary ledger, which contains documents that are transferred from the cash journal to the general ledger in SAP FI. A cash journal is kept in one currency.
    The cash journal does not include functions for accepting and depositing checks.
    Each cash journal is assigned a G/L account to which the documents in the general ledger are posted.
    When a posting is made to a cash journal, the documents with the following document types are posted:
    Business transaction                                   Document Type
    G/L account postings                                      AB
    Vendor: incoming/outgoing payments     KZ
    Customer: incoming/outgoing payments     DZ
    You can create your own business transactions that have to be posted. In the cash journal transaction FBCJ, you can create, change, and delete business transactions.
    We can provide the following business transactions for cash journal accounting:
    Business transaction type
    E = Expenses
    D = Customer posting
    K = Vendor posting
    B = Payment to ICBC bank account
    B = Payment to BOC bank account
    C = Payment from bank account
    C = Payment to bank account
    R = Revenue
    Cash Journal Configuration steps:
    1. Create GL Account for Cash Journal (Post Automatically): FS00 or FS01
    2. Amount Limit: Path: IMG/FA/Bank Accounting/Business Transactions/Cash Journal
    3. Define Document Types for Cash Journal Documents - Tcode: OBA7
    4. Define No. Range Intervals for Cash Journal Documents- CJC1
    5. Set up Cash Journal - Tcode: CJC0
    6. Create, Change, Delete Business Transactions - Tcode: CJC2
    7. Set up Print Parameters for Cash Journal -  CJC3
    8. Cash Journal Posting : FBCJ
    Hope this helps you,
    Regards,
    Kannusamy S

  • Adding Journal Vouchers

    Hello there,
    I am having a problem adding Journal Vouchers to SAP using the DIAPI. I have gotten everything from an "Unbalanced Transaction Error" to a "Date deviates from permissible range Error". Here is my code in VB. Please if anyone can help it would be much appreciated
    (I am reading a recordSet object to populate the fields of the journal voucher)
    ''set up the header of the journal voucher
    oJV.JournalEntries.ReferenceDate = FormatDateTime(oRecord.Fields.Item("PosDate").Value, vbShortDate)
    oJV.JournalEntries.Reference = oRecord.Fields.Item("Descr").ValidValue
    ''set up the lines of the journal entries
    syscode = oRecord.Fields.Item("SysCode").Value
    oJV.JournalEntries.Lines.SetCurrentLine(lineCount)
    oJV.JournalEntries.Lines.DueDate = FormatDateTime(oRecord.Fields.Item("PosDate").Value, vbShortDate)
    oJV.JournalEntries.Lines.ReferenceDate1 = FormatDateTime(oRecord.Fields.Item("PosDate").Value, vbShortDate)
    oJV.JournalEntries.Lines.ReferenceDate2 = FormatDateTime(oRecord.Fields.Item("PosDate").Value, vbShortDate)
    oJV.JournalEntries.Lines.VatDate = FormatDateTime(oRecord.Fields.Item("PosDate").Value, vbShortDate)
    oJV.JournalEntries.Lines.TaxDate = FormatDateTime(oRecord.Fields.Item("PosDate").Value, vbShortDate)
    oJV.JournalEntries.Lines.AccountCode = oRecord.Fields.Item("SysCode").Value
    oJV.JournalEntries.Lines.ShortName = oRecord.Fields.Item("SysCode").Value
    oJV.JournalEntries.Lines.Reference1 = oRecord.Fields.Item("Descr").Value
    If oRecord.Fields.Item("Debit").Value = 0 Then
                    oJV.JournalEntries.Lines.Credit = oRecord.Fields.Item("Credit").Value
                    oJV.JournalEntries.Lines.Debit = 0
    End If
    If oRecord.Fields.Item("Credit").Value = 0 Then
                     oJV.JournalEntries.Lines.Debit = oRecord.Fields.Item("Debit").Value
                    oJV.JournalEntries.Lines.Credit = 0
    End If
    'if need be, add a line to the journal entry
    If lineCount <> 1 Then
                    oJV.JournalEntries.Lines.Add()
    End If
    'every two lines in my record set it a journal entry
    'so check if a journal is ready to be added
    If lineCount Mod 2 <> 0 Then
    'add a journal entry to the voucher
    If oJV.JournalEntries.Add() <> 0 Then
              MessageBox.Show(oCompany.GetLastErrorDescription)
    End If
    lineCount = 0
      addedJE = True
    End If
    oRecord.MoveNext()
    If addedJE = False Then
          lineCount += 1
    End If
    End While
    ''add the journal voucher
    If oJV.Add() <> 0 Then
          MessageBox.Show(oCompany.GetLastErrorDescription)
    End If
    End Sub

    Hi guys!
    Thanks for your help.I have checked my debits and credits and I have simplified my code alot. I am able to now add a journal voucher with one journal with multiple lines. The problem seems to have been when i tried to call oJV.JournalEntries.Add(). It seems you just have to add the JournalLines and then the actual Journal Voucher.
    That is all fine but now i am having a problem setting different Posting Date (ReferenceDate on the Object), DueDate(DueDate on the Object) and Document Date (TaxDate on the Object).
    The Journal Voucher is added to SAP but all three dates are the same when in my code, i have set the Document Date to be different from the Posting Date. Could this be because I am using a Document Date of 19/12/07 and a Posting Date of 23/11/07 ( in another period)??? i dont knw. Please help if you can. My code is below :
    ''set up the lines
    syscode = oRecord.Fields.Item("SysCode").Value
    oJV.JournalEntries.Lines.SetCurrentLine(lineCount)
    ''Set Dates on lines
    oJV.JournalEntries.Lines.ReferenceDate1 = FormatDateTime(oRecord.Fields.Item("PosDate").Value, vbShortDate)
    oJV.JournalEntries.Lines.DueDate = FormatDateTime(oRecord.Fields.Item("PosDate").Value, vbShortDate)
    oJV.JournalEntries.Lines.TaxDate = FormatDateTime(oRecord.Fields.Item("DocDate").Value, vbShortDate) ''Doc Date*******
    oJV.JournalEntries.Lines.AccountCode = oRecord.Fields.Item("SysCode").Value
    oJV.JournalEntries.Lines.Reference1 = oRecord.Fields.Item("Descr").Value
    If oRecord.Fields.Item("Debit").Value = 0 Then
       oJV.JournalEntries.Lines.Credit = oRecord.Fields.Item("Credit").Value
       oJV.JournalEntries.Lines.Debit = 0
    End If
    If oRecord.Fields.Item("Credit").Value = 0
       oJV.JournalEntries.Lines.Debit = oRecord.Fields.Item("Debit").Value
       oJV.JournalEntries.Lines.Credit = 0
    End If
    oJV.JournalEntries.Lines.Add()
    oRecord.MoveNext()
    If addedJE = False Then
         lineCount += 1
    End If
    pbStatus.Value += 1
    End While
    If oJV.Add() <> 0 Then
        MessageBox.Show( oCompany.GetLastErrorDescription)
        squery = squery.Replace("'", "")
    End If
    Kind regards,
    Greeshma

  • Cash Journal - Internal order mandatory

    Hi,
      We have setup a field status variant (ie) Z001, and made internal order as mandatory. when i post any document through F-02, the system shows that it is mandatory.
      but when i post a document for the same GL using FBCJ without internal order also the document is posted. How to make the internal order mandatroy for the transcation FBCJ also.
    Regards
    Vasantha

    hi
    please verify whether configuration for "set up cash journal" is proper and the same GL account for which internal order is made mandatory in field status gr zoo1 is assigned in this configuration.
    reg
    ep reddy

Maybe you are looking for