cancel
Showing results for 
Search instead for 
Did you mean: 

Error upon creation of Outgoing Check; Picking up Journal Entry details for printing purposes

former_member599333
Participant
0 Kudos

Hi, I have added some script in the Payment Order xbo. I've added this script for me to be able to get the values of Journal Entry. I think the behavior of the transaction is the reason why I am having an error. I want to ask where can I put the script that I am executing from Outgoing Check. I am always getting a null error whenever I save/post the document. Upon my understanding, once I click the post button from outgoing check creation, the status will change and the Journal Entry ID will be created. but I am getting a null error when my break point reaches the validation for Journal Entry ID. Hoping that you can help me fix my error. I just need to know what script should I use to execute it correctly during posting. I have attached a screenshot of the script that I created. Hoping for your immediate assistance.

Thanks and Regards,

JM Angeles

Accepted Solutions (0)

Answers (1)

Answers (1)

VVancalbergh
Contributor
0 Kudos

You are assuming this.AccountingDocument always has a value. You should add a call to its .IsSet() before it:

if (this.AccountingDocument.IsSet())

{

...

}

former_member599333
Participant
0 Kudos

Hi Vincent,

Can you confirm if the script that I created is on the correct execution based on my description above? I have added the .IsSet function, the error is gone but my script does not execute the line of code that I need. It returns that the Accounting Document is empty.

Appreciate all the help.

Thanks and Regards,

JM Angeles

VVancalbergh
Contributor
0 Kudos

I don't know why this.AccountingDocument is empty.