cancel
Showing results for 
Search instead for 
Did you mean: 

is it possible to get LS name from SLD when the scenario is executed

Former Member
0 Kudos

can I create a scenario that gets the Technical system details of the Business system from SLD?

Can I have a Soap - File scenario, in which case, once the request comes from Soap, corresponding Business system's Technical system details ( like LS name and client no ) should be taken from SLD and send as a file.

Is this possible ??

if yes, how?

Regards,

Venkat.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi, Venkat:

You probably can use ABAP mapping program to achieve your purpose:

Check the following blog to see how author create SLD objects from ABAP program:

/people/sergio.cipolla/blog/2009/02/28/upgrading-to-sap-pi-71-last-time-abap-saved-my-life

You can also use api to get SLD object information.

Regards.

Liang

Shabarish_Nair
Active Contributor
0 Kudos

Vishnu has a good idea. Let me add to it.

Accessing LS and client is not possible. So the best way would be to have a fixvalue table or value mapping table. Design the table as follows;

Sender_System -> LS Name
XX                          LSXX
YY                         LSYY

etc

now create a UDF to get the sender service name i.e to identify your sender system.

http://help.sap.com/saphelp_nw04/helpdata/en/b3/9a2aeb24dc4ab6b1855c99157529e4/content.htm

the parameter in your case wud be SENDER_SERVICE.

This will be the input for your fixvalue or value mapping table.

Create a different table for client number also if necessary.

Former Member
0 Kudos

Hi

Technical system details - Not sure if that is directly possible..

but an option would be to use a FixValue/ Valuemap function provide a Key & get the value

to generate the Key, use a UDF, get RUNTIME constants to make a key

check this link for constants http://help.sap.com/erp2005_ehp_04/helpdata/EN/b3/9a2aeb24dc4ab6b1855c99157529e4/frameset.htm

e.g

java.util.Map map;

map = container.getTransformationParameters( );

String const;

Const = (String) map.get(StreamTransformationConstants.CONSTANT_NAMEfromlink);

return const;

if you want XI's information, then you can try this

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

OR

String sysSID = (String)System.getProperty("user.name");

Regards

Vishnu

Former Member
0 Kudos

Vishnu, Shabarish,

I suggested for a properties file on the sender system itself.

They wanna check connectivity with the Technical system to which business system is associated with each time the scenario is called

Venkat.