cancel
Showing results for 
Search instead for 
Did you mean: 

concatenate strings separated by TAB

suman_sourabh
Participant
0 Kudos

Hi Experts;

Please suggest me how do I concatenate two strings separated by <TAB> in SAP XI.

example:

Input1: ONE
Input2: TWO
output should be: "ONE     TWO"

I have tried with UDF but it is not giving the output as expected.
String output = Input1 + "\t" + Input2;

return output;

this returns "ONETWO" in SAP XI.

Thanks in advance.

Regards,
Suman

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Use stand function : Concat

open the notepad-> press tab -> copy the space and paste the same under Concat function

A small observation: Your UDF will also work. If u properly view the UDF output u will notice, tab is coming in between two strings(to cross chk go to the test tab under ur mapping -> execute it and view the output in Source text view)

Thanks

Amit Srivastava

Message was edited by: Amit Srivastava

suman_sourabh
Participant
0 Kudos

Thanks Amit,
Yes My code is also working, In the output XML tab is present.

Answers (2)

Answers (2)

former_member182546
Contributor
0 Kudos

Hi Suman ,

    Try this link .

Concatenating respecting blanks.

http://help.sap.com/abapdocu_70/en/ABAPCONCATENATE.htm

With REgards,

Sudhir S

gagandeep_batra
Active Contributor
0 Kudos

hi Suman,

First u can to concatenate ONE with tab space and then both to two.

"ONE" -->Concate--> "     "  output is : "ONE     ".

then

"ONE     "-->Concate-->"TWO"   output is "ONE     TWO".

Regards

Gagandeep