Hi people!!
I have a strange situation calling a FM destination.
trying to call a Function from BI system but is not getting any data.
THE CONNECTION IS GOOD.
.
1) This is the FM which is in BI System.
The import parameter COORDER has a value before calling the FM.
COORDER = 'AACO-AD0003'.
CALLFUNCTION'ZBAPI_PC_GET_GRPO_ART'
DESTINATION 'BD2CLNT400_NEW'
IMPORTING
COORDER = COORDER
TABLES
ZBI0TMATL_GROUP = tbl_grp_art
EXCEPTIONS
COMMUNICATION_FAILURE = 1
SYSTEM_FAILURE = 2.
IF SY-SUBRC NE0.
WRITE: 'wrong'.
ELSE.
ZGRP_ARTICULOS[] = tbl_grp_art[].
WRITE: 'O.K.'.
ENDIF.
-------------------------------------
2) This code is inside the FM ZBAPI_PC_GET_GRPO_ART.
The import parameter COORDER has NO value, i mean is EMPTY.
select * into table z/BIC/AZPRT_OG100
from /BIC/AZPRT_OG100
where COORDER = COORDER ( is empty )
and MATL_GROUP NOT LIKE 'MT%'
and MATL_GROUP NOT LIKE 'RP%'
and MATL_GROUP NOT LIKE 'AF0%'.
3) SY-SUBRC = 0.
The system variable is 0.
stranger than this can´t be.
I hope someone knows why this is happening.
Regards