cancel
Showing results for 
Search instead for 
Did you mean: 

Leading Spaces in Outbound IDoc Fields

aayushaggarwal
Participant
0 Kudos

Hi Experts,

We have a scenario in which outbound Custom IDocs are getting triggered.

In one of the IDocs, we are getting leading spaces in the fields, due to which the data is overlapping into other fields.

While debugging it is going properly into MASTER_IDOC_DISTRIBUTE, the leading spaces are coming after that and can be seen in WE02 as below:

capture.png

Highlighted the data, same color data should be in same field.

Please assist, how can i resolve this issue?

Regards,

Aayush Aggarwal

Accepted Solutions (1)

Accepted Solutions (1)

manoj_khavatkopp
Active Contributor
0 Kudos

Hi Ayush,

So the spaces are being added before reaching to PI i.e in WE02 itself you can space os i believe this is something go to do with ABAP end may be data element assigned to this fields or something . As i dont have much of ABAP knowledge suggest you to check with the ABAP guy.

Consider tagging this question to ABAP Tag as well , you will get suggestion from ABAP experts as well.

Br,

Manoj

aayushaggarwal
Participant
0 Kudos

Hi Manoj,

Thanks!! the issue was with the data declaration only. (On ABAP end)

Regards,

Aayush Aggarwal

Answers (1)

Answers (1)

Former Member
0 Kudos

I would recommend using below to remove the spaces on the potential fields that could contain spaces.. before populating the custom idoc.

CONDENSE s1 NO-GAPS