on 2009 Jul 09 11:19 AM
Hi,
we face a peculiar problem following the example "Plant Data Collection Using Touch Screen", provided by SAP.
Following the instructions closely, we implemented a RFC enabled function module in our ERP system that compiles a list of work centers.
FUNCTION z_workcenter_getlist.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*" IMPORTING
*" VALUE(PLANT) TYPE WERKS_D
*" TABLES
*" WRKCENTERDESCRIPTION TYPE ZWORKCENTER_STR_TT
*" WORKCENTER TYPE ZWORKCENTER_STR_TT
*"----------------------------------------------------------------------
The call to this function module is implemented on ERP side using the ERP JCO action.
The call itself works fine, but only a subset of data for the selected plant is retrieved. Executing the function module on ERP side for the same user used by MII retrieves 59 workplaces, but on MII side we only get 17 workplaces for the same plant. As we're performing both calls with the same user, I would not expect any authentication problem.
There is no clear pattern as to which data is omitted. The ABAP type used in the tables is character, but in the result it seems that none of those workplaces containing numbers are transmitted. However, calling other functions using type character containing numbers are correctly retrieved by MII, so it cannot be a general mapping error.
To make things even more peculiar, we exposed the function module in question as web service on ABAP side and implemented a Web Service action on MII side, consuming the web service. In this case, we get the proper amount of data, same as in the ERP system.
It seems there is some problem in the MII/JCO-layer. Has anyone experienced anything similar?
Thanks and best regards,
Walter
Request clarification before answering.
Because this is a Z function it could be possible that because of constant changes(to the function) on the R/3 side at some point you forgot to clear the JCO cache.
Try that and see if it makes any difference.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.