cancel
Showing results for 
Search instead for 
Did you mean: 

How to Add fileds in RRP1 to RRP7 Transactions

Former Member
0 Kudos

i want  to Add two fields in output Report of RRP1 to RRP7 transactions

Badi --

                --/SAPAPO/RRP_IO_COL

Methods : RRP_USEX_COLS_GET_TEXT_01

                RRP_USEX_COLS_GET_TEXT_02

                   ;;;;

                RRP_USEX_COLS_GET_TEXT_07

Customer indclude : CI_RRP_CUS_FIELDS  'i have added Required fields into this strctutre

                          

How to implement the methods?what is the procedure ?

Accepted Solutions (1)

Accepted Solutions (1)

rupesh_brahmankar3
Active Contributor
0 Kudos

Hi Rahul,

Please go through the documenation of the BAdi.

If you want to add a new column, you must create an implementation of the

'RRP_USEX_COLS_GET_TEXT_01' method.

The fields of the 3 possible additional columns are called  USEXIT1, USEXTI2 and USEXIT3.

You have to fill these fields in the  implementation of the 'RRP_USEX_COLS_FILL_01' method for new columns, you have to define them in SE11 in the Customer-Include CI_RRP_CUS_FIELDS .

Regards,

R.Brahmankar

Former Member
0 Kudos

let me confirm ,here i have to develop two methods for every view?

RRP_USEX_COLS_GET_TEXT_01'  ,RRP_USEX_COLS_FILL_01----Requirement view  

0 Kudos

Hi chinni raj.

Yes, both methods need to be implemented. How they should be coded depents upon whether you have note 1709784 already in your system or not. If the note is already present in the system, you can use example below:

In Method RRP_USEX_COLS_GET_TEXT_01, it is necessary to append to internal table CT_CUS_FIELDS an entry which will be the technical name of the column, as well as the fields themselves to CT_COLS_TEXT


e.g.

method /SAPAPO/IF_EX_RRP_IO_COL~RRP_USEX_COLS_GET_TEXT_01.

     APPEND 'USEXIT1' to CT_CUS_FIELDS.

     APPEND 'Column1' to CT_COLS_TEXT.

endmethod.


Afterwards, you can fill, in Method RRP_USEX_COLS_FILL_01 the values in the column


e.g.

method /SAPAPO/IF_EX_RRP_IO_COL~RRP_USEX_COLS_FILL_01.

FIELD-SYMBOLS:

   <io> LIKE LINE OF ct_io.

LOOP at CT_IO assigning <io>.

  <io>-usexit1 = 'blablabla'.

ENDLOOP.

endif.

endmethod.

Once the BAdI methods are implemented and you enter the Product View, can click in button to Change Layout and the field ('Column1' in the example above) will be available for you to select.

edit: methods RRP_USEX_COLS_GET_TEXT_01 and RRP_USEX_COLS_FILL_01 are for the Elements tab at the Product View. For the requirements view, the same would be done in *03 methods.

Regards,

Tiago

Answers (0)