‎2008 Jun 10 11:46 AM
Hello,
still trying to create an own BAPI ([look this thread|;).
In SWO1 I'm not able to insert my methode because he don't like structure in
structure it seems. Is this true? Am I only able to use flat structure in BAPI?
Or can anyone give an example (perhaps an existing BAPI) where structure in
structure is used?
Is it possible to use table parameters where a table has colums of type table (table in table)?
thanks
chris
‎2008 Jun 10 12:08 PM
‎2008 Jun 10 12:16 PM
If I try to add the method in swo1 he says:
Data type ZBAPI_FPOC_REQUEST cannot be used for methods.
Where ZBAPI_FPOC_REQUEST is my structure that includes structures.
The SAP help says:
You tried to create a method in the BOR with a data type that is not supported. Only data elements and structures are allowed as reference types for parameters in the BOR.
Formular I have table types in my structure and had released this function module. Could it be, that he still try to use the old structure WITH table types? I tried to released the function module again, but I don't know if it is possible to overwrite a function module that had already been released. Is there something like a cache?
thanks
‎2008 Jun 10 1:48 PM
now I played a little bit with a new function module. If I insert a import parameter with a flat structure like this:
struc1
|- data element
|- data element
|- data element
|- data element
it works. Means I can add the methode in swo1. Do I insert a struc with another struc it doesn't work.
struc1
|- data element
|- data element
|- struc1
...|- data element
...|- data element
|- data element
|- data element
Does anyone know why?
‎2008 Aug 07 3:59 PM
Hi,
I anyone could give an answer to this it will be much appreciated.