on 03-29-2012 9:42 AM
Hi
I have a scenario where there are 2 identical BAPIs in 2 different SAP systems.
We import the BAPI structure through ARFC model. Then based on some business logic, it should execute the BAPI from either one of the SAP systems.
Is it possible to programmatically change the ModelData information of the Model at runtime ?
Thanks
Sayan
Hi
My question is still not answered.
I have the same BAPI existing in multiple SAP Backend systems. I need to change the RFC destinations at runtime from Webdynpro Java based on some business logic.
Creating multiple models (one for each SAP system) is not an option as the client does not want to have so many different models created.
Is there a way I can change the Metadata and Modeldata destinations at runtime ?
I am using CE 7.3.
Thanks
Sayan Ghosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jun,
This sounds good. I guess its like calling a BAPI from a normal Java program using JCO APIs. But now the question is, JCO destinations are deprecated. Now we have RFC destinations that are created directly in NWA. Do we still use old JCO APIs to call the BAPI from Java program ?
Thanks
Sayan Ghosh
Hi Sayan,
You need to create RFC destination pointing to different source systems manually in NWA, which you have already done. Use the correct destination while calling the RFC.
Best way is to have view which takes the input as hostname, password, username and password. Once the user has provided all these inputs, you can through program check if corresponding RFC- destination exists or create if is not present. Then use the destination to execute the RFC.
Regards,
Manoj
Hi Ghosh
please close discussion if answered
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
1. As I see it you have tweo options: obne change the JCO at runtime. see this thread.
2. Alternatively, you can take the desigbn time approach and build a new model,
tie it up to your second JCO and call the BAPI at design time.
Personally, I feel this way is more reliable and robust. I have done it myself and it
just works! I know some puritans will argue that this approach just unnecessarily duplicates
code, buy hey calling two systems is also sort of duplication....
regards
yuval peery
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.