Hello friends,
I am writing a code. My select-option is as follows:
SELECT-OPTIONS: P_LIFNR FOR LFA1-LIFNR
,P_BUKRS FOR LFB1-BUKRS .
Constructor definition ia as follows:
METHODS:
CONSTRUCTOR
IMPORTING VALUE(I_LIFNR) TYPE LFA1-LIFNR
VALUE(I_BUKRS) TYPE LFB1-BUKRS "Buchungskreis auslesen
Now as I creat my object.
data obj type ref to class
START-OF-SELECTION.
CREATE OBJECT OBJ EXPORTING I_LIFNR = P_LIFNR.
I_BUKRS = P_BUKRS.
END-OF-SELECTION.
I am having problem because of Range type.
Message is; I_LIFNR is not type compatable with P_LIFNR. I guess this is becuase of the Range (Select-option). Using parameters: .... Solves the problem but I dont want to use parameters for my input. So how do can I solve this problem.
Blacky