cancel
Showing results for 
Search instead for 
Did you mean: 

Data filter / Max(version) for UDO

Former Member
0 Kudos

Hi all,

I've created a UDT and already registered to UDO. I'm using VB to add menu and load a customer form (SAP normal function such as add, update, delete works fine). Is it possible to show the max version instead of all version? For example:

DocEntry: 1

U_DiscCode: Disc-001

U_Version: 1

DocEntry: 2

U_DiscCode: Disc-001

U_Version: 2

DocEntry: 3

U_DiscCode: Disc-002

U_Version: 1

When I open the form and press first button, it will show the record for DocEntry = 1 (Disc-001, version 1)

Can I add conditions or filter to only show the max version of DiscCode? (Result: Disc-001, version 2)

Accepted Solutions (1)

Accepted Solutions (1)

edy_simon
Active Contributor
0 Kudos

Hi,

Afraid there is no easy way such as setting a FILTER property to achieve this.

One workaround is to catch the AfterDataLoad event, and use your logic to check if this record satisfy the filter you need.

If not, then perform an emulation to click next record menu.

Regards

Edy

Answers (0)