is it save to pass data through temporary gen. journal line

wirowiro Member Posts: 92
I'm new here. sorry for my ignorance.
I create new granule and need gen. journal line table to pass my data so it will automatically posting.
is it okay ? so far so good.....

Comments

  • kinekine Member Posts: 12,562
    May be I do not understand you, but of course, if you need to post something, you fill the journal line table and call posting routine to it... and you do not need temp table (course how to post from C/AL code was part of Solution Developer Exam).
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • wirowiro Member Posts: 92
    Thank you.
    I'm sorry, if you don't understand. I create granule and need to pass the record through gen. journal line table. Yes, i call posting routine, but before that, i create variable related to gen. journal line table and temporary properties set to yes. Because, if other user use the same batch then it will be posting.... So, you don't have to setrange the table to choose the right record...just pick the all record/s because it just the only record there.
  • kinekine Member Posts: 12,562
    You do not need to INSERT the record into the table... you need only fill it, without Batch Name and Template name and call the posting routine to it...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    Have a look at codeunit 80/90 for examples.
  • wirowiro Member Posts: 92
    Thank you very much for your comment. Yes, i don't need to insert it, but if there are many records then you have to insert them right ? I need to filter batch and template.
  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    If you make sure to post the line directly after you've popolated it you don't need to insert.

    Threre is an example in cu 80 and 90 with also a posting buffer.
Sign In or Register to comment.