Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BADI : BIC_ADDITIONAL_DATA - PARAMETER - CS_MASTER TO BE MODIFIED

Former Member
0 Likes
1,099

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
777

.In Debugging you can get the structure of CS_MASTER  .copy the structure and declare it .Move the value from cs_master to new structure .Populate the value in the new structure and append it to CS_MASTER.

Issue is Solved

1 REPLY 1
Read only

Former Member
0 Likes
778

.In Debugging you can get the structure of CS_MASTER  .copy the structure and declare it .Move the value from cs_master to new structure .Populate the value in the new structure and append it to CS_MASTER.

Issue is Solved