Error in routine while activating transformation
Dear all,
While activating 2LIS_04_P_ARBPL Transformation activation , I am facing following error while checking in Routine
E:Field "COMM_STRUCTURE-TGTPROCCAP" is unknown. It is neither in one of
the specified tables nor defined by a "DATA" statement. "DATA"
statement.
I replaced COMM_STRUCTURE with SOURCE_FIELDS as suggested in on eof the forum as its field level routine.
Then I got the error as :
*E:Field "SOURCE_FIELDS" is unknown. It is neither in one of the
tables nor defined by a "DATA" statement. "DATA" statement.*
please help me out for this
Where are you writing this Routine?
Start Routine or Field Routine?
Start Routine:
You cannot use SOURCE_FIELDS. You will have to use SOURCE_PACKAGE.
SOURCE_PACKAGE does not have a header line, so you cannot use it directly.
You can just use commands like Sort SOURCE_PACKAGE or Delete SOURCE_PACKAGE.
Field Routine:
You can use SOURCE_FIELDS.
Check if you have selected the field as your source field while writing the field routine.
Please let us know where you are facing the error.
Edited by: Vishal Sanghvi on Jun 2, 2011 2:04 PM
Similar Messages
-
Syntax Error in Routine while Activating Transformation
Dear All,
I am activating whole scenario for 0SD_C03. we have made transformation for 2lis_11_vaitm, during installation we get below errors:
- Rule (target: 0SUBTOT_1S, group: 01 Standard Group): Syntax error in routine
-Rule (target: 0NET_VAL_S, group: 01 Standard Group): Syntax error in routine
-Rule (target: 0PROD_CATEG, group: 01 Standard Group): Syntax error in routine
I really appreciate your any input for this.
Thanks & Regards,
DarshanHi,
I hope there is inbalance in between SOURCE Datapackage and Target Datapackage. So in the start routines pls check it and it not found then add in DATA_PACKAGE...
Check with ABAPer
under ,
TYPES:
BEGIN OF tys_TG_1_full,
SUBTOT_1S TYPE /BI0/OISUBTOT_1S,
and also you can fin dsimilar kind of threads in SDN.
Re: Syntax Error in Routine while Activating Transformation
Re: Issue while creating Transformation from Update rule.
Re: 0IC_C03 activation of Transformation rule ends with ERROR
Re: Error in activation of transformation
Thanks
Reddy -
Start routine errors while activating transformations 2LIS_13_VDITM
Hi Friends,
I have an error while activating transformation for Cube: 0SD_C03
Transformation Z2LIS_13_VDITM
The start routine error is like this->
Start Routine: Syntax error in routine
Rule (target: 0SUBTOT_1S, group: 01 Standard Group): Syntax error in routine
Rule (target: 0SUBTOT_2S, group: 01 Standard Group): Syntax error in routine
Rule (target: 0SUBTOT_3S, group: 01 Standard Group): Syntax error in routine
Rule (target: 0SUBTOT_4S, group: 01 Standard Group): Syntax error in routine
Rule (target: 0SUBTOT_5S, group: 01 Standard Group): Syntax error in routine
Rule (target: 0SUBTOT_6S, group: 01 Standard Group): Syntax error in routine
Rule (target: 0QUANT_B, group: 01 Standard Group): Syntax error in routine
Rule (target: 0DOC_ITEMS, group: 01 Standard Group): Syntax error in routine
Rule (target: 0NET_VAL_S, group: 01 Standard Group): Syntax error in routine
Rule (target: 0COST_VAL_S, group: 01 Standard Group): Syntax error in routine
Rule (target: 0GR_WT_KG, group: 01 Standard Group): Syntax error in routine
Rule (target: 0NT_WT_KG, group: 01 Standard Group): Syntax error in routine
Rule (target: 0VOLUME_CDM, group: 01 Standard Group): Syntax error in routine
Rule (target: 0BP_GRP, group: 01 Standard Group): Syntax error in routine
Rule (target: 0CP_CATEG, group: 01 Standard Group): Syntax error in routine
S:RSTRAN:552 38 0CRM_PROD 01 Standard Group 0MATERIAL
Rule (target: 0DEB_CRED, group: 01 Standard Group): Syntax error in routine
Rule (target: 0PROD_CATEG, group: 01 Standard Group): Syntax error in routine
Key rule 43 (target field: 0VERSION): Initial update set
pls guys if some one can suggest me to solve this i would be very greateful
Bala
Edited by: bala dondeti on Jun 20, 2011 12:32 PM
Edited by: bala dondeti on Jun 20, 2011 12:43 PMThanks for the info Umesh,
Just to be sure - I should simply change "SOURCE_PACKAGE" to "DATA_PACKAGE" in the code of the start routine? "Source_Package" is present in two places in that code:
METHODS
start_routine
IMPORTING
request type rsrequest
datapackid type rsdatapid
EXPORTING
monitor type rstr_ty_t_monitors
CHANGING
SOURCE_PACKAGE type tyt_SC_1
RAISING
cx_rsrout_abort.
and then after that in:
Migrated update rule call
Perform routine_9998
TABLES
SOURCE_PACKAGE
CHANGING
l_abort.
Or should I revert to the 3.5 version? (as a side note, that Data Source (2LIS_13_VDITM) has been activated in 7.0 version by default, when I replicated data sources in BW).
Praveen, as to your remarks, I have the datasource 2LIS_13_VDITM (in version 7.0) active, along with the appropriate Infosource. Transformation between the DataSource and InfoSource is active, and only the transformation between the InforSource and the Cube poses problems.
BR,
Alek -
Error while activating transformation
Hi Experts,
I need to activate a transformation between a cube and DSO.
But I am getting an error message while activating the Transformation the messages are as followed.
1. Error when writing routines
Message Number. RSAA561
2. Error while activating transformation
Message Number. RSTRAN510
3. Error activating transformation.
Message number. RSO404
I have checked the transformation and each field is mapped to correct field and there are no routines its just 1:1 mapping can any body tell how to check the error on basis of Message Number as there is no other information available when we are displaying the error.
Regards
Shubh KaranMight be a problem with the time conversion routines. delete the transformationa nd try again.
Good luck,
vijay -
Error while activating Transformation CO_OM_WBS_3
Hi everybody,
i get the following error message while activating the transformation for CO_OM_WBS_3 in Dev
Error while activating transformation
Message no. RSTRAN510
Error when writing routines
i checked the routine for co_om_wbs_3 the syntex was correct.
i have checked in forum am not getting clear picture please guide me and
sap component version : SAP EHP 1 for SAP NetWeaver 7.0
SAP_BW 7010006 SAPKW70106
BI_CONT 704 0006 SAPK-70406INBICONT
Regards,
SunderDear anand,
thankyou
Regards,
sunder
Edited by: sundersham on Mar 28, 2010 12:34 PM -
Error while activating transformation in BI 7.0
HI,
Error: Error while activating transformation.
Does anyone know how to solve this.
SheelaHi,
There may be many issues like:
If you have any routines, check the syntax.
Check all the fields are mapped properly or not.
Check any currency or unit conversion in transformation.
Data type mismatch -> make sure source and target infoobject either numerical or interconvertible.
Length mismatch between source and target infoobject.
Rgs,
I.R.K -
While activating Transformation 0PS_C041 - 0CO_OM_WBS_2 am getting error
Dear all
While activating the Transformation 0PS_C041 - 0CO_OM_WBS_2 am getting the following error
Error when writing routines
Message no. RSAA561
Error while activating transformation
Message no. RSTRAN510
Error when activating Transformation 0N7SM4TBBDTRG1KKDKS3QRMWAHMV490Q
Message no. RSO404
plz guide me seniors
Regards,
SunderHi,
Make sure your routines are syntatically correct in the transformation before activation.
still it is giving the same error please elaborate the issue and post it over here.
Thanks
Suresh -
Error while activating transformation ---- Message no. RSTRAN510
Hi,
while I am Extrating Data From Flat File I encountered this Error.
I am working on <b>ECC 6.0 , BI 7.0.</b>
I am trying this one in IDES, it is newly installed server.
For Flat File Extraction I follwed the Steps
1) I created Data source -
let us assume I have created a Flat File with 3 fields
SNO SNAME MARKS
File is located in workstation
Data source created successfull , I have checked in preview.
2) I have created 2 key Figures, 1 characteristic
3) I have created Infocube
<b>here I have some doubt</b>
while I am creating Infocube, the look and Feel is very different to 3.XX
when i try to create in 3.XX , we can see the Tabs for Kef figs,chars,Time chars and we assign chars to Dimenstions.
when i am creating Infocube in BI 7.0 , I don't Find such a Tabs and how I am assign the chars to Dimension
I created Like this
select
Info Area -
> create Info cube -
given name of the cube and create (F5).
the Info cube window displayed on the Right side
Then I did like this
select
key Figures -
> Info object Direct Input
Then I inserted my two key figures SNO,MARKS
--- continue (F5)
Dimension 1 -
> Info object Direct Input
I inserted the 1 char SNAME
--- continue (F5)
Then I saved the Info cube
Info cube saved successfull and activated successfull
<b>Is it Right way For create InfoCube ?</b>
4) I created Transfomation for the Data source
Data source -
> create Transfomation
I have given
Object Type : InfoCube
Name :YSTU - i selected which I already created.
It automaticall taken these parameters
Obejct Type : DataSource
Data source : YSTU
source system :PC_FILE
create Transformation (Enter)
I got the Error
<b>Cannot generate proposal</b>
<b>Message no. RSTRAN017</b>
Then I try to activate, I got the Error.
<b>Error while activating transformation</b>
<b>Message no. RSTRAN510</b>
Before I post this , I had searched in Previous SDN post for this Error , But I can't understand the solution.
I have lot of doubts like <b>Basis Guy need to install any Patch</b> or
I did mistake any where.
Help me to Find the solution...
sure you can get the points
Thanks
prasannaThank You so much Voodi, yes you are Right , I am not concentrated on Mapping, Now Transformation is activated.
and i created Info Package too for the Data source , created successfully.
I am struck on Final step <b>creating DTP</b>
when I am creating DTP
Data Transfer Proc : here I need to give the Dtp name ex: YDTP
DTP Type : Standard (Can be sheduled)
Target of DTP
<b>Object Type</b> : Info cube
<b>Name </b> : YSTU (This is my Cube Name)
Source of DTP
<b>Object Type</b> : Data source (It automatically Taken)
<b>Data source</b> : This is Disabled
<b>Source system</b>: This is Disabled
continue (Enter)
I got the message ?
<b>Specify Name of source</b>
and courser is in <b>Data Transfer Proc </b>
Thanks
prasanna -
Error while activating Transformations
Hi gurus,
Iam facing a problem while activating Transformations.
Its a flat filre loading consisting of 4 objects , 3 are standard and one is customised key figure ZPLN_VAL Data type is Amount, currency is fixed INR.
But iam getting following errors while activating transformations.
1,RULE(target ZPLN_VAL, Group;01 standard group); Conversion type missing.
2.RULE7 (Target field:ZPLN_VAL) Field planned value must be assigned to an Infoobject.
3.RULE(TARGET FIELD ZPLN_VAL) NO SOURCE UNIT ASSIGNED.
Regards
Amar.Hi,
Map it with required Unit filed from your Source .
Mayank -
Error while activating transformations? can you please help me
Hi
I am trying to create info cube , i created info objects, info cube,datasource. when i am trying to creat transformation it is throwing and error :
Error while activating transformation
Message no. RSTRAN510
Can any one help me?
SrinathHi
I think you are trying to activate the transformation.
Have you tried to generate proposal?
I think you will get the following error message :
Cannot generate proposal
Message no. RSTRAN017
the system would never generate a proposal . u need to map the fields manually in the transformations... after u map it ... check the mapping and activate it ...
Due to this when you are going to activate the transformation it is throwing this error message.
If this works kindly assign me some points.
Regards,
Debjani.. -
Data Source 0HR_PA_0 Syntax Error in the start routine while activating
Hi All,
I have migrated the Business content for the data source 0HR_PA_0
While activating the transformation-2 there is errors like:
Start Routine: Syntax error in routine
Rule (target: 0HDCNT_LAST, group: 01 Standard Group): Syntax error in routine
Rule (target: 0AGE_KYF, group: 01 Standard Group): Syntax error in routine
.................... etc
I need help to resolve this issue.
Thanks & Regards,
SavithaHello Jurgita,
When Data Source was migrated the codes related to COMM_STRUCTURE was missing in the start routinue.
Following codes (in bold) with regard to COMM_STRUCTURE added and then got activated
4. *--
5. COMM_STRUCTURE type tys_sc_1__rule_25,
6. l_subrc type sy-tabix,
7. l_abort type sy-tabix,
8. ls_monitor TYPE rsmonitor,
9. ls_monitor_recno TYPE rsmonitors.
10.
11. REFRESH:
12. MONITOR.
13.
14. * Runtime attributs
15. SOURCE_SYSTEM = p_r_request->get_logsys( ).
16. move-corresponding SOURCE_FIELDS to COMM_STRUCTURE.
17.
18. * Migrated update rule call
19. Perform routine_0011
20. using
21. COMM_STRUCTURE
22. CHANGING
Regards,
Savitha
Edited by: Savitha Ravi on Jun 19, 2009 6:34 AM -
Error in Routine while migrating standard Transformations from 3.5 to BI7.0
Hi Experts,
We are migrating the Standard trasformations, from old version to new BI 7.0 version. when trying to create the new transformation we are getting a routine error, and unable activate the transformation.
Trasformation Name: TRCS ZCO_OM_NAE_1 -> CUBE 0PS_C08
Routine Desc.: Conversion of Actual / Commitment / Plan to Resid.Order Plan
Source Fields: 0CURRENCY & 0FISCPER
Target Fields: 0AMOUNT & 0CURRENCY
Error Message: E:Field "COMM_STRUCTURE" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. "DATA" statement.
Routine:
PROGRAM trans_routine.
CLASS routine DEFINITION
CLASS lcl_transform DEFINITION.
PUBLIC SECTION.
Attributs
DATA:
p_check_master_data_exist
TYPE RSODSOCHECKONLY READ-ONLY,
*- Instance for getting request runtime attributs;
Available information: Refer to methods of
interface 'if_rsbk_request_admintab_view'
p_r_request
TYPE REF TO if_rsbk_request_admintab_view READ-ONLY.
PRIVATE SECTION.
TYPE-POOLS: rsd, rstr.
Rule specific types
$$ begin of global - insert your declaration only below this line -
... "insert your code here
$$ end of global - insert your declaration only before this line -
ENDCLASS. "routine DEFINITION
$$ begin of 2nd part global - insert your code only below this line *
$$ end of rule type
TYPES:
BEGIN OF tys_TG_1_full,
InfoObject: 0CHNGID Change Run ID.
CHNGID TYPE /BI0/OICHNGID,
InfoObject: 0RECORDTP Record type.
RECORDTP TYPE /BI0/OIRECORDTP,
InfoObject: 0REQUID Request ID.
REQUID TYPE /BI0/OIREQUID,
InfoObject: 0FISCVARNT Fiscal year variant.
FISCVARNT TYPE /BI0/OIFISCVARNT,
InfoObject: 0FISCYEAR Fiscal year.
FISCYEAR TYPE /BI0/OIFISCYEAR,
InfoObject: 0CURRENCY Currency key.
CURRENCY TYPE /BI0/OICURRENCY,
InfoObject: 0CO_AREA Controlling area.
CO_AREA TYPE /BI0/OICO_AREA,
InfoObject: 0CURTYPE Currency Type.
CURTYPE TYPE /BI0/OICURTYPE,
InfoObject: 0METYPE Key Figure Type.
METYPE TYPE /BI0/OIMETYPE,
InfoObject: 0VALUATION Valuation View.
VALUATION TYPE /BI0/OIVALUATION,
InfoObject: 0VERSION Version.
VERSION TYPE /BI0/OIVERSION,
InfoObject: 0VTYPE Value Type for Reporting.
VTYPE TYPE /BI0/OIVTYPE,
InfoObject: 0WBS_ELEMT Work Breakdown Structure Element (WBS Elem
*ent).
WBS_ELEMT TYPE /BI0/OIWBS_ELEMT,
InfoObject: 0COORDER Order Number.
COORDER TYPE /BI0/OICOORDER,
InfoObject: 0PROJECT Project Definition.
PROJECT TYPE /BI0/OIPROJECT,
InfoObject: 0ACTIVITY Network Activity.
ACTIVITY TYPE /BI0/OIACTIVITY,
InfoObject: 0NETWORK Network.
NETWORK TYPE /BI0/OINETWORK,
InfoObject: 0PROFIT_CTR Profit Center.
PROFIT_CTR TYPE /BI0/OIPROFIT_CTR,
InfoObject: 0COMP_CODE Company code.
COMP_CODE TYPE /BI0/OICOMP_CODE,
InfoObject: 0BUS_AREA Business area.
BUS_AREA TYPE /BI0/OIBUS_AREA,
InfoObject: 0ACTY_ELEMT Network Activity Element.
ACTY_ELEMT TYPE /BI0/OIACTY_ELEMT,
InfoObject: 0STATUSSYS0 System Status.
STATUSSYS0 TYPE /BI0/OISTATUSSYS0,
InfoObject: 0PS_OBJ PS Object Type.
PS_OBJ TYPE /BI0/OIPS_OBJ,
InfoObject: 0VTSTAT Statistics indicator for value type.
VTSTAT TYPE /BI0/OIVTSTAT,
InfoObject: 0AMOUNT Amount.
AMOUNT TYPE /BI0/OIAMOUNT,
Field: RECORD Data record number.
RECORD TYPE RSARECORD,
END OF tys_TG_1_full.
Additional declaration for update rule interface
DATA:
MONITOR type standard table of rsmonitor WITH HEADER LINE,
MONITOR_RECNO type standard table of rsmonitors WITH HEADER LINE,
RECORD_NO LIKE SY-TABIX,
RECORD_ALL LIKE SY-TABIX,
SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS.
global definitions from update rules
TABLES: ...
DATA: ...
FORM routine_0001
CHANGING
RETURNCODE LIKE sy-subrc
ABORT LIKE sy-subrc
RAISING
cx_sy_arithmetic_error
cx_sy_conversion_error.
init variables
not supported
icube_values = g.
CLEAR result_table. REFRESH result_table.
type-pools: PSBW1.
data: l_psbw1_type_s_int1 type psbw1_type_s_int1.
data: lt_spread_values type PSBW1_TYPE_T_ACT_SPREAD.
field-symbols: .
füllen Rückgabetabelle !
move-corresponding to RESULT_TABLE.
check not RESULT_TABLE-amount is initial.
append RESULT_TABLE.
endloop.
if the returncode is not equal zero, the result will not be updated
RETURNCODE = 0.
if abort is not equal zero, the update process will be canceled
ABORT = 0.
ENDFORM. "routine_0001
$$ end of 2nd part global - insert your code only before this line *
CLASS routine IMPLEMENTATION
CLASS lcl_transform IMPLEMENTATION.
*$*$ begin of routine - insert your code only below this line *-*
Data:
l_subrc type sy-tabix,
l_abort type sy-tabix,
ls_monitor TYPE rsmonitor,
ls_monitor_recno TYPE rsmonitors.
REFRESH:
MONITOR.
Runtime attributs
SOURCE_SYSTEM = p_r_request->get_logsys( ).
Migrated update rule call
Perform routine_0001
CHANGING
l_subrc
l_abort.
*-- Convert Messages in Transformation format
LOOP AT MONITOR INTO ls_monitor.
move-CORRESPONDING ls_monitor to MONITOR_REC.
append monitor_rec to MONITOR.
ENDLOOP.
IF l_subrc <> 0.
RAISE EXCEPTION TYPE cx_rsrout_skip_val.
ENDIF.
IF l_abort <> 0.
RAISE EXCEPTION TYPE CX_RSROUT_ABORT.
ENDIF.
$$ end of routine - insert your code only before this line -
ENDMETHOD. "compute_0AMOUNT
Method invert_0AMOUNT
This subroutine needs to be implemented only for direct access
(for better performance) and for the Report/Report Interface
(drill through).
The inverse routine should transform a projection and
a selection for the target to a projection and a selection
for the source, respectively.
If the implementation remains empty all fields are filled and
all values are selected.
METHOD invert_0AMOUNT.
$$ begin of inverse routine - insert your code only below this line-
... "insert your code here
$$ end of inverse routine - insert your code only before this line -
ENDMETHOD. "invert_0AMOUNT
ENDCLASS. "routine IMPLEMENTATION
Regards
Krishanu.Hi,
Go through the belowl link it may help you a lot
/message/7377688#7377688 [original link is broken]
Regards,
Marasa. -
Getting Error ASSERTION_FAILED while activating transformation.
Hi Experts,
I am getting an error "The ASSERT condition was violated" while activating a transformation in BI. I applied SAP NOTE 1137447 and I am still getting this error given below.
Runtime Errors ASSERTION_FAILED
Date and Time 09.10.2009 16:53:20
Short text
The ASSERT condition was violated.
What happened?
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.
Error analysis
The following checkpoint group was used: "No checkpoint group specified"
If in the ASSERT statement the addition FIELDS was used, you can find
the content of the first 8 specified fields in the following overview:
" (not used) "
" (not used) "
" (not used) "
" (not used) "
" (not used) "
" (not used) "
" (not used) "
" (not used) "
Trigger Location of Runtime Error
Program CL_RSTRAN_FOBU_APPL===========CP
Include CL_RSTRAN_FOBU_APPL===========CM007
Row 37
Module type (METHOD)
Module Name GET_CODE
Line SourceCde
7 l_formula_id_32 TYPE sfbeid,
8 l_s_fobu TYPE rsfob_s_formula,
9 l_r_formula TYPE REF TO cl_foev_formula.
10
11
12 IF p_r_formula IS BOUND AND
13 p_mode is not initial.
14 CALL METHOD cl_rsar_formulas=>reset_formula_foev_object
15 EXPORTING
16 i_formex = p_formex
17 i_objvers = p_objvers
18 i_r_formula = p_r_formula
19 EXCEPTIONS
20 no_entry = 1
21 invalid = 2
22 OTHERS = 3.
23 ASSERT sy-subrc = 0. "invalid call
24
25 ENDIF.
26
27 CALL METHOD cl_rsar_formulas=>get_formula_foev_object
28 EXPORTING
29 i_formex = p_formex
30 i_objvers = p_objvers
31 RECEIVING
32 r_r_formula = l_r_formula
33 EXCEPTIONS
34 no_entry = 1
35 invalid = 2
36 OTHERS = 3.
>>>>> ASSERT sy-subrc = 0. "invalid call
38
39
40 l_r_formula->compile( EXPORTING i_structure_prefix = 'SOURCE_FIELDS'
41 IMPORTING e_abap_formula = e_t_abap_source ).
42
43 ENDMETHOD.
Kindly help me.
Thanks in advance,
With Kind Regards,
Kannan JagadeesanTry applying the following OSS Notes:
[OSS Note 1050275 - ASSERTION_FAILED in CL_RSTRAN_FOBU_APPL->GET_CODE|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1050275] (relevant to prior to BI 7 SP14)
[OSS Note 1115923 - Check or transfer of empty formulas causes runtime error|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1115923] (relevant to prior to BI 7 SP17). -
Problem While Activating Transformation
Hi BW Gurus,
I am currently working on BW 7.0 on Purchasing Area, I found some problem while modifying the transformation or activating the transformation. I have mapped the data source 2LIS_02_SCL Purchasing Data (Schedule Line Level). I have written a routine for mapping rules of 0ORDER_VAL base on the source field of BWVORG, BWAPPLNM, BWEFFWR, BEDAT, WAERS, HWAER, WKURS. And it shows no error while syntax check. But while activating the Transformation it leads to dump. And after that if I try to change the routine, it leads me to the same dump.
Please advice.
For reference, find the code what I wrote in the routine below,
IF ( SOURCE_FIELDS-BWVORG = '001' or SOURCE_FIELDS-BWVORG = '011'
or SOURCE_FIELDS-BWVORG = '021' or SOURCE_FIELDS-BWVORG = '004'
or SOURCE_FIELDS-BWVORG = '014' or SOURCE_FIELDS-BWVORG = '024' )
AND SOURCE_FIELDS-BWAPPLNM EQ 'MM'
AND SOURCE_FIELDS-BWEFFWR 0.
PERFORM LOC_CURR_CONVERT
USING SOURCE_FIELDS-BWEFFWR
SOURCE_FIELDS-BEDAT
SOURCE_FIELDS-WAERS
SOURCE_FIELDS-HWAER
SOURCE_FIELDS-WKURS
CHANGING RESULT.
ENDIF.
where the LOC_CURR_CONVERT is given below
FORM LOC_CURR_CONVERT *
--> LC_DOCUMENT_VALUE *
--> LC_DATE *
--> LC_DOCUMENT_CURRENCY *
--> LC_LOCAL_CURRENCYY *
--> LC_RATE *
LC_LOCAL_VALUE *
FORM loc_curr_convert
USING lc_document_value
lc_date
lc_document_currency
value(lc_local_currency)
lc_rate
CHANGING lc_local_value.
conversion of lc_rate from floating-point to decimal. Necessary for *
call of CONVERT_TO_LOCAL_CURRENCY.
data lc_rate_dec type p decimals 5.
lc_rate_dec = lc_rate.
IF lc_document_currency = lc_local_currency
no conversion necessary -> Main case 1
AND NOT ( lc_document_currency IS INITIAL
OR lc_local_currency IS INITIAL ) .
lc_local_value = lc_document_value.
ELSEIF NOT ( lc_document_currency IS INITIAL
OR lc_local_currency IS INITIAL OR lc_date IS INITIAL ) .
conversion necessary with lc_date -> Normally not possible
CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
EXPORTING
date = lc_date
foreign_amount = lc_document_value
foreign_currency = lc_document_currency
local_currency = lc_local_currency
rate = lc_rate_dec
IMPORTING
EXCHANGE_RATE =
local_amount = lc_local_value
EXCEPTIONS
NO_RATE_FOUND = 1
OVERFLOW = 2
NO_FACTORS_FOUND = 3
NO_SPREAD_FOUND = 4
DERIVED_2_TIMES = 5.
IF sy-subrc NE 0.
message a802 with lc_date lc_document_currency lc_local_currency
sy-subrc.
ENDIF.
ELSE.
if conversion not possible -> assign target values
lc_local_value = lc_document_value.
lc_local_currency = lc_document_currency.
ENDIF.
ENDFORM.
Thnaks
Regards,
Deep.Hi,
Please check routine if any for 0CO_REPLINE and also expert routine.
Regards,
Rema. -
Short Dump while activating Transformation through Program
HI All,
I am getting short dump while activating - Inactive Transformation through Program RSDG_TRFN_ACTIVATE.
However while i can activate single Transformation but if run without selection, I am getting this dump.
Short Description of Dump -
Category
ABAP Programming Error
Runtime Errors
ASSERTION_FAILED
ABAP Program
CL_RSAR_FORMULAS==============CP
Application Component BW-WHM-DST
Date and Time
Please Guide.
PrasadHi Prasad,
Have you changed the 'Object Status' from INA to ACT when using the program RSDG_TRFN_ACTIVATE?
You can also refer to the note SAP Note 1030987 - Activation of transformations dumps
regards,
Ashvin
Maybe you are looking for
-
Can I install a Windows operating system on my Macbook pro
I have been using VMWare Fusion virtual machine to access the windows side of my computer, but I think it is very complicated. It seems to me at one time you could install Windows directly on the Mac. Because of the people I serve I still have need o
-
I want to create event calendar
How can I add event date to Datechooser with different color?
-
How can I divide a number into bytes
I tried the icon called "split number". It didn't work for me.
-
Input: Month Year and Out Put Display
Dear SDN, Is it possible to view a Query, if we provide only Month & Year.. Then the following result has to display.. Entered month year --- Previous month year --- YTD entered month -- YTD Previous month year Example : During execution of a query -
-
Remove iMessage link from iPhone
Hi, I want to give my iPhone 3Gs to my mother. I do not want her to receive iMessages that were supposed to be send to me. Will it work to brake the link between iMessage me and the 3GS when I remove this telephone from my Support profile under: http