cancel
Showing results for 
Search instead for 
Did you mean: 

journal generate

Former Member
0 Kudos

I want to generate a journal entry by code. I have read the examples from SDK and i have implemented the code listed there and it is works.

I have one problem in the table JDT1 - the journal table - it is a column "ProfitCode" but form the code i does not know how to set that field. does anyone have any sugestion?

for example when i set the TransCode i use the code :

.....

SAPbobsCOM.JournalEntries varJournal;

varJournal.TransactionCode = "causalevalue";

.....

and it is work. it is something similar for "ProfitCode"?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi dragos,

To fill the ProfitCode, use this :

varJournal.CostingCode = "Profit code";

Hope it's help you

Michael

Former Member
0 Kudos

I could not find CostingCode.... I am using SAP Business One 2007A...

varJournal.CostingCode = "Profit code";

Former Member
0 Kudos

The CostingCode was specific for journal entries line

the corect code is :

varJournal.Lines.CostingCode = "Profit Code";

Answers (0)