cancel
Showing results for 
Search instead for 
Did you mean: 

Time depend hierarchy of 0profit_ctr (set calday on EXIT_SAPLRSAP_004)

Masaaki
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

I would like to set Time depend hierarchy (not by nodes, but all hierarchy) on the 0profit_ctr. but unfortunately, 0profit_ctr is not time depend. So I would like to add calday on the EXIT_SAPLRSAP_004(cmod) on the source system.

But I am no idea how to code it...

what I would like to do is to set DATETO and DATEFROM of the hierarhcy header.

parameter of the EXIT_SAPLRSAP_004 is below.

*" IMPORTING

*" VALUE(I_DATASOURCE) TYPE RSAOT_OLTPSOURCE

*" VALUE(I_S_HIEBAS) TYPE RSAP_S_HIEBAS

*" VALUE(I_S_HIEFLAG) TYPE RSAP_S_HIEFLAG

*" VALUE(I_S_HIER_SEL) TYPE RSAP_S_HIER_LIST

*" VALUE(I_S_HEADER3) OPTIONAL

*" TABLES

*" I_T_LANGU TYPE SBIWA_T_LANGU

*" C_T_HIETEXT TYPE RSAP_T_HIETEXT

*" C_T_HIENODE TYPE RSAP_T_HIENODE

*" C_T_FOLDERT TYPE RSAP_T_FOLDERT

*" C_T_HIEINTV TYPE RSAP_T_HIEINTV

*" C_T_HIENODE3 OPTIONAL

*" C_T_HIEINTV3 OPTIONAL

*" C_T_MESSAGES STRUCTURE BALMI OPTIONAL

*" EXCEPTIONS

*" RSAP_CUSTOMER_EXIT_ERROR

I guess I_S_HIER_SEL seems to me the hierarhcy header. but I could not find which fields of the TABLES are corresponding this hierarchy header.

Or is it impossible to set what I want to do on this exit?

Hope your help..

Kind regards,

Masaaki

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

In this FM EXIT_SAPLRSAP_004..

see include program...

INCLUDE ZXRSAU04..

Write code

data : l_s_[structurename] like [extractstructure name],

l_tabix like sy-tabix.

case i_datasource.

when 'your datasource name'.

loop at c_t_data into l_s_[structurename]

l_tabix = sy-tabix.

  • fill the new field

select ... into l_zz...

where ....

l_s_[structurename]-[new field name, zz....] = l_zz...

modify c_t_data from l_s_[structurename] index l_tabix.

endloop.

Hope this Help.. assign points...

regards,

raj