Calling a function in a codeunit.

sabzamsabzam Member Posts: 1,149
Hi Everybody,

I am having trouble in calling a function in a codeunit. The code is simple

Codeunit.FUnction(Record needed); Is there any other way in which a particualr funciton may be called?

In my case I am using
GenJnlPostBatch.ChecKBalance;

I couldn't identify the source of error in the above line of coding

Answers

  • ErictPErictP Member Posts: 164
    The function CheckBalance in CodeUnit Gen. Jnl.-Post Batch is a local function (property local = TRUE).
    This means that is only used within the codeunit self and not visible from the outside.
  • sabzamsabzam Member Posts: 1,149
    Hi Thanks for your help. You were right. I didn't know that certain functions can be local; I just thought I was calling the function wrongly.

    Thanks again for your help.
Sign In or Register to comment.