ITPub博客

首页 > Linux操作系统 > Linux操作系统 > (转)Customer Exit 显示正确的年月

(转)Customer Exit 显示正确的年月

原创 Linux操作系统 作者:hekexi316 时间:2010-07-18 16:56:47 0 删除 编辑
Customer exit showing &ZFITCE04& in Report   http://forums.sdn.sap.com/thread.jspa?threadID=1736377&tstart=15

I have the following scenario wherein i enter the Calendar year (2010) and in my report i need to display as a text variable the Year 2010 for each of the months i.e. from April until March.

Currently my report looks like this:

Apr May Jun Jul.......... Feb Mar

I need it to look like this:
Apr10 May10 Jun10 Jul10.......... Feb11 Mar11

The problem is in my report I see &ZFITCE04& instead of "10" (i.e.2010 until 2011). I even logged out of BEx, but it didnt help. Pls help. Thanks.
SD

I have written the following customer Exit on the Text Variable ZFITCE04...

WHEN 'ZFITCE04'.
* ZFITCE04 enthält das Kalender-Jahr passend zur FiscalPeriode
IF i_step = 2.

* Read Period
READ TABLE i_t_var_range ASSIGNING
WITH KEY iobjnm = '0FISCPER3'
vnam = 'ZFIMME15'.

* Read Cal Year
READ TABLE i_t_var_range ASSIGNING
WITH KEY iobjnm = '0FISCYEAR'
vnam = 'ZFIMME11'.

l_s_range-sign = 'I'.
l_s_range-opt = 'EQ' .

IF -low < 10.
l_s_range-low = -low - 1 .
ELSE .
l_s_range-low = -low .
ENDIF.

APPEND l_s_range TO e_t_range.

ENDIF.

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/13895577/viewspace-668319/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-05-02

  • 博文量
    38
  • 访问量
    57870