jump to navigation

RRI September 10, 2008

Posted by Ajay in Uncategorized.
trackback

Report Report Interface. 

To map field 0GLACCEXT to 0GL_ACCOUNT. 

 

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

0GLACCEXT – 0GL_ACCOUNT – InfoObject – single value. 

 

created a classic badi. 

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

 

expected in table e_thx_mapping the mapping 0GLACCEXT –> 0GL_ACCOUNT. 

 

In post (https://www.sdn.sap.com/irj/sdn/thread?messageID=1483545#1483545)  need table I_THX_MAPPING. But this table is not available. 

——————————————————————————

 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.

Advertisements

Comments»

1. Vanisree - December 7, 2011

Hi,
How you have called this method in RRI? where the method calling functionality available in RSBBS tcode?


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: