I want to get the Journal Entry ID after saving the Outgoing Check in SAP Applications Studio, I am using the aftermodify script in PaymentOrder XBO. The Journal Entry ID is supposed to be in the AccountingDocument Node but upon debugging the node is always returning "the object is not set", is there a way for me to get the Journal Entry ID in the script that I've created?
Here are some images for your reference:
Above is the image of the Journal Entry ID that I wanted to get in the script and below is the code in my script, as you can see I am trying to check if the AccountingDocument is set. If it is set then I will get the Journal Entry ID and store it in the variable sample. The problem is that the AccountingDocument is always empty but after debugging I checked the Outgoing Check and saw that there is a Journal Entry ID in the Accounting Data in SAP ByD (please see the image above to see the Accounting Data).