BDC uploading on the basis on first row
hi experts,
my requirement is, i have a flat file in excel with csv format, and i have the details of bank details with company name and debit account number and etc., in the first row,
and from second row all the transactions done in that debit account had followed.
my requirement is debit account is having hyphens in the number like,
011-222545-434, i need to remove those hyphens and need to move to single string.
like 011-222545-434 = 011222545435
and then based on this, we need to check it out whether this number is available in the database of SAP, if it matches then,
we need upload all the transactions under this account had to upload into database from the second row.
so please help me out, how to remove hyphens and how to move to one string and how to validate with the sap system??
and after this how to upload the data into database from the second row on the basis of first row details??
it is very urgent, please help me out
murali.
Hi Check out this logic. It will work for ur requirement.
DATA: w_data(20) TYPE c VALUE '011-222545-434'.
WRITE:/1 'Before replacing', w_data.
REPLACE ALL OCCURRENCES OF '-' IN w_data WITH space.
CONDENSE w_data.
WRITE:/1 'After replacing', w_data.
If ur variable which hold this number is not character type then pass that value to character variable like above and then use REPLACE statement.
Thanks,
Vinod.
Similar Messages
-
How to populate second combo box on the basis of first combo
Hi All,
Please help me on populating the second combo on the basis of the selected value from first combo.
The values will come from database.
I am using struts and jsp in JBOSS
Regards,
DineshHere's a snippet from one of my jsp's:
TestDel del = new TestDel();
String groups = del.getTestGroupsAsHTMLSelect(
model.getSponsorId(),
"groupCode", //field name
null != values ? (String)values.get("groupCode") : "", // selected
"findTestTypes"); // on change
String tests = del.getTestsAsHTMLSelect(
null != values ? (String)values.get("groupCode") : "",
"test_code",
null != values ? (String)values.get("test_code") :"",
"findSchoolType");It basically returns a select box with the on change attribute set to do what your other reply was talking about. Using AJAX to retrieve the data and then pop it into the page...
I did find that that with mozilla there was some refreshing issue so here's some javascript help:
function findTestTypes(grp){
var url = "/tests/lookup?cmd=test&gc="+grp.value;
if (window.XMLHttpRequest) {
req = new XMLHttpRequest();
} else if (window.ActiveXObject) {
req = new ActiveXObject("Microsoft.XMLHTTP");
req.open("GET", url, true);
req.onreadystatechange = showTestTypes;
req.send(null);
function showTestTypes(){
if (req.readyState == 4 && req.status == 200) {
var html = req.responseText;
var tt = getItem("tests");
tt.innerHTML = html;
fireChangeEvent("test_code");
// for mozilla
function fireChangeEvent(fieldName){
if (window.ActiveXObject) {
getItem(fieldName).fireEvent('onchange');
}else{
// target is some DOM node on which you wish to fire an event.
var target = getItem(fieldName);
var oEvent = document.createEvent( "Events" );
oEvent.initEvent(
"change", // the type of mouse event
true, // do you want the event to
// bubble up through the tree? (sure)
true, // can the default action for this
// event, on this element, be cancelled? (yep)
window, // the 'AbstractView' for this event,
// which I took to mean the thing sourcing
// the mouse input. Either way, this is
// the only value I passed that would work
1, // details -- for 'click' type events, this
// contains the number of clicks. (single click here)
1, // screenXArg - I just stuck 1 in cos I
// really didn't care
1, // screenYArg - ditto
1, // clientXArg - ditto
1, // clientYArg - ditto
false, // is ctrl key depressed?
false, // is alt key depressed?
false, // is shift key depressed?
false, // is meta key depressed?
0, // which button is involved?
// I believe that 0 = left, 1 = right,
// 2 = middle
target // the originator of the event
// if you wanted to simulate a child
// element firing the event you'd put
// its handle here, and call this method
// on the parent catcher. In this case,
// they are one and the same.
target.dispatchEvent( oEvent );
} -
ClassFileTransformer and how to transform the base class first
Hello,
I've written a ClassFileTransformer that uses ASM to enhance classes at load time.
But some of the enhancements depends on possible enhancements to the super class.
Example: under some coditions a method doWork() is inserted. This method did not exist in any class (doWork is just an example, I use a name that is not accepted by the compiler but allowed by the JLS).
public class A {}
public class B extends A {}If the method doWork() was inserted into class A, then the doWork() of B has to call doWork() of class A:
super.doWork().Currently I try to load the base class by using
loader.loadClass(superName.replace('/', '.'));this loads the super class but without passing my transformer !
How can I solve this ?Looking at the comments in ClassFileTransformer.java and the code in ClassLoader, it seems the transformers are called only for class files that get a ClassFormatError. Transformers are intended to fix old broken/incompatible class files on the fly.
I guess the intended way to do what you are doing is to define a custom class loader. Read class into byte[], transform, call defineClass() on the transformed byte[]. Google for java custom class loader for examples. -
Populating second select box on the basis of first.
Hello
I want to populate second select box based upon the value selected in first select box from database.The second select box should be in disabled state first and should be enabled only if i select from first selct box. I want to make it by using simple JSp not ajax.Hello
I want to populate second select box based upon the value selected in first select box from database.The second select box should be in disabled state first and should be enabled only if i select from first selct box. I want to make it by using simple JSp not ajax. -
Alv oops (editable cells on the basis of selected rows)
Hi Gurus,
I am creating alv grid by using OOPS. It has multiple rows and five columns. Once it gets populated, I need to select more than one row. After selecting the rows, my requirement is to enable column two only for the selected rows for editing. I have tried all the possible demo programs but they are not fulfilling my requirement.
Sometimes It gives runtime error - Error inserting into a table with unique key and sometimes something else.
Please help asap. It's really urgent.
Thanks in advance.
RituHi,
Refer the sample code
https://forums.sdn.sap.com/click.jspa?searchID=12153389&messageID=1593610
Regards
Kiran Sure -
Interactive Report - How to display Aggregate values in first row
Hi,
I have an interactive report in which I have included aggregate for count.
But the count doesn't show until I navigate to the last page of the report.
Any idea how to display all the aggregate values on the top(in first row), so that the user doesn't have to click next to see these values.
Also when I downloaded the report the aggregate columns are not exported into csv. Any thoughts on this highly appreciated.
Thanks,
Raj.Any help on this guys ?
-
hello,
in web interface I would maintain the heading line (first row) always fixed . What is the code JavaScript to insert?
thanks
DGWhat you want is something like the freeze frame solution in Excel ..
tough boss - I have not seen it in any web template so far - would liek to know if it is possible - will be very helpful. But if it can be done through standard HTML I can definitely tell you how to do it.
One work around would be to add a frame separately - something like a sinngle column with only the first column and then another table with everything else. Set the navigation block for the second table and include the dataprovider for the first column in the affacted dataproviders list for the navigation block - you can have the same thing. But I have seen something like this inJava Applet where you can have a floating column and the rest scrolls - but no idea how to do it in BW Web Templates. Or define your table structure in BW and try the above solution of two data providers.
Arun
P.S Just thought off my hat so the unstructured response. -
Disable First Row in property loader
Hi,
TestStand 2.0.1f1
I am trying to use the property loader with the option 'First Row of Data Specifies Step Property for Each Column' unchecked.
I have followed the example text as outline in the User manual Ch8 page69.
But it seems that the step name is always being checked. I have tried a number of varations but I can not get the property loader to ignore the Step Name.
I have attached an example with a limit file. Any clues anyone.
Regards
Ray Farmer
Regards
Ray Farmer
Attachments:
Disable_the_First_Row.seq 26 KB
Disable_first_row.txt 1 KBRay,
Using the Property Loader and Import/Export Properties Tool, you have to specify the Step Name. There is no way to ignore the Step Name.
After reading over the help, I think the confusion may be over what the "First Row of Data Specifies Step Property for Each Column" option means. If you do not check that option (it is selected by default), then you can specify the order of the properties and data values that you will read in from the file. This may be of help because the Import/Export Properties tool does not allow you to modify the order of the properties that are exported.
For example, if you use the Import/Export Properties tool to export Step.Limits.Comp, Step.Limits.High, and Step.Limits.Low properties to a text file, they will always be written to the file in that exact order (Step.Limits.Comp, Step.Limits.High, and Step.Limits.Low).
Now if you use the Property Loader to read in that file that you just created, it will automatically map those properties to Step.Limits.Comp, Step.Limits.High, and Step.Limits.Low for a specific step name. If you need to switch the values received in the Property Loader step, you can deselect the checkbox for "First Row of Data Specifies Step Property for Each Column" and instead specify which properties should be associated with those columns from the file. For example, you could deselect the checkbox and then type in the text box:
Comp, Limits.Low, Limits.High
This would switch the Low and High data values, ignoring the column titles as written from the Import/Export Properties Tool. If you wanted to, you could even delete or modify the column titles in whatever manner you want to.
Keep in mind that you still need to have an entry in your properties file for each step name in the sequence that has dynamically loaded values. TestStand will not load properties and apply them to generic steps; the step name is the key for the Property Loader tool.
I hope this answers your question. If you need further clarification or if I missed a point, just let us know!
Regards,
Shannon R.
Applications Engineer
National Instruments -
Second row data - First row data of other column?
Hi All,
I have a requirement to show the second row data of the column1 as first row in column2. Please see the example below, where month is filtered <= 05.
Month Sales Sales_New
01 500 600
02 600 700
03 700 800
04 800 900
05 900 NULLIn the above example for month 05, column Sales_New should show NULL because it is the last row of the query.
Thanks in advance.Something gone wrong with your config....!!
How about
"In Criteria tab use Month descending order and in Pivot table use ascending order"
This is mandatory to achieve this..
FYI: I've tested this in my local.
If you need will send screenshot
I appreciate if you mark as correct ;) else let me know -
The attached file is work inprogress, with some dummy data sp that I can test it out without having to connect to equipment.
The second tab is the one that I am having the problem with. the output array from the replace element appears to be starting at the index position of 1 rather than 0 but that is ok it is still show that the new data is placed in incrementing element locations. However the main array that I am trying to build that is suppose to take each new calculation and place it in the next index(row) does not ap
pear to be working or at least I am not getting any indication on the inidcator.
Basically what I am attempting to do is is gather some pulses from adevice for a minute, place the results for a calculation, so that it displays then do the same again the next minute, but put these result in the next row and so on until the specifiied time has expired and the loop exits. I need to have all results displayed and keep building the array(display until, the end of the test)Eventually I will have to include a min max section that displays the min and max values calculated, but that should be easy with the min max function.Actually I thought this should have been easy but, I gues I can not see the forest through the trees. Can any one help to slear this up for me.
Attachments:
regulation_tester_7_loops.vi 244 KBI didn't really have time to dig in and understand your program in depth,
but I have a few tips for you that might things a bit easier:
- You use local variables excessively which really complicates things. Try
not to use them and it will make your life easier.
- If you flowchart the design (very similar to a dataflow diagram, keep in
mind!) you want to gather data, calculate a value from that data, store the
calculation in an array, and loop while the time is in a certain range. So
theres really not much need for a sequence as long as you get rid of the
local variables (sequences also complicate things)
- You loop again if timepassed+1 is still less than some constant. Rather
than messing with locals it seems so much easier to use a shiftregister (if
absolutely necessary) or in this case base it upon the number of iterations
of the loop. In this case it looks like "time passed" is the same thing as
the number of loop iterations, but I didn't check closely. There's an i
terminal in your whileloop to read for the number of iterations.
- After having simplified your design by eliminating unnecessary sequence
and local variables, you should be able to draw out the labview diagram.
Don't try to use the "insert into array" vis since theres no need. Each
iteration of your loop calculates a number which goes into the next position
of the array right? Pass your result outside the loop, and enable indexing
on the terminal so Labview automatically generates the array for you. If
your calculation is a function of previous data, then use a shift register
to keep previous values around.
I wish you luck. Post again if you have any questions. Without a more
detailed understanding of your task at hand it's kind of hard to post actual
code suggestions for you.
-joey
"nelsons" wrote in message
news:[email protected]...
> how do I create a 1d array that takes a single calculation and insert
> the result into the first row and then the next calculation the next
> time the loop passes that point and puts the results in thsecond row
> and so on until the loop is exited.
>
> The attached file is work inprogress, with some dummy data sp that I
> can test it out without having to connect to equipment.
> The second tab is the one that I am having the problem with. the
> output array from the replace element appears to be starting at the
> index position of 1 rather than 0 but that is ok it is still show that
> the new data is placed in incrementing element locations. However the
> main array that I am trying to build that is suppose to take each new
> calculation and place it in the next index(row) does not appear to be
> working or at least I am not getting any indication on the inidcator.
>
> Basically what I am attempting to do is is gather some pulses from
> adevice for a minute, place the results for a calculation, so that it
> displays then do the same again the next minute, but put these result
> in the next row and so on until the specifiied time has expired and
> the loop exits. I need to have all results displayed and keep building
> the array(display until, the end of the test)Eventually I will have to
> include a min max section that displays the min and max values
> calculated, but that should be easy with the min max function.Actually
> I thought this should have been easy but, I gues I can not see the
> forest through the trees. Can any one help to slear this up for me. -
Show balances only at the first row in Discoverer.
I have a discoverer report based on Oracle GL module. I'm reporting the balances @ segment1,2&3 which gives Journal date, Begining balance , Journal amount and Ending balances. I'm able to pull in all the data. But the user wants enters the parameter as From period, To period and the segment1,2&3. Here is the data which is showing in my report currently.
segment info 1-2-3 journal name Journal Date Begin Balance journal Amount Ending Balance
931-11-11 abcd 09-SEP-2009 21,492,527.51 ; -506,290.00 23,875,304.30
931-11-11 abcd 09-SEP-2009 21,492,527.51 ; 1,996,600.00 23,875,304.30
931-11-11 abcd 30-NOV-2009 22,982,837.51 ; 333.58 25,365,614.30
931-11-11 abcd 30-NOV-2009 22,982,837.51 ; -2,600,200.00 25,365,614.30
931-11-11 abcd 30-NOV-2009 22,982,837.51 ; -166.79 25,365,614.30
931-11-11 abcd 31-DEC-2009 23,373,134.30 ; -495,865.00 25,755,911.09
931-11-11 abcd 31-DEC-2009 23,373,134.30 ; 998,035.00 25,755,911.09
Users desired output is like this:
segment info 1-2-3 journal name Journal Date Begin Balance journal Amount Ending Balance
931-11-11 abcd 09-SEP-2009 *21,492,527.51* -506,290.00
931-11-11 abcd 09-SEP-2009 1,996,600.00
931-11-11 abcd 30-NOV-2009 333.58
931-11-11 abcd 30-NOV-2009 -2,600,200.00
931-11-11 abcd 30-NOV-2009 -166.79
931-11-11 abcd 31-DEC-2009 -495,865.00
931-11-11 abcd 31-DEC-2009 998,035.00 25,755,911.09
user wants see the beginning balance only @ the first period. He is not interested in showing up at each and every line.
Then ending balance is sum of the begining balance which is at the first line and sum of all the journal amount which should show up at the last line.
I don't know how to show begining only at the first period and ending balance at the last row. Please help!!!
Edited by: PA1B on Feb 18, 2010 11:54 AM
Edited by: PA1B on Feb 18, 2010 11:57 AMMaybe you would come up with a custom folder that unions the GL Balance table to the GL JE Lines table? You would have to union a begiining balance entry to the JE detail. Not sure you would need an ending balance record. The beginning balance entry would have the first day of the month as its journal date value as part of the union coding, and journal name NULL. So that hopefully it will sort out as the first entry for the period. Though even that still provides an issue with crossing over multliple periods. You would have to add conditions that say that select the NULL journal name entry only if the journal date = the begin period begin date. Or as part of the union process you could create a new column with a flag for balance (Y for the beginning balance table records and N for the detail JE lines records) and use that new column for editing along with the begin date of the selected date range. Just trying to toss out some ideas here. I myself have never had to do sometihng like this, so I don't have a proven method to accomplish this. But think back to what happens when you join tables with SQL. You are getting a record today with begin balance, je detail line amount, and end balance, because you are joining gl balances to je detail. What you really want, I think is an SQL result that gives you the first result row being the beginning balance of the account of the user selected From Period, and then the following SQL row results are the detail JE rows. That way you only get the beginning balance to print one time, at the beginning, in the SAME column as the je detail amount, and you can then do a sum at the end of the account to sum up the Discoverer report detail rows that would give you an ending balance, again showing just one time for each account in the report. So you have to ask yourself this question - if I was writing this SQL myself (forget about Discoverer for the moment), how would I write it myself, manually, to get the desired result? Once you know how to code it manually, then that should give you a clue on how to set it up in Discovererer. Hope this helps a bit. Another thought - rather than use Discoverer, maybe look at the Oracle Finanacial Statement generator to handle this? Or maybe come up with some kind of materialized view (that might help performance, since GL detail lines table can get pretty darn large)? Keep in mind with a materialized view you get a non-current view of the data, so that won't work if you absolutely need to query over what is currently in the Oracle base tables. But if this is a once a month thing, you could refresh the materialized view after the period is closed and then the users can run the Discoverer report.
Good luck.
John Dickey -
I'm using a DataGridView (I call it "dg") to display a list of items. I want the user to be able to position the cursor on a row in the middle of the list then click a button to move that row to the top of the list (and move the other rows between
the first row and the row being moved down one row to accomodate the new first row).
Robert HomesHello,
If the DataGridview does not have it's DataSource set we can use the following logic
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim data = (From T In DataGridView1.Rows(DataGridView1.CurrentRow.Index).Cells.Cast(Of DataGridViewCell)() Select T.Value).ToArray
DataGridView1.Rows.RemoveAt(DataGridView1.CurrentRow.Index)
DataGridView1.Rows.Insert(0, data)
End Sub
If the DataSource is set then we need to do what was done above but against the underlying data rather than the DataGridView itself. The base logic can be found in
the following article in LanguageExtensions.vb but please note the code there is for a different type of move yet the logic is still the same in the end.
Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. -
How do I set only the first row of a DataGrid as the selected row?
I have a "Go" button on a search form that fetches data into an already data bound grid. After the data is fetched, I want to make the first row in the Datagrid the selected row, as if the user clicked on it. If the result set is empty, I don't want the code to crash. (I only want one row to be able to be selected at a time)
protected function btnGo_clickHandler(event:MouseEvent):void
getSBJsResult.token = baa_data_svc.getSBJs(cmbSrch.text);
grdSBJs. // ????? What goes here to select the first row?This should do it.
If this post answered your question or helped, please mark it as such.
if(myDataGrid.dataProvider.length > 0){
myDataGrid.selectedIndex = 0; -
I'm trying to query from one table (call it Table1) a batch of rows in another table (Table2) using VLOOKUP on a date specified in the first table (Table1). My problem is it's returning the last incident in Table2 of the requested date instead of the first incident. This really breaks the OFFSET scheme I'd like to use to collect the rest of the items for that date. Is there some way to compel VLOOKUP to return the first row of query results, not the last?
NOTE: I see I've asked this before, but forgot to go back and look at responses given. It's been a while and I've limped along until now with the way things were. I'm actually trying to delete this questions, so if you see it, ignore it. I suppose if someone can tell me real quick how to delete a stupid question, that might be helpful.you cannot delete a post yourself. You can flag the post an request a moderator remove.
-
Hi All,
i have an report with a few columns an i sumerized them by clicking on the sum checkbox. My report result into data with a nice sum row at the bottom of the report.
The question is, is it possible to get this summary line to the beginning of the report as the first row of the report ?
Regards,
MarcoYes, but you got to do that yourself like in this example using analytic functions:
http://apex.oracle.com/pls/otn/f?p=31517:86
You may put your totals wherever you want.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
-------------------------------------------------------------------
Maybe you are looking for
-
This is the first time it shut off and would not charge what so ever. The battery was charging and then it went blank and now it has been blank for awhile is there any possible way that the ipod itself can be turned on or even show up the needs to ch
-
FOC Item Excluding from Billing
Hi Sap Gurus, Could any one help me out in this issue, We have FOC(Free of Charge) items in sales order. When we go for Billing its stating that Item category FOC cannot be invoiced with IG2 Billing type. Since we have more than one item in sales or
-
Apple TV Screensaver Interrupts Movies
I've had my Apple TV2 for over a year now, and this behavior only just started happening. I'll be watching a movie streaming from Netflix, and suddenly the screen fades to black, making me think the scene has done this intentionally, but if I leave i
-
Collaboration Suite to Beehive Email Migration Tool
I have an instance of Oracle Collaboration Suite. I would like to migrate the users email to Beehive. Is there a tool for email migration that I can use at this time?
-
Update Mac osx 10.4.11
hi i have I mac OS X Version 10.4.11 processore 2 GHz intel core 2 1 GB ram how can update my mac osx on line ?