cancel
Showing results for 
Search instead for 
Did you mean: 

Agentry app - How to understand why Agentry Client doesn't download Agentry obejcts

Former Member
0 Kudos

Hi All

I create new type of Agentry object - MeanObj and Adjusted settings to download a collection of objects.

- Created MeanObj object in the Agentry project.

- Created Java classes

     public class MeanObj extends SAPObject

     public class MeanSteplet extends Steplet

     public class MeanStephandler extends StepHandler

     public class MeanBapi extends AbstractFetchBAPI

- Created SAP Object - Z00_GET_MEAN_COMPLEX_TAB (I want to use the same class to load Complex Table and Agentry Objects) 

- Created SAP BAPI Wrapper FM Z00_BAPI_GET_MEAN_CT (I want to use the same BAPI Wrapper to load Complex Table and Agentry Objects) 

- Created Agenry Step AgentryMeanSteplet and bind it to com.syclo.sap.sflight.customer.steplet.MeanSteplet

- Created Agenry Fetch - MeanObjFetch

      and bind it to :>Main Object>"MeanObjCollection" Property

      and to AgentryMeanSteplet

- Published Application and Java project to the Server

- Created Parameter in Mobile Application Configuration

  --  

     Parameter Group: SAPOBJECT

     Param. Name: MeanObj

     Param. Value: com.syclo.sap.sflight.customer.object.MeanObj

     Active Flag: Checked

--

    Parameter Group: BAPI_WRAPPER

    Param. Name: com.syclo.sap.sflight.customer.bapi.MeanBapi

   Param. Value: Z00_BAPI_GET_MEAN_CT

   Active Flag: Checked

When I perform Transfer operation in Agentry Client Tt doesn't try to load my new MeanObj object


Logging user into server

   Logged in

Sending client info

Sending time info...

Receiving time info...

Checking Data Tables

Received new table Airport Data Table

Checking Complex Tables

Updating complex table 'Plant Complex Table'...

  Received 12 records. 0 remaining...

Updating complex table 'Mean Complex Table'...

  Received 5 records. 0 remaining...

Updating complex table 'MatPlant Complex Table'...

  Received 3 records. 0 remaining...

Updating complex table 'Makt Complex Table'...

  Received 480 records. 0 remaining...

Application Updated to Dev

Main Fetch...

Flight Schedule '62' has been replaced

Flight Schedule '61' has been replaced

Flight Schedule '60' has been replaced

Flight Schedule '59' has been replaced

Flight Schedule '58' has been replaced

....

Flight Schedule '8' has been replaced

Flight Schedule '7' has been replaced

Flight Schedule '6' has been replaced

Flight Schedule '5' has been replaced

Flight Schedule '4' has been replaced

Flight Schedule '3' has been replaced

Flight Schedule '2' has been replaced

Flight Schedule '1' has been replaced

GetBooking...

Flight Booking '02000001' has been replaced

Flight Booking '02000002' has been replaced

Logging user out

Breakpoints in SAP Z00_GET_MEAN_COMPLEX_TAB and Z00_BAPI_GET_MEAN_CT doesn't stop.

Breakpoints in Java classes MeanObj, MeanSteplet, MeanStephandler, MeanBapi doesn't stop.

How can I understand the reason why it doesn't load my new MeanObj object?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

The Fetch needs to be added to the Transmit action step for it to be ran, else it needs to be tagged as a Main Fetch (then it will always be ran)

Former Member
0 Kudos

Hello Stephen

Now I have not Transmit Fetches in my TransmitStep

FlightBookingModule has 3 Fetches.

According to log (See first message ) it performs only GetBooking and MainFetch Fetches.

I didn't add these Fetches to TransmitStep.

So they are performed somehow automatically.

Former Member
0 Kudos

If they are not listed, then the fetch was set as a "Main Fetch" on the fetch.  This means it will be ran every transmit. 

You can tag your new fetch as a Main Fetch, or you can add it to the transmit step.  When you add it to the transmit step it will only be ran when that transmit is ran ( There are cases where you can have different transmits where you want some fetchs to be ran only for come cases)

Former Member
0 Kudos

Yes, when I checked "Main Fetch" for MeanObjFetch, it worked.

Thank you Stephen.

Answers (0)