Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Variant for inbound proxy interface

Former Member
0 Likes
1,417

Hi,

I need to modify an inbound interface that is coming to SAP from PI via Proxy. I have altered the Proxy method, but I need to know if/how I can attach a variant to the process so that I can read the value in the program to avoid any hard coding in the logic?

Does this make sense and can it be done?

Thanks for your help!

Andy

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,073

What do you mean by Variant? Variant in case of report programs is predefined selection criteria... Do you want to preset what is coming into ECC via Proxy? Could you please elaborate more with example?

4 REPLIES 4
Read only

Former Member
0 Likes
1,074

What do you mean by Variant? Variant in case of report programs is predefined selection criteria... Do you want to preset what is coming into ECC via Proxy? Could you please elaborate more with example?

Read only

0 Likes
1,073

Sure...I don't fully understand the entire flow, but here is my situation.

I have a file that is on a server that is picked up by PI and passed to an Inbound Service Interface using Proxy.

I have made some changes to one of the proxy methods and part of those changes includes a hard-coded value.

I would prefer to not have the value hard-coded, so I was wondering if there is a way to pass the value to the Proxy class/method from outside the program code.

A "Z" table is not a good choice since this is simply on value...not several values or a table or anything like that.

Please let me know if I still have not explained this well enough...thanks!

Andy

Read only

0 Likes
1,073

Andy, If you are 100% sure if there is only one value (and that there is no change or the requirement is not going to change in future), I would use hardcoding... It is not a big deal... If you think, that your value could change based on input parameters, you could have the PI consultant map it or have a custom z table...

and you could probably still have a 'Z' table with fields Interface name, field name and fied value (to get the values dynamically), in case you want to have a generic solution for multiple other interfaces, but I would hard code it for now...

Read only

0 Likes
1,073

Thanks, Kris.

Yes it is definitely only one value I need and it will probably remain constant, but the business wants the ability to change it in the future if necessary.

Right now it is hard-coded...I guess I'll leave it that way for the time being. Thanks for your opinion and advice.

Andy