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: 

Conversion rule to filter special charachters

Former Member
0 Kudos

Hi,

Description of the Issue:

SAP sends DESADV idocs to middleware.

If a text contained in segment E1TXTP8 segment contains some special characters, like " # " the idoc cannot be read at the middleware and remains stuck there.

Question:

Would that be solved by a conversion rule?

How should the conversion rule look like?

Thanks and regards,


F

6 REPLIES 6

Former Member
0 Kudos

Ok, so far, I have been able to set a conversion rule that changes:

Original text "ABCD ---"

Outcome from conversion rule "Test"

That is NO OK.

I need it to be

Original text "ABCD ---"

Outcome from conversion rule "ABCD"

Bear in mind ABCD is a text that can vary every time, since it was created manually , so I cannot make a 1 to 1 rule.

Any ideas?

JL23
Active Contributor
0 Kudos

Are you really talking about the # sign?

Is that sign in your original document or is it already a replacement for another character?

0 Kudos

Hallo, Jürgen,

thanks for your answer!

Text before conversion: 123 #

Expected outcome: 123

Bear in mind: 123 is a manually introduced text, so we cannot put a rule on the whole text, since it can vary.

Any idea?

0 Kudos

Hi Felix,

Why not just substitute for the actual character in your rule?  E.g. substitute space for #, substitute space for --- (long dash) and so on.  (Yes you get that extra space in the text, no way around that AFAIK.)  This is what we have done.

We also trained our users to not utilize these special characters, so the conversion rule engages very seldom now.


Regards,

Sue

0 Kudos

Hi Sue,

that is what I need to do, I am ready to substitute the value.

The question is how do I need to set the conversion rule to substitute the value?

I would kindly appreciate assistance!

Best Regards

0 Kudos

Hi Felix,

For our case we did the substitution on the outbound IDOC from the ECC system.

What system are you trying to write the rule in, and what tcode/area are you trying to do it in?

Regards,

Sue