cancel
Showing results for 
Search instead for 
Did you mean: 

Proxy to file Scenario

Former Member
0 Kudos

Hi Experts,

I need some inputs for the proxy - file scenario.

currently in my XI system 'proxy to file' scenario exist for on customer.but now the requirement has come for two more customers. source is CRM system and trrget is third party.

So do i need to crete two more message types and same message types should be created in CRM system also and should be meantioned in the proxy.

If CRM developer put any condition for other two customers in same proxy which exist currently in the system, so how i should handle to design for two more customers.

Note:source structure and target structure are same for all the three customer.only data will be deffered.

Above my understanding is correct or is there any other way to design the scenario.

Kindli please give some inputs.

Thanks,

Bhaskar Reddy

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Bhaskar,

So if there are three customers with the same structure then you can use the same message type and can recieve data into pi. But one question is if there are two customers in one call then do you want to send two files for each customer. If yes then create a multimapping and create business system for each customer and send them separetely. So you will have for each customer receiver agreement and communication channel. This is tedious process because down the line if you add one more customer then you need to add one more.

One more option is in your proxy create one call for each customer. So if the customer changes then create a seperate call. Then you can use conditon receiver determination and it would trigger the corresponding reciever customer. In this design you will always have one message for each customer.

Regards,

---Satish

Former Member
0 Kudos

Hi Satish,

data will be different for all the customers. based on the notification of the customer call may be triggered and data will pass to xi and file will be sent.

For all the three customers there are three different directories.

so how can i write the condition in receiver determination based on data send by CRM system.

All the three customers will not be triggered at the same time, but based on their notification the call may be triggered.

suppose for first customer it may be triggered in the morning and for the second cust it may nbe triggered in the afternoon and so on...

again for the first cust it may trigger in the night and so on.

For all the customers data is different..

Please advise..

Thanks,

Bhaskar Reddy

former_member200962
Active Contributor
0 Kudos
For all the three customers there are three different directories.

so you need three different CCs...

For all the customers data is different..

unless the structure is different you need not worry....if the structure for the three customers is different then you will need three diff DTs....if structure is the same then use the already present DT strcuture....

Regards,

Abhishek.

Former Member
0 Kudos

Hi Abhishek,

Thanks for oyur inputs..

yeah i need three diffrenet CC's but how can i give the condition in receiver and interface determination.

Suppose if 1 customer is triggered it has to go to 1 inbox and 2 customer is triggered then it has to go to 2 inbox.

Can oyu please give inputs regarding the condition to be mentioned in Receiver and interface determination.

Thanks,

Bhaskar

Former Member
0 Kudos

Bhaskar,

In receiver determination you need to give the xpath for customer no. So based upon the customer no. it routes to the apporpriate receiver communication channel. In this design if you add new customer then you have to create the ID objects for that new customer.

Else what you can do is based upon the customer number you can assign the directory and filename in mapping only using udf and if else. Then u can use this in your communication channel. With this approach u hv one comm channel. But the disadvantage is if u add new customer u may need to add this in mapping.

Regards,

---Satish

former_member181962
Active Contributor
0 Kudos

Hi Bhaskar,

If you click on the + button on the INterface determination screen, you will get a column for conditions.

In general it will be the 2nd of 3 columns.

When you click on the Condition editor button , you can chose the field from the input message structure on the left hand side.

And then you can chose an operator like equal to , not equal to etc.

On the right hand side of the expression, you can fill the constant value.

To know more about how to defining conditions in interface determination, read this:

http://help.sap.com/saphelp_nw04/helpdata/EN/42/ea20e737f33ee9e10000000a1553f7/content.htm

Regards,

Ravi

Former Member
0 Kudos

Hi Ravi/Satish,

Thanks for your valuable inputs...

The same interface i have done through BPMs for four customers.. In the BPM scenario proxy will trigger at ECC end and the data is passed to XI system and the request message is sent to the CRM system and then the reposne will get from CRM and then File is generated and sent to third parties.In this scenario i have given the customer number in the branch condition.

