2020 Feb 10 4:07 PM
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
2020 Feb 10 4:33 PM
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
2020 Feb 10 4:33 PM
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