Skip to Content
avatar image
Former Member

Problem mith JCO Call in PDC scenario

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jul 09, 2009 at 03:55 PM

    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.

    http://<server:port>/XMII/JCOProxy?Mode=Reset

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      And what SP of 12.0 are you on? Or is it 12.1?

      Also there are quite a few Z BAPIs with the scenario that you mentioned , did you face any issues with others as well?

      Edited by: Udayan Upreti on Jul 9, 2009 11:03 AM