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: 

IDOC error Report

murphybs
Explorer
0 Kudos
198

Hello,

i am just sitting on an IDOC error report.

Now i select the error message from table EDIDS

In this table ther are some placeholders in the field STATXT.

Partner number & for customer &, partner function & does not exist.

The values for the placeholder are in the fiields STAPA1 - 4

Is there any function or code to replace each '&' with a value from the fields.

kind regards,

Bernhard

1 ACCEPTED SOLUTION

DominikTylczyn
Active Contributor
116

You could use different methods.

One of the most straight forward would be to use

MESSAGE ID EDIDS-STAMID TYPE 'I' NUMBER EDIDS-STAMNO 
WITH EDIDS-STAPA1EDIDS-STAPA2 EDIDS-STAPA3 EDIDS-STAPA4 
INTO string_variable.

See: https://help.sap.com/doc/abapdocu_752_index_htm/7.52/en-us/abapmessage_msg.htm

Alternatively you could use FORMAT_MESSAGE or BAPI_MESSAGE_GETDETAIL function modules.

Dominik Tylczynski

1 REPLY 1

DominikTylczyn
Active Contributor
117

You could use different methods.

One of the most straight forward would be to use

MESSAGE ID EDIDS-STAMID TYPE 'I' NUMBER EDIDS-STAMNO 
WITH EDIDS-STAPA1EDIDS-STAPA2 EDIDS-STAPA3 EDIDS-STAPA4 
INTO string_variable.

See: https://help.sap.com/doc/abapdocu_752_index_htm/7.52/en-us/abapmessage_msg.htm

Alternatively you could use FORMAT_MESSAGE or BAPI_MESSAGE_GETDETAIL function modules.

Dominik Tylczynski