Read two different arrays and display
I have a text file, which has 1000 of entries in the way mentioned below:
Kozos customer
sabze employee
I am reading the content of text file and saving as an arrays.
$global:Content = get-content info.txt
$global:Name=$Content | foreach {
$hashTab=@{Name="" ; Info=""}
$hashTab.Name, $hashTab.Info=$_.Trim() -split '\s+'
New-Object PSObject -Property $hashTab
$global:Names=$ServerList | select -ExpandProperty Name
$global:Infos=$ServerList | select -ExpandProperty Info
How do I read two arrays, I mean read the values of two arrays one by one and display the result as:
Names Infos
Kozos Customer
sabze employee
We get that you are unable to do this, but it is still not clear precisely what it is that you want, a two-dimensional array, or a structure such as SeanQuinlan suggested? Also:
there seems no reason for any of the variables to be global in scope.
Where is the $serverlist variable defined?
what relationship is there between the file you mention and the data in the $serverlist variable?
Your code has three arrays, $name, $names, and $infos; which two of these do you want to combine into a single array? If $names and $infos, would this work for you:
$namesNinfos = $serverlist | select name,info
I suggest that you describe your situation without trying to state it in powershell (as that is partly where your problem lies). You could, for example, show sample content of the file and each of the two arrays, and show what this would look like in your
desired two-dimensional array, perhaps like this:
file info.txt
Kozos customer
sabze employee
array 1:
Kozos
sabze
array 2:
customer
employee
resultant 2D array
column 1 2
row
1 Kozos customer
2 sabze employee
As an aside, it could be that we are getting confused by the term "array". languages such as fortran and basic support multidimensional arrays in which each element is addressed by a set of integer indices, the most common form being row and column, as in
a spreadsheet.
In Powershell, arrays are generally one dimensional, with a single numerical index being used to select a single element ($row3 = $array[2]). That element can optionally have multiple values if it is defined as an array or a hash. This is referred to as
a "jagged array" as each element of the array may not all have the same number of sub-elements as each other.
Powershell also supports true multidimensional arrays, however, these seem fairly rarely used, I suspect because jagged arrays generally provide more easily used functionality.
You can get more details on this from
here and
here.
This, then, leads to my final question:
what type of two-dimensional array are you looking for, and how will your script be processing it?
Al Dunbar -- remember to 'mark or propose as answer' or 'vote as helpful' as appropriate.
Similar Messages
-
Subtract sum of two columns in two different tables and display balance for each row
Hello Friends,
I have the below 5 tables
1. STUDENT (STUDENT_ID, NAME)
2. DEPARTMENT (DEPT_ID, NAME, CONTACT_PERSON, PHONE)
3. SECTION (SECTION_ID,SNAME,DEPT_ID,Acad_LEVEL,SHIFT,TIME,ROOM)
4. TUITION_BILL (Seq_No, STUDENT_ID, DEPT_ID, Acad_Level, SECTION_ID, SEMESTER, Acad_Year, BILL_DATE, GROSS_AMT_DUE)
5. TUITION_PAYMENT (Seq_No,RECEIPT_NO,STUDENT_ID,DEPT_ID,Acad_Level,SECTION_ID,SEMESTER,Acad_Year,SCHOLARSHIP,PAYMENT_DATE,PAYMENT_AMT,REFERENCE,REMARKS)
I wrote the following query
SELECT T.Seq_No,T.STUDENT_ID,S.NAME As STUDENT_NAME,d.name As DEPT,T.Acad_Level,c.SNAME As SECTION,
T.SEMESTER,T.[Acad_Year],BILL_DATE,GROSS_AMT_DUE,
COALESCE(SUM(T.GROSS_AMT_DUE),0)-COALESCE(SUM(PAY.PAYMENT_AMT),0)- COALESCE(SUM(PAY.SCHOLARSHIP),0) As BALANCE
FROM TUITION_BILL T JOIN STUDENT S ON S.STUDENT_ID=T.STUDENT_ID join DEPARTMENT d on d.DEPT_ID=T.DEPT_ID
join SECTION c on c.SECTION_ID=T.SECTION_ID LEFT JOIN (SELECT DISTINCT STUDENT_ID,COALESCE(SUM(p.PAYMENT_AMT),0) As PAYMENT_AMT,
COALESCE(SUM(P.SCHOLARSHIP),0) As SCHOLARSHIP FROM TUITION_PAYMENT p GROUP BY p.STUDENT_ID) As PAY ON PAY.STUDENT_ID=T.STUDENT_ID
WHERE s.STUDENT_ID='138218' GROUP BY T.Seq_No,T.STUDENT_ID,S.NAME,d.NAME,T.[Acad_Level],c.SNAME,T.SEMESTER,
T.[Acad_Year],BILL_DATE,GROSS_AMT_DUE,PAYMENT_AMT,SCHOLARSHIP
The above query shows the below output
Seq_No
STUDENT_ID
STUDENT_NAME
DEPT
Acad_Level
SECTION
SEMESTER
Acad_Year
BILL_DATE
GROSS_AMT_DUE
BALANCE
1
138218
Abdirahman Dhuh Gamadid
Agriculture and Veterinary
Year 2
2A
One
2014-2015
1/10/2014
200
0
5638
138218
Abdirahman Dhuh Gamadid
Agriculture and Veterinary
Year 2
2A
Two
2014-2015
3/20/2015
200
0
There are two records in the TUITION_BILL table with different Semesters and bill dates for the specified student_id and there is only one record in the TUITION_PAYMENT table which is the semester one payment record. Semester two payment record
is not recorded yet and I want to display the balance like the following output instead of the above output.
Seq_No
STUDENT_ID
STUDENT_NAME
DEPT
Acad_Level
SECTION
SEMESTER
Acad_Year
BILL_DATE
GROSS_AMT_DUE
BALANCE
1
138218
Abdirahman Dhuh Gamadid
Agriculture and Veterinary
Year 2
2A
One
2014-2015
1/10/2014
200
0
5638
138218
Abdirahman Dhuh Gamadid
Agriculture and Veterinary
Year 2
2A
Two
2014-2015
3/20/2015
200
200
The above query is working fine but I'm facing only one problem with it which its showing 0 balance for both records instead of different balances like the above desired output.
Please help me in getting the desired result.
Any help would be appreciated.
Thanks in advance,
MohamoudThanks a lot Pituach for your reply; below I posted the script for the database and table creation and inserting sample data into the tables.
CREATE
DATABASE TESTdb
GO
USE TESTdb
CREATE
TABLE [dbo].[STUDENT](
[STUDENT_ID] [int]
NOT NULL,
[NAME] [varchar](40)
NULL,
PRIMARY
KEY CLUSTERED
[STUDENT_ID]
ASC
)WITH
(PAD_INDEX
= OFF,
STATISTICS_NORECOMPUTE
= OFF,
IGNORE_DUP_KEY =
OFF, ALLOW_ROW_LOCKS
= ON,
ALLOW_PAGE_LOCKS =
ON)
ON [PRIMARY]
ON [PRIMARY]
GO
SET
ANSI_PADDING OFF
GO
CREATE
TABLE [dbo].[DEPARTMENT](
[DEPT_ID] [int]
IDENTITY(1,1)
NOT NULL,
[NAME] [varchar](30)
NULL,
[CONTACT_PERSON] [varchar](40)
NULL,
[PHONE] [int]
NULL,
CONSTRAINT [PK__DEPARTME__512A59AC03317E3D]
PRIMARY KEY
CLUSTERED
[DEPT_ID]
ASC
)WITH
(PAD_INDEX
= OFF,
STATISTICS_NORECOMPUTE
= OFF,
IGNORE_DUP_KEY =
OFF, ALLOW_ROW_LOCKS
= ON,
ALLOW_PAGE_LOCKS =
ON)
ON [PRIMARY]
ON [PRIMARY]
GO
SET
ANSI_PADDING OFF
GO
CREATE
TABLE [dbo].[SECTION](
[SECTION_ID] [int]
IDENTITY(1,1)
NOT NULL,
[SNAME] [varchar](40)
NOT NULL,
[DEPT_ID] [int]
NOT NULL,
[Acad_Level] [varchar](30)
NULL,
[SHIFT] [varchar](20)
NULL,
[TIME] [varchar](20)
NULL,
[ROOM] [varchar](20)
NULL,
CONSTRAINT [PK__SECTION__92F8069507020F21]
PRIMARY KEY
CLUSTERED
[SECTION_ID]
ASC,
[DEPT_ID]
ASC
)WITH
(PAD_INDEX
= OFF,
STATISTICS_NORECOMPUTE
= OFF,
IGNORE_DUP_KEY =
OFF, ALLOW_ROW_LOCKS
= ON,
ALLOW_PAGE_LOCKS =
ON)
ON [PRIMARY]
ON [PRIMARY]
GO
SET
ANSI_PADDING OFF
GO
CREATE
TABLE [dbo].[TUITION_BILL](
[Seq_No] [int]
IDENTITY(1,1)
NOT NULL,
[STUDENT_ID] [int]
NOT NULL,
[DEPT_ID] [int]
NOT NULL,
[Acad_Level] [varchar](50)
NOT NULL,
[SECTION_ID] [int]
NOT NULL,
[SEMESTER] [varchar](50)
NOT NULL,
[Acad_Year] [varchar](50)
NOT NULL,
[BILL_DATE] [date]
NULL,
[GROSS_AMT_DUE] [decimal](18, 2)
NULL,
CONSTRAINT [PK_TUITION_BILL]
PRIMARY KEY
CLUSTERED
[STUDENT_ID]
ASC,
[DEPT_ID]
ASC,
[Acad_Level]
ASC,
[SEMESTER]
ASC,
[Acad_Year]
ASC
)WITH
(PAD_INDEX
= OFF,
STATISTICS_NORECOMPUTE
= OFF,
IGNORE_DUP_KEY =
OFF, ALLOW_ROW_LOCKS
= ON,
ALLOW_PAGE_LOCKS =
ON)
ON [PRIMARY]
ON [PRIMARY]
GO
SET
ANSI_PADDING OFF
GO
CREATE
TABLE [dbo].[TUITION_PAYMENT](
[Seq_No] [int]
IDENTITY(1,1)
NOT NULL,
[RECEIPT_NO] [int]
NOT NULL,
[STUDENT_ID] [int]
NOT NULL,
[DEPT_ID] [int]
NOT NULL,
[Acad_Level] [varchar](50)
NOT NULL,
[SECTION_ID] [int]
NOT NULL,
[SEMESTER] [varchar](50)
NOT NULL,
[Acad_Year] [varchar](50)
NOT NULL,
[SCHOLARSHIP] [decimal](18, 2)
NULL,
[PAYMENT_DATE] [date]
NULL,
[PAYMENT_AMT] [decimal](18, 2)
NULL,
[REFERENCE] [varchar](50)
NULL,
[REMARKS] [varchar](max)
NULL,
CONSTRAINT [PK_TUITION_PAYMENT]
PRIMARY KEY
CLUSTERED
[Seq_No]
ASC
)WITH
(PAD_INDEX
= OFF,
STATISTICS_NORECOMPUTE
= OFF,
IGNORE_DUP_KEY =
OFF, ALLOW_ROW_LOCKS
= ON,
ALLOW_PAGE_LOCKS =
ON)
ON [PRIMARY]
ON [PRIMARY]
GO
SET
ANSI_PADDING OFF
GO
USE TESTdb
INSERT
INTO STUDENT(STUDENT_ID,NAME)VALUES(138218,'Abdirahman
Dhuh Gamadid')
INSERT
INTO DEPARTMENT(NAME,CONTACT_PERSON,PHONE)VALUES('Agriculture
and Veterinary','Mohamoud Abdilahi','065')
INSERT
INTO SECTION(SNAME,DEPT_ID,Acad_Level,SHIFT,[TIME],ROOM)VALUES('2A',1,'Year
2','Morning','8:00-10:00','Room 1')
INSERT
INTO TUITION_BILL(STUDENT_ID,DEPT_ID,Acad_Level,SECTION_ID,SEMESTER,Acad_Year,BILL_DATE,GROSS_AMT_DUE)
VALUES(138218,1,'Year
2',1,'One','2014-2015','2014-09-10',200.00)
INSERT
INTO TUITION_BILL(STUDENT_ID,DEPT_ID,Acad_Level,SECTION_ID,SEMESTER,Acad_Year,BILL_DATE,GROSS_AMT_DUE)
VALUES(138218,1,'Year
2',1,'Two','2014-2015','2015-01-10',200.00)
INSERT
INTO TUITION_PAYMENT(RECEIPT_NO,STUDENT_ID,DEPT_ID,Acad_Level,SECTION_ID,SEMESTER,Acad_Year,SCHOLARSHIP,
PAYMENT_DATE,PAYMENT_AMT,REFERENCE,REMARKS)VALUES(1,138218,1,'Year
2',1,'One','2014-2015',0.00,'2014-10-10',200.00,'N','N') -
Setting up an array and displaying results
I’d like to display query results in a table like this:
KSAStatement\JobType JobType1 JobType2 JobType3 JobType4
KSAStatement1 PRRating11 PRRating12 PRRating13 PRRating14
KSAStatement2 PRRating21 PRRating22 PRRating23 PRRating24
KSAStatement3 PRRating31 PRRating32 PRRating33 PRRating34
etc
The JobTypes are associated with a list of KSAStatements. For
each JobType/KSAStatement pair, there is a number rating that needs
to be displayed.
My database query is pasted in the code section below.
Someone suggested that I need an array that looks like this:
skills[GetSkills.JobType[CurrentRow]][GetSkills.KSAStatement[CurrentRow]]=Get.Skills.PRRat ing
How do I set this up in ColdFusion?
Do I need to set some intermediate variables?
For example:
thisJobType=GetSkills.JobType[CurrentRow]
thisKSAStatement=GetSkills.KSAStatement[CurrentRow]
Then set the array value
skills[thisJobType][ thisKSAStatement]=GetSkills.PRRating
Or do I build up my 2D array in two steps using two initial
queries?
For example…
An inner array:
Skill[0]=Persuasion
Skill[1]=Writing
And an outer array:
JobType[0]=SalesAssistant
JobType[1]=VPofSales
And then use the query below to build up
Rating.Job[1].Skill[1]=5 (which means that VPofSales has a Writing
rating of 5)
I could especially use some help with cfloops.
Thank you for any suggestions!You can make a rectangular two-dimensional array, and leave some spots empty. Or, you can make a ragged array (not every row the same size). Google "ragged array java" for details.
-
How to enter two different arrays into two columns of a multi column listbox
Hi All,
I have two different arrays of values suppose 1 array A(1,2,3,4,5) and another array B(3,4,5,6,7). I want to write these to arrays into a multicolumn listbox such that 1st column would be array A and 2nd column would be array B.
Thnx in advance
Solved!
Go to Solution.I still couldnt understand how to do it...
I am posting here my VI. here the 1, 2, 3, 4 are some controls. If i enter any value, the calculated Voltage and current are continously pushed in the array. Now i have display these arrays in the multi column listbox as 1st column be the voltage and second column being the current.
Attachments:
manual_graph.vi 643 KB -
Sync two iPhones with two different iTunes and iPhoto libraries script
I'm sure this is answered elsewhere, but I was not able to find a solution to this easily. My wife "L" and I, "J" have iPhones, also different tastes in music, and wanted a way to not have all of our own pictures filling up our default iPhoto library. So we first set up two different iTunes and iPhoto libraries. Two diffrent contact libraries would be nice, but contact groups worked okay for this. But then everytime we would sync, it meant opening both iTunes and iPhoto while holding the option key then selecting which library depending on which phone was going to be pluged in. Believe me, you only need to have "Automatically sync" turned on and plug in the wrong iPhone before all sorts of problems arise!
Let me state, I am not fluent with AppleScript, but rather I found bits and pieces close to what I wanted here and there on the www and kept playing until it worked. This works flawlessly everytime on our MacBook, and, unless your initials are J & L and there are only two of you, you will have to change some letters here and there throughout the script to make it work for your situation. Think of this as a rough draft and start to play. I'm sure there is a simpler way to write this script, so to all the real authors, please re-write!
So we have two libraries for iTunes and iPhoto. One set of libraries named J's iTunes library and J's iPhoto library, and another two named L's iTunes library and L's iPhoto library. I wanted to create one app that would close the current libraries, and open the correct ones (or return to our default libraries) depending on what iPhone was to be synced. Using AppleScript Editor and saving the script as an application, this is what I came up with:
display dialog "Do you want to continue to set iTunes and iPhoto libraries?" buttons {"Cancel", "Continue"} default button "Continue"
tell application "iPhoto" to quit
tell application "iTunes" to quit
set Y to the button returned of (display dialog "Which libraries do you want to use?" buttons {"L's", "Reset to Defaults", "J's"} default button "Reset to Defaults")
if Y = "Reset to Defaults" then set Y to "i"
if Y = "L's" then set Y to "l"
if Y = "J's" then set Y to "j"
tell application "System Events"
key down option
delay 1
tell application "iPhoto"
activate
delay 3
tell application "System Events"
key up option
end tell
end tell
end tell
tell application "System Events"
keystroke Y
tell application "System Events"
key code 36
end tell
end tell
delay 2
tell application "System Events"
key down option
tell application "iTunes"
activate
tell application "System Events"
key up option
keystroke return
end tell
end tell
end tell
tell application "System Events"
keystroke Y
end tell
tell application "System Events"
key code 36
end tell
if Y = "i" then tell application "iTunes" to quit
if Y = "i" then tell application "iPhoto" to quitHi, thanks for your answer.
Unfortunately this does not work because iTunes still keeps one account with the store active regardless which library I open. So when I switch the account in the store it will be switched for both libraries. That means that I can not separate the iPhone applications and all the other specific sync parameters.
I thought about using my wife's account on the Mac and pointing iTunes to the new library - the problem here is that then the iPhoto library is not accessible any more......
I can't really believe that there is no solution from Apple - I mean there must be more couples and families out there with 2 and more iPhones syncing with one iTunes / iPhoto etc libraries.
Any other ideas? Thanks in advance! -
I am unable to update my apps... in my purchases page it appears as "update", then a message tells me to log on with the Apple ID I purchased the app with... Well I have tried my two different accounts and neither one will work, can someone help ??
And is there any way to sync all my purchases and accounts to just have one... It is a bit stupid that you dont even get a list of something of what account you may of used, or some kind of hint, so you could log on to the right account. I am really stuck ...
Please Advise......You can't merge accounts. But you can check your purchase history:
iTunes Store & Mac App Store: Seeing your purchase history and order numbers
http://support.apple.com/kb/HT2727
Also, what may seem stupid to you... may be a protection of privacy to others. -
I have an iMac, and iPhone. I've had my Apple ID for a few years.
My wife got an iPhone 4S a few months back and the salesperson at Verizon set her Apple ID the same as mine, but gave her a different password. I don't know if this was ok, but that is what happened.
So, yesterday, we both upgraded to IOS6 and I had no problem logging in to my iPhone with my Apple ID. When my wife went to log in, she was told that she was entering the wrong password. We entered the password over and over again and still was wrong.
The question is... can two people share the same Apple ID on two different iPhones and maintain different passwords? (I have the feeling her iPhone is thinking that since it's my Apple ID, it wants my password.)
If not, can I still set up a new Apple ID for her even through she's had the iPhone for a few months?
Thanks.Hi
You shold follow your feelings, its probably right most of the time.
You can have 5 different devices hucked upp to one Apple ID. What I have done is that my wife and I have one Apple ID, when I bye a new app on my phone, She gets it to. Thats nice.
You can allways set upp a new Apple ID for your wife. -
I have two ipods in my house that were set up under the same email. I have since assigned two different emails. How can I change the game center account so that is not shared by both ipods because it is for two different users and they are not happy?
By "game center account", do you mean Apple ID?
If so, you can change it.
1. Tap settings and navigate to iTunes and App Stores
2. Tap "Apple ID" and then tap "Sign Out"
3. Log in with a different ID. -
Retrieve data from 2 columns of 2 different tables and display in 1 column
Hi,
Is it possible to retrieve data from 2 different columns of 2 different tables and display it in the same column of a datablock in a form.
For example:
Table A
Col1
1
2
3
Table B
Col1
2
4
5
The column from the datablock in the form should display the following:
1
2
3
2
4
5You can create a view
select ... from table_a
union
select ... from table_b
and base the block on that.
However, if you want to allow DML on the block it gets more complicated. -
I am having problems installing new software for my ipod
I keep getting a message that the network has timed out.
I have tried two different computers and networks what else can I do?Try temporarily disabling your firewall and anti virus software and try again...
See here for Connection Issues
http://support.apple.com/kb/TS1379
From Here
http://www.apple.com/support/itunes/troubleshooting/ -
i plug in my phone to the charger and i tried with two different cables, and it seems like it is not making connection to the clable. but it is not charging. what are some possible ways o fix that?
When you plug in your charger and attach it to the MBP, initially the light will turn green. If the MBP needs charging, a few seconds later the light will turn amber. That is normal. If your symptoms are different, then they may or may not be a problem.
Ciao. -
I have a iPad and iPhone with the same Apple ID, but on Game Center I have used the same id for both devices and they are two different profiles and I was wondering how to have one of the accounts on both devices.
Hi Jamesdwills,
Welcome to the Support Communities!
If you are using the same Apple ID on both devices, the Game Center profile should be the same.
Check out this information from the iPad User Guide. Try signing out of the Game Center on both devices and then sign back in with the correct Apple ID:
Using Game Center
http://support.apple.com/kb/ht4314
Game Center settings - iPad User Guide
http://help.apple.com/ipad/7/#/iPad9a13d039
Game Center settings
Go to Settings > Game Center, where you can:
Sign out (tap your Apple ID)
Allow invites
Let nearby players find you
Edit your Game Center profile (tap your nickname)
Get friend recommendations from Contacts or Facebook
Specify which notifications you want for Game Center. Go to Settings > Notifications > Game Center. If Game Center doesn’t appear, turn on Notifications.
Change restrictions for Game Center. Go to Settings > General > Restrictions.
Cheers,
- Judy -
Is it possible to sync two different iphones and an ipad on only one computer?
Is it possible to sync two different iphones and an ipad on only one computer??
My husband has an iphone 4 & ipad. I have an iphone 4S. We both use the same itunes account. We are having trouble w/ all of our contacts/calendars & info getting all mixed up. We want to both use the same itunes account & apple id so that we dont have to separatley repurchase everything. Can anyone help us w/ this issue? Are we obligated to buy another computer so that we each have one--or is there some way around it? Thanks!!http://support.apple.com/kb/HT1495
-
Hi, when I upload music into itunes from a cd it sometimes appears in itunes as two different albums and split up the music in 2 or even three albums....how can i merge these albums...this is particularly true when one album may have different composers?
Generally setting a common Album title and Album Artist will fix things.
For compilations that aren't, select all tracks, Get Info, and on the option tab set Part of a Compilation to No. If it already says No tick the box alongside, then click OK.
For deeper problems see Grouping tracks into albums.
tt2 -
Can a servlet read a jsp file and display its contents?
Hi,
I would like to know if Servlets can read a Jsp file and display its contents.. Right now for our website, I am using a html file to be displayed after a successful post operation through the Servlets...
-Thanks!I posted this in another thread.
Here's some code that reads using a URL. This doesn't work with JSPs as the server executes JSP when it connects but it's useful for other file types. Note that the filename is a URI</h1>This is <code>show.jsp</code></h1>
<hr>
<%! String file = null; %>
<%! java.io.InputStream is = null; %>
<%
file = request.getParameterValues("filename")[0];
try {
is = (new java.net.URL(file)).openStream();
} catch (java.io.IOException ioe) { out.write(file + " not found!<br>"); }
java.io.BufferedReader in = new java.io.BufferedReader(new java.io.InputStreamReader(is));
String line = "";
%>
<pre>
<%
while((line = in.readLine()) != null) {
%>
<%=line%>
<%
%>
</pre>
Maybe you are looking for
-
I'm trying to sync my iCal on my iPhone 4s to my MacBook Pro.
I have an MacBook Pro that I got in 2009 and an iPhone 4s I got like 2 months ago. I'm trying to sync my calender events that I have on my phone to my iCal on my Mac. I have everything switched to "on" for syncing on my iPhone, but when I try check t
-
Merge Time Machine Backups...?
I wasn't happy with Yosemite on my early 2011 13" MBP, so I clean installed SnowLeo (10.6.6) with the installer disc. Then I used Migration Assistant to restore my files and my account. Now I want to continue making backups but TM says that it will c
-
Leica Noctilux-M 1:1/50 and LR 4.3
I cannot find my lens Leica Noctilux-M 1:1/50 in the list regarding lens correction in LR 4.3. LR suggests the 0.95 version of the lens. Will that do or is it possible to add my lens to the list?
-
Upload local TRU file with GUI_UPLOAD in ECC6
Hi all, i need to upload a file with no "CR/LF" characters in a migration project from 46C to ECC6 system in 46C, the FM WS_UPLOAD is working well : CALL FUNCTION 'WS_UPLOAD' EXPORTING CODEPAGE = ' ' filename
-
Virtual key figure BADI - does not change value
I wrote a badi for virtual key figure according to guidelines from an SDN doc on how to create virtual chars and kf's. However, the value of the key figure is not changed at all. Below is my code. Please see what I'm doing wrong method IF_EX_RSR_OLAP