Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI: Using stucture in structure

Former Member
0 Likes
592

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

4 REPLIES 4
Read only

Former Member
0 Likes
556

it should be possible...

what is the error u r getting?

Read only

0 Likes
556

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

Read only

0 Likes
556

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?

Read only

0 Likes
556

Hi,

I anyone could give an answer to this it will be much appreciated.