cancel
Showing results for 
Search instead for 
Did you mean: 

Root Node not found in Data Object

Former Member
0 Kudos

Hello Everybody,

When I create Data Objects in MI Server, I am not able to see the root node.

I could find Backend Adapter and Flow Definition, but not the Root node.

Can someone tell me what I am doing wrong. Please help me.

Thanks,

Sneha Singh.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I think you are going through a help document and you would have seen a sentence like 'root node'.

When you expand your data object you must be seeing 3 things 'Backend Adapter' , 'Node structure' and 'Flow definition'.

Expand node structure and click the immediate child in the tree. This is root node of your data object. i.e) Node with hierarchy '1'.

Regards,

Dhana

Edited by: Dhanasekhar Karuppanan on Aug 21, 2009 8:52 AM

Former Member
0 Kudos

Dhanasekhar, I am not able to see Node Structure at all.

I am able to see BEA and Flow Definition.

Former Member
0 Kudos

Hi,

Did you used import BAPI wrapper's as data object utility to create your data object?

If yes tell me what are all the details you gave and any error thrown at end of the creation process.

Regards,

Dhana

Former Member
0 Kudos

Ideally if you give a valid getlist bapiwrapper( getdetail incase of child nodes) and proper RFC destination , it should create the Dataobject with rootnode atleast and display it in workbench under Node Structure.

Did you face any error at the end of import?

May be you can crosscheck getlist signature with the ones mentioned as part of SDOE_SAMPLE_BAPIWRAPPERS

Former Member
0 Kudos

Dhana, I used import BAPI wrapper's as data object utility and I didnt face any errors at the end of the import.

Former Member
0 Kudos

My GetList RFC is

FUNCTION ZBAPI_CUST_GETLIST.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  EXPORTING
*"     VALUE(RETURN) LIKE  BAPIRET2 STRUCTURE  BAPIRET2
*"  TABLES
*"      ZCUST_DET STRUCTURE  ZCUST_DET
*"----------------------------------------------------------------------
  SELECT KUNNR NAME1 ORT01 PSTLZ REGIO
         FROM KNA1 INTO TABLE ZCUST_DET.
  IF SY-SUBRC EQ 0.
    RETURN-TYPE = 'S'.
    RETURN-MESSAGE = 'Data retrieved sucessfully'.
  ENDIF.

ENDFUNCTION.

And GetDetail RFC is

FUNCTION ZBAPI_CUST_GETDETAIL.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     VALUE(BAPIKUNNR) LIKE  BAPI1007-CUSTOMER
*"  EXPORTING
*"     VALUE(RETURN) LIKE  BAPIRET2 STRUCTURE  BAPIRET2
*"  TABLES
*"      ZBAPI_ORDERS STRUCTURE  ZBAPI_ORDERS
*"----------------------------------------------------------------------
  DATA : T_VBAK LIKE VBAK OCCURS 0 WITH HEADER LINE,
         T_VBAP LIKE VBAP OCCURS 0 WITH HEADER LINE.

  SELECT * FROM VBAK INTO TABLE T_VBAK WHERE KUNNR = BAPIKUNNR.
  IF NOT T_VBAK[] IS INITIAL.
    SELECT * FROM VBAP INTO TABLE T_VBAP FOR ALL ENTRIES IN T_VBAK WHERE VBELN = T_VBAK-VBELN.
    IF SY-SUBRC EQ 0.
      RETURN-TYPE = 'S'.
      RETURN-MESSAGE = 'Data retrieved sucessfully'.
    ENDIF.
  ENDIF.

  LOOP AT T_VBAP.
    ZBAPI_ORDERS-VBELN = T_VBAP-VBELN.
    ZBAPI_ORDERS-POSNR = T_VBAP-POSNR.
    ZBAPI_ORDERS-MATNR = T_VBAP-MATNR.
    ZBAPI_ORDERS-ARKTX = T_VBAP-ARKTX.
    ZBAPI_ORDERS-KUNNR = BAPIKUNNR.

    APPEND ZBAPI_ORDERS.
    CLEAR  ZBAPI_ORDERS.
  ENDLOOP.

ENDFUNCTION.

Former Member
0 Kudos

I see this error when trying to activate Backend Adapter "No parent node found for node ZBAPI_ORDERS".

Former Member
0 Kudos

Hi,

The problem is because of your BAPI signature only.

The tables parameter of getList and importing parameter of getDetail should be of same structure.

i.e.)

FUNCTION ZBAPI_CUST_GETLIST.

*"----


""Local Interface:

*" EXPORTING

*" VALUE(RETURN) LIKE BAPIRET2 STRUCTURE BAPIRET2

*" TABLES

*" ZCUST_DET STRUCTURE ZCUST_DET

*"----


FUNCTION ZBAPI_CUST_GETDETAIL.

*"----


""Local Interface:

*" IMPORTING

*VALUE(BAPIKUNNR) LIKE ZCUST_DET-CUSTOMER*

*" EXPORTING

*" VALUE(RETURN) LIKE BAPIRET2 STRUCTURE BAPIRET2

*" TABLES

*" ZBAPI_ORDERS STRUCTURE ZBAPI_ORDERS

*"----


Change this and try. If its not working then include your header structure as exporting parameter in getDetail

i.e)

FUNCTION ZBAPI_CUST_GETDETAIL.

*"----


""Local Interface:

*" IMPORTING

*" VALUE(BAPIKUNNR) LIKE ZCUST_DET-CUSTOMER

*" EXPORTING

*" VALUE(ORDER) LIKE ZCUST_DET STRUCTURE ZCUST_DET

*" VALUE(RETURN) LIKE BAPIRET2 STRUCTURE BAPIRET2

*" TABLES

*" ZBAPI_ORDERS STRUCTURE ZBAPI_ORDERS

*"----


Regards,

Dhana

Edited by: Dhanasekhar Karuppanan on Aug 21, 2009 9:54 AM

Edited by: Dhanasekhar Karuppanan on Aug 21, 2009 9:55 AM

Edited by: Dhanasekhar Karuppanan on Aug 21, 2009 9:55 AM

Former Member
0 Kudos

Thank you Dhanasekhar. Its working now. Full marks rewarded.

Thank you Liji.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Have you created DOs importing BAPI wrappers?

Check if your getlist bapi has tables parameter that contains the root node(heade node) structure.

Nodes should be visible under 'Node Structure' folder once you selected data object in SDOE_WB.

Regards,

Liji

Former Member
0 Kudos

Liji, thanks for the reply.

I have tables in both GetList and GetDetails BAPI's.

Please tell me how to proceed further.