cancel
Showing results for 
Search instead for 
Did you mean: 

Backend Adapter Activation error on providing Instance Push Function

Former Member
0 Kudos

Dear Experts,

We want to create Backend Triggered Adapter. We were able to successfully activate it BUT when we tried to put "Instance Push Function" and then try to activate then its throws following error:

Unable to get the structure type of in bapiwrapper (adapter: <Backend Adapter Name> )

And then Backend Adapter becomes Inactive.

Can anyone please try to help me out?

DOE Server Version is 7.1 with Support Pack 7.

Thanks and Regards,

Gopal

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

This happens when backend destination is not reachable. Check your adapter backend destination.

Regards,

Dhana

Former Member
0 Kudos

Make sure the Backend Deatination is working fine and before activation make sure that the Function module name specified for instance push does not exist in system.

Former Member
0 Kudos

Hi Dhana,

Thanks for response. There is no problem with RFC Destination. I have checked it. Its working.

Double clicking on GetList Bapi Wrapper that we had created is leading us to ECC Backend. Also I tested RFC Destination Remote logon. Thats also working.

Any other hints?

Best Regards,

Gopal

Former Member
0 Kudos

Hi Rohit,

RFC Destination is working fine. There are no Function module with the name we have specified.

Any other hints?

Thanks and Regards,

Gopal

Former Member
0 Kudos

Press check button on adapter screen and let us know what are the errors thrown there?

Former Member
0 Kudos

Hi,

Have a break point in MMW_BEA_COMP_PUSH_STRUC_META function module and generate. Check what is returned in

cl_smap_bapiwrapper=>if_smmw_ssmap~get_fields method call. It is supposed to return backend fields for the corresponding backend structure that you have used in your getDetail.

Check whether the passed structure is same as your current getDetail structure and same structure exists in backend.

Regards,

Dhana

Edited by: Dhanasekhar Karuppanan on Sep 15, 2009 8:39 AM

Former Member
0 Kudos

Dear All,

First of all sorry for soooooo late response. Got stuck in some other work.

We are still stuck at the issue. "Check" did not result in any error in Backend Adapter Screen.

There is no "GetDetail" BAPI Wrapper defined in Backend Adapter. Is that a must for Push Functionality?

And one more point. There was no problem in Activation and Generation of Node Structure and DATA Objects.

Its only that Backend Adapter is not getting activated when it is Backend Triggered AND when Instance Push Function is specified.

DOE Triggered Backend Adapter or Backend Triggered Backend Adapter without Instance Push function is working fine and they are getting activated and generated.

Thanks and Regards,

Gopal

Edited by: Gopal on Sep 17, 2009 6:58 PM

Former Member
0 Kudos

What is the name of the instance push function module you are specifying ?

Former Member
0 Kudos

Hi,

I guess you have bi directional data object, with single node and no getdetail, create or modify BAPI wrapper.

Its mandatory to have a get detail if it is a bidirectional data object. To generate the instance push function module backend structure from getDetail is used.

If your object is download only DO , then corresponding getList structure will be used.

Regards,

Dhana

Former Member
0 Kudos

Hi Ramanath,

Name of Instance Push Function is PUSH_TEST_DEMO.

Hi Dhana,

You are absolutely correct in saying that Data Object is bidirectional with single node and no getdetail, create or modify BAPI wrapper. We forgot to mention MODIFY Bapi Wrapper in the scenario. I will convey ABAPPERs to do the same.

If we specify MODIFY Bapi Wrappers, then also we have to specify GetDetail BAPI Wrapper? Please clarify.

Thanks and Regards,

Gopal.

Former Member
0 Kudos

Hi,

Yes. Its necessary to have GetDetail function module for bidirectional data object.

Regards,

Dhana

Former Member
0 Kudos

Hi Dhana,

We have only single node then whats the use of GetDetail BAPI Wrapper? There are no child nodes. We will be using just GetList and Modify BAPi Wrapper and for bidirectional I thought it will be enough. Where am I thinking wrong?

Thanks and Regards,

Gopal

Former Member
0 Kudos

Hi,

Whenever any modify/create message is sent to DOE, DOE will call modify/create bapi wrapper and also will call getDetail to get the backend image of the instance. It is then replicated to other devices. So its mandatory to have getDetail.

Regards,

Dhana

Former Member
0 Kudos

Hi,

Only GetDetail FM would suffice when the data is always coming from backend. If the instances are being created/modified from the client, then along with "Create/Modify" bapi-wrapper GetDetail bapi wrapper is a must. (Because during these calls, GetList wont be called by DOE).

So its always better to have "GetList" and "GetDetail" bapi wrappers implemented.

Regards,

Ramanath.

Former Member
0 Kudos

Hi Ramanath/Dhana,

Sorry for my ignorance. I am slightly confused now.

What I understand is in Bidirectional Data Object with Single Node case, GetList has no importance. Its GetDetail which is more important. So GetList must be implemented at all in BiDirectional Single node case?

Thanks and Regards,

Gopal

Former Member
0 Kudos

Hi,

For bidirectional data object you need to have both getList and getDetail.

1) During download from backend Getlist will be used to return backend key of root node/root node itslef. Get detail should return root node details for keys returned by backend.

2) During upload from device, GetDetail will be called after modify call to get backend image of an instance updated from device.

So you should have both. Getlist should return keys and GetDetail should return details for a key.

Regards,

Dhana

Former Member
0 Kudos

Hi Gopal,

As a thumb rule, you need to have both "Getlist" and "GetDetail" for all "Bi-Directional" data objects.

If your data object is having only "root" node, then Getdetail call will not be needed during "Download" flow but its mandatory for "upload" flow.

To avoid the confusion of single node and multiple node, you can have both these function modules ALWAYS for bi-directional data objects. (It will not harm anyways )

Regards,

Ramanath.

Former Member
0 Kudos

Hi Dhana,

Thanks for clarifying my doubt and patiently explaining me the details.

Hi Rohit/Ramanath,

Thanks for hints and help provided.

Best Regards,

Gopal

Answers (0)