In your system the SAP matchcode display is configured to be
processed as a special control, without using SAP dynpros. GuiXT
does not handle these controls. One could change the
configuration (Help->Settings) and switch to dynpro-based
display, but this is probably not what the users want. There is
a better way to determine the functional location if the cost
center is given, namely a Call to an ABAP function that you have
to implement. The implementation is quite simple (SE37): Name
the Import-Parameter COSTCENTER and the Export- Parameter
FUNCLOCATION, and use the following ABAP code:
TABLES: ILOA. Select TPLNR INTO ILOA-TPLNR FROM ILOA
WHERE
KOSTL = COSTCENTER..
FUNCLOCATION
= ILOA-TPLNR.
ENDSELECT.
Since
there is a secondary index on the cost center field in table
ILOA, this is pretty fast. The implementation assumes that
exactly one functional location will be found. You could add a
little bit more code to handle the cases where more than one, or
not any, functional location is returned by the Select statement. |