cancel
Showing results for 
Search instead for 
Did you mean: 

Can i map 0calmonth to 0fiscper directly in the transformation ?

Former Member
0 Kudos

hello  !

i have DSO with 0calmonth and i have to load to another DSO , But by converting 0calmonth to 0fiscper. Can i do it directly in the transformation? without using any formula or routine ?

I could map it, but not able to activate transformation. Its giving me an error :

"  In the running application program, the ASSERT statement recognized a
situation that should not have occurred.
The runtime error was triggered for one of these reasons:
- For the checkpoint group specified with the ASSERT statement, the
   activation mode is set to "abort".
- Via a system variant, the activation mode is globally set to "abort"
   for checkpoint groups in this system.
- The activation mode is set to "abort" on program level.
- The ASSERT statement is not assigned to any checkpoint group. "

I thought SAP takes care automatically if its Time characteristics.

Thanks,

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Sandy,

http://scn.sap.com/message/6215450

you can map fiscalper to calmonth by formula

FISCPER_CALMONTH( Fiscal year/period, Fiscal Year Variant, Fiscal year, 0 )

you have to delete the data and reupload the data after mapping.

You can use Functional Module UMC_FISCPER_TO_CALMONTH

data: cal type /BIC/OI0calmonth.

'use this function module to convert 0fiscper to 0calmonth.

CALL FUNCTION 'UMC_FISCPER_TO_CALMONTH'

EXPORTING

I_PERIV = trans_structure-/bic/0fiscvarnt

I_FISCPER = trans_structure-/bic/0fiscper

I_CALMONTH_ICHANM = ''

IMPORTING

ES_CALMONTH = cal

EXCEPTIONS

date_invalid = 1

OTHERS = 2.

result = cal.

Regards,

Venkatesh

Former Member
0 Kudos

Hi Sandy,

You cannot map those things directly u can use anyone of the ways suggested by our experts...

U can use the below FM:

UMC_CALMONTH_TO_FISCPER

FISCPER_FROM_CALMONTH_CALC

or u can use the formula in the transformations:

you can map fiscalper to calmonth by formula

FISCPER_CALMONTH( Fiscal year/period, Fiscal Year Variant, Fiscal year, 0 )

Hope this helps...

Thanks,

Nithesh.


Former Member
0 Kudos

no unfortunately it doesnt,, you could write a very simple routine to convert the data.. or use a formula as suggested above.

0FISCPER is a NUMC 7 infoobject. And it takes your 003.200 seven symbols leaving the last symbol. Though, the output format is length of 8.

while 0cal month is date variable with yyyymm format...

may be this could help you understand the logic to write out

http://scn.sap.com/message/6566913

Former Member
0 Kudos

Hi sandy,

reason being in some cases like 1st Jan can be 1st month for cal month, but can be be 12th month of previous year of the Fiscal month.

Regards,

Ganesh

former_member182470
Active Contributor
0 Kudos

You cannot map directly 0calmonth and 0fiscper bcoz, both properties are not same. You can try with standard formulas in transformation. There must be something to take care of your requirement.