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 Kumra

Hi 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

Similar Messages

  • 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

  • One customer entry is not comming into datasource.

    Hi,
    I did not get one of customer Line item details in Datasource. But i can see the data  in FB03. what will be the reason.
    Regards.

    Hi,
    yes, i have not seen in datasource. i have checked with Customer and Fiscal period. but i did not get the perticular customer line item details. But i have seen in FB03. what will be the problem.
    Please give me suggestions.
    Regards.

  • BP Details In Journal Entry

    Hi All,
    I need BP Code,Name,Address,Payment Terms and respective Debit and credit Details for a report.. i can get the Debit, credit and Transaction Details From OJDT and JDT1 ... am not having any clear idea on how to get the respective BP details(BP Code,Name,Address,Payment Terms) ... am having only BP name (JDT1.ShortName).. That too For For Some Row item am having BP Name, Remaining Having Account code..
    whats the Exact Functionality of  JDT1.ShortName and How to Get the BP details with Debit and Credit ? Any Suggestion ....
    Regards,
    Ganesh

    Hello Ganesh -
    I am not sure what layout or order of layout you are looking for, but try this little SQL as a starting point. 
    If you try to use the Query Generator to see what the connection is between JDT1 and OCRD, Query Generator will not put a connection (JOIN) there. But you were "oh so close" and right on target by looking at using the "JDT1.ShortName".  With both BP types of customers and vendors I have used the "Short Name" to create many reports SAP B1 does not have that are commonly used by accountants and CPAs (such as full-blown AR Cash Receipt Journals and AP Cash Disbursement Journals).
    Remember an "INNER JOIN" will only show those customers who have an actual associated journal entry - a "LEFT OUTER JOIN" would show ALL customers regardless of whether they have a journal entry or not...
    Good luck and hope this starts you on your path to getting your work done...
    Zal
    SELECT
    T0.CardCode AS 'Cust Num',
    T0.CardName AS 'Cust Name',
    T0.CardType AS 'BP Type',
    T0.Address AS 'Bill To Address',
    T0.City AS 'City',
    T0.ZipCode AS 'Zip Code',
    T0.Phone1 AS 'Main Telephone',
    T0.CntctPrsn AS 'Main Contact',
    T1.TransId AS 'JE Num',
    T1.Line_ID + 1 AS 'JE Line',
    T1.TransType AS 'Trans Type',
    T1.Debit,
    T1.Credit
    FROM OCRD T0
    INNER JOIN JDT1 T1
    ON T0.CardCode = T1.ShortName
    WHERE T0.CardType = 'C'

  • Audit Report Fix (Manual Journal Entries for Inventory)

    Hello!
    Curious if anyone has been able to fix an inventory audit report using journal entries?
    For example:  if an item was on inventory account 1500 based on it's item group assignment, then say 20 items are received for $1 each, then 5 are sold at $1 then the item group is switched and now it has an inventory account of 1520 and 5 more items are issued out.
    Running the audit report summarizing by accounts will show $15 as the balance in 1500 and -5 in 1520.  So when we go to actually check the accounts to reconcile them at the end of a period, our inventory accounts are always off.
    I have identified manual journal entries meant to 'fix' a GL account, but these have made the audit report basically unusable for reconciliation.
    Is there a way to journalize a change in the inventory accounts while making the change occur in OINM as well??
    I have looked through several expert empowerment sessions that acknowledge this as a problem, but do not offer any solutions.
    Thanks!
    Mike

    Hi Mike:
    Changing Item groups while inventory is on hand is a problem.  I have found a way to correct this, but it is a multi step process.  I would try this in DEMO first to make sure you get the proper results. 
    Try this.
    Below is the procedure for correcting the G/L Accounts on your Inventory Audit Report  It is complicated and needs to be performed when no other users are in the system.  Journal entries will not correct this problem.
    Here it is.
    1.     Review Inventory Audit Report by Summarize by Accounts for the item.
    2.     Do a Misc. Issue to remove the inventory.
    3.     Review Inventory Audit Report again. 
    4.     Change the Acct # on the Item Group for the Inventory Item to match the negative value account number.  CAUTION!  Make sure that users are not performing transactions on the system when you do this.
    5.     Do another Good Receipt for 1 each at price shown in Negative value account number.  Enter as a positive number.
    6.     Re-run the Inventory Audit to confirm that the negative account has been zeroed out.
    7.     Change Item Group Inventory account to remaining positive value account number.
    8.     Do an Inventory Issue for quantity of 1 each.
    9.     Re-run the Inventory Audit Report for the item.  All accounts should now have zero value.
    10.     Change Item Group account setting back to correct account for future.
    I hope it works for you.
    Regards,
    Vicki Smith

  • Pld on journal entry

    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
    Jenny

    Hi 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.

  • Provide automatic Remark in detail part of journal entry by FMS

    I am going to use FMS in journal entry. I want to provide automatic remark base on ref2 in detail part of journal entry .  I also provided  FMS for ref2 and it's value is base on employee list . I mean there is a look up in ref2 and it retrieves  employee's  Code. I would like to calculate remark values from ref2 as Employee' name and employee's last name.  I donu2019t know how I must write SQL script for this purpose and retrieve employee' Name and last name base on ref2 value in journal detail.  I would be grateful if some body help me in this matter.
    Thanks

    Dear Farhadn,
    I am not sure of what information you are trying to add in the UDF. If I understood correctly, you have already a FMS on the field ref2 of the JE that shows name and surname of the employee. According to this data, a value will show up in the other FMS.
    Can I ask you where this value comes from? Is it a calculation?
    I have to warn you that if you want this value to appear before the JE is added in the system I am afraid what you are asking it is not possible.
    The FMS can work if there is a value in the field ref2 in the table, but this value is stored in the table when the user clicks update on the JE. Until then, the FMS will not have the name of the employee.
    Kind Regards,
    Marcella Rivi
    SAP Business One Forums Team

  • Journal entry disappears after saving and not available to post

    Hi Gurus
    On BPC for Netweaver version 7.5 and excel 2003 i am able to save the journal entry but am not able to post it since it disappears after saving. I could see the Journal ID being generated and then the layout gets cleared . i am unable to post this journal. Also when i go to journal manager and tries to list the journals this saved journal does not show up.
    I have already set the application parameter "JRN_MAXCOUNT" to 1000  so that i can see the journals that i create.
    Have any of you faced such an issue?
    Regards

    Hi Tara,
    Thank you very much for your tip. I had Datasource as one of the header fields and i moved it to the item fields to make it work. I am still not sure why does that. May be because when we create the journal template system proposes only the required fields in Header and if select additional ones its not liking it.
    I cannot come up with a reasoning why we cannot incorporate a non required field in header journal template . The obvious reason that i included the datasource dimension in header itself was because it was a common value that i want to use for all my journals.
    Anyway i hope SAP would either fix this or come up with a reasoning.
    Thanks again..

  • FSCM 9.0: COBOL Process GLPPPOST does not post Journal Entry correctly

    Folks,
    Hello. I am workin on FSCM 9.0 General Ledger module. "Edit Journal" is AE program that works correctly. But "Post Journal" is a COBOL program that does not works correctly.
    COBOL process GLPPPOST posts only debit accounts of a Journal entry into table PS_LEDGER but does not post credit accounts of a Journal Entry into table PS_LEDGER. When run the Ledger Report, the report has only column headers and has no data.
    Does FSCM 9.0 have a problem or COBOL process does not work correctly ? Can any folks help me ? Thanks.

    Folks,
    Hello. Thanks a lot for replying.
    I linked my Ledger Group RECORDING with my Business Unit BU01 using "Set Up Financials/Supply Chain > Business Unit Related > Ledgers For A Unit". Then linked UserID VP1 with BU01 in User Preference. I have checked all information about the 3 concepts (VP1, BU01 and RECORDING) and don't see anything wrong.
    I suspect the problem is in the Journal Line page because its Chartfileds belong to 2 SetID (SHARE and FEDRL) and 2 Business Unit (BU01 and BU02).
    When define Chartfields value using "Setup FSC > Common Definition > Design Chartfield > Define Value", I see Chartfields "Fund", "Class" and "Program" with SetID "FEDRL", and other Chartfields with SetID "SHARE". The 2 SetIDs are default in the system.
    Because one Business Unit (BU01) can link to only one SetID (SHARE), I create one more Business Unit BU02 and linked with SetID "FEDRL". Thus, when create a Journal entry using "General Ledger > Journal > Create Journal ", we type in Business Unit (BU01) and Ledger Group (RECORDING) in Header page, but in Line page, some of Chartfields link with SetID SHARE and BU01, and some of Chartfields link with SetID FEDRL and BU02. The journal entry indicates "Inter/Intra Unit Journal". When select "Edit Journal" and click "Process", the message comes up as follows:
    "Ledger Group RECORDING is not valid for Business Unit BU01. Ledger Group defined for this journal is not valid for the Business Unit BU01".
    My question is: That the Chartfields in Journal Line page link with 2 SetIDs and 2 Business Units causes the above error ? Can any folks help ? Thanks.

  • FSCM 9.0: COBOL Process does not post credit accounts of a Journal Entry

    Folks,
    Hello. I am working on FSCM 9.0 General Ledger module. COBOL process GLPPPOST posts only debit accounts of a journal entry into PS_LEDGER table but not credit accounts of a journal entry. Can any folks understand how to solve the issue ?

    Folks,
    Hello. Thanks a lot for replying.
    I linked my Ledger Group RECORDING with my Business Unit BU01 using "Set Up Financials/Supply Chain > Business Unit Related > Ledgers For A Unit". Then linked UserID VP1 with BU01 in User Preference. I have checked all information about the 3 concepts (VP1, BU01 and RECORDING) and don't see anything wrong.
    I suspect the problem is in the Journal Line page because its Chartfileds belong to 2 SetID (SHARE and FEDRL) and 2 Business Unit (BU01 and BU02).
    When define Chartfields value using "Setup FSC > Common Definition > Design Chartfield > Define Value", I see Chartfields "Fund", "Class" and "Program" with SetID "FEDRL", and other Chartfields with SetID "SHARE". The 2 SetIDs are default in the system.
    Because one Business Unit (BU01) can link to only one SetID (SHARE), I create one more Business Unit BU02 and linked with SetID "FEDRL". Thus, when create a Journal entry using "General Ledger > Journal > Create Journal ", we type in Business Unit (BU01) and Ledger Group (RECORDING) in Header page, but in Line page, some of Chartfields link with SetID SHARE and BU01, and some of Chartfields link with SetID FEDRL and BU02. The journal entry indicates "Inter/Intra Unit Journal". When select "Edit Journal" and click "Process", the message comes up as follows:
    "Ledger Group RECORDING is not valid for Business Unit BU01. Ledger Group defined for this journal is not valid for the Business Unit BU01".
    My question is: That the Chartfields in Journal Line page link with 2 SetIDs and 2 Business Units causes the above error ? Can any folks help ? Thanks.

  • Remarks field in Journal Entry form

    Hi All,
      I am wondering how is created the Remarks field in Journal Entry form? It contains a string which describes the journal entry origin and sometimes it contains the Business Partner Code. I would like to know the origin table, field of the string (only the string without BP Code).
    I would like to write a query which contains all available TransType, and one string remark field for every TransType field.
    I wrote the following, but it is not good because the string contains Business Partners Code, more than one line for each TransType field, and doesn't contain every existing TransType type.
    SELECT DISTINCT convert(integer,TransType) As TransType, LineMemo from JDT1 ORDER BY TransType
    Thanks,
    Zoltan

    Zoltan,
    there is not any single table which determines the remarks or memo for Journal entry. in the documents from which, account posting happens (such as invoice) , you will find a field called jrnlmemo in accounting tab (in master table such as OPCH). also, the transtype in OJDT can help you build the case for your query.
    HTH,
    regards,
    Binita Joshi

  • 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

  • Stock Posting does not tally with Journal Entry

    Hi Mentors,
    I currently trying to see the cause of a particular issue with the JE being created by Stock Posting.
    After scavenging the forums, I came across SAP Note 1525960.
    Symptom
    On creating Inventory Posting in locked Posting Period, system gives error message 'Period is
    locked for new data [Message 131-107]'. Keep the window open, go to Posting Periods to
    change the Period Status to 'Unlocked', and then click on 'Reconcile' again. Inventory Posting
    is successfully added.
    The Transaction Value in the Inventory Audit Report is correct. However the Debit / Credit
    amounts in the Journal Entry of Inventory Posting are doubled.
    The note was created in 2010, filed under SAP Business One 2007. I tried to replicate it, and it holds true for our system, which is currently 2004B.
    When I tried to explain the SAP note to our accountant, she said that she did not encounter the error message, since she was the one controlling the period.
    So my question is, if there any other factors that could influence the change in the posting of the JE such that the variance being posted in the JE is more than the actual amount(as verified against "Inventory Posting List" and OINM)? 
    Some facts about our Finance department's practices.
    They enter the "Stock Posting" a month later.
    E.G. Stock Posting for Oct2011 Stock Variance
    System Date: Nov 16, 2011
    Stock Posting - Posting Date: Oct 31, 2011
    Thanks in advance!
    Sean

    Hi Sir Gordon,
    I already checked using your suggested query:
    SELECT * from oinm
    WHERE NegInvAdjs != 0
    found in this [thread|Re: Diffe Amount posting in Same document].
    Unfortunately, 2004B does not have the column "NegInvAdjs". The query failed to execute.
    Thank you for the guidance,
    Sean

  • G/L Account mentioned on line level does not get hit in Journal entry on GRPO and AP Invoice in SAP B1 9.0 PL - 11

    Hi,
    G/L Account mentioned on line level does not get hit in Journal entry on GRPO and AP Invoice in SAP B1 9.0 PL - 11
    I am creating an independent AP Invoice, there are two issues:
    1. On line level G/L Account field is not open for selection
    2. I have then selected and updated the account on Form Settings. Same account gets updated on line level.
         In Journal Entry selected G/L account on line level shall be hitted. But it does not put any effect on JE. Accounting is set by Warehouse. It picks up accounts from warehouse only.
    Need help its urgent.
    Thanks in advance.

    Invoice is Item Type.
    G/L Accounts are set by Warehouse. But if explicitly we are want to change the account on line level in that case, it is not getting reflected in Journal entry. On AR Invoice same scenario works perfectly. On line level I can change the accounts explicitly and have the effect on Journal entries.
    Issue seems to be on AP side only.
    As required please find attached the screen shots.
    JEwith mapped GL Account on Warehouse
    JEwith different GL Account on line Level via Form Settings
    Thanks & Regards
    Sonil

  • Not able to post Journal Entry in Hyperion

    We try to post an entry in Journal Task, but not save or post, and also receive "voilated integrity constraints on column table"... Any idea?
    Edited by: user9102824 on May 7, 2010 9:50 AM

    Is the issue happening on a database that was created using the copyapp utility? If so, check out the artcile below in the Metalink KB (which essentially states to patch the software and/or try a newer version of the copyapp utility).
    *"Value violated the integrity constraints for a column or table" errors in HsvEventLog.log after copying an HFM application between two Oracle databases [ID 746562.1]*

Maybe you are looking for