Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

RRI mapping adjusted with ABAP

Hi,

We are using the Report Report Interface.

We want to map field 0GLACCEXT to 0GL_ACCOUNT.

In trx. RSBBS (assignments) we made the following mapping:

0GLACCEXT - 0GL_ACCOUNT - InfoObject - single value.

I have created a classic badi.

In Method EXIT_SAPLRSBBS_001 ABAP code was inserted to map 0GLACCEXT to 0GL_ACCOUNT.

I expected in table e_thx_mapping the mapping 0GLACCEXT --> 0GL_ACCOUNT.

In post (RRI with BAPI) i saw that i need table I_THX_MAPPING. But this table is not available.

What am I doing wrong?

Please help.

Regards,

Jos.

replied

Hi,

I solved the problem myself.

You do not need the i_thx_mapping.

I solved the problem as follows:

DATA: l_s_thx_sender TYPE LINE OF rsbbs_thx_mapping,

l_s_thx_mapping TYPE LINE OF rsbbs_thx_map_by_exit,

l_s_range TYPE rrrangesid,

l_d_0glaccext TYPE /bi0/oiglaccext,

l_d_0gl_account TYPE /bi0/oigl_account.

READ TABLE i_thx_sender

INTO l_s_thx_sender

WITH KEY fieldnm = '0GLACCEXT'.

IF sy-subrc NE 0.

EXIT.

ENDIF.

l_s_thx_mapping-fieldnm_to = '0GL_ACCOUNT'.

l_s_thx_mapping-fieldtp_to = rsbbs_c_fieldtp-infoobject.

l_s_thx_mapping-dtelnm = '/BI0/OIGL_ACCOUNT'.

l_s_thx_mapping-domanm = '/BI0/OIGL_ACCOUNT'.

CLEAR l_s_range.

l_s_range-sign = 'I'.

l_s_range-opt = 'EQ'.

l_s_range-low = <convert data you need>.

SHIFT l_s_range-low left DELETING leading space.

APPEND l_s_range TO l_s_thx_mapping-range.

INSERT l_s_thx_mapping INTO TABLE e_thx_mapping.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question