Values posting problem from page to table.

Hello,

I’m working on Sales Order page. I have created two fields in Cust. Ledger Entry table, Address1 & Address2. Then in the Sales Order page I have taken three variables, Address1, Address2 & RecCLE(Record).After that I wrote the following code:

Address1- OnValidate()

RecCLE.RESET;

RecCLE.INIT;

RecCLE.Address1:=Address1;

RecCLE.INSERT;

Address2- OnValidate()

RecCLE.RESET;

RecCLE.INIT;

RecCLE.Address2:=Address2;

RecCLE.INSERT;

After executing the page when I enter the values in those fields, only the first value goes to the Cust. Ledger Entry table that is Address1. But I want to bring both the values in Cust. Ledger Entry table. What should I do next??

Hi ,
you have to Look In Codeunit 80 where Customer details Are inserted into CustLedgEntry.

Yeah that’s correct…but what should I do next?? please help me…!

Hey Bro,

One Question - Why you need address in Customer Ledger Entry?

Now your issue -
You need to learn posting routine for sales posting.

Hint (only for Customer Ledger)** -
A Sales order when posted via 81 and 80, creates a journal.
Then Journal posting routine is called which actually creates Detailed Cust. Ledger and then Customer Ledger…

Dig it and let us know what you found…

Hello Sourav,
Can you please help me out with the code for this…!!

Did you tries this way -

forum.mibuso.com/…/values-posting-problem-from-page-to-table