on ‎2016 Feb 21 11:23 AM
Hello Everyone!
I am using Data Services to read a RFC from my BW system, which is defined as a "Source BW" datastore in DS.
After importing the function, i realize that the structure of the function is not imported correctly.
When i look at se37 in BW, i can see the correct structure of import table parameter:
and then looking at table E_T_GRID_DATA:
While in DS, E_T_GRID_DATA has only this "Line" component:
has anyone faced this and now how to import the correct structure ?
Thanks in advance,
Liron.
Request clarification before answering.
Hi All,
i have debugged FM /BODS/FUNCTION_GET and found where the LINE component is assigned:
in line 587, "PERFORM MOVE_IF_TABLES TABLES PRMTAB":
inside the perform:
PRMTAB-TABNAME = IF_TABLES-DBSTRUCT.
IF PRMTAB-TABNAME = SPACE.
IF IF_TABLES-TYPES = 'O'.
* The name was greater than 26 characters, could not fit in DBFIELD
PRMTAB-TABNAME = IF_TABLES-TYP.
ELSE.
PRMTAB-TABNAME = 'RSSOURCE'.
ENDIF.
* RAISE REF_STRUCTURE_MISSING.
ENDIF.
table RSSOURCE is the table type with the LINE component (viewed in SE11).
I went to look where IF_TABLES-DBSTRUCT is defined:
that happens in line 563:
CALL FUNCTION 'FUNCTION_IMPORT_INTERFACE'
EXPORTING
FUNCNAME = FUNCNAME
* IMPORTING
* GLOBAL_FLAG = I01
* REMOTE_CALL = I02
* UPDATE_TASK = I03
TABLES
EXCEPTION_LIST = IF_EXCEPT
EXPORT_PARAMETER = IF_EXPORT
IMPORT_PARAMETER = IF_IMPORT
CHANGING_PARAMETER = IF_CHANGE
TABLES_PARAMETER = IF_TABLES
EXCEPTIONS
ERROR_MESSAGE = 01
FUNCTION_NOT_FOUND = 02
INVALID_NAME = 03.
IF SY-SUBRC > 0.
RAISE FM_NOT_FOUND.
ENDIF.
but i can't understand the inside of the FM since all comments inside are in German.
one more interesting thing is that table IF_TABLES[], does contain row 1 where PARAMETER = E_T_GRID_DATA and TYP = /BIC/NE_2 - which is the correct database structure for my RFC.
the only problem is that the column DBSTRUCT is empty.
In a test SP13 system, the same RFC worked fine, so something worked differently, but i can't compare.
Regards,
Liron
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 12 | |
| 9 | |
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.