Skip to Content
0
Former Member
Oct 05, 2009 at 06:43 AM

Modifying Function Module

68 Views

Hi,

I am working with function module FIAA_CHECK_REPORTING_DATE for creating asset histpry sheet report.

My requirement is to bring the report according to the input date, but the report is generating with the last date

of tht fiscal year. I have made ANLA0-xnocheck into not initial as shown in bold. What are all the changes that

i have to so that my report will be generated according to the input date range.

I have debugged the code and found that cursor is jumping to endform from line CHECK *NOT ANLA0-XNOCHECK.

""code

FORM CHECK_BERDATUM USING VALUE(V_BUKRS) LIKE T093C-BUKRS

VALUE(V_AFABER) LIKE T093-AFABER.

  • Prüfung wird nur durchgeführt, wenn das Kennzeichen gesetzt ist.

CHECK *NOT ANLA0-XNOCHECK IS INITIAL.

CHECK NOT V_BUKRS IS INITIAL AND

NOT BERDATUM IS INITIAL.

IF V_AFABER IS INITIAL .

CALL FUNCTION 'FIAA_CHECK_REPORTING_DATE'

EXPORTING I_DATE = BERDATUM

I_XGBAF = *ANLA0-XGBAF

I_BUKRS = V_BUKRS.

ELSE.

CALL FUNCTION 'FIAA_CHECK_REPORTING_DATE'

EXPORTING I_DATE = BERDATUM

I_XGBAF = *ANLA0-XGBAF

I_BUKRS = V_BUKRS

I_AFABER = V_AFABER.

ENDIF.

ENDFORM.

" code

Regards

VEnk@