cancel
Showing results for 
Search instead for 
Did you mean: 

should I use both GetList and GetDetail for creating a Data Object?

Former Member
0 Kudos

Hello, all.

At first, Thanks for your interesting.

1. I wounder that I can make a BAPI Wrapper as Data Object using only GetList.

When I make a BAPI Wrapper as Data Object using only GetList, SAP shows me a message.

The message says Data Object can have one root node only (hierarchy = 1 ).

It means I should use both GetList and GetDetail.

I understand that.

If i need to use only GetList, is there any way?

Thanks for your interesting again.

Accepted Solutions (1)

Accepted Solutions (1)

rohith_deraje
Advisor
Advisor
0 Kudos

Hi,

GetList returns all the header node records.

GetDetails uses the Keys of the of the headers node records(returned by GetList) to fetch its items. Thats why we have the KeyFields of header as importing parameter in GetDetail BAPI.

So if you have a Data object having only root node you can use GetList alone.

Edited by: Rohith Deraje on Jun 12, 2009 9:04 AM

Edited by: Rohith Deraje on Jun 12, 2009 9:04 AM

Former Member
0 Kudos

Fist of all, Thank you for your answer.

I understand why GetDetail is needed.

However, when I use GetList alone, SAP shows the message which tell

'Data Object can have one root node only (hierarchy = 1 )' and I couldn't make a Data Object.

Former Member
0 Kudos

Can you provide the signature you are using in GETLIST BAPI?

Former Member
0 Kudos

Hi,

Please check if the GetList bapiwrapper has only tables parameter and this parameter is of type of your header record structure in the backend tables (that will become the root node of this dataobject).

For eg, if your BE table for order header is ZORDER, then the tables parameter of getlist bapiwrapper can be the following

orderheader like ZORDER.

Regards,

Liji

rohith_deraje
Advisor
Advisor
0 Kudos

Hi

I think you are trying to import BAPI wrapper as data object and you are using only "Getlist" BAPI.

In such case, the data object created will have only root node. i.e Hierarchy =1.

This is becuse the GetList BAPI has only the info about root node.(i.e, table parameter).

If you have multiple tables in BE and you want to create a DO with multiple node(hierarchy >1) using BAPI wrapper import, then you have to use "GetDetail" BAPI along with GetList.

Regards

Rohith

Answers (0)