Formula during transformation, with no values.
Hi:
I have a transformation who has a formula for 2 KFs plus currency key, and the result goes to another KF with his currency key. The problem is that in the source DSO not always I have values for the source fields, and the DTP stops with an error. How can validate that I have all the required source filelds with "no empty values" before executing the formula in the transformation?. Any idea on how to write a "more intelligent" formula to avoid this error.?
Thanks in advance.
Hi,
As Suresh and Barris have suggested it could be easily done using a routine.
Something like:
If source_fields-KF1 ne SPACE and source_fields-KF2 ne SPACE .
Result = source_fields-KF1 + source_fields-KF2
endif.
However, if you want to implement it using formula, then you can try something like this:
IF(source_fields-KF1 = Blank,0,source_fields-KF1) + IF(source_fields-KF2 = Blank,0,source_fields-KF2)
Hope this helps!
Meera
Similar Messages
-
Problem in formula during transformation.
PFA the snapshot of the problem..
http://img122.imageshack.us/my.php?image=problemwy7.jpg
I have two Infoobjects in the infocube, which are formulas based on the other infoobjects.When i'm trying to create a transformation for them,im facing these errors.
The flag condition is that if revenue is greater than 50000 , it should be made 1.
The profit percentage condition is that it is calculated by profit/revenue.
Can u please help me on this ? its kinda urgent !
Message was edited by:
snehith allamrajuOn your screenshot, it rather looks that the problem comes Rules 4 and 5, which are (as their error description shows it) Profit and BudgetedProfit.
As it has been told previously in this thread, as well as in the error message, you probably need to assign a source unit.
Hope it helps, -
Chart formula with time values
I am trying to create a chart with time values and have a formula where the time in cell A1 (6:15) is subtracted from time in cell A2 (17:23). When I enter the formula (=a2-a1) I am told the operator expects a number and that the cells contain strings. Any hints on how to do this formula?
Thanks
PeteHello ComPete,
welcome to the Pages Discussions. There is no easy way in Pages to calculate time like you want to have. In Pages you have to use values with the normal floating point separator (In Germany we have the comma. I think in Canada you have the dot, right?). But you type a colon into the field. Pages knows no time stamp as a calculating value.
To get this to work, you have to place the hour value, the colon sign and the minute value into their own table cell. Than you have to calculate the hour and the minute of one time stamp into minutes. Do this for the second time stamp, too. Store the minute values into a their own cells and hide the values (make them transparent). Now calculate the two minutes values so you have one value and recalculate the result to hours and minutes. now write that to the result cells with a colon between them.
You see, this is a huge expense to get what you want and it is not very practical. -
Transport error when transporting a transformation with formulas/routines
Hi All,
I have migrated some 3.5 dataflow (Datasource, Transfer rules, Update rules, Infosource etc..) to 7.0. I am able to load the datatargets using the DTP's just fine.
The problem I am facing is transporting these dataflows to Quality and Production systems. I am specifically having problem with transporting transformations which has formulas/routines.
I was able to transport the transformations with direct mapping from source field to target fields (no formulas/routines) without any problem and it works fine in Quality system. I tried to transport couple of transformations with formulas/routines, all of them give a shortdump ASSERTION_FAILED (transport fails with error code 12).
I am not sure what the problem is. We are on support package 16. Has anyone faced this problem before? Any suggestions are appreciated.
Points are assured
Thanks,
Sirish.Hi,
What is the dump message you are getting? Check in ST22 and let us know. And try the process which is said in the previous post collect all the transformations through transport connections and transport them.
Khaja -
Dump when I activate a transformation with a formula.
Hi All,
I 've different problems with transformations....
Particulary when I activate a transformation with a formula, it terminates in dump with exception "ASSERTION_FAILED" in class CL_RSRAN_FOBU_APPL method GET_CODE.
I' ve read the note 1050275 (ASSERTION_FAILED in CL_RSTRAN_FOBU_APPL->GET_CODE) that seems to have the solution for this problem, but the correction instruction proposed is already applied and the problem still running...
Infact the note suggest to apply the support package SAPKW70014...and I've SAP_BW 700 with SAPKW70015.
I've also read the note 1055217 and 998730, but I'm not able to find the right solution.
How I can solve the problem?
Thank's a lot,
Valentina.Hello Valentina,
does this happen with all Transformations, or only with once into the DSOs or InfoCubes.
If only into the above mentioned target I have a possible solution for you.
I had a similar problem recently, you are probably also working with some Master Data Update. The InfoObjects that you are updating into the DSO or InfoCubes are being updated(With Master Data Transformaion) with Master Data as well, these need to be active, otherwise the check goes into the following tables(please see below) and if there are inconsistences it ends with "ASSERTION_FAILED".
These the relevant tables for Routines and Formulas, please check them as well:
Formulas are maitained in the follwing tbls:
RSAFORM
RSAFORMMAP
RSAFORMT
RSFOBUEV000
RSFOBUEV001
Routines:
RSAABAP
RSAABAPINV
RSARFIELDS
RSAROUT
RSAROUTT
Hope this helps a bit.
Kind Regards,
Patrik Hengerics -
Issue with Negative Value for Total valuated stock 0VALSTCKQTY.
Hi Experts,
we loaded the Cube with datasources 2LIS_03_BX, 2LIS_03_BF and 2LIS_03_UM.
We mapped the quanity field from 2LIS_03_BF in transformation either into Key figures "Quantity issued from valuated stock" (0ISSVALSTCK) or "Quantity received into valuated stock" (0RECVALSTCK ) of the cube.
For obtaining the Total Valuated stock, we used the Key figure 0VALSTCKQTY. This key figure is having the Inflow and Out flow values as 0RECVALSTCK and 0ISSVALSTCK. When i tried to check the content of 0VALSTCKQTY, the key figure 0VALSTCKQTY is not present in the infoCube content. I understood that the value for this key figure would be calculated at the time of query execution with the formula
{ Last obtained Valuated stock + (Received Valuated Stock u2013 Issued Valuated Stock ) }.
The issue is the first records in the query is obtained with negative value for the total valuated stock 0VALSTCKQTY even though the values of Received Valuated Stock and Issued Valuated Stock are with Zero. Could any one please help me on how the first record in the query is with a negative value eventhough the inflow and out flow fields of it are with Zero.
Many Thanks in advance.
JeswanthHi Srini,
I observed an interresting reason for the stock being with negative in the first record.
Issue : While executing the BEx report, we have the first record with a negative value.
Let me explain with an example
Material : XYZ
Plant : A
Date of Stock Initialization for data source 2LIS_03_BX -
> 12th April 2009.
So on 12 Th April 2009 consider that we have a stock in store with a value of 2640.
Then we have loaded wih Data source 2LIS_03_BF for all Historic Movement types.
At the time of query execution we will have the first record with a negative of available stock present on the day of initialization .
So, as we have initilized the data source 2LIS_03_BX on 12 th April 2009, we have at that time a stock of 2640 in availability.
Exactly with the same value of 2640, we are having a negative value i.e. -2640.
and also one more point to be noted is ...as we have initialized the data source 2LIS_03_BX on 12 th APril 2009...it has created a
opening balance of 2640 on the day of initiailization i.e on 12 th April 2009 in infocube....(which is an extra record...)...so if the previous record of 12,04,2009 is having some value in it..then it will get added to 2640 EA..which will give incorrect stock
So in the query the records will appear in the below following manner
Calendar Day Total stock Received stock Issued Stock
28.12.2005 ---> - 2640 EA
29.12.2005 ---> 2000 EA 640 EA 0
10.04.2009 ---> 0 0 2000 EA
11.04.2009 -
> 0 0 0
(For making
the earlier record of initilization to 0 a negative value -2640 EA is created in the first record )
12.04.2009 (Initializtion day) ---> 2640 EA 0 0
13.04.2009
the day before initialization the total stock will be 0 due to the negative effect introduced by the first record and from the day of initialization the records will be the accurate values... On 12 th april 2009 we can see that a stock of 2640 is brought into the total stock. In fact if there is no negative value i.e. -2640 in the first record then ...the value on 11.04.2009 will be 2640 Ea and this will get summed up with the Opening balance of 2640 EA created by 2LIS_03_BX on the day of intitialization. So on 12 .04. 2009 the total stock will be shown as 5280 EA...so in order to prevent the double value only we observed that the first record is created with the negative of available stock present on the initialization ...to make the record before the day of initialization i.e. 11.04.2009...to be 0...so that from 12 th April 2009 ..will start to see the actual total stock in the query result...
This is happening only if we use both the data sources 2LIS_03_BX and 2LIS_03_BF for loading into BW.....
If we load alone by 2LIS_03_BF ...then as 2LIS_03_BX is ruled out in the loading...then no negative of available stock will be created ...because there will be bno opening balance created on the day of initialization.....and the opeing balance available will be flowing into consecutive records due to the movement types and 12 th April 2009 will be shown with avaialable total stock of 2640 EA.
Kindly let us know your opinions on this...
Thanks.
regards,
Jeswanth -
User exit or BADI to validate service request value with PO value
Dear gurus,
Is there any userexit or BADI to validate service request value with PO value. Please help me regarding this.
Thanks in advanceHi,
Please check these enhancements (SMOD) for user exits available of transaction ML81N.
SRV_FRM - SRV: Formula calculation (obsolete since 4.0A!)
SRVSEL - Service selection from non-SAP systems
SRVREL - Changes to comm. structure for release of entry sheet
SRVQUOT - Service export/import for inquiry/quotations
SRVPOWEB - Purchase order for service entry in Web
SRVMSTLV - Conversion of data during importing of standard service cat.
SRVMAIL1 - Processing of mail before generation of sheet
SRVLIMIT - Limit check
SRVKNTTP - Setting the account assgnmt category when reading in, if "U"
SRVEUSCR - User screen on entry sheet tabstrip
SRVESSR - Set entry sheet header data
SRVESLL - Service line checks
SRVESKN - Set account assignment in service line
SRVESI - Data conversion entry sheet interface
SRVENTRY - Unplanned part of entry sheet (obsolete since Rel. 3.1G)
SRVEDIT - Service list control maintenance/display)
SRVDET - User screen on tab strip of service detail screen
INTERFAC - Interface for data transfer
Regards,
Ferry Lianto -
Need help with NULL values in Crosstables
Hello everybody,
I need some help with NULL values and crosstables. My issue is the following:
I have a query (BW - MDX-Query) that gives me turnover measures for each month. In Crystal Reports I choose crosstable to display this whereby I put all month in columns and all turnover-measures in rows. Each month that has a value (measures are not empty) is chown in the crosstables rows. So far so good. The problem occures when there are month that actually have no values (measures are empty). In that case these months are not chown in columns. But I need CR to display these columns and show the value 0. How can I do that?Hi Frank,
Cross tab shows the data based on your column and these column fields are grouped and based on the group it will show your summaries.
If there is no data for any of your group it will not display that group. In this case you will have to create a standard report which should look like cross tab and to get zero values you need to write formulas .
Example if you want to display Moth wise sales :
if Month() = 01 Then
sum() else 0
Now this formula will check if your month is Jan, then it will sum up the values else it will display zero value.
This is possible only through standard report not with Cross Tab.
Thanks,
Sastry -
Data quality and error messages during transformation
I've read [Maintaining Data Quality in BW using Error Stack|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/20ebeb43-9e8a-2d10-b28e-825c0142ad4f] with great interest and hope this will become standard in the company, right now we have too many complex transformations which have been developed without logging and messaging.
One thing is unclear, the error message described in the example
monitor_rec-msgid = 'ZMESSAGE'
seems to refer to a ZMESSAGE defined in another step.
Could you please tell me how (transaction?) to define this message to be called during transformation?
Thanks in advancese91
-
How to call a dialog program with return value in another dialog program
Dear All,
How can I call a dialog program with return value from another dialog program?
Regards,
Alok.Hi Alok,
You can you SET/GET parameters to do this.
This is some information about this.
To fill the input fields of a called transaction with data from the calling program, you can use the SPA/GPA technique. SPA/GPA parameters are values that the system stores in the global, user-specific SAP memory. SAP memory allows you to pass values between programs. A user can access the values stored in the SAP memory during one terminal session for all parallel sessions. Each SPA/GPA parameter is identified by a 20-character code. You can maintain them in the Repository Browser in the ABAP Workbench. The values in SPA/GPA parameters are user-specific.
ABAP programs can access the parameters using the SET PARAMETER and GET PARAMETERstatements.
To fill one, use:
SET PARAMETER ID pid FIELD f.
This statement saves the contents of field f under the ID pid in the SAP memory. The ID pid can be up to 20 characters long. If there was already a value stored under pid, this statement overwrites it. If you double-click pid in the ABAP Editor, parameters that do not exist can be created as a Repository object.
To read an SPA/GPA parameter, use:
GET PARAMETER ID pid FIELD f.
This statement places the value stored under the pid ID into the variable f. If the system does not find any value for pid in the SAP memory, sy-subrc is set to 4. Otherwise, it sets the value to 0.
Thanks,
SriRatna -
GR Value is not matching with PO Value while posting good receipt.
Hi Experts,
My client has raised the PO with accounts assignment category K (COST CENTRE) with material description.
but he has received invoice receipt before good receipt.while invoice receipt he has entered wrong value for some qty as per PO intially and cancelled that wrong entry.
I have gone through original & cancelled invoice document accounting entries. below is entries:
Original invoice document accounting entries:
GR/IR Clearing account: Debited
Vendor account: Credited
during cancelling the above document it should be vendor acc is debited and GR/IR account is credited but in the system below entries taken place
Cancelled invoice document accounting entries:
Vendor account : Debited
GR/IR Account : Credited
Consumption Account : Credited
Why consumption acc taken place here. pls help what are the possibilitis....
these entries affecting good receipt value means while taking goods receipt for some qty out of full qty value is not matching with PO value.
but while cancelling the GR documents system taking correct values as per PO. Please help.
Kindly help in this regards
Regards
MohanHi,
Check the Credit Memo document whether G/L tab is there & whether any G/L account is entered ?
I think instead of cancelling the MIRO document they might have posted a vendor credit memo manually by specifying a consumption GL.
Thanks & Regards, -
How to create a dimension object in SAP BW Unv with Null value
Hello,
for query syncronisation task, I need a dimension object in my BW universe with NULL value. Does someone know, how to do it or if its possible?
Regards,
ThiloHi Thilo,
so the only common item is Material then - correct ?
Query 1 Query 2
Formulation (grouping of materials) (No counterpart)
Material Material
dummy key figure (why?) Company Code
10 Keyfigure
Is this something you regular have to do ? what about a MultiProvider ?
did you try "merged dimensions" in the Web Intelligence Report ?
Ingo -
Can not Update icloud for win7 Gets
Sheep error during transformation. check that the indicated transmitter propagating path is valid.
tryet in appel updater and tryet downloading from apple but the sameHi,
Found a note explaining the significance of these errors.
It says:
"NZE-28862: SSL connection failed
Cause: This error occurred because the peer closed the connection.
Action: Enable Oracle Net tracing on both sides and examine the trace output. Contact Oracle Customer support with the trace output."
For further details you may refer the Note: 244527.1 - Explanation of "SSL call to NZ function nzos_Handshake failed" error codes
Thanks & Regards,
Sindhiya V. -
Extra accouning line item in billing document with zero value
Hi,
I am using TAXINN procedure, the following accounting document has been generated during billing.This accounting document contains an extra line item with zero value.
However, There is no necessary for this line item with zero value. Can you tell me how to remove this line item?
000 50 VAT Payable A0 0.00
001 01 Sale within state A0 1,212.00
002 50 Sales f/goods-Dome. A0 1,000.00-
003 50 ED Collected Clr. A0 160.00-
004 50 ED Collected Clr. A0 3.00-
005 50 ED Collected Clr. A0 2.00-
006 50 VAT Payable A0 47.00-
Thanks,
KanhuHi
Check if there is any summarization active for billing documents generated through SD. The path for the same is:
IMG>Financial Acxounting>General Ledger Accounting>Integration>Sales & distribution
Check for table VBRK
Regards
Sanil K Bhandari -
Inspection lot creation during GR with respect to Purchase Order
Dear Experts,
Here is my Question
Inspection lot creation during GR with respect to Purchase Order
Inspection type 01 set in the material master
inspection lot will be created during GR for a Purchase order
from my understanding for every GR a inspection lot will be created
No batch Management
but the requirement is irrespective to GR qty and number of times of GR
we need inspection only one inspection lot
For Instance
There is a PO for 1000 kg no batch management
now i do GR for 100 kg for 10 times with different dates
now i need to have only one inspection lot
not 10 inspection lot for each 100 kg
can any one suggest a solution, please advise my understanding is correct
Many thanks
RajDear Raju,
There is a solution for that .The setting can be done two ways, either in the material master or in the configuration
1) Material Master
MM02> QM View> Inspection Setup> 01> Control Insplot> 'X' An inspection lot for each purchase order item/order item 0r An inspection lot for each material document and material
a) 'X' An inspection lot for each purchase order item/order item
This Means
This setting is limited for use with the inspection lot origins 01 and 04.
An inspection lot is only created during the first goods receipt for each PO item or production order.
b) '1' An inspection lot for each material document and material
If you set this indicator, the system creates only one inspection lot for a material document (in a goods receipt transaction) for each material. This setting is useful, if several purchase orders or partial deliveries are processed for the same material in a goods receipt transaction.
2) You can do this default in the config
SPRO > Quality Management > Quality Inspection > Inspection lot creation > Define Default values for inspection type > 01> Control Insp lot
Hope this helps
Regards
gajesh
Maybe you are looking for
-
Kmail web links broken after pacman -Syu
Hello - I use Kontact/Kmail for my email. After a recent upgrade, web links no longer work in my emails. When I click on any type of link in an email, an "infinite loop" of processes is generated. No windows appear, just process after process is star
-
Who know how to reach Create SO from PO Output (IDOC)
Hi, experts, I have met a problem that need create SO from PO output using IDOC, anyone knows how to reach it? please give me detail steps, thanks very much! we need to create an SO in company code XYZ from the PO output IDOC( Message NEU )
-
Report - Alert Message when Link with value 0 is clicked
Hi, I have a report with many fields eg. Year , Count of High Priority Project , Count of Medium Priority Project , Count of Low Priority Project. I have used Column Attributes to link the report data to page 22. Now , some of the cells in the report
-
how should i call a perform statement in SAP script I have been trying to use it in sap script but it is giving me a dump the code extract looks as follows: iN DRIVER'S PROGRAM FORM POP_ADD USING V_parvw like vbpa-parvw. READ TABLE i_addr WITH KEY WF
-
Can anyone pls list out the advantages to have abap dev client seperated with the configuration client? Thanks!