Sapscript Issue . Same line appears in all the line
Hi All ,
By using the logic below , i am able to find the 4 diffrenet line item in my window .
Now i am getting the same line in all the lines in sapscript.
Pls suggest , how to avoid this .
In my final table it_excdtl , all diffrent line item are shown ( shown while debugging )
Thanks & Regards
Kiro
below is the code
CLEAR WA_EXCDTL .
Loop at it_excdtl INTO WA_EXCDTL.
IF WA_excdtl-menge NE 0.
wa_excdtl_amt_unit = ( WA_excdtl-exbed / WA_excdtl-menge ).
WA_EXCDTL_ED_UNIT = ( WA_excdtl-ecs / WA_excdtl-menge ).
WA_EXCDTL_CVD_UNIT = ( WA_excdtl-exaed / WA_excdtl-menge ).
modify it_excdtl from wa_excdtl.
ENDIF.
PERFORM write_form2.
FORM write_form2 .
loop at it_excdtl.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'EMAIN2'
function = 'APPEND'
function = 'SET'
type = 'BODY'
window = 'MAIN2'
IMPORTING
PENDING_LINES =
EXCEPTIONS
element = 1
function = 2
type = 3
unopened = 4
unstarted = 5
window = 6
bad_pageformat_for_print = 7
spool_error = 8
OTHERS = 9
IF sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDLOOP.
ENDFORM. " WRITE_FORM2
ok guys i found the solution thanks to steve muench and his "upload text file and image example" on his weblog..
thanks steve :)
insted of:
<adf:render model="bindings.Pic"/>
it should be
<adf:render model="Row.Pic"/>
Similar Messages
-
I have recently purchased some apps from the app store and after downloading them, the icon that appears in the dock changes to a different icon. It is now the same icon appearing on all newly downloaded apps. Does anyone know what is happening here? Even updating an older game app resulted in the original game icon changing to the new identical icon that all new apps are appearing with. This new icon is like a page with a ruler, pencil and paintbrush. Any tips on how to stop this or how to revert to the icon as it appears on the app store would be appreciated.
https://discussions.apple.com/thread/6132949?tstart=0
-
How can i read all the lines from a text file in specific places and use the data ?
string[] lines = File.ReadAllLines(@"c:\wmiclasses\wmiclasses1.txt");
for (int i = 0; i < lines.Length; i++)
if (lines[i].StartsWith("ComboBox"))
And this is how the text file content look like:
ComboBox Name cmbxOption
Classes Win32_1394Controller
Classes Win32_1394ControllerDevice
ComboBox Name cmbxStorage
Classes Win32_LogicalFileSecuritySetting
Classes Win32_TapeDrive
What i need to do is some things:
1. Each time the line start with ComboBox then to get only the ComboBox name from the line for example cmbxOption.
Since i have already this ComboBoxes in my form1 designer i need to identify where the cmbxOption start and end and when the next ComboBox start cmbxStorage.
2. To get all the lines of the current ComboBox for example this lines belong to cmbxOption:
Classes Win32_1394Controller
Classes Win32_1394ControllerDevice
3. To create from each line a Key and Value for example from the line:
Classes Win32_1394Controller
Then the key will be Win32_1394Controller and the value will be only 1394Controller
Then the second line key Win32_1394ControllerDevice and value only 1394ControllerDevice
4. To add to the correct belonging ComboBox only the value 1394Controller.
5. To make that when i select in the ComboBox for example in cmbxOption the item 1394Controller it will act like i selected Win32_1394Controller.
For example in this event:
private void cmbxOption_SelectedIndexChanged(object sender, EventArgs e)
InsertInfo(cmbxOption.SelectedItem.ToString(), ref lstDisplayHardware, chkHardware.Checked);
In need that the SelectedItem will be Win32_1394Controller but the user will see in the cmbxOption only 1394Controller without the Win32_
This is the start of the method InsertInfo
private void InsertInfo(string Key, ref ListView lst, bool DontInsertNull)
That's why i need that the Key will be Win32_1394Controller but i want that the user will see in the ComboBox only 1394Controller without the Win32_Hello,
Here is a running start on getting specific lines in the case lines starting with ComboBox. I took your data and placed it into a text file named TextFile1.txt in the bin\debug folder. Code below was done in
a console app.
using System;
using System.IO;
using System.Linq;
namespace ConsoleApplication1
internal class Program
private static void Main(string[] args)
var result =
from T in File.ReadAllLines(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "TextFile1.txt"))
.Select((line, index) => new { Line = line, Index = index })
.Where((s) => s.Line.StartsWith("ComboBox"))
select T
).ToList();
if (result.Count > 0)
foreach (var item in result)
Console.WriteLine("Line: {0} Data: {1}", item.Index, item.Line);
Console.ReadLine();
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. Contact via my webpage under my profile but do not reply to forum questions. -
Since purchasing the Note 3 in October i have had nothing but issues. I went through all the steps and eventually I was sent a different phone, which was working for the most part until the recent upgrade. Now I am back to the old issues, no service, it actually says not moblie network available, when everyone else in my family has coverage and are on my plan with iphones. I am missing text messages and dropping calls left and right. This is unacceptable for the cost of this phone and my service. I have did a hard reset etc. What else can I do??
Use the trackpad to scroll, thats what it was designed for. The scroll bars automatically disappear when not being used and will appear if you scroll up or down using the trackpad.
This is a user-to-user forum and most people will post on here if they have problems. You very rarely get people posting to say there update went smooth. The fact is the vast majority of Mountain Lion users will not be experiencing any major problems with the OS, or maybe with apps which are not compatible, but thats hardly Apple's fault if developers don't update their apps. -
Search for a word and return all the lines (row) from the text file..
Hi all,
I need a help on how to search a string from the text file and returns all the lines (rows) where the searched string are found. I have included the code, it finds the indexof the string but it does not return the entire line. I would appreciate your any help.
public class SearchWord
public static void main(String[] args){
//Search String
String searchText = "man";
//File to search (in same directory as .class file)
String fileName = "C:\\Workspace\\MyFile.txt";
//StringBuilder allows to create a string by concatinating
//multiple strings efficiently.
StringBuilder sb =
new StringBuilder();
try {
//Create the buffered input stream, which reads
//from a file input stream
BufferedInputStream bIn =
new BufferedInputStream(
new FileInputStream(fileName));
//Holds the position of the last byte we have read
int pos = 0;
//Holds #of available bytes in our stream
//(which is the file)
int avl = bIn.available();
//Read as long as we have something
while ( avl != 0 ) {
//Holds the bytes which we read
byte[] buffer = new byte[avl];
//Read from the file to the buffer
// starting from <pos>, <avl> bytes.
bIn.read(buffer, pos, avl);
//Update the last read byte position
pos += avl;
//Create a new string from byte[] we read
String strTemp =
new String(buffer);
//Append the string to the string builder
sb.append(strTemp);
//Get the next available set of bytes
avl = bIn.available();
catch(IOException ex) {
ex.printStackTrace();
//Get the concatinated string from string builder
String fileText = sb.toString();
int indexVal = fileText.indexOf(searchText);
//Displays the index location in the file for a given text.
// -1 if not found
if (indexVal == -1)
System.out.println("No values found");
else
System.out.println("Search for: " + searchText); }
}Hi, you can use servlet class and use this method to get the whole line of searched string. You can override the HttpServlet to treat that class as servlet.
public class ReportAction extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
//write your whole logic.
BufferedReader br = new BufferedReader(new FileReader("your file name"));
String line = "";
while(line = br.readLine() != null) {
if(line.contains("your search string")) {
System.out.println("The whole line, row is :"+line);
} -
Since i got my iPhone 4S, Last year. it's the 8gb experminetal version. My phone's volume always appears. All the time. And since i got the iOS 8 yesterday. It got even worse, it won't get out anymore. I'm super mad. I don't know what's going on. Is it my case? But, i don't use a case anymore. It doesn't even lessen. And when i take pictures for like 10 seconds, i get like 50 photos. Without even clicking the button. This is a real problem for me Apple, and i need you to do something about it. I need an answer real soon.
I got Troubles too with iphone 4s with the new iOS 8, its unstable, apple said its for that model to but its not totally true, well few troubles disappear if you do this:
First you need to Sync your iphone like regular you do it, but check you could made a Saffety and restore back up manually in your computer.
then when this it's already done, disconnect your iphone, then restore your iphone as factory settings, beware! don't do this if you don't have your Saffety copy first!
when you restore your iphone as factory settings iTunes will ask you if this is a new phone or a previous phone, well, select previous iphone and select the back up copy you made, and let iTunes restore all, that fix a few issues in my phone, but the real problem its iOS 8 its not good for 4s. -
I scanned an image and want to use the image trace tool, but it doesn't pick up all the lines. Is there a way to darken the lines before using the image trace tool? Help!
If the scan is in B&W, then play with the Threshold setting here
If it's in Color, then you will have to open the scan in a Raster editing software (like Photoshop) and play with the Brightness/Contrast settings to make the lines bolder. -
Greetings: I have multiple iPads and iPhones. I want all to be able to be able to stream to our Apple TV. All of the docs I see say you must have the same Apple ID for all the devices, but we each have our own Apple ID. Is this just a doc short coming?
You can each have your own ID for your own iTunes accounts, but in order for a device to stream via AirPlay to the same Apple TV, everything must use the same homesharing ID. This is not the same as your iTunes account ID (although it can be for one of the devices)
-
Defaulting the Sotrage location for all the line items in my sales order
Hi,
I have a scenario to default the storage location automatically in my sales order for all the line items. It is not going to change for a particular sales org. Dist. channel & Division combination. Can you pls. suggest me a solution for this.
Thanks
Ghanesh.Hi,
You can default the storage location by using the below user exit
Storage location
Auto determination of storage location as u2018XXXXu2019 for sales order
Include - MV45AFZB
Form - USEREXIT_SOURCE_DETERMINATION
IF (VBAK-AUART = 'XXXX' and VBAK-VKORG = 'XXXX' and VBAK-VTWEG = 'XX').
VBAP-LGORT = 'ABCD'.
Regards,
Gopal.
Edited by: Gopalakrishnan S on Feb 25, 2010 7:35 AM -
Hi, how can I keep the same zoom level for all the pages I view in Safari and even when I close and open it. Indeed with a 27 inch Imac I have a lot of space, most of the websites are built for smaller resolutions and my sight is dropping ! Thx
Hi, how can I keep the same zoom level for all the pages I view in Safari and even when I close and open it. Indeed with a 27 inch Imac I have a lot of space, most of the websites are built for smaller resolutions and my sight is dropping ! Thx
-
Printing line only after all the records of line item are finished
HI
I have the following table :
FieldA FieldC FieldD
10 1 CM
10 3 CCM
20 6 M
Right now i am able to print in samrtform like this
FieldA FieldC FieldD
10 1 CM
3 CCM
20 6 M
My requirement is this:
FieldA FieldC FieldD
10 1 CM
3 CCM
20 6 M
How can I do it?hi,
when you work with smartforms, you can do this
1. declare under the tab "Table" of your table-element, 2 lines with the same structure (1 linetype with the line under it, and 1 linetype without the underlining)
2. under the tab "Data", at the Sort-criteria, sort on FieldA and mark the check-box "Event on Sort End"
3. In your main-area you can use the linetype without the underlining
4. In the area that is created for the event "on Sort End", you use the linetype with the underlining
kind regards
Tom -
Light white lines appear raise at the bottom of screen ..wht to do??
Light white lines appear raise at the bottom of screen ..wht to do??
Light white lines appear raise at the bottom of screen ..wht to do??
-
I have a iphone 4 (iSO7.1.2) & a iphone 6 plus (iSO 8.1) . 1. Can I use one Apple ID for 2 phones? 2. I want to share only same music but have different Contacts, Emails boxes, Apps, documents etc on each phones. How to make it possible? 3. What should I do the iCloud back-up is lapse. The email address is to the same location. How do i set 2 different iCloud back-up individually on each phone? I'm using Mac OS X. Appreciate, all help. Thank you ... both my iphones are pretty messy up now .....identity crises....one moment its saving back-up or sync to iSO 7.1.2 ... the next moment its iSO 8.1.....
iphone 4 & Iphone 6 Plus how to share same music folder but all the rest of the phone information separated not merge?
You already ask this question, why are you asking again. -
End of line(character) while reading the line
Hi
i am reading the file from the application server by opening the file in binary mode(as it is a tab delimited file)
now when i read the line it wil read character by character. My problem is how to find the end of line now,
i think the end of file will have one end character
what is that character and how to find that character...Hai,
Use this function module to read the file from application server.
'DX_FILE_READ'
it will read all the line.
Thanks,
Durai.V -
Why does my line attenuation change all the time?
Why would my line attenuation have gone from 65dB to 72.3dB? I think there is a bad connection on my line, but BT's test equipment says my line is fine.
1st ADSL Line Status
Connection Information
Line state:
Connected
Connection time:
0 days, 00:52:21
Downstream:
1.372 Mbps
Upstream:
659.6 Kbps
ADSL Settings
VPI/VCI:
0/38
Type:
PPPoA
Modulation:
G.992.5 Annex A
Latency type:
Interleaved
Noise margin (Down/Up):
6.2 dB / 5.8 dB
Line attenuation (Down/Up):
65.0 dB / 43.9 dB
Output power (Down/Up):
15.0 dBm / 12.4 dBm
FEC Events (Down/Up):
113157 / 9145
CRC Events (Down/Up):
421 / 240
Loss of Framing (Local/Remote):
0 / 0
Loss of Signal (Local/Remote):
0 / 0
Loss of Power (Local/Remote):
0 / 0
HEC Events (Down/Up):
1850 / 810
Error Seconds (Local/Remote):
169 / 215
2nd ADSL Line Status
Line state
Connected
Connection time
2 days, 12:34:52
Downstream
928 Kbps
Upstream
446 Kbps
ADSL Settings
VPI/VCI
0/38
Type
PPPoA
Modulation
G.992.5 Annex A
Latency type
Interleaved
Noise margin (Down/Up)
6.2 dB / 11.9 dB
Line attenuation (Down/Up)
72.3 dB / 44.0 dB
Output power (Down/Up)
1.4 dBm / 0.8 dBm
Loss of Framing (Local/Remote)
0 / 0
Loss of Signal (Local/Remote)
0 / 0
Loss of Power (Local/Remote)
0 / 0
FEC Errors (Down/Up)
5666 / 0
CRC Errors (Down/Up)
442 / 0
HEC Errors (Down/Up)
2257 / 0
Error Seconds (Local/Remote)
87 / 0I got a reply from the chairmans office
I’ve spoken with BT
Wholesale again today and I’m waiting on a report coming in from the Chief
Engineers Office.
What I’ve
been doing
I’ve also gone
through all the history available of the work that has been done on your line
and can confirm the following:
Your line is
all copper and is on the best E and D side cables available.
We have changed
the network equipment in the exchange on multiple occasions.
And it doesn’t
look like there is any more physical work can be carried out.
The report I’m
waiting for from BT Wholesale is about a known issue that we have had with
certain exchange equipment which is used to make the phone ring when it is
being called and causing the broadband connections to drop, I need this to
confirm if your line is affected by this specific issue.
I think you
have spoke with Donal earlier today and discussed the option of moving onto an
8meg service instead of the upto 20meg, and you told him this has been tried
before and did not work, can you remember roughly when this was so I can check
it with BT Wholesale?
What happens
next
There is still
an engineer on his way out to you tomorrow between 1pm and 6pm. I’m not sure
what this engineer will be able to do given that we have had it confirmed that
you are already on the best lines available but we will see how he gets on and
take it from there. (Might get a nice surprise!)
I’ll give you a
call tomorrow to confirm the update from the chief engineers office and also
see if the engineer has been out on site with you.
Best Wishes
Chris
My reply
Hi,
Thanks for the reply, some of the information in your email isn’t correct.
The D-side is only the “best lines available” because it’s the only one available!
I had the BB disconnecting when the phone rang, long before going on the new equipment.
They have exchanged the network equipment on “multiple occasions”, even though I told them not to bother because I knew it would make no difference.
The facts are:
NO WORK has been done on my D-side (apart from the connections directly outside my property)
Many people that have had the same fault have told me it turned out to be the D-side
I was told by a BT Openreach engineer that they would not do any work on my D-side because part of it was aluminium. But this now turns out not to be true, so I have no idea why they will not do any work on my D-side.
At the cab, the broadband is the correct speed and works fine.
My caller display, often doesn't work. I think this is the same line fault that causes this.
A leakage to earth was detected on my line, but was never fixed.
My phone often rings 2 or 3 times, when I finish a call. I think this is the same line fault that causes this.
When the BB speed goes up, the router records a huge amount of errors.
A few years ago my BB failed altogether, it turned out to be the connection outside my property. The connection was green and in bad condition. There are loads more of these connections between my house and the cab, they will be just as old or older.
A BT engineers test equipment detected a change in resistance somewhere on my D-side, I haven’t heard if that was ever looked into.
Every piece of evidence points at a bad connection on my D-side, so you can see why I will not rest until I know that all the connections have been replaced. BT wholesales answer of “that there is nothing wrong with your line” just isn’t good enough because the fault still exists.
Maybe you are looking for
-
Webcenter Spaces: Task Flow is not working in page made from template
Hi, I have a task flow in which there is one .jsff page, which has 2 Panel Group Layouts. In first one, there is a button, which has an action to close or open second Panel Group Layout. When i add this task flow to my template and Preview it, it is
-
HT201328 How do I determine if my iPhone 5 is AT&T?
We are a Military Family that purchased our iPhone 5s at an overseas USA base.
-
Why is my iPod behaving like this?
My iPod Touch 4th generation keeps popping up Voice Command by itself and keeps stopping and adjusting the volume by itself. Why is it doing this? There's absolutely no damage to it....I haven't dropped it and there's no water damage
-
How can my edited picture Back from PS CS3 to Lightroom?
I was working in a project. One picture I need to take it back to Photoshop CS3 for the edit. It works great. But after edit I could not take it back my edited picture to Lightroom and I did not see any command as well. And during that process I lost
-
How To Bulk Edit "Enterprise SkillGroup List" in IPCC?
In Our scenario, we are using Enterprise SkillGroup List, but to edit it one-by-one is a hectic and time taking job. Is there any way out, (just as we can bulk edit Skill Groups in "Skill Group Bulk Edit" in configuration manager's bulk edit option..