Sales Amount from one column of period (FY-2012, FY-2013) to 2 different columns
Hi dudes,
I'm having some difficulties in getting the Sales Amount from one column of period (Fiscal Year containing 2012 and 2013) and put it into 2 different columns (Sales 2012 and Sales 2013. I have 3 fields in my dataset: Sales (for all the years), Fiscal
Year (more than 5 years) and month (which I can neglect).
For the moment, my situation is as follows:
Fiscal Year Month
Sales
2012 Jan $72,500
Feb $80,200
Dec $79,500
2013 Jan $51,000
Feb $62,800
Dec $85,000
However I would like to get a scenario as follows:
Month
Sales 2012 Sales 2013
Jan $72,500 $51,000
Feb $80,200 $62,800
Dec $79,500 $85,000
Once I have this, I would be much easier for me to do the difference between the two sales period.
Is there any expression I can use?
I tried to filter from the Group properties the sales amount for Fiscal Year 2012 on 1 column, and on on another column, the sales amount for Fiscal Year 2013 but it is giving me the same values.
Thank you very much dudes.
Hi Stan,
According to your description, we can use a matrix control to achieve your requirement. For more details, please refer to the following steps:
Drag a matrix from Toolbox to design surface.
Insert Month field to the first column.
Insert Fiscal_Year field to the first row of the second column.
Insert Sales field to the second row of the second column.
Right-click the second column to add a column with Outside Group-Right option.
Type the expression below to the second row of the third column:
=sum(iif(Fields!Fiscal_Year.Value=‘2012’,CDbl(Fields!Sales.Value),CDbl(0)))-sum(iif(Fields!Fiscal_Year.Value=‘2013’,CDbl(Fields!Sales.Value),CDbl(0)))
The following screenshot id for your reference:
If there are any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support
Similar Messages
-
We need to transfer amount from one profit center to another profit centers
Dear Gurus,
We need to transfer amount from one profit center to another profit centers, wrongly posted how to do it?
GL 600000 Sales a/c Domestic,
around 5000 FI documents has post in worn profit center
In the billing with material line items showing the correct profit center.
we want reverse the GL 600000 a/c in our system what will be the impact in COPA Reporting. and how to do it?
Pls advice me for the above said issues as we are nearing the year end pls help me.
Thanks..SriramaHai,
You can do profit center posting 9ke0
Profit center will derive from Material in your case it seems some subtitution changing the correct profit center in material master and putting this wrong profit center
Profit center is not the deciding factor for COPA reports so there wouldn't be any impact in COPA report
BR
VSN -
How can I Move data from one column to another in my access table?
I have two columns, one that stores current month’s data and one that stores last month’s data. Every month data from column 2 (this month’s data) needs to be moved to column 1 that holds last month’s data. I then null out column 2 so I can accumulates this month’s data.
I understand how to drop a column or add a column, how do I transfer data from one column to another.
Here is my trial code:
<cfquery name="qQueryChangeColumnName" datasource="#dsn#">
ALTER TABLE leaderboard
UPDATE leaderboard SET points2 = points3
</cfquery>
Unfortunately, I get the following error:
Error Executing Database Query.
[Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft Access Driver] Syntax error in ALTER TABLE statement.
How can I transfer my data with the alter table method?I looked up the Access SQL reference (which is probably a
good place to start when having issues with Access SQL), and
it suggests you probably need a WHERE clause in there.
I agree the documentation is a good place to start. But you should not need a WHERE clause here.
Too few parameters. Expected 1.
If you run the SQL directly in Access, what are the results? At the very least, it should provide a more informative error message.. -
From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?
Hi,
Use NVL or COALESCE:
NVL (col_a, col_b)
Returns col_a if col_a is not NULL; otherwise, it returns col_b.
Col_a and col_b must have similar (if not identical) datatypes; for example, if col_a is a DATE, then col_b can be another DATE or it can be a TIMESTAMP, but it can't be a VARCHAR2.
For more about NVL and COALESCE, see the SQL Language manual: http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions119.htm#sthref1310
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
Explain, using specific examples, how you get those results from that data.
Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
See the forum FAQ: https://forums.oracle.com/message/9362002 -
Copy Open sales oder from one DB to Other DB
Hi Expets,
Can any one help me how to copy Open Sale Order from one data to another Database which exact replica(Both are Same configration)
Kathi.Karthi,
I could give you some guidelines as you only know about the complete business data.
You will need Header and Row level data.
Header Data:
DocNum, CardCode, DocDate, DocDueDate, SlpCode, GroupNum, TrnspCode
Row Data:
ItemCode, Quantity, Price, {any other additional row data....}
Suda -
Transfer of sales orders from one plant to another
Dear all,
My requirement is as follows:
I have created some 500 sales orders (open) in one sales org+plant.
Now due to plant shifting to other area, I want to transfer all the above open sales orders to another sales org+plant.
One option is to create them manually. But that is time consuming and prone to errors.
Second option is to upload thru LSMW. That too is very tedious.
Third option is to extend/assign new plant to the old sales area and change the plant in the orders. But I want in the new sales org + new plant.
Is there any other option by which I can transfer the above sales orders from one plant to another?
Regards
SAPshedHi SAPshed,
The problem is not the change of plant, which is standard functionality, but the change of sales organization.
An awful lot of information depends on the Sales Organization: Company code (!!), customers, materials, prices, profit center, etc.
SAP does not even admit creating a sales order in a Sales Organization A with reference to a sales order with a sales organization B.
IMHO your best option is to try to maintain the current Sales Orders with the current Sales Organization and change the Sales Order in VA02 (your third option).
If you are absolutely sure that all materials and customers are created for the new Sales Area in the same way and that prices (discounts) are the same, you might want to do a direct update to VBAK table to change the Sales Organization (nasty!), but be prepared for the consequences (no SAP support in case of problems, you are on your own).
Therefore if you insist on a different Sales Organization, then option 2) will be your best best.
Best Regards,
Franck
P.S. IMHO it is Best Practice to have a unique Sales Organization / Company Code. -
Transfer sales orders from one compnay code to another
Hi
Is it possible to transfer pending sales order from one company code to another? if yes please let me know complete procedure.
thanks
SanjayHi,
You cannot transfer the sales order like this.If your company is getting closed then you can keep a deadline date before which you can close all the open orders and after that you can start creating the orders in the new company code.
If your delivery date is beyond the deadline date then you can reject the sales orders and create them with new G/L accounts from the new company code.
For this,you have to assign your sales organisation to the new company code.
Reward points if it helps.
Regards
Karan -
Sales orders from one salesorg. to another in same ssystem
Hi Guys,
I got a requirement like we need to convert or recreate sales orders from one sales organization to another sales organization in the same system without having any impact on the existing system.
Any one have idea how to do it and is there any standard program to do this? is there any standard procedure for that>?
Thanks in advance.
Ram sriHi Ramgopal,
I never had this scenario, but the main step would be
Define 2 logical systems: a sender and a receiver
Assign one of them to the client
Set up distribution model
Generate partner profiles
Set up converter (not filter!) /Application Link Enabling (ALE)-> Modelling and Implementing Business Processes-> Converting Data Between Sender and Receiver
Here you can set up conversion rule for your sales org field.
All of this step could be done in transaction SALE.
Regards,
Peter -
Introduction
In SQL Server Reporting Services, we can define a mapping between the fields that are returned in the query to specific delivery options and to report parameters in a data-driven subscription.
For a report with a parameter (such as YEAR) that allow multiple values, when creating a data-driven subscription, how can we pass a record like below to show correct data (data for year 2012, 2013 and 2014).
EmailAddress Parameter
Comment
[email protected] 2012,2013,2014 NULL
In this article, I will demonstrate how to configure a Data Driven Subscription which get multi-value parameters from one column of a database table
Workaround
Generally, if we pass the “Parameter” column to report directly in the step 5 when creating data-driven subscription.
The value “2012,2013,2014” will be regarded as a single value, Reporting Services will use “2012,2013,2014” to filter data. However, there are no any records that YEAR filed equal to “2012,2013,2014”, and we will get an error when the subscription executed
on the log. (C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\LogFiles)
Microsoft.ReportingServices.Diagnostics.Utilities.InvalidReportParameterException: Default value or value provided for the report parameter 'Name' is not a valid value.
This means that there is no such a value on parameter’s available value list, this is an invalid parameter value. If we change the parameter records like below.
EmailAddress Parameter Comment
[email protected] 2012 NULL
[email protected] 2013 NULL
[email protected] 2014 NULL
In this case, Reporting Services will generate 3 reports for one data-driven subscription. Each report for only one year which cannot fit the requirement obviously.
Currently, there is no a solution to solve this issue. The workaround for it is that create two report, one is used for view report for end users, another one is used for create data-driven subscription.
On the report that used create data-driven subscription, uncheck “Allow multiple values” option for the parameter, do not specify and available values and default values for this parameter. Then change the Filter
From
Expression:[ParameterName]
Operator :In
Value :[@ParameterName]
To
Expression:[ParameterName]
Operator :In
Value :Split(Parameters!ParameterName.Value,",")
In this case, we can specify a value like "2012,2013,2014" from database to the data-driven subscription.
Applies to
Microsoft SQL Server 2005
Microsoft SQL Server 2008
Microsoft SQL Server 2008 R2
Microsoft SQL Server 2012
Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.For every Auftrag, there are multiple Position entries.
Rest of the blocks don't seems to have any relation.
So you can check this code to see how internal table lt_str is built whose first 3 fields have data contained in Auftrag, and next 3 fields have Position data. The structure is flat, assuming that every Position record is related to preceding Auftrag.
Try out this snippet.
DATA lt_data TYPE TABLE OF string.
DATA lv_data TYPE string.
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filename = 'C:\temp\test.txt'
CHANGING
data_tab = lt_data
EXCEPTIONS
OTHERS = 19.
CHECK sy-subrc EQ 0.
TYPES:
BEGIN OF ty_str,
a1 TYPE string,
a2 TYPE string,
a3 TYPE string,
p1 TYPE string,
p2 TYPE string,
p3 TYPE string,
END OF ty_str.
DATA: lt_str TYPE TABLE OF ty_str,
ls_str TYPE ty_str,
lv_block TYPE string,
lv_flag TYPE boolean.
LOOP AT lt_data INTO lv_data.
CASE lv_data.
WHEN '[Version]' OR '[StdSatz]' OR '[Arbeitstag]' OR '[Pecunia]'
OR '[Mita]' OR '[Kunde]' OR '[Auftrag]' OR '[Position]'.
lv_block = lv_data.
lv_flag = abap_false.
WHEN OTHERS.
lv_flag = abap_true.
ENDCASE.
CHECK lv_flag EQ abap_true.
CASE lv_block.
WHEN '[Auftrag]'.
SPLIT lv_data AT ';' INTO ls_str-a1 ls_str-a2 ls_str-a3.
WHEN '[Position]'.
SPLIT lv_data AT ';' INTO ls_str-p1 ls_str-p2 ls_str-p3.
APPEND ls_str TO lt_str.
ENDCASE.
ENDLOOP. -
ABAB programm to copy material sales text from one sales org to another?
Hi all,
i'm searching for a ABAP programm to copy a material sales text from one sales org to another.
Has anybody seen something like that before or has anybody an idea how to do this?
Greetings & TIA
strobbel@Narin
I've tried to execute both code now over a new programm in the se38 and i get a error message from the first code (http://www.sap-img.com/abap/bapi-to-copy-materials-from-one-plant-to-another.htm).
It's called:
"BAPI_MARC1" cannot be converted to a character-type field.
Could you help me to solve this?
Sorry but i'm an absolutely newbie in things like ABAP and so on ... -
FB05 - To trnasfer the amounts from one Bank account to another
hi,
My Client is using a Z transaction to transfer the amount from one bank account to another where FB05 is getting triggered.
Because of this a wrong profit center is getting picked up than usual when a specific assignment and text is used. I tried to use the same assignment in development sytem manually but worng profit center didnot get posted as expected. I also checked the 3KEH for the specific GL account but the PC linked there is different from the one which is getting picked up.
Any pointers towards this would be of great help. Thanks a lot in advance.
Regards,
S.Sumanasolved by myself
-
FM to convert amount from one currency to another currency?
HI Experts
is thier any Fucnction module to convert amount from one currency to another currency?
please help me.
ThanksHi,
data: lv_foramt TYPE vbap-netpr VALUE 40,
lv_forcurr TYPE string VALUE 'USD',
lv_loccurr TYPE string VALUE 'INR',
lv_locamt TYPE vbap-netpr.
CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
EXPORTING
CLIENT = SY-MANDT
DATE = sy-datum
FOREIGN_AMOUNT = lv_foramt
FOREIGN_CURRENCY = lv_forcurr
LOCAL_CURRENCY = lv_loccurr
RATE = 0
TYPE_OF_RATE = 'M'
READ_TCURR = 'X'
IMPORTING
* EXCHANGE_RATE =
* FOREIGN_FACTOR =
LOCAL_AMOUNT = lv_locamt
* LOCAL_FACTOR =
* EXCHANGE_RATEX =
* FIXED_RATE =
* DERIVED_RATE_TYPE =
EXCEPTIONS
NO_RATE_FOUND = 1
OVERFLOW = 2
NO_FACTORS_FOUND = 3
NO_SPREAD_FOUND = 4
DERIVED_2_TIMES = 5
OTHERS = 6
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
write:/ lv_locamt.
P.S. Please test your FM in SE37. When I tested, it worked only between USD and INR. -
I have never used PhotoShop and do not have time at the present. Please help me to move a section of text from one column to another in a brochure.
Here are 3 options for future reference:
1. With the setup you've described, apply a Match Move behavior to the text and make the rectangle the source. Change the Transform parameter to Mimic source. This way you can still adjust the text postion as needed, but the rectangle will drive the animation.
2. Use a group to do the animation. Put both your rectangle and text in the same group and animate the group's postion.
3. Use the Link behavior.
Each of these has it's advantages depending on what you need. -
Transfer amounts from one special GL A./ c .to another special Gl A/c.
Hi All,
How to transfer customer amounts from one Special GL a/c. to another Special Gl account.
as per configuration One special GL($) transactions increase the customer special liabilities, another one(#) not increase the Liabilities like security deposit.
I want transfer all customer Special Gl amounts $ to D and clear the # Gl transactions. It is possible to F-32 ?
Please give me a solution.
Regards,
Moon.Hi,
In customer account one line having amount 896- with special Gl $ this line item amount transfer to same customer account as special GL # .
I transfer as per your suggestion , the following entry was created. But both are open items. I want clear the $ againt debit and credit balances and should open special GL # 896- line item.
1 09 03.02.2012 $ GD075256 RAM TRADERS 896.00 INR 896.00 INR 1110000 V0 TRANSFER
2 19 24.02.2012 # GD075256 RAM TRADERS 896.00- INR 896.00- INR TRANSFER
regards,
Moon -
How do I switch from one column to the next, skip around? Tab key doesn't seem to do itl. I can't find any "help" in "help". Help. Please. Thank you.
Hi Karen,
It is simple.
Columns fill with text as the text becomes enough to spill over from the previous column. Below is an example. I have used a huge (6" botom margin setting to shorten the page to a reasonable length for a screen shot, and turned on Show layout and Show invisibles so the column boundaries and invisible characters can be seen. Here there's no text in column 3 as there is only enough text to fill column 1 and part of column 2.
As more text is added, it eventually fills column 2 and flows into column 3:
You can force the text into the next column by inserting a column break. Here, a column break has repalced the paragraph break in column 2 (after 'fascilisi."):
Regards,
Barry
Maybe you are looking for
-
Using ipod w/ mac on windows
okay, my friend wants to hook his ipod up to my computer, and share some of my songs, but the problem is that he usually uses a mac with his ipod and i have windows on my computer.. if he wants to hook his ipod up to my computer will i have to reform
-
Hi all, just found that MSI had released a new Bios 1.8 for 645 Ultra. Before I flashed i thought that they didn't solve the IOQD-Issue (low RAM-Bandwith). But SURPRISE: this new one seems good for me!!! Whats your expierience ??? ockk
-
Howto Display Worksheet in IE browser other than thru Portlet/Viewer
Howto Display Worksheet in IE browser other than thru Portlet/Viewer. We wish to develop some worksheets and display them as BI Dashboards links on our Intranet Home page. Is it possible to host it on Oracle10gAS HTTP server as jsp pages?
-
Favourites bar missing in Safari on iPad
I appear to have lost the favourites bar in Safari on my iPad (3rd Gen) IOS 8.3 All settings have been switched off and on again in the settings menu nothing has returned If I select Bookmarks I can see all my bookmarks however, all my favourites app
-
There is a pop up box, it says,"Exc in ev handl: TypeError: this.oRoot.enable is not a function" It pops up before Firefox will load, what is it?