cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

receiptManager.findOrCreate(UserRegistry.INSTANCE.getCurrentUser(), null, true)function returns Null

SAPSupport
Employee
Employee
290

Hello,

we get the current receipt using this function:

receiptManager.findOrCreate(UserRegistry.INSTANCE.getCurrentUser(), null, true);

This works fine on normal receipts, but after parking this function only returns NULL. We would expect the current receipt as normal.

Is this the correct function to use in this case? Or what function would we use to get the retrieved currently open receipt after parking?

Best Regards


------------------------------------------------------------------------------------------------------------------------------------------------
Learn more about the SAP Support user and program here.

Accepted Solutions (1)

Accepted Solutions (1)

SAPSupport
Employee
Employee

Hello,

The method returns (if no receipt key specified) the receipt that is in state new and no parked receipts. If you would like to load the parked receipt, then you have to specify the receiptKey
ReceiptKey is the second parameter of the method

Regards,

Answers (0)