Hi All The Gurus,
I have made a Block List ALV Report which is having background color based on condition. It is working fine.In my internal table T_MAIN apart from other fields one field is CELLCOLOR TYPE LVC_T_SCOL and based on condition I am filling CELLCOLOR as below
IF W_MAIN1-P_VIL2 GT '2' AND W_MAIN1-P_VIL2 LE '5'.
S_CELLCOLOR-FNAME = 'VIL_2'.
S_CELLCOLOR-COLOR-COL = '5'. "5 GREEN
S_CELLCOLOR-COLOR-INT = '1'.
S_CELLCOLOR-COLOR-INV = '0'.
APPEND S_CELLCOLOR TO W_MAIN1-CELLCOLOR.
ENDIF. .............................. And so on
This all is fine.Now the requirement is to make a Smartform. For that when calling SmartForm using Call Function FM_NAME I have used T_MAIN = T_MAIN in Tables Parameter.
I have created a Line Type and Structute which is having all the fields of T_MAIN along with CELLCOLOR type LVC_T_SCOL . Everything is activated. The Line type is ZINPP_PRD_MAIN_T and Structure is ZINPP_PRD_MAIN_S. In smartform in Form Interface under Tables Tab I have written T_MAIN1 TYPE ZINPP_PRD_MAIN_T.
But when I run this It is giving dump of Type conflict when calling the function module .....
The reason mention is It was tried to transfer the internal table "T_MAIN1[]" to the formal parameter
"T_MAIN1". In doing so, a type conflict occurred between the formal- and the
actual parameter.
Please help me what is the mistake .Is there any another way to do background color in Smartform based on condition.
Thanks & Regards,
Bharti Jain