cancel
Showing results for 
Search instead for 
Did you mean: 

Example of transfer routine fopr characteristic

Former Member
0 Kudos

Hello

I want to understand how transfer routine (General-Transfer routine) for characteristic works. Any examples?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Aleksandrs

This is simple code

Read table VIT_NUM_DEN with key /BIC/WDW_MATL =

TRAN_STRUCTURE/BIC/WDW_MATL.

If Sy-subrc = 0.

RESULT = VIT_NUM_DEN-den.

endif.

2)

loop at l_dpak_GU.

Read table l_dpak_SU with key /bic/wdw_matl =

l_dpak_GU-/bic/wdw_matl.

If sy-subrc <> 0.

VIT_DPSAVE = l_dpak_GU.

Append VIT_DPSAVE.

else.

delete table l_dpak_SU from l_dpak_SU.

endif.

endloop.

Append lines of l_dpak_SU to VIT_DPSAVE.

Hope the above helps you..

bye

Shu Moh

Former Member
0 Kudos

Hi Aleksandrs,

Here an example of a routine where I fill 0DISTR_CHAN (not in DataSource fields) starting from 0PLANT Master Data (in DataSource fields):

select single distr_chan into RESULT

from /bi0/pplant

where plant = TRAN_STRUCTURE-werks

and objvers = 'A'.

If you want to use Start Routine remember that the field needs to be also in DataSource, not filled but necessarly in DataSource.

Ciao.

Riccardo.