Post Item Journal Line through NAS Service
zohaibu95@hotmail.com
Member Posts: 223
Hello everyone!
My customer has to post item journal lines periodically. I create a report that it reads some lines and it creates records in to Item Journal Line table. I'd like to post these records but I do not want that the Dialogue will appear " Do you want to post these lines or not"..
I know about the GUIAllowed Function. The codeunit which i m calling is "Item Jnl.-POST".
Can i call like this
IF GUIALLOWED THEN
CODEUNIT.RUN(CODEUNIT::"Item Jnl.-Post", ItemJournalLine);
Does the above code does not popup messages?
Thank you for your replies.
My customer has to post item journal lines periodically. I create a report that it reads some lines and it creates records in to Item Journal Line table. I'd like to post these records but I do not want that the Dialogue will appear " Do you want to post these lines or not"..
I know about the GUIAllowed Function. The codeunit which i m calling is "Item Jnl.-POST".
Can i call like this
IF GUIALLOWED THEN
CODEUNIT.RUN(CODEUNIT::"Item Jnl.-Post", ItemJournalLine);
Does the above code does not popup messages?
Thank you for your replies.
Best Regards
Zohaib Ahmed
Dynamics NAV ERP Technical Consultant.
please like / agree / verify my answer, if it was helpful for you. thanks.
Zohaib Ahmed
Dynamics NAV ERP Technical Consultant.
please like / agree / verify my answer, if it was helpful for you. thanks.
0
Best Answers
-
Hi,
You have to customize codeunit Item Jnl.-Post. Include GUIALLOWED condition in Code Function as shown below :
IF GUIALLOWED THEN
IF NOT CONFIRM(Text001,FALSE) THEN
EXIT;6 -
@Sowkarthika , Already did that. Thanks for the answer.
Best Regards
Zohaib Ahmed
Dynamics NAV ERP Technical Consultant.
please like / agree / verify my answer, if it was helpful for you. thanks.6 -
You have to customize codeunit Item Jnl.-Post.
IF GUIALLOWED THEN
IF NOT CONFIRM(Text001,FALSE) THEN
EXIT;Best Regards
Zohaib Ahmed
Dynamics NAV ERP Technical Consultant.
please like / agree / verify my answer, if it was helpful for you. thanks.6
Answers
-
Hi,
You have to customize codeunit Item Jnl.-Post. Include GUIALLOWED condition in Code Function as shown below :
IF GUIALLOWED THEN
IF NOT CONFIRM(Text001,FALSE) THEN
EXIT;6 -
Hi,
better way is to fill journal line "on the fly" without template, batch and line No. and post that line without inserting it into table - see codeunit 80 or 90 for example.0 -
@Sowkarthika , Already did that. Thanks for the answer.
Best Regards
Zohaib Ahmed
Dynamics NAV ERP Technical Consultant.
please like / agree / verify my answer, if it was helpful for you. thanks.6 -
You have to customize codeunit Item Jnl.-Post.
IF GUIALLOWED THEN
IF NOT CONFIRM(Text001,FALSE) THEN
EXIT;Best Regards
Zohaib Ahmed
Dynamics NAV ERP Technical Consultant.
please like / agree / verify my answer, if it was helpful for you. thanks.6
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
