Skip to Content
0
Former Member
Feb 05, 2009 at 02:34 PM

infopackage routine for time-dependant characteristic - need help with code

82 Views

Hi Gurus,

i am quite new to abap-routines and welcome your help. I want to set in my infopackage for the time-dependant characteristic 0Person dateto and datefrom. Therefore I need to reed according date from datasource.

Here the code, but unfortunatly i got the message Field TRAN_STRUCTURE is unknow. Can you tell me what's wrong?

program conversion_routine.
* Type pools used by conversion program
type-pools: rsarc, rsarr, rssm.
tables: rsldpsel.
* Global code used by conversion rules
*$*$ begin of global - insert your declaration only below this line  *-*
* TABLES: ...
* DATA:   ...
*$*$ end of global - insert your declaration only before this line   *-*
* -------------------------------------------------------------------
form compute_time_dependent_dates
     using p_infopackage type rslogdpid
  changing p_datefrom    type d
           p_dateto      type d
           p_subrc       like sy-subrc.
*       Insert source code to current selection field
*$*$ begin of routine - insert your code only below this line        *-*
          p_datefrom = TRAN_STRUCTURE-BEGDA.
          p_dateto   = TRAN_STRUCTURE-ENDDA.
*....
          p_subrc = 0.

*$*$ end of routine - insert your code only before this line         *-*
endform.

Thanks for your help

birgit