cancel
Showing results for 
Search instead for 
Did you mean: 

Trailing spaces getting trimmed in ABAP Proxy

Former Member
0 Kudos

Hi,

I am using a client ABAP Proxy. I have a field with trailing spaces like 'GE '. But in MONI of Application system (Proxy system) the Space is getting trimmed, 'GE' alone is transmitted.

How can i avoid trailing spaces getting trimmed in the field. It is a string field in XI and char field in proxy.

Thanks in advance,

Regards,

Sudharshan N A

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Sudarshan,

Right click on the payload and select view source(SXMB_MONI). May be the spaces are not dispalyed in the SXMB_MONI dispaly but it still might be there.

If this is not the case, check whether any user exits trimming the space before calling the proxy.

Regards,

Jaishankar

Former Member
0 Kudos

Jai,

I am viewing the source in Moni of APPL. system.

To best of my knoledge there is nothing like trimming exits in Proxy. I will check it once again. I think the proxy runtime trims trailing spaces.

Regards,

Sudharshan N A.

Former Member
0 Kudos

Hi Sudharshan Aravamudan,

Did u checked what I said in my previous reply.

Check watever I said as this will lead to some conclusion where the trailing is happening.

let me know the result.

Thnx

Chirag

Former Member
0 Kudos

Chirag,

I am not using Mapping at all in XI.

The problem is at Application system itself.

Regards,

Sudharshan N A

Former Member
0 Kudos

Hi,

Do one thing when u run the proxy at R3 system Run tcode SXMB_MONI and check the input payload.

copy the payload and past it in notepad and check the value whether it is coming as trimmed only.

Chirag

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Sudharshan,

Many people have got the same problem in the past

Refer

[;

As stated in the above link, try to enclose your data within single quotes and remove the single quotes in XI. I know its a very crude and not a straight fwd way to do it, but just one more way to get the data.

Kindly look at the below mentioned blog in order to have patterns work properly in the ABAP Proxy. As you know, i have not tried it :(. But just try it and give a feedback of how things worked.

[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2955] [original link is broken] [original link is broken] [original link is broken];

Thanks,

Sundar

Former Member
0 Kudos

Hi,

1) R u using trim function in Xi mapping?

2) Can u go to SXMB_MONI and copy the input payload and paste it in notepad and check the value of GE whether it is coming with trailing spaces.

3) Similar with the outpayload

4) Go to test message tab and try test the mapping with the "GE " value and check the output.

5) Which data type r u using string or chat?

Chirag