Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass '&' as a parameter in IDOC Status avoiding it to be replaced

Former Member
0 Kudos
357

Hi,

This is the issue I have. Say an IDOC got status 51 when trying to post it. One of the messages to be appended in table EDIDS is:

Message Class Message Number Text

ZZ 001 This is parmeter1 & and this is parameter2 &

Now, say that in EDIDS table, I have an entry like this for the referred IDOC:

STAMID: ZZ

STAMNO: 001

STATYP: E

STAPA1: P&L

STAPA2: ABCDE

When I look the IDOC in the WE02, I see the message like this:

"This is parameter1 PABCDEL and this is parameter2 "

Sounds like when merging message with its parameters, the system is replacing the '&' in first parameter.

I tried to put P&&L in parameter 1, and also to change error text to have the parameters place numbered (This is parmeter1 &1 and this is parameter2 &2). Nothing worked.

However, when I output the message using message statment in an abap program, the message appears fine in screen.

Does anyone have any suggestion about how I can bypass this ???

Thanks,

Rodrigo.

2 REPLIES 2

Former Member
0 Kudos
89

Look at SE91 and use Message id and Number.

keep where used list and you will find out exactly.

Former Member
0 Kudos
89

Hi, thnx for the reply.

In fact, the text of the error message is fine. The problem is that I need to pass parameter 1 containing a '&', and I don't want it to be replaced.

The threat is WE02. It's not replacing stapa1 and stapa2 from EDIDS as I expected.