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...
Suggested answer

Values not Coming Al Code

(0) ShareShare
ReportReport
Posted on by 190

Dear Experts

am trying to make e report from the table item and item ledger entries for remaining qty and location of an item, we have parent category and sub category in items.but while pulling the items, these 2 fields are not coming for all the items. its is only coming for some of the items only.

what may be the issue

it1.jpg

Out of the Report

it22.jpg

report 62003 "ITEM WISE BY LOC (Stock)"
{
    UsageCategory = ReportsAndAnalysis;
    ApplicationArea = All;
    DefaultRenderingLayout = LayoutName;
    AllowScheduling = true;

   
    dataset
    {
        dataitem(Item; Item)
        {
            DataItemTableView = where(Inventory = filter('>0'));
            column(No; "No.")
            {

            }
            column(UnitCost_Item; "Unit Cost")
            {
            }
            column(UnitPrice_Item; "Unit Price")
            {
            }

            column(Description; Description)
            { }
            column(ShowPrice; ShowPrice)
            {
            }


            dataitem(Item_Ledger_Entry; "Item Ledger Entry")
            {
                DataItemLink = "Item No." = field("No.");
                column(ItemNo_Item_Ledger_Entry; "Item No.")
                {
                }
                column(Location_Code; "Location Code")
                {

                }
                column(ItemCategoryCode_Item_Ledger_Entry; "Item Category Code")
                {
                }
                column(ItemParentCagetory_Item_Ledger_Entry; "Item Parent Cagetory ")
                {
                }


                column(Remaining_Quantity; "Remaining Quantity")
                {
                }
            }
        }

    }
    requestpage
    {
        layout
        {
            area(Content)
            {
                group(GroupName)
                {
                    field(ShowPrice; ShowPrice)
                    {
                        Caption = 'Show Price';
                        ApplicationArea = All;

                    }
                }
            }
        }
    }
    rendering
    {
        layout(LayoutName)
        {
            Type = RDLC;
            LayoutFile = '.\ReportLayouts\ITEMBYLOCATION1.rdl';
        }
    }

    var
        ShowPrice: Boolean;

}

  • Suggested answer
    Nitin Verma Profile Picture
    21,544 Moderator on at
    RE: Values not Coming Al Code

    Please try to change below two columns in your report.

                   column(ItemCategoryCode_Item_Ledger_Entry; Item."Item Category Code")

                   {

                   }

                   column(ItemParentCagetory_Item_Ledger_Entry; Item."Item Parent Cagetory ")

                   {

                   }

  • Suggested answer
    DAnny3211 Profile Picture
    9,276 Moderator on at
    RE: Values not Coming Al Code

    hello

    do you apply a grouping in the report?

    however the table relation in a flowfield is not needed
    DAniele

  • LearnBC Profile Picture
    190 on at
    RE: Values not Coming Al Code

    Yes there are flow fields

    tableextension 62004 "Parent Categ_Item LedgrEntry" extends "Item Ledger Entry"

    {

       fields

       {

           // Brought a new field to get the item sub category on Item Card Page

           field(62004; "Item Parent Cagetory "; Code[20])

           {

               FieldClass = FlowField;

               Caption = 'Item Parent Category';

               Editable = false;

               TableRelation = "Item Category" where("Has Children" = const(true));

               CalcFormula = lookup("Item Category"."Parent Category" where(Code = field("Item Category Code")));

           }

           modify("Item Category Code")

           {

               Caption = 'Item Sub Category';

           }

       }

    }

    ile.jpg

    In the Report 

    reps.jpg

    ilist.jpg

  • Suggested answer
    DAnny3211 Profile Picture
    9,276 Moderator on at
    RE: Values not Coming Al Code

    hello

    you must actually ensure that you have the link on the 'Item Ledger Entry' with the item when you go to retrieve those fields

    in the card they are valued but I think they are physical fields in the Item table

    or are they flowfields on the "Item Ledger Entry"?

    DAniele

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,351 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,029 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans