on 2013 Dec 15 6:44 PM
Hi Experts,
We have a scenario, Web<-->PI<-->RFC. We have this RFC but I think we need a better structured RFC for web calls, i mean there would a 'reutrn' parameter expected which i don't see here:
---------------------------------------------------------------------------------------------------------------------------------------
function zpi_emp_master.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" VALUE(L_PERNR) LIKE PA0001-PERNR
*" VALUE(H_PERNR) LIKE PA0001-PERNR
*" TABLES
*" IT_FINAL STRUCTURE ZPI_EMP_MASTER OPTIONAL
*"----------------------------------------------------------------------
perform collect_data tables it_final
using l_pernr
h_pernr.
endfunction.
----------------------------------------------------------------------------------------------------------------------------------------
Please let me know what would be the best format for the scenario. I am a PI consultant and have never developed a rfc for such scenario, please help.
--
rgds
Shubhnam
Hi Shubnam, There isnt a better structure to call a RFC. On the other hand, i can give you a few recommendations, for example the tables could be traspassed in the RFC export structure because the tables clausule is obsolete, you should create a table type based in a structure, and finally you can use the table type in the RFC. Also, i usually create a parameter type bapireturn in order to point the RFC final result like bapi-type = 'S', bapi-code = 0 and bapi-message = 'Succes'. For increase the RFC cearity you should to try to offer similar interfaces in your RFCs. Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi experts,
I am marking this post answered and the first one to ans as the correct ans., tho all the ans r correct
thanks for ur interest and input.
--
rgds
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 Shubhnam,
Essentially, it is the ABAP code which needs to execute properly first.
Some questions you need to delve into:
Is your web service sending just one PERNR for RFC call or multiple ?
Does your RFC code, send a PERNR and return the master data based on BEGDA and ENDDA ?
Is there a possibility of multiple records for the same PERNR being fetched ?
Based on these questions, the RFC needs to be defined and developed.
Hope it helps!
Ambrish
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
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.