Creating new Journal entry

hi,
i am trying to add a new line using DI API in the journal entry lines.
i want to add the partener code but when i insert it i get the chosse from list of G/L acount opened.
Is there somthing special to do to insert the BP Code ?
Thanks for your help.

when you want to add the business partner code to your journal entry you
should set the shortname to the businesspartner cardcode:
oJnl.Lines.ShortName = "C1000"

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 Pereira

    hi,
    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

  • "Create New System Entry" screen

    Hello,
    I would like to make pre-configured connection settings available to users in my company. When the New button is clicked in SAP Logon the first screen that comes up is "Create New System Entry" with a text of:
    "Select one of the available systems from the list below. If you choose the first entry, you can specify the system parameters yourself."
    However the only entry in the list is "User Specified System"
    How can I populate that list with pre-configured settings for users to choose?
    - Regards,
    Richard Bailey

    Hi Richard,
    Yes the integration between Active Directory and SAP systems management exists. However, the automatic registration of systems in the active directory could have been done during the installation of SAP system itself.
    Below could be of help:
    SAP Notes 386762 and 608781
    http://download.microsoft.com/download/f/3/7/f371bbba-2341-41bf-822d-2c7dd4174756/SS_AD_SAP.doc
    http://www.cybersafe.com/d2/prod-and-soln/howto/sapguissoin10min
    Regards,
    Srikishan

  • Error in creating GL journal entry

    Hi all,
    I'm looking for some help with an error code. I'm trying to Add a direct time entry that is currently saved in draft form only, and I encounter the following message:
    Error creating GL Journal entries: 10000415 - Linked value 1329 does not exist
    Presumably the 'linked value' refers to the first column of our time entry form, where we enter one of our old format reference numbers and sap brings back its own version of that reference number - so there must be a typo here somewhere? and if this is the case, is there a way sap will point out the relevant entry?
    Thanks

    HI.....
    Where you are saving this Journal Entry as Draft?
    Is it in Posting Voucher. If yes then is this entry still exists in Posting Voucher?
    Please check that first.....
    Regards,
    Rahul

  • "Trying to create a journal entry of the local BP with foreign amounts" error

    I have an addon that needs to set the Total (LC) field on the invoice form when a Delivery is copied to an Invoice. In this case, it's $169,978.62. The original Unit Price on the row is $7,000.00, with quantity of 5 MT (selling UoM). After populating the line total field through SDK UI, it calculated discount% to be -385.653. When I press Add, it gives me red bar error "Trying to create a journal entry of the local BP, with foreign amounts [message 3530-11]". This BP uses local currency and there is no foreign currency involved on this document. If I perform the same action through normal UI without SDK, I can add the invoice without a problem. I know it probably has to do with rounding, but how can I get past this error if I have to set the line total through SDK?

    Hi Ronnie,
    Glad you have found the issue
    Regardss,d
    Eric

  • Goods Issue creates no Journal Entry

    Hello-
    I'm in something of a unique situation in that (not going into any details) I've been given an only partially complete add-on to Business One and must now finish it.  I've had no formal training in the SDK; everything I've learned has been through this forum, the help files and simply experimenting with the code.  Given this, there are probably many things of which I'm not aware.
    My question, then:
    Is there some sort of way to "turn off" the creation of Journal Entries, either in the SDK or in a company's settings, when a Goods Issue is made?  I ask because right now no Journal Entry is being created, even though one is made for all other documents (Goods Receipt, Inventory Transfer, etc.).  I'd like to turn it back on again, because not creating a Journal Entry doesn't seem like the right thing to do.
    Thank you.

    Hi Van,
    There is no setting that will turn off GL postings and a Goods Issue will create journal entries unless it is saved as a draft.
    Have you logged this will SAP Support?
    Kind Regards,
    Owen

  • B1if - Create a journal entry

    Hello everyone,
    i hope this is the right section for that scenario, which should be easy but i cannot get it to work. I am trying to create a simple journal entry with the given structure from the B1if Object list. It all works like a charm, except for the scenario when i am trying to use a business partner in the
    <AccountCode>K123456</AccountCode>
    results in: Exception : DI Error: (-5011) Invalid Account Code
    It is necessary for me, to be able to do so. Help is greatly appreciated. Here my full xsl. As of right now it is all hardcoded.
    <AdmInfo xmlns="">
    <Object>30</Object>
    <Version>1</Version>
    </AdmInfo>
    <QueryParams xmlns="">
    <JdtNum/>
    </QueryParams>
    <JournalEntries xmlns="">
    <row>
    <!--multiple such elements are allowed-->
    <ReferenceDate>12.08.2014</ReferenceDate>
    <Memo>Memo</Memo>
    <Reference>Ref 1</Reference>
    <Reference2>Ref 2</Reference2>
    <TaxDate>13.08.2014</TaxDate>
    <DueDate>13.08.2014</DueDate>
    </row>
    </JournalEntries>
    <JournalEntries_Lines xmlns="">
    <row>
    <AccountCode>K123456</AccountCode>
    <Debit>1.00</Debit>
    <Credit>0.00</Credit>
    <DueDate>13.08.2014</DueDate>
    <LineMemo>string</LineMemo>
    <Reference1>R1</Reference1>
    <Reference2>R2</Reference2>
    </row>
    <row>
    <AccountCode>102000</AccountCode>
    <Debit>0.00</Debit>
    <Credit>1.00</Credit>
    <DueDate>13.08.2014</DueDate>
    <LineMemo>string</LineMemo>
    <Reference1>R1</Reference1>
    <Reference2>R2</Reference2>
    </row>
    </JournalEntries_Lines>

    I found the solution myself. You need to use the <ShortName> for the business partner and in the <AccountCode> you need to put your Accounts Receivable account.

  • ISE 1.1.3 - Notification when ISE creates New Endpoint Entries

    Good Morning,
    I am interested in learning how to have notifications sent out to a preset list of recipients when ISE 1.1.3 creates a new endpoint entry.  The ability to know when a foreign device has been connected is imperative for our mission.
    I have looked throughout the entirety of the ISE Settings, but I have yet to find where to enable the functionality to allow for this.
    Can someone please point me to the correct menu/setting for this?
    Thank You,
    David

    Thank you for the response.
    I read through the documentation that you linked me to, and it appears that i *should* be able to create the rules I require. I have tried many different sets of criteria, and I always receive the same Error Message:
    type Status report
    message Request not processed - Possible XSS input
    description The request sent by the client was syntactically incorrect (Request not processed - Possible XSS input).
    From the error, it looks like my criteria set is incorrect, but I have tried numerous different sets, all receive the same error.  According to the "Rules" section, under "Unknown NAD" the only Required Fields are "Category" and "Nad Count".   I have satisfied both of these fields numerous ways, all with the same output of the above error message.
    Any Idea what could be causing this?

  • Creating New System Entry in SAPGUI 7.10

    Brief Description of the problem:
    I am unable to create a new system entry in SAPGUI 7.10 Logon Pad. It works fine if you choose "Custom Application Server" as Connection Type but when you choose "Group/Server Selection" instead the Next Button is still grayed out and hence unable to create a system.
    Earlier even the Group/Server box never used to get populated but after creating sapmsg.ini, i could go one step further and now I think it looks for some value in Saprouter field in order for the Next button to get activated.
    __*What I am Looking for:__*
    Can anyone tell me how could I incorporate a saproute.ini, as I not clear on the syntax and I never have to use the sapmsg.ini and saproute.ini in SAPGUI 6.40 for users who are connected to Internal network. so this is something new in SAPGUI 7.10 and I am still clueless on why Internal users have to use saproute.ini.
    <route name>=<route>
    Here <route> has the following form: /H/<hostname where saprouter is running>/S/<service saprouter is running>
    So in the above string, how will I find the service Saprouter is running.
    Thanks

    Thanks for the response.
    It will work if you add "sapmsSID 3600/tcp" to the etc\*Services* file.
    In SAPGui 6.40, i used to just have sapms00 3600/tcp and it works.
    so in SAPGUI 7.10 looks there is a slight change and need to suffix the SID details also. I still don't find any SAPGui 7.10 documentation regarding the change I did in services file.
    Surprisingly SAP support was recomending to add router entry inorder to make it work inspite teling them we don't need to access SAP systems through router since we access them internally. No good support from them and they just jump to conclusions and they keep repeating the same thing over and over again even if you try to make them understand that it's not what you need.
    Regards
    Vipin

  • How to create a journal entries by sdk

    hi Experts
    I know how to create invoice or order by sdk . but I do not know how to create Journal Entry by sdk. i mean what fields are required. Plz send me a basic template for Journal Entry.
    Regards
    Gorge

    Dim oJounalEntry As SAPbobsCOM.JournalEntries
                ''Passing Jounal Entry
                System.Runtime.InteropServices.Marshal.ReleaseComObject(oRecset)
                oJounalEntry = Me.SBO_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oJournalEntries)
                oJounalEntry.Series = 14
                oJounalEntry.DueDate = Now
                oJounalEntry.ReferenceDate = Now
                oJounalEntry.TaxDate = Now
                oJounalEntry.Lines.ShortName = bpcode
                oJounalEntry.Lines.Credit = amount
                oJounalEntry.Lines.Debit = 0
                oJounalEntry.Lines.DueDate = Now
                oJounalEntry.Lines.TaxDate = Now
                oJounalEntry.Lines.ReferenceDate1 = Now
                oJounalEntry.Lines.Add()
                oJounalEntry.Lines.AccountCode = AccountCode
                oJounalEntry.Lines.Credit = 0
                oJounalEntry.Lines.Debit = amount
                oJounalEntry.Lines.DueDate = Now
                oJounalEntry.Lines.TaxDate = Now
                oJounalEntry.Lines.ReferenceDate1 = Now
                oJounalEntry.Lines.Add()
                lRetCode = oJounalEntry.Add()

  • How to default Ledger to SLA.: Create Subledger Journal Entry

    Here we have default the ledger for Data access sets , but also here not default the ledger.
    steps:
    1. AP-> ACCOUNTING
    Subledger Journal Entry Headers:
    Ledger[  ]

    Dear SAP Student
    It is just like inter unit cash transfers.  Also each department is spending cash on its own.  Now that I would like to know the balance cash departmentwise.
    As you said if I receive and pay through vendors I would be in a position to know only vendor wise balances.  It does not serve my very purpose of deparmentwise balance of cash. 
    I agree with Selva to go in for creating deparmentwise cash journals in the company code since each deparment is incurring expenses also and each department wise balance is also required. 
    Aravind

  • FM for creating Cash Journal Entries

    Hi guys,
    What is the FM for making Cash Journal Entries?
    Thanks,
    Chirantan

    Hi Chirantan,
    I am sure you mean FI-CA Cash Journal, so I have listed below some of the useful FMs in CJ
    FKK_CD_PAYMENT_CREATE
    FKK_S_CASH_JOURNAL_COMMIT
    FKK_CJ_CASHDESK_OPEN_OR_CLOSE
    FKK_CJ_CHECK_BUKRS_VALIDITY
    FKK_CJ_CHECK_BVRKO_VALIDITY
    FKK_CJ_CHECK_ROLE_AKTIVITY
    FKK_CJ_CREATE_GIVEN_BACK_DATA
    FKK_CJ_CREATE_SPECIAL_TASK_DOC
    FKK_CJ_GET_DATA_FOR_PRINTING
    FKK_CJ_POST_TRANSFER
    FKK_CJ_PROHIBIT_RVRSL_OF_DOCS
    FKK_CJ_PROHIBIT_SPECIAL_DOC_70
    FKK_CJ_READ_ROLE_ACTIVITIES
    FKK_CJ_READ_SPECIAL_DOCUMENTS
    FKK_CJ_SELECT_DATA
    FKK_CJ_SET_AND_CHECK_DATA_CIC
    FKK_CJ_SHLP_OFFIC
    FKK_CJ_SHOW_ALV_TREE_DETAILS
    Best of luck,
    David

  • How to create new KM  "Entry Point"

    Hi Could someone guide me how to create a new Entry Point
    (Note:Not the PCD navigation entry point)
    "An entry point provider makes one or more folders available as links that you can access from a central point"
    Thanks
    Rocky

    Rocky,
    Entry points allow you to navigate from an iView to various KM folders that may
    be located in different repositories.
    Try these urls
    http://help.sap.com/saphelp_nw04/helpdata/en/54/3d754067025537e10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/e2/2d354036052c22e10000000a1550b0/content.htm
    Points are welcome for helpful answers
    Regards
    Vineeth

  • Create new time entry code

    Hi Friends,
    Please let me know what is Time entry code and how to create the new time enrty code. Which is used Via CATS.
    Thanks & Regards,
    John

    Hi John,
    I'll try to answer with wide brush stroke notes.  The details will depend on your need where you will need to dive deeper into the IMG.
    (1) In  the IMG, go to Time Mgmt > Time Data Recording and Administration > Absences > Absence Catalog > Group Personnel Subareas for Attendances and Absences. Make sure all of your Personnel Subarea Groupings (PSG) are setup.
    (2) In the IMG, go to Time Mgmt > Time Data Recording and Administration > Absences > Absence Catalog > Absence Types.  Under each appropriate PSG setup your Absence/Attendance Type (A/A Type).
    (3) In the IMG, go to Time Mgmt > Time Data Recording and Administration > Absences > Absence Catalog > Determine Entry Screens and Time Contstraint Classes.   This may have been setup for you in (2) above.
    (4)  In the IMG, go to Time Mgmt > Time Data Recording and Administration > Absences > Absence Counting > Assign Counting Rules to Absence Types.  This may have been setup for you in (2) above.
    (5)  In the IMG, go to Time Mgmt > Time Data Recording and Administration > Absences > Absence Counting > Determine Daily Work Schedule Variants for Absence. This may have been setup for you in (2) above.
    (6) In the IMG, go to Time Mgmt > Time Data Recording and Administration > Absences > Absence Counting > Define Indicators for the Personal Calendar. This may have been setup for you in (2) above.
    (7) Like Absences, do the same for Attendances. 
    (8)  For Quotas (like vacation/paid tiome off), in the IMG, go to Time Mgmt > Time Data Recording and Administration > Managing Time Accounts Using Attendance/Absence Quotas > Calculating Absence Entitlements > Rules for Generating Absence Quotas. Review all of your settings.
    (9) In the IMG, go to Time Management > Time Evaluation.  Here, you may need to adjust your schema, rules and other config. We use a custome schema "ZM04" modeled after "TM04".  I had some changes to a custom rule "ZP20" (modeled after TP20).  You may have other changes.
    I hope this helps send you down the right path.  Thanks.
    Erik

  • N97 Mini Contacts Creating New Unnamed Entries on ...

    I am getting very annoyed at having to restore the contacts on my N97 back to how they should be. My phone syncs with Ovi (latest version) and Outlook 2007.  It does this fine but when I restart my phone, it creates a load of new enties called unnamed and duplicates some others but these have no contact details in them so are effectively blank. 
    So my issue is not with Ovi and synchronisation - well I do not think so.  I can sync over and over again, changing contacts in Outlook or on the phone and both locations update as they should.
    The issue is then when I reboot the phone, these duff entries are added to the address book.  Only solution I have found so far is to connect to Ovi, select the phone before a sync happens, delete all contacts and then copy the Ovi version of the contacts back to the phone again.  This is a rubbish work-around.
    Hey, what does that Kudos button do?

    Here is another question then as this is still not resolved.  Can alnyone tell me where the contacts are physically stored on the N97 mini?  I have y-Browser and my theory is that the file (if there is one) must be corrupt in some sort of way so that every time the phone restarts, these blank contacts are created.  If I can physically remove all the contacts and then recerate them via Ovi Suite, this might cure the issue.
    Thanks.
    Hey, what does that Kudos button do?

Maybe you are looking for