cancel
Showing results for 
Search instead for 
Did you mean: 

Different values in different enviroment

former_member203627
Participant
0 Kudos

Hi,

I am working on an interface, in mapping I have a EXECUTE procedure and have para1 value as BISFDEV for development system and in QA it is BISFQAS and in production it will be BISFPRO.

Can anyone suggest me how can I achive the same.

Please give me steps too....

Regards

Ria

Accepted Solutions (1)

Accepted Solutions (1)

former_member203627
Participant
0 Kudos

Can anyone plz help with the following question.

Regards

Ria

former_member518917
Participant
0 Kudos

Hi,

you can get the environment name in udf using System.get property.

-


String systemID = System.getProperty("SAPSYSTEMNAME");

if(systemID.equals("XQ1"){

para = "BISFDEV";

}else if(systemID.equals("XD1"){

para = "BISFQAS";

}else if(systemID.equals("XP1"){

para = "BISFPRO";

}

-


here XQ1,XD1 and XP1 are quality,devlopmet and production envirnment names. change this name as per yours.

Regards

Ritu Sinha

Answers (2)

Answers (2)

Former Member
0 Kudos

You have to access the mapping runtime constants.

And in that get the StreamTransformationConstants.SENDER_SERVICE value.

This will environment specific logic.

See the sample code.

map = container.getTransformationParameters();

str_senderService = (String) map.get(StreamTransformationConstants.SENDER_SERVICE);

Former Member
0 Kudos

Hi

You need to set Import Export Rules if you transport through TPZ. With this you need have both DEV and QAS system present in SLD then only it can convert the names.

When you set a Source and Target system in transport it will automatically change. Rules need to be set for first time.

Check this blog it provide good overview on transports

Check this SAP links

http://help.sap.com/saphelp_nw04/helpdata/en/f6/719a2172f74b67b150612a7cd3b7df/frameset.htm

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f85ff411-0d01-0010-0096-ba1...

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/43f5d790-0201-0010-2984-ff7...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/80bbbd55-5004-2a10-f181-8bb09692...

Thanks

Gaurav