Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

UoM convertion

Former Member
0 Likes
320

Hi all,

I have one scenario,Where the UoM changes to one to other with the following code takes place in BW cube start routine.

select /BIC/UPRODCODE /BIC/UCONFREG

from /BIC/PUPRODCODE

into corresponding fields of table it_prodmaster

where /BIC/UPRODCODE like 'JP%'.

sort it_prodmaster by /bic/uprodcode.

delete adjacent duplicates from it_prodmaster.

endif.

LOOP AT DATA_PACKAGE.

DATA_PACKAGE-fiscyear = DATA_PACKAGE-calweek+0(4).

clear it_prodmaster.

read table it_prodmaster

with key /bic/uprodcode = DATA_PACKAGE-/BIC/UPRODCODE

binary search.

if sy-subrc ne 0 or it_prodmaster-/BIC/UCONFREG = 0.

DATA_PACKAGE-/BIC/UIOFFCSLQ = DATA_PACKAGE-/BIC/UIOFFCSLQ * 1000 /

it_prodmaster-/BIC/UCONFREG.

The problem is, UIOFFCSLQ value is converting but the UoM is not changeing.

How do we change UoM?

1 REPLY 1
Read only

Former Member
0 Likes
289

may be u require a CONVERSION EXIT for it.

To find the conversion exit for that particular data element, do as follows.

double click on data element -> it will display its domain, again double click on domain ->

domain screen open, under 'DEFINITION' tab, on 'Convers. Routine' field, it will display its routine. ust double click in that routine. It will take you to possible Conversion routines for that data element.

If you find any problem, revert back.

regards,

Padma

Edited by: Padmashree RamMaghenthar on Feb 4, 2009 12:07 PM