Hi all,
my customer wants to restrict the view of the different accounting objects (cost center, PSP-element, co order, asset) to those where the creator of a shopping cart is responsible for. I wrote my own routine to find those objects. This works fine.
When I create a SC and press the F4-Help for cost centers I want to see only the values which are passed back from my routine. I managed that the system calls my F4-help (it's a copy of the standard F4-help KOSTN) which has also an own F4-help exit function.
Normally you define the order of the input and output fields in the search help and you can define a selection method. When I passed back the values I wanted to show in parameter RECORD_TAB I realised that they were displayed in the wrong order and sometimes cut. After a while debugging, I saw that there is a kind of OCX conversion but the order of the result list follows the selection method.
Okay I thought and correct the entries in RECORD_TAB accourding to the selection method.
The first call and selection works fine but when I enter new values for a different selection the result list gets messed up, although the records found are in the same order as thery were when the search help is called the first time.
Does anyone of you have an idea what is going wrong or has a similar problem?
Kind regads,
Thomas
Problem solved