Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Error - Adjust Cost Item Entries report does not have a DataItem that uses the table (Table 27 Item) specified in the function SetTableView.

(0) ShareShare
ReportReport
Posted on by 3,099

Hi

   When i call the report i get above error

MyRec is Record Datatype with SubItem Item


MyRec.RESET;
MyRec.SETRANGE("No.","No.");
IF MyRec.FINDFIRST THEN
REPORT.RUN(795, TRUE, TRUE, MyRec);

Thanks

*This post is locked for comments

  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    13,637 Moderator on at
    RE: Error - Adjust Cost Item Entries report does not have a DataItem that uses the table (Table 27 Item) specified in the function SetTableView.

    The CLEAR(AdjustCostItemEntries) will clear any variables in that report.

    The AdjustCostItemEntries.InitializeRequest(ItemNoFilter,ItemCategoryFilter) use the Item No filter and Item Category filter to filter the items.

  • jsshivalik Profile Picture
    3,099 on at
    RE: Error - Adjust Cost Item Entries report does not have a DataItem that uses the table (Table 27 Item) specified in the function SetTableView.

    Hi Andrea

     Can u pls guide how the below line's work.

        CLEAR(AdjustCostItemEntries);

        AdjustCostItemEntries.InitializeRequest("No.", '');

    Thanks

  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    13,637 Moderator on at
    RE: Error - Adjust Cost Item Entries report does not have a DataItem that uses the table (Table 27 Item) specified in the function SetTableView.

    Because the report 795 does not take Item variable as parameter.

    Use the InitializeRequest as Andrea said.

  • Andrea Antoniazzi Profile Picture
    285 on at
    RE: Error - Adjust Cost Item Entries report does not have a DataItem that uses the table (Table 27 Item) specified in the function SetTableView.

    Hi,

    you can try this way

    Item.RESET;

    Item.SETRANGE("No.", 'INSERT HERE THE ITEM CODE YOU NEED TO FILTER');

    IF Item.FINDFIRST THEN

    BEGIN

     CLEAR(AdjustCostItemEntries);

     AdjustCostItemEntries.InitializeRequest(Item."No.", '');

     AdjustCostItemEntries.USEREQUESTPAGE(FALSE);

     AdjustCostItemEntries.RUN;

    END;

    Item is a global variable on table Item

    AdjustCostItemEntries is a global variable on report 795

    Best regards

  • jsshivalik Profile Picture
    3,099 on at
    RE: Error - Adjust Cost Item Entries report does not have a DataItem that uses the table (Table 27 Item) specified in the function SetTableView.

    Hi

     Then what changes should i made to the below line so thar Report 795 should run . I want to pass only 1 item.

    In Report 795 there is Global Variable on request page ItemNoFilter related to table Item. So I want that No should be passed to this variable so that report should run.

    REPORT.RUN(795, TRUE, TRUE, MyRec);

    Thanks

  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    13,637 Moderator on at
    RE: Error - Adjust Cost Item Entries report does not have a DataItem that uses the table (Table 27 Item) specified in the function SetTableView.

    Your report must have the same data type Item in it.

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics NAV (Archived)

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2

#1
mmv Profile Picture

mmv 2

#1
Amol Salvi Profile Picture

Amol Salvi 2

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans