2013 Feb 27 5:58 AM
Hi,
I am working on creating a function module for generic extraction. When I am working on my function module using
RSAX_BIW_GET_GET_DATA_SIMPLE as a template, I have run into an error " table parameters are obsolete!”
when I have clicked on table tab to specify the following:
Parameter Name: E_T_DATA
Typing: LIKE
Associated Type: <the structure name which I have created for this FM>
Optional check: checked
I got struck ed with my function module and have to abort it before exit.
Could anyone help me to resolve this?
Could you also explain to me how E_T_DATA and the structure I have created related in the above setting?
Regards,
Santhosh Kumar.K
2013 Feb 27 11:39 AM
Hello Santhosh ,
Declare E_T_DATA in "changing tab" instead of "table tab".
Hope this will solve your issue.
thanks,
Gejo john
2013 Feb 27 4:40 PM
Tables parameter is obsolete in SAP now. you can pass your structure in EXPORTING or CHANGING
If your associated type is a structure that you have created in SE11, you can use LIKE. If your associated type is a line type/table type you can use TYPE. This should solve the problem.
Thanks,
Vikram.M
2013 Feb 27 4:52 PM
Hi Santhosh,
As Vikram wrote, you can use EXPORTING or CHANGING parameters. However, it's better to use TYPE and not LIKE (http://help.sap.com/abapdocu_731/en/abapfunction_typing_obsolete.htm) irrespective of whether it's a structure or a table type.
2013 Mar 01 4:31 AM
Thanks all for your replies...I solved this problem just by giving one more enter cos its a warning message....