cancel
Showing results for 
Search instead for 
Did you mean: 

STX,ETX & ACK using SAP MII 14

Former Member
0 Kudos

Hello MII Experts,

I have a requirement to send a message string from MII to legacy system with STX as a beginning character, ETX as a ending character & ACK in case of Acknoledgement (STX, ETX & ACK are Control characters) . STX can be represent as ^B or HEX 02 and ETX can be represent as ^C or HEX 03. ACK can be represent as ^F or HEX 06. I am unable to create STX,ETX & ACK in MII. Need your help..

Sample String - ^BHelloWorld123^C or ^FHelloWorld123^C

Thanks,

Swanand

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

We managed to solve the issue with MII14.0, SP6. Control characters can be represented in MII as below,

STX as 

ETX as 

ACK as 

we can create string variable in MII and assign below string,

HelloWorld

Thanks,

Swanand

Answers (2)

Answers (2)

former_member185280
Active Contributor
0 Kudos

Please check the thread linked below for a possible solution:

https://scn.sap.com/thread/3771774

Regards,
Christian

Former Member
0 Kudos

Hi Swanand,

Before i answer this, could you let me know in the sample string ^BHelloWorld123^C where is HelloWorld comming from , is it some random value comming from another data source?

Regards,

Saptaparna

Former Member
0 Kudos

Yes,value of Hello World will come from SQL table. Then need to concatenate STX <value> ETX.

I came across SAP Note 1998448, which says that we should avoid to use control characters. But still if anyone knows way to pass STX, ETX, ACK via SAP MII 14 or SAP PCO let me know.

Thanks,

Swanand

former_member186805
Participant
0 Kudos

Cant you perform this suffix and prefix operation using Javascript in the code or using BLS ? I am not sure if i hit right the requirement. Thanks, Ayush

Former Member
0 Kudos

Hi Ayush,

I tried in MII BLS to create STX which is hex of 02 (number("0x02")), but it is giving 2 as output. And target system is not able to recognize 2 as STX. I dont this java script option will work in my case.

Thanks,

Swanand