on 06-30-2016 3:21 PM
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_WRAPPER | ctXXX | ZXX_XXX_XXXX_GET | |||||||
CT_SAPOBJECT | ctXXX | com.syclo.sap.component.workorder.object.ZXXXX | |||||||
ENABLE_TABLE | CTXXX | 1 | |||||||
TABLE_REFRESH | CTXXX | 720 | |||||||
TABLE_CHECK | CTXXX | 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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.