on 12-05-2014 5:36 PM
Hi All,
While trying to prove Gateway Subscriptions & Notifications, I am below error...
internal source pos cx_static_check /iwbep/cx_mgw_base_exception
I could able to create Subscription successfully, and I am getting this error @ send_notifications
TRY .
lo_notification_publisher->send_notifications(
is_notification_endpoint = ls_notification_endpoint ).
CATCH /iwbep/cx_mgw_tech_exception INTO lx_mgw_tech_exception.
help me to sort this,
Thanks
Rajesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ekansh,
I have cross checked all the connections and found
Maintaining Outbound bgRFC Queue from SAP Backend System to the Hub System
is missing after reconfiguring them also it is still the same error throwing
---get bg rfc queue name
TRY.
lo_destination = cl_bgrfc_destination_outbound=>create( lv_destination ).
CATCH cx_bgrfc_invalid_destination INTO lx_invalid_destination.
RAISE EXCEPTION TYPE /iwbep/cx_mgw_tech_exception
EXPORTING previous = lx_invalid_destination.
ENDTRY.
failing at cl_bgrfc_destination_outbound.
By the way I have given the same system(GW Hub) hots with different host..it shouldn't be a problem I am expecting
Thanks
Rajesh
Hello Rajesh,
When you say ' By the way I have given the same system(GW Hub) hots with different host.. ' what does this mean ? Can you please explain.
In Back-End system after Creating RFC Destination For Outbound Queues in SPRO by maintaining all the details regarding the GW System by selecting Classic With bgRFC as transfer protocol, have you maintained Gateway Settings under SAP NetWeaver Gateway Settings?
Where you need to maintain Destination system ( Your GW system ID ),Client,System Alias ( Which you have created in GW Hub system ) and RFC Destination ( which you just now created in the above step ). This is the GW Settings to be done in Back-End system.
Please check this.
regards,
Ashwin
Hi Ashwin & Ekansh,
@ Ashwin : As per your advice I made the configurations and corrected....and In debug mode I have the error gone from cl_bgrfc_destination_outbound method.
I haven't seen any error through my debug, but strangly I dont see any notifications arise on my putty, is there any other way know wether the notification been sent to destination(like other than any HTTP Listener).
@ Ekansh : Thanks for the screen shots, and I am sure in sync with configurations and I am hoping all are well..because I haven't seen any exception while debugging.
Thanks
Message was edited by: rajesh kelam
Hi Rajesh,
Good to know that now it runs error free. For notifications not reaching the HTTP Listener, it may happen that your notification is still locked in the queue. Go to transaction SBGRFCMON and check, if there is any locked queue. Try to process the queue manually. It should work fine.
is there any other way know wether the notification been sent to destination
Yes, you can use a HTTP handler class in your ABAP server. You can expose a class as SICF service. Then create a RFC destination (HTTP destination) to your server where that class is hosted. Then subscribe the entityset with the URL(with fully qualified domain name) of just created class. Set a external breakpoint in the class. Once the gateway processes the notification, your debugger will start.
To create a HTTP handler class, check the reply Your class must be inheriting from the interface "IF_HTTP_EXTENSION" and you need to implement "HANDLE_REQUEST" method.
Hi Ekansh & Ashwin,
I released(from back-end) manually in Debug mode, but no notification traffic seen, after released from back end , I haven't see them in Gateway SBGRFCCONF....don't know what went wrong and how to correct.
After releasing from back end SBGRFCMON, is there any way to debug or trace the floe whether it is hitting to gateway or not ? if not than why not reaching...
Advice me to sort , thanks in advance
Rajesh
Hello Rajesh,
That means you need to check the code which is implemented to trigger the notification. i.e., /IWBEP/R_MGW_PUSH_TEST
Put a break point and check why trigger is failing.
In ST22 go to ABAP Developer View and click on Source Code Extract which will take you to the place where flow is broken.
Regards,
Ashwin
Hi,
Which is HTTP Connection to External Server- which is configured in HUB and back end both and working fine(Connection test is OK).
/IWFND/FM_MGW_ODP_SEND_NOTIF
lv_status = lo_rest_http_client->/iwcor/if_rest_client~get_status( ).
is returning 500 error code
and not sure before to above method call
iv_request_uri is empty- dont know what it is and how to correct
lo_rest_http_client = /iwfnd/cl_mgw_notif_odp_client=>get_rest_http_client(
iv_rfc_dest = iv_rfc_dest
iv_request_uri = iv_request_uri ).
Thanks
Hi Guys,
Sadly, I don't see any success and I can't find any issue which is causing to fail, but please clarify me few things....
1) In HTTP destination : do I need to given only IP address(I tried both Host name & FQDN)
2) In HTTP destination : Is it must to pass path prefix(e.g. http://host:port/) ?
3) BGRFC_SUPERVISOR: Where it is bo created Back end or on GW(sorry for the stupid question , because my BASIS has created on GW....even I replicated same on back end now)
Below is my error log
Thanks
Rajesh
Hi Ekansh,
I am trying to implement a ABAP class as a httplistener as you advise, but got struck after creating class and SICF node you told to create a HTTP External destination where the class is hosted.
So wwhile creating HTTP destination I have given the HOST(FQDN) and what port I have to give here, if I give the same port where my server is running like 8000, connection will refuse right...its failing as well.
Please suggest me
Thanks
Rajesh
Hi All,
Finally I am closing my post as Answered because I could able to hit my delivery address with notifications, but these notifications are showing with 500 error code at HUB... until unless I release or delete them manually they not going out....
Here my delivery address is not external , I am using the same HUB box with different port.
I would like to thank Eknash & Ashwin for support through(don't know how can I give points to equally )
Thanks
Rajesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Rajesh,
Could you please check without Try and Catch ?
Just call send_notifications method alone to send back End-Points.
Regards,
Ashwin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
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.