cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Complex table download problem

vivek_gaurav
Participant
0 Kudos

Hi All,

I am facing issue in one of the complex table created by our team to achieve one of the functionality.

We are using SMP 3.0 SP09 with AGENTRY WORK MANAGER app.

I verified Z GET Method of Class and  Z Function Module having standard class handler called INCLUDE /syclo/core_bapi_template_incl

in parameter of Config panel:

CT_BAPI_WRAPPERctXXXZXX_XXX_XXXX_GET

CT_SAPOBJECTctXXXcom.syclo.sap.component.workorder.object.ZXXXX

ENABLE_TABLECTXXX1

TABLE_REFRESHCTXXX720

TABLE_CHECKCTXXX

24


Table refresh for

Coding of FM :

*"*"Local Interface:

*"  IMPORTING

*"     VALUE(IS_BAPI_INPUT) TYPE  /SYCLO/CORE_BAPI_INPUT_STR OPTIONAL

*"  EXPORTING

*"     VALUE(ES_BAPI_OUTPUT) TYPE  /SYCLO/CORE_BAPI_OUTPUT_STR

*"  TABLES

*"      IT_FUNCT_LOC_RA STRUCTURE  /SYCLO/PM_TPLNR_RANGE_STR OPTIONAL

*"      IT_BOM_NO_RA STRUCTURE  /SYCLO/PM_STLNR_RANGE_STR OPTIONAL

*"      IT_PLANT_RA STRUCTURE  /SYCLO/PM_WERKS_RANGE_STR OPTIONAL

*"      IT_BOM_USAGE_RA STRUCTURE  /SYCLO/CORE_RANGE_STR OPTIONAL

*"      IT_ALTERNATIVE_BOM_RA STRUCTURE  /SYCLO/CORE_RANGE_STR OPTIONAL

*"      IT_BOM_STATUS_RA STRUCTURE  /SYCLO/CORE_RANGE_STR OPTIONAL

*"      IT_ITEM_CAT_RA STRUCTURE  /SYCLO/CORE_RANGE_STR OPTIONAL

*"      IT_COMPONENT_RA STRUCTURE  /SYCLO/CORE_RANGE_STR OPTIONAL

*"      IT_PM_REL_RA STRUCTURE  /SYCLO/CORE_RANGE_STR OPTIONAL

*"      ET_RETURN STRUCTURE  BAPIRET2 OPTIONAL

*"      ET_COMPLEX_TABLE STRUCTURE  ZSMERP_PM_MATBOM_ITEM_STR OPTIONAL

*"----------------------------------------------------------------------

*======================================================================*

*<SMERPDOC>

*  <CREATE_DATE> 06/12/2013 </CREATE_DATE>

*  <AUTHOR> Syam Yalamati </AUTHOR>

*  <DESCRIPTION>

*     BAPI wrapper for Equipment BoM fetch.

*  </DESCRIPTION>

*<!-- *----------------------CHANGE HISTORY------------------------* -->

*  <REVISION_TAG date='06/12/2013' version='610_700 ERP' user='SYALAMA'>

*    <DESCRIPTION>Initial release.</DESCRIPTION>

*    <BugID> ERPADDON-11 </BugID>

*  </REVISION_TAG>

*<!-- *----------------------CHANGE HISTORY------------------------* -->

*</SMERPDOC>

*======================================================================*

************************************************************************

* Template Section

************************************************************************

   INCLUDE /syclo/core_bapi_template_incl.

But when, we sync from client it gives

Sync started for Complex table XXX

But not hitting the respective class in JAVA as defined in config panel.

When sync started it hits the ABAP respective Method but don't come in JAVA.

We had not maintained exchange table instead of that we had maintained Table Refresh and table check in config panel parameter.

Kindly suggest, why it is not coming in JAVA.

Regards

Vivek

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

without defining the index if you try to download any complex table it will throw you server error.

Make sure to define the class path same as Stephen mentioned.

Also keep in mind in your custom java class you are returning same id what you have defined in Agentry index section.

if it still doesn't work then try to debug in java. put the debugger on ComplexTable class to see where it is failing. 

Hope this makes you clear

Thanks

Ajitesh

Former Member
0 Kudos

Are you getting any error on the client? if yes then check the Java class path defined in agentry.

or else try debugging complexTable class which is super class for all complex table.

vivek_gaurav
Participant
0 Kudos

Thanks Ajitesh,

No, there is no error in JAVA or sync and Debugger is also not hitting the java specified new Z class file.

in client it shows

Updating complex table 'ctXXXX'...

     Field Difinition Received

     Index definition Recieved

but don't download any record..

Regards

Vivek

Former Member
0 Kudos

What class do you have set in the Editor for the Complex Table to use?  Is it "com.syclo.sap.ComplexTable"?

Former Member
0 Kudos

Also, do you have an index on the complex table in the editor?

vivek_gaurav
Participant
0 Kudos

Thanks for quick reply Stephen...

We have index defined at complex table in the editor.

Also, we are not getting any error at the time of sync.

it shows in sync :

Updating complex table 'ctXXXX'...

     Field Difinition Received

     Index definition Recieved

First It goes into JAVA and create complex table in JAVA and then come to ABAP and fill data in complex table and then it does not go back to JAVA.

When sync started it hits the ABAP respective Method but don't come in JAVA in respective class for getting data.

Although I can see data is getting populated into et_complex table in ABAP.

While debugging into ABAP , I found that SET_MDO_OUTPUT_VIA_REF_STRUCT is not getting called for our complex table.But why it is not getting called although it is written in respective Method.

me->oref_mdo_data->set_mdo_output_via_ref_struct(

          EXPORTING is_mdo_output = ls_mdo_output_vals ).


is not getting called for our complex table.But why it is not getting called although it is written in respective Method.


Kindly suggest.

Regards

Vivek