cancel
Showing results for 
Search instead for 
Did you mean: 

Variable Substitution Method

Former Member
0 Kudos

Hi,

When Im going through the variable substitution method with respect to the target directory:

with the help of the blog

I dint understand what is the SID here. SID of different systems like DEV system, PRD system and etc. What exactly is an SID?

If we take SID as a variable in the variable substitution method, then the value to VAR will be getting from the header i.e, Receiver_Service.

From where does the Receiver_Service gets the SID? whenever the system is changed from DEV to PRD or to someother.

Kindly let me know if i can get any such other blogs on this scenario.

Thanks in Advance,

Divya

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Answered the Question.

Thanks a lot for helping me.

Regards,

Divya

former_member194786
Active Contributor
0 Kudos

Hi Divya,

Here in this blog the SID is also the name of the receiver service(as explicitly mentioned in the blog). And the receiver system has been taken from the message header, which has been accessed using variable substitution. SID is in fact the SAP system ID. Its a 3 character name provided to any SAP system.

Thanks and Regards,

Sanjeev.

Former Member
0 Kudos

So , all the headers are maintained as a different Business Systems internally and according to the internal configurations, they get the values.

These values are assigend to the variables that are declared by us in the Varible distribution method. Right?

Former Member
0 Kudos

YES. Not only business systems but also the following options......

The message header attribute supported are,

sender_party

sender_service

receiver_party

receiver_service

interface_name

interface_namespace

message_id

message_id_hex

former_member194786
Active Contributor
0 Kudos

Divya,

The header fields have the data such as who is the sender(sender_system) of the message, who is the receiver(receiver_system) of the message, what is the interface name, interface namespace etc. Now in this blog while creating the sender and receiver systems they have used the SID as the Sender_System name. Now when you access the sender system name from the header, you get the value which is actually the SID of the system.

Regards,

Sanjeev.

SudhirT
Active Contributor
0 Kudos

Hi ,

As said above Message header contains the following informations

sender_party

sender_service

receiver_party

receiver_service

interface_name

interface_namespace

message_id

message_id_hex

SID stands for System ID and is a three character unique name for a SAP system. It will be different for different systems like for Dev system it may be XXX and for quality system say YYY and similarly for production system say ZZZ. Message header values are accessed dynamically.

Thanks!

Former Member
0 Kudos

Yes Sanjeev, these headers will be having their respective values, but where they are exactly specified?

For Eg. If it is a Reciever_Party, we give the receiver party in communication channel while creating, so that the header takes from there.

But if the receiver party changes, then do we need to go and change explicitly somewhere?

Regards,

Divya

former_member194786
Active Contributor
0 Kudos

Divya,

When the system changes, lets say moving from dev to prod, party changes from the party defined for dev to party defined for prod. So in that case the party name used in the runtime can be accessed from through variable substitution.

Business systems and parties we need to create explicitly for the various systems used in landscape.

Hope it helps.

Regards,

Sanjeev.

Former Member
0 Kudos

But if the receiver party changes, then do we need to go and change explicitly somewhere?

YES.you have to change in the configurationin this case.It picks data from the processed message ie message header from payload.

Former Member
0 Kudos

OK.

Thanks a lot for the answers.

So whenever we change, it reflects in the header of the message and then takes the value during runtime.

SO in the blog, its only for the format

/usr/sap/target(SID of receiver system)/output

we are using it.

Regards,

Divya

former_member194786
Active Contributor
0 Kudos

Yes exactly.

Regards,

Sanjeev.

Former Member
0 Kudos

Thanks a lot

Former Member
0 Kudos

From where does the Receiver_Service gets the SID? whenever the system is changed from DEV to PRD or to someother.

In this case SID mean the receiver service. It takes the receiver service and substitutes the value.

This receiver service is differently maintained as a business systems in ID for different environments (X8D,X8Q,X8T,X8P etc).So basing on the service ,environment and config it picks ups the value.