Hi, you can use the event in Codeunit.
For example:
codeunit 50100 MyCodeunit
{
[EventSubscriber(ObjectType::Codeunit, Codeunit::"Sales-Post", 'OnAfterPostSalesDoc', '', false, false)]
local procedure UpdateDescription2(var CustLedgerEntry: Record "Cust. Ledger Entry"; var SalesHeader: Record "Sales Header")
var
Cust: Record Customer;
begin
if Cust.Get(SalesHeader."Sell-to Customer No.") then begin
CustLedgerEntry.Description2 := Cust.Description2;
CustLedgerEntry.Modify();
end;
end;
}
But if you only want to display the data on the Customer without any processing, the easiest way is to use flowfield.
Customer:
tableextension 50100 ZYCustomerExt extends Customer
{
fields
{
field(50100; Description2; Text[100])
{
Caption = 'Description 2';
DataClassification = CustomerContent;
}
}
}
pageextension 50100 ZYCustomerCardExt extends "Customer Card"
{
layout
{
addlast(General)
{
field(Description2; Rec.Description2)
{
ApplicationArea = All;
}
}
}
}

Customer Ledger Entries:
tableextension 50101 ZYCustLedgerEntryExt extends "Cust. Ledger Entry"
{
fields
{
field(50100; Description2; Text[100])
{
Caption = 'Description 2';
FieldClass = FlowField;
CalcFormula = lookup(Customer.Description2 where("No." = field("Customer No.")));
}
}
}
pageextension 50101 ZYCustLedgerEntriesExt extends "Customer Ledger Entries"
{
layout
{
addafter(Description)
{
field(Description2; Rec.Description2)
{
ApplicationArea = All;
}
}
}
}

Hope this will help.
Thanks.