on 09-15-2009 7:21 AM
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
Hi,
This happens when backend destination is not reachable. Check your adapter backend destination.
Regards,
Dhana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
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.
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.
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
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
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.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.