2008 Dec 01 2:44 PM
Hey,
Can anyone tell me why I can't put a table into the changing parameters of a Function Module.
The problem that we need to do it like this because some client did use such a method rather to do it inside the table.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*" CHANGING
*" VALUE(GET_SET_VALUE) TYPE ZCLTESTA
*" REFERENCE(TABLE) LIKE ZTEST STRUCTURE ZTEST
*" OPTIONAL
*"----------------------------------------------------------------------
So, we need to test it like that, because we need to resolve a problem by our client that happen when we use JCO.
The problem that getting the table will lead to an exception.
Using the transaction I tried to find function module having changing, but I can't find an automated search which I'll get all FMs having Changing Parameters, I'm looking for FM having a table as a changing Parameters.
Regards,
Kais
2008 Dec 01 3:00 PM
You need to use the Table Type in the Associated type to be able to have Table as changing parameter.
E.g. you can use the SHP_VBAP_T in the changing parameter and it will provide you the internal table but if you use the VBAPVB (underlying structure of the SHP_VBAP_T) it will only provide you the workarea of the structure VBAPVB.
So, you need to create a table type of your ZTABLE in SE11.
Select the option Data Type
Give your Name
and Select the Table type in the next popup.
Regards,
Naimesh Patel
2008 Dec 01 3:00 PM
You need to use the Table Type in the Associated type to be able to have Table as changing parameter.
E.g. you can use the SHP_VBAP_T in the changing parameter and it will provide you the internal table but if you use the VBAPVB (underlying structure of the SHP_VBAP_T) it will only provide you the workarea of the structure VBAPVB.
So, you need to create a table type of your ZTABLE in SE11.
Select the option Data Type
Give your Name
and Select the Table type in the next popup.
Regards,
Naimesh Patel
| User | Count |
|---|---|
| 8 | |
| 4 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |