Modify "Posting Date" with INPUT dialog Date

lavanyaballurgilavanyaballurgi Member Posts: 235
Hello guys,

I know the subject is not enough to make you understand. Well here it is -

THE SITUATION - in Reversal Entry table (while reversing an entry) the REPLACE ALL function for POSTING DATE is disabled.

THE SOLUTION - I thought of making a Menu Item which will pop up a INPUT dialog box where I can ask the user to provide the new POSTING DATE so that I can replace all entries in REVERSAL ENTRY table with that new POSTING DATE.

THE C/AL CODE -
Window.OPEN('Enter Text ##############1##',gdt_Date);
Window.INPUT(1,gdt_Date);
Window.CLOSE;
grc_ReversalEntry.SETRANGE("Document No.","Document No.");
IF grc_ReversalEntry.FINDFIRST THEN REPEAT
grc_ReversalEntry."Posting Date" := gdt_Date;
grc_ReversalEntry.MODIFY
UNTIL grc_ReversalEntry.NEXT = 0;

THE ERROR - "The Reversal Entry Table is Empty"

ANy help?

Answers

Sign In or Register to comment.