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

Values not Coming Al Code

(0) ShareShare
ReportReport
Posted on by 224

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;

}

I have the same question (0)
  • Suggested answer
    DAnny3211 Profile Picture
    11,397 on at

    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

  • LearnBC Profile Picture
    224 on at

    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
    11,397 on at

    hello

    do you apply a grouping in the report?

    however the table relation in a flowfield is not needed
    DAniele

  • Suggested answer
    Nitin Verma Profile Picture
    21,708 Moderator on at

    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 ")

                   {

                   }

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,468

#2
YUN ZHU Profile Picture

YUN ZHU 923 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 607

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans