on 08-21-2009 7:38 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.