based on the customer number the file is generated.

But in my current scenario[which is currently running in system for one customer] i can see that there is no customer number is populated from the CRM system.

So how could i filter the customer number and give the condition system in receiver determination.... as there is no customer number is coming from CRM.

Can you please advise on this... shall i go for creating the two more MT and in CRM end two more proxies or is there any other way to design the interface.

Appreciate your inputs.

Thanks,

Bhaskar

former_member181962
Active Contributor
0 Kudos

Hi Bhaskar,

In that case, you can probably try another alternative: Variable substitution in receiver file adapter:

http://help.sap.com/saphelp_nwpi71/helpdata/en/44/6a316af5a23672e10000000a114a6b/frameset.htm

Using this option, you can define the target directory dynamically.

Search the forum with search text as "Variable Substitution" for sample scenarios.

Regards,

Ravi Kanth Talagana

Former Member
0 Kudos

Hi Ravi,

Thanks for your valuable inputs..

Sorry i did not check corectly.. customer number is pouplating from CRM system.

So i can give the condition in the receiver determination with equal to and not equal to.

If the customer numbers are 1,2,3.

how can i define the condtion in receiver determination.

Thanks,

Bhaskar

Former Member
0 Kudos

Hi Ravi/sathish,

I have seen the condtion editor in the receiver determination.

In that can i give expression for three customer numbers.

suppose if customer numbers are 1.1000

2.2000

3.3000.

can i give expression in this way : 1000 or 2000 or 3000

Can i use two times 'OR' operation.

If yes please confirm.

when i click on left operand i am getting the target structure , but i am not getting the source structure to define the X- path.

can you please advise how can i get source structure.

Thanks,

Bhaskar

former_member200962
Active Contributor
0 Kudos
when i click on left operand i am getting the target structure , but i am not getting the source structure to define the X- path

You seem to be using PI7.1...then you have two options:

1) Make your SI Interface pattern as Stateless (XI 3.0 Compatible)

OR

2) prefix "//" before your source node directly in the left operand

Regards,

Abhishek.

Former Member
0 Kudos

Hi Satish/Ravi/Abhishek/dilip,

My question is answered.

Thanks a lot for valuable inputs.

Thanks,

Bhaskar Reddy

Former Member
0 Kudos

Who are you?

matt
Active Contributor
0 Kudos

stop

Answers (4)

Answers (4)

Former Member
0 Kudos
If CRM developer put any condition for other two customers in same proxy which exist currently in the system, so how i should handle to design for two more customers.

Note:source structure and target structure are same for all the three customer.only data will be deffered.

Above my understanding is correct or is there any other way to design the scenario

i am not sure.... if i hav understood u correctly.... but it seems in CRM .. only one customer data were maintained till now.. and now.. 2 more customers are added....

see the interface u have in ur landscape .. proxy -to- file .. is not designed for 1 customer.......... this is designed for all customers..... so dont create anything... u can send the other two customer... infact any number of customer details.. via the proxy.. if ur design is correct......

Shabarish_Nair
Active Contributor
0 Kudos

you can indeed use the existing design. All you need to do is, in your proxy code provide conditions / logic to accommodate the new customers.

But on a maintenance perspective, I would suggest you create separate proxies.

former_member181962
Active Contributor
0 Kudos

Hi Bhaskar,

If the source system and the target system are the same and only the data differes, then there is no need to change in XI side.

The only changes that are needed would be the logic to populate the Proxy message structures before passing the data to XI (All ABAP).

But if you need to put the file in different directories of the file system or different file systems, then you need to configure two more communication channels and add conditions in your interface determination and route your message according to the data that you get in the source data.

Regards,

Ravi

former_member200962
Active Contributor
0 Kudos

since the message structure is the same you can use the same DTs in the sender application and since your sender application is the same you dont need to do any configuration at CRM also......depending on the internal logic implemented by CRM they will send the data to XI....

Are you going to get only one cust data at a time or it may happen that you get the data about all the customers in one call....if latter then either your strcuture should be changed or the occurence.....