Skip to Content
0
Former Member
Apr 08, 2008 at 01:05 PM

Make end routine work

19 Views

Hi to all!

I'm trying to use end routine to populate fields in a DSO, these fields exist in Target DSO but not in source DSO.

In end Routine i calculate these fields using other ones (present in source and target ) using a FM.

Function Module works well but fields calculated in FM aren't written in target DSO.

In FM fields are declared as RESULT_PACKAGE-/BIC/xxxxx, in end routine there is the followind code:

DATA: ls_RESULT_PACKAGE type tys_TG_1.

LOOP AT RESULT_PACKAGE INTO ls_RESULT_PACKAGE.

CALL FUNCTION 'Z_function_module'

IMPORTING

RESULT_PACKAGE = ls_RESULT_PACKAGE.

  • MODIFY RESULT_PACKAGE FROM ls_RESULT_PACKAGE.

ENDLOOP.

Any Idea on how I can make it work?

Thank you!