Hello Experts,
I am facing an issue
I'm trying to pass xvbak from a standard program to a class method
the formal parameters are defined as
DATA: BEGIN OF xvbak.
INCLUDE STRUCTURE vbak.
DATA: bstkd LIKE vbkd-bstkd.
DATA: kursk LIKE vbkd-kursk.
DATA: zterm LIKE vbkd-zterm.
DATA: inco1 LIKE vbkd-inco1.
DATA: END OF xvbak.
When i try to pass XVBAK to my class method i get a data incompatibility error between CS_XVBAK and XVBAK. although both are types to the same set of fields.
CALL METHOD Object->DETERMINE_customer
Changing
CS_XVBAK = XVBAK
This is how CS_XVBAK (Actual Parameters) have been typed inside my class as a changing Parameter.
types:
BEGIN OF GTY_XVBAK,
p_vbak type vbak,
bstkd TYPE vbkd-bstkd,
kursk TYPE vbkd-kursk,
zterm TYPE vbkd-zterm, l
inco1 TYPE vbkd-inco1,
END OF GTY_XVBAK .
Changing Parameter:
Data: CS_XVBAK type GTY_XVBAK.
Is there an issue with the above code?... Im just wondering if the include structure in both declarations is the cause of the issue?
Is there a correct way of making 2 deep structures compatible?
Any help will be highly appreciated.