Dear All,
I'm calling Posting Code from my Customized form - Button - On Push Trigger:
CODEUNIT.RUN(CODEUNIT::"Sales-Post (Yes/No)",recSalesHd);
I got this following Error message from this code:
IF Invoice THEN BEGIN
IF NOT ("Document Type" IN ["Document Type"::"Return Order","Document Type"::"Credit Memo"]) THEN
{ TESTFIELD("Due Date");}
Window.OPEN(
'#1#################################\\' +
Text002 +
Text003 +
Text004 +
Text005)
END ELSE
Window.OPEN(
'#1#################################\\' +
Text006);
Error message:
"Form name" cannot be closed, because it is locked by 'Microsoft Business Solutions-Navision'. Please finish 'Microsoft Business Solutions-Navision' before closing.
Please find the attachment error Screen shot.
Can you help me on this? How can I avoid this bug?
Regards,
Rajini
0
Comments
RIS Plus, LLC
MVP - Business Apps
Absolutely....Still some form is opened. But, I don’t how to close these forms from current form. Before calling the posting code.
Please help me on this if you have any idea?
Regards,
RIS Plus, LLC
MVP - Business Apps
Just I'm calling posting engine.
Even, I closed all opened forms except current form. But, still I got this error.
I don't know why its trying to close NAV client automatically while posting.
If you don't provide any more information, then I won't be able to help you further.
RIS Plus, LLC
MVP - Business Apps
Is the form you got this button on which you wrote code called "Pending Delivery challen"?
What is the full code you wrote on this Button onpush trigger?
Thanks for all.
Rajini