Quantcast
Channel: SCN: Message List - ABAP Connectivity
Viewing all articles
Browse latest Browse all 3125

BADI : BIC_ADDITIONAL_DATA - PARAMETER - CS_MASTER TO BE MODIFIED

$
0
0

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


Viewing all articles
Browse latest Browse all 3125

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>