cancel
Showing results for 
Search instead for 
Did you mean: 

Empty repsonse while testing http to bapi

Former Member
0 Kudos
63

Hi,

When I test my scenario I am getting empty response and when I want to see the processed message in sxmb_moni, i am not able to see it.

But when I send fault file then i am able to see the processed message with red and it is failing to map..and it is expected as I am sending fault message type.

I am using RFC : BAPI_SALESORDER_GETLIST.

and when I send the customer number and organization data 2200 & 1000 , i am getting empty response. Actually it has 483 matching records.

Response is as below:

====================

Result:

<?xml version="1.0" encoding="UTF-8"?>

<ns1:MT_response_from_BAPI xmlns:ns1="http://www.cisco.com/httptobapi"></ns1:MT_response_from_BAPI>

====================

Any idea why i am not able to see the message in sxmb_moni?

Thanks

Balaji

Accepted Solutions (1)

Accepted Solutions (1)

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

By default looging of synchronous mesages is turned off.

To turn on the same,

1. Go to T code -- SXMB_ADM --> Integration Engine Configruation --> Specific COnfiguration -->

2. Add the paramter LOOGING_SYNC and set the value to 1.

Now you will be able to see synchronous message in your MONI.

This should help debug your message.

Regards

Bhavesh

Former Member
0 Kudos

Thanks Bhavesh. Now I see message processed successfully but response is empty. How to trace this issue?

Thanks

Balaji

Former Member
0 Kudos

Hi ,

Check your responce messge mapping ie correclt mapped with the fileds and make sure that you shold have send the correct request(ie data).Test your

mapping with the test tab.

Regards,

Former Member
0 Kudos

Hi,

Check in "moni" whether the source XML has the input that u gave using HTTP. While sending input to RFC you should be giving the inputs properly. For instance, if there is a number: 18 and in RFC it is stored in some fixed lengths(eg: six) then u should give 000018. Check for these conditions.

You can test the RFC in R/3. Give the same input given in R/3 in http.

Regards,

P.Venkat

Former Member
0 Kudos

Hi Venkat,

I checked in moni, and it was same as I have given.

I am using BAPI_SALESORDER_GETLIST.

I have tested in R/3 and got proper output. around 440 records..

se37 ->BAPI_SALESORDER_GETLIST-> KUNNR- 2200

VKORG- 1000

It has got around 440 matched records. and i am getting nil.

And input xml source

-


<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT_request_sales_cisco xmlns:ns0="http://www.cisco.com/httptobapi">

<Customer_Number>2200</Customer_Number>

<Sales_Organization>1000</Sales_Organization>

</ns0:MT_request_sales_cisco>

-


Thanks

Balaji

Former Member
0 Kudos

Hi Balaji,

Check the DataType of KUNNR and VKORG and the lengths of it. If it is greater than 4, add zeroes in front of the input.

Usually while executing the RFC in R/3 the zeros are appended automatically, but while giving from XI you need to do that manually.

Regards,

P.Venkat

Former Member
0 Kudos

Thanks venkat!!!

Answers (0)