Skip to Content
author's profile photo Former Member
Former Member

BADI : BIC_ADDITIONAL_DATA - PARAMETER - CS_MASTER TO BE MODIFIED

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 11, 2014 at 07:42 AM

    .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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.