Skip to Content
1
Apr 08, 2020 at 11:41 AM

How to get the Journal Entry ID after saving the Outgoing Check in SAP Applications Studio

121 Views Last edit Apr 08, 2020 at 11:55 PM 2 rev

Hi Experts,

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).

Attachments

journalentryid.png (133.9 kB)