on 11-30-2012 12:33 PM
Hi Guys,
Can you please help me to solve my issue.Here am creating a DCN request using ABAP Function.My requirement is to insert a new record in CDB and i need to send notification to device using server initiated scenario.
Am getting the below error in DCN request.
Error 400 security configuration not found in the workflow request
Please help me to solve this issue.
FUNCTION ZSUP_AIRLINE_DCN.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"----------------------------------------------------------------------
DATA: http_client TYPE REF TO if_http_client .
DATA: w_string TYPE string ,
w_result TYPE string ,
r_str TYPE string .
DATA: it_r_msgidno TYPE bal_r_idno,
wa_r_msgidno TYPE bal_s_idno,
iv_msgv1 TYPE symsgv.
CONCATENATE 'http://172.25.121.226:8010/dcn/DCNServlet?'
'cmd=wf&username=supAdmin&password=Hexsap123&domain=default&package=Flight_Cache:1.0&dcn_request={"pkg":"Flight_Cache:1.0","messages":'
'[{"id":"1","mbo":"Flight_Cache_Mbo","op":":upsert","cols
{"AIRLINEID":"NH",
"AIRLINE":"All Nippon Airways",
"CONNECTID":"0111",
"FLIGHTDATE":"2012-02-29",
"AIRPORTFR":"NRT",
"CITYFROM":"Tokyo",
"AIRPORTTO":"SIN",'
'"CITYTO":"Singapore",
"DEPTIME":"10:40:00",
"ARRTIME":"17:25:00",
"ARRDATE":"2012-02-29",
"PRICE":68000,
"CURR":"JPY",
"CURR_ISO":"JPY"}}]}'
INTO w_string.
CALL METHOD cl_http_client=>create_by_url
EXPORTING
url = w_string
IMPORTING
client = http_client
EXCEPTIONS
argument_not_found = 1
plugin_not_active = 2
internal_error = 3
OTHERS = 4.
CALL METHOD http_client->send
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2.
CALL METHOD http_client->receive
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3.
CLEAR w_result .
w_result = http_client->response->get_cdata( ).
ENDFUNCTION.
Regards,
Sabira.
Hi Sabira,
One of our engineers has looked at your code. He suggested that you use a ‘security’ parameter as part of the request. In a default scenario, you might use ‘admin’ as the value of that parameter. However, the practice is to not use the admin security configuration for anything other than SUP administrator authentication for SCC. So you would replace the default value with the name of the actual security configuration you created for your app users.
Cheers,
A.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sabira,
I don't see anything documented in our docs on this. I've forwarded your question on and hope to have an answer for you shortly. This sounds like something we may want to cover in our Troubleshooting docs at minimum.
Cheers,
Annette
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
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.