Message type: E = Error
Message class:  XS - SAPconnect: All messages 
Message number: 004
Message text: For Internet addresses, '*' must be at the beginning
You entered an Internet address &V1& generically with '*'. However, you
did not place the special character '*' first, but in &V2& position.
Saving/processing your entry was terminated.
In contrast to all other address types, Internet addresses begin with
the part of the address on the lowest hierarchy level (for example,
name). A generic entry means that you do not have to specify a
low-level address part. For example, you can specify *sap-ag.de as a
routing entry rather than specifying each recipient individually.
For Internet addresses, you should therefore place '*' in the first
position of the address. Alternatively, enter the Internet addresses in
full without '*'.
Error message extract from SAP system. Copyright SAP SE.
The SAP error message XS004, which states "For Internet addresses, '*' must be at the beginning," typically occurs in the context of configuring Internet addresses or patterns in SAP systems, particularly when dealing with XS (Extended Services) or OData services.
Cause: The error arises when you are trying to define a pattern for Internet addresses (URLs) and you have included an asterisk (*) in a position other than the beginning of the string. In URL patterns, the asterisk is used as a wildcard character, and its placement is significant. The system expects the asterisk to be at the start of the pattern to indicate that it can match any characters following it.
Solution: To resolve this error, you should ensure that any asterisk used in your Internet address patterns is placed at the beginning of the string. Here are the steps to fix the issue: Review the Configuration: Go to the configuration settings where the
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
XS003 You cannot specify an address for a generic address type
What causes this issue?  You have specified both a generic address type (type set to '*') and an address &V1&. The system can neithe...
XS002 Node & not allowed for address type &
What causes this issue?  Node "&V1&" was found from previous processing. This node must support address type "&V2&"...
XS005 For a generic address entry, '*' must be at the end (exception: Internet)
What causes this issue?  You entered an address &V1& generically with '*'. However, you did not place the special character '*&...
XS006 Recipient & in another SAP system
What causes this issue?  Recipient &V1& of type &V2& resides in another SAP system (that is, system &V3&, client &V4&)...
Click on this link to search all SAP messages.