# Moving Journal Line Dimension to Ledger Entry Dimension without deleting it

**URL:** <https://www.dynamicsuser.net/t/moving-journal-line-dimension-to-ledger-entry-dimension-without-deleting-it/20937>\
**Category:** Developers Forum\
**Created:** [February 11, 2009, 4:02pm UTC](https://www.dynamicsuser.net/t/moving-journal-line-dimension-to-ledger-entry-dimension-without-deleting-it/20937 "2009-02-11T16:02:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![petan](https://avatars.discourse-cdn.com/v4/letter/p/c57346/32.png) [@petan](https://www.dynamicsuser.net/u/petan)\
**Post date:** [February 11, 2009, 4:02pm UTC](https://www.dynamicsuser.net/t/moving-journal-line-dimension-to-ledger-entry-dimension-without-deleting-it/20937/1 "2009-02-11T16:02:05Z")

</div>

Hello,

I need to do a recurring post of something I have stored in a new table (accruals). I am using table 356 Journal Line Dimension to store my 3-8 shortcut dimensions as done in the standard functionality.

I have been studying the standard functionality, and the function MoveJnlLineDim in the DimensionManagement codeunit is used when posting from a General Journal but allso when posting from an recurring journal, to move the dimension lines.

When I use this function, the lines are deleted from the Journal Line Dimension table. How can I prevent this? How is it avoided when using the recurring journal?

Thanks in advance!

/Petan

---

<div class="post-metadata">

**Author:** ![thomasbrodkorb](https://avatars.discourse-cdn.com/v4/letter/t/2acd7d/32.png) [@thomasbrodkorb](https://www.dynamicsuser.net/u/thomasbrodkorb)\
**Post date:** [February 11, 2009, 6:14pm UTC](https://www.dynamicsuser.net/t/moving-journal-line-dimension-to-ledger-entry-dimension-without-deleting-it/20937/2 "2009-02-11T18:14:28Z")

</div>

The responsible code for deleting/not deleting Journal Line dimensions can be found in CU13 where you find

```auto
IF GenJnlTemplate.Recurring THEN BEGIN
// Recurring journal
...
END ELSE BEGIN
// Not a recurring journal
...
END;
```

In the “ELSE” you will find the code which deletes the Journal Lines and dimensions.

---

<div class="post-metadata">

**Author:** ![petan](https://avatars.discourse-cdn.com/v4/letter/p/c57346/32.png) [@petan](https://www.dynamicsuser.net/u/petan)\
**Post date:** [February 11, 2009, 7:14pm UTC](https://www.dynamicsuser.net/t/moving-journal-line-dimension-to-ledger-entry-dimension-without-deleting-it/20937/3 "2009-02-11T19:14:03Z")

</div>

Thanks, Thomas. I see it.

I find it strange, because something is deleting my Journal Line Dimensions though I am calling CU 12 “Gen. Jnl.-Post Line” directly…

---

<div class="post-metadata">

**Author:** ![thomasbrodkorb](https://avatars.discourse-cdn.com/v4/letter/t/2acd7d/32.png) [@thomasbrodkorb](https://www.dynamicsuser.net/u/thomasbrodkorb)\
**Post date:** [February 11, 2009, 7:31pm UTC](https://www.dynamicsuser.net/t/moving-journal-line-dimension-to-ledger-entry-dimension-without-deleting-it/20937/4 "2009-02-11T19:31:09Z")

</div>

IN this special case you should not call CU12.RUN(GenJnlLine) but call a function inside the CU12 :

RunWithCheck(GenJnlLine, TempJnlLineDim) or RunWithoutCheck(GenJnlLine, TempJnlLineDim)

Copy the JnlLineDimensions to a Temporary JnlLineDim prior to calling the function.

---

<div class="post-metadata">

**Author:** ![petan](https://avatars.discourse-cdn.com/v4/letter/p/c57346/32.png) [@petan](https://www.dynamicsuser.net/u/petan)\
**Post date:** [February 11, 2009, 8:07pm UTC](https://www.dynamicsuser.net/t/moving-journal-line-dimension-to-ledger-entry-dimension-without-deleting-it/20937/5 "2009-02-11T20:07:46Z")

</div>

Thanks again, that´s of great help! [:)]

---

<div class="post-metadata">

**Author:** ![thomasbrodkorb](https://avatars.discourse-cdn.com/v4/letter/t/2acd7d/32.png) [@thomasbrodkorb](https://www.dynamicsuser.net/u/thomasbrodkorb)\
**Post date:** [February 11, 2009, 8:25pm UTC](https://www.dynamicsuser.net/t/moving-journal-line-dimension-to-ledger-entry-dimension-without-deleting-it/20937/6 "2009-02-11T20:25:38Z")

</div>

So just mark the answer you think is good as an answer to your problem, so all others also know that the quuestion is answered.
