Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Answered

Item ledger entries showing blank description

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?

Categories:
  • Saurav.Dhyani Profile Picture
    Saurav.Dhyani 17,965 Super User 2024 Season 2 on at
    RE: Item ledger entries showing blank description

    Hope this helps.

    https://youtube.com/shorts/QaAvwxfwsV8?feature=share

  • Shankar Profile Picture
    Shankar 75 on at
    RE: Item ledger entries showing blank description

    Great , thankyou for this information ZHU.

  • Verified answer
    YUN ZHU Profile Picture
    YUN ZHU 73,696 Super User 2024 Season 2 on at
    RE: Item ledger entries showing blank description

    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

  • Shankar Profile Picture
    Shankar 75 on at
    RE: Item ledger entries showing blank description

    Thankyou Mohana it's working.

  • Verified answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,139 Super User 2024 Season 2 on at
    RE: Item ledger entries showing blank description

    Please enable the below setup and try again

    pastedimage1682341163535v1.png

  • Sypriya Guarav Profile Picture
    Sypriya Guarav 25 on at
    RE: Item ledger entries showing blank description

    please write ...

     Line.Insert;

    after validate

  • Shankar Profile Picture
    Shankar 75 on at
    RE: Item ledger entries showing blank description

    Not that's not possible, not getting

  • Deekshitha Reddy Profile Picture
    Deekshitha Reddy 219 on at
    RE: Item ledger entries showing blank description

    Please try this..

    Line.Description := rec.description;

  • Shankar Profile Picture
    Shankar 75 on at
    RE: Item ledger entries showing blank description

    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;
  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: Item ledger entries showing blank description

    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.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans