on 11-28-2014 2:28 PM
Hi experts,
I'm developing a File-->XI-->IDOC scenario in which I have to populate some IDOC fields calling a custom FunctionModule that resides in ECC.
The input parameters of FM call are fields of the file (i.e. the supplier ID), output value will be put in IDOC field.
Which is the best to call a function module and integrate it in my scenario? I'm new to that.
Thanks!!
Fabio
Hi experts,
I'm a bit confused about your responses.
My request was to call an ECC FunctionModule with XI under a message mapping File-->IDOC, but as I can see RFCLookup is used to lookup directly an ECC table, do you agree?
So you mean that I don't need the FunctionModule that ABAB developers have done for the scenario, but only the name of the table to lookup?
Is it correct?
Thanks
Fabio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Because of performance in your scenario it would be best to use an user exit in ECC when processing the IDoc since it is already sent to ECC. No need for RFC lookup. Since you are delivering the IDoc to the system where the values that you need are residing it makes sense to do this lookup in this target system when the IDOc has arrived. If you need values from another system then the RFC lookup makes more sense.
Most IDocs have user exits and otherwise a custom function module an be assigned to the IDOc processing in which the functionality is added.
Hi Peter,
thank for your reply.
I will propose your solution to the business analyst.
But if they won't accept this solution, you think is possible to call a RFC function module in my mapping to retrieve some values to populate the IDOC?
I have to write an UDF?
I think that RFClookup doesn't work for me, because I need to call a FM not to read a table. Do you agree?
Hello,
I am not sure why u got confused...
Since the table from where u have to fetch reocrds are already there in ECC, so instead of populating idoc fields in PI using lookup u (ABAP developer) can directly do the same in Idoc's user exit and populate the corresponding fields. And as already stated, this solution is better in terms of preformance and can also avoid connectivity issues (if any).
>>So you mean that I don't need the FunctionModule that ABAB developers have done for the scenario, but only the name of the table to lookup?
If you are not doing any lookup in PI then u don't need and FM or table name. But in case, if PI is doing any RFCLookup then u need only FM name.
Thanks
Amit Srivastava
Hello,
>>Which is the best to call a function module and integrate it in my scenario? I'm new to that.
If i were you then i would have done a small enhancement in a Idoc - Much simpler and better approach in terms of performace.
Thanks
Amit Srivastava
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can use RFC look up.
to avoid multiple calls check this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Fabio,
You can use the conventional way of doing RFC lookup via a UDF in Message Mapping.
You need to pass the Lookup Query in XML format in the UDF alongwith the RFC channel and System details.
Please check the following for details:
http://wiki.scn.sap.com/wiki/display/Snippets/User-defined+Mapping+Function+for+RFC+Lookup
Regards,
Azhar
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.