Skip to Content
0
Former Member
Jun 10, 2014 at 05:35 AM

BADI : BIC_ADDITIONAL_DATA - PARAMETER - CS_MASTER TO BE MODIFIED

126 Views

Hi All, I am using a badi : BIC_ADDITIONAL_DATA for extending one field for the report called in T.Code : BMBC

Implemented to ZBIC_ADDITIONAL_DATA and the following method been extended and writen code.

Method IF_EX_BIC_ADDITIONAL_DATA~MASTER_COLUMNS_ADD extended one field like this.

Code return in the method:

DATA : WA_ET_MASTER_FCAT_ADD TYPE LVC_S_FCAT.

WA_ET_MASTER_FCAT_ADD-COL_POS = '3'.

WA_ET_MASTER_FCAT_ADD-FIELDNAME = 'LICHN'.

WA_ET_MASTER_FCAT_ADD-REF_FIELD = 'LICHA'.

WA_ET_MASTER_FCAT_ADD-REF_TABLE = 'MCHA'.

APPEND WA_ET_MASTER_FCAT_ADD TO ET_MASTER_FCAT_ADD.

Now i have to populate data to the new field LICHN.

This method is used to add the value for the new field.

IF_EX_BIC_ADDITIONAL_DATA~MASTER_ADD_DATA_FILL_IN

Parameter :CS_MASTER available in method MASTER_ADD_DATA_FILL_IN to be modified for getting the value for the field LICHA

CS_MASTER is the type ANY. So, we need to modify the parameter, it is not the straight forward approach. I need to used OOPS code to modify the value. Can you guide how to add the value to the parameter CS_MASTER. Regards, Ambrose