web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Item ledger entries showing blank description

(0) ShareShare
ReportReport
Posted on by 75

When I posted item journal lines from Al code, the description part in item ledger entries are showing blank for that entry,

Why it's showing blank even if I mentioned it?

I have the same question (0)
  • Mohana Yadav Profile Picture
    61,005 Super User 2025 Season 2 on at

    can you please show your code?

  • Deekshitha Reddy Profile Picture
    219 on at

    Is it about Tooltip property??

    Share your code

    Please let me know.

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,111 Moderator on at

    You probably change the description on the journal line in at a none ideal time.

    Maybe you can share the code that creates and posts those lines? That will make it easier to help you.

  • Shankar Profile Picture
    75 on at

    description.png

    //Procedure
    procedure ItemJournalPost(itemNo: Code[20]; documentNo: code[20]; Quantity: decimal; amount: Decimal; description: Text[100]; ReturnReasonCode: Code[10]; Location: Code[10])
        var
            GLPost: Codeunit "Item Jnl.-Post Line";
            Line: Record "Item Journal Line";
            rec_item: Record Item;
        begin
            Line.Init();
            line."Line No." := 10000;
            Line."Posting Date" := TODAY();
            Line."Entry Type" := Line."Entry Type"::"Negative Adjmt.";
            Line."Gen. Prod. Posting Group" := 'RETAIL';
            line."Journal Template Name" := 'ITEM';
            Line."Document No." := documentNo;
            Line."Item No." := itemNo;
            Line.Validate("Item No.");
            Line.Description := description;
            Line.Validate(Description);
            Line."Reason Code" := 'VV';
            Line."Return Reason Code" := ReturnReasonCode;
            Line.Validate("Return Reason Code");
            Line."Location Code" := Location;
            Line.Validate("Location Code");
            Line.Quantity := Quantity;
            Line.Validate(Quantity);
            Line.Amount := amount;
            line.Validate(Amount);
            GLPost.RunWithCheck(Line);
        end;

    //page where I am calling

    if rec_SalesLines.FindSet() then
                                repeat
                                    cu_EnquiriesAndReturns.ItemJournalPost(rec_SalesLines."No.", rec_SalesLines."Document No.", rec_SalesLines.Quantity, rec_SalesLines.Amount, rec_SalesLines.Description, rec_SalesLines."Return Reason Code", rec_SalesLines."Location Code");
                                until rec_SalesLines.Next() = 0;
                        end;
  • Deekshitha Reddy Profile Picture
    219 on at

    Please try this..

    Line.Description := rec.description;

  • Shankar Profile Picture
    75 on at

    Not that's not possible, not getting

  • Sypriya Guarav Profile Picture
    25 on at

    please write ...

     Line.Insert;

    after validate

  • Verified answer
    Mohana Yadav Profile Picture
    61,005 Super User 2025 Season 2 on at

    Please enable the below setup and try again

    pastedimage1682341163535v1.png

  • Shankar Profile Picture
    75 on at

    Thankyou Mohana it's working.

  • Verified answer
    YUN ZHU Profile Picture
    95,720 Super User 2025 Season 2 on at

    Hi, just to add some info.

    I've briefly discussed this before, both standard and custom methods, and hope to give you some new hints.

    https://yzhums.com/8589/

    Thanks

    ZHU

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,664

#2
YUN ZHU Profile Picture

YUN ZHU 960 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 773 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans