Using AND for SELECT in MSAccess
Hi,
Anybody help me how to write SQL query using AND for MSAccess.
When I am using the following query, It gives the error "Datatype mismatch in criteria expression". The field names in database are correct.
String query="select [id] from Suppliers where (([name]='"+name1+"') AND ([street]='"+street1+"') AND ([zipcode]='"+zipcode1+"'));";
How to write???
Thanks in advance,
Sai Ram
Hi,
Anybody help me how to write SQL query using AND for
MSAccess.
When I am using the following query, It gives the
error "Datatype mismatch in criteria expression". The
field names in database are correct.
String query="select [id] from Suppliers where
(([name]='"+name1+"') AND ([street]='"+street1+"') AND
([zipcode]='"+zipcode1+"'));";
How to write???
Thanks in advance,
Sai RamThe error message leads me to believe that there's a mismatch between the column type and the query (even if the field names are correct). The way you've written them all the columns in the WHERE clause should be of Java type String and SQL type text/varchar.
I'd recommend that you remove those square brackets from around the column names - I don't believe those are standard SQL. They're a M$ extension.
I'd also recommend that you use PreparedStatement instead of Statement. You can use the setString/setDate methods to do the escaping properly for you and not worry about putting quotes around String values. (setString will even work when there's a field value with an apostrophe in it.)
Similar Messages
-
How to assign search help using ovs for select options for ALV in web dynpr
how to assign search help using ovs for select options for ALV in web dynpro
Hi,
refer http://wiki.sdn.sap.com/wiki/display/WDABAP/InputhelpofObjectValueSelectioninWDABAP
http://www.****************/Tutorials/WebDynproABAP/OVS/page1.htm
and http://wiki.sdn.sap.com/wiki/display/Snippets/WebDynproAbap-OVSsearch+help
Thanks,
Chandra -
How to use offset for select-option parameter ?
Hi experts
could anybody please let me know how to use offset for select-option parameter. i can able to use offset for table fields, variabiles and all , but don't know how to use for parameters.
following is my code
SELECT-OPTIONS: s_prctr FOR vbsegs-prctr OBLIGATORY.
here "prctr" length is 10.
i'm using two tables 1. vbsegd-bupla
2. vbsegs-prctr
here prctr+6(4) = bupla.
"Bupla" length is 4
SELECT belnr gjahr bukrs bupla sgtxt buzei FROM vbsegd INTO CORRESPONDING FIELDS OF TABLE it_vbsegd FOR ALL ENTRIES IN it_vbkpf
WHERE belnr = it_vbkpf-belnr
AND gjahr = it_vbkpf-gjahr
AND bukrs = it_vbkpf-bukrs
AND bupla IN s_prctr.
the above statement is not working as prctr and bupla lenths are different. here i want to use offset.
SELECT belnr gjahr bukrs prctr sgtxt buzei FROM vbsegs INTO CORRESPONDING FIELDS OF TABLE it_vbsegs FOR ALL ENTRIES IN it_vbkpf
WHERE belnr = it_vbkpf-belnr
AND gjahr = it_vbkpf-gjahr
AND bukrs = it_vbkpf-bukrs
AND prctr IN s_prctr.
this is working as prctr and s_prctr lengths are equal.
could anybody please help me out in this.
Thanks in advance.
regards
satishBelow code will work for you.
SELECT-OPTIONS: s_prctr FOR vbsegs-prctr OBLIGATORY.
RANGES: s_bupla FOR vbsegd-bupla.
s_bupla[] = s_prctr[].
DELETE ADJACENT DUPLICATES FROM s_bupla.
SELECT belnr gjahr bukrs bupla sgtxt buzei FROM vbsegd INTO CORRESPONDING FIELDS OF TABLE it_vbsegd FOR ALL ENTRIES IN it_vbkpf
WHERE belnr = it_vbkpf-belnr
AND gjahr = it_vbkpf-gjahr
AND bukrs = it_vbkpf-bukrs
AND bupla IN s_bupla. -
Older ipod and can't use screen for selections
I have tried number time to reboot my older ipod and can't get it to where the screen will react to touch
rebooting doesn
t seem to helpHi mikecpk,
I recommend doing the troubleshooting assistant for your specific iPod from this page:
iPod Troubleshooting Assistants
http://www.apple.com/support/ipod/five_rs/
Take care!
- Ari -
Pages '09: Can't use AppleScript for selected text inside tables?
When I run get selection on selected text in a Pages document, I get something like this:
<pre>text from character 1 to character 4 of body text of document id 9943974 of application "Pages"</pre>
When I run get selection on selected text inside a table cell in a table in a Pages document, I get something like this:
<pre>text from character 1 to character 4 of some table of document id 3539679 of application "Pages"</pre>
When I run get selection on selected text inside a table cell in ANOTHER table in the same Pages document, I get the exact same thing. It still says "some" table. So there is no way to distinguish between tables if there are more than one table in the same Pages document.
Am I correct in understanding that this means that most AppleScript commands for manipulating text are unusable inside table cells?
For example, it seems impossible to get the properties of the selection when the selection is selected text inside "some" table. So it's impossible do anything about text styles, etc.
Is AppleScript support in Pages ’09 really that limited, or am I missing something?The first script below should return the character style of any selection made in Pages ’09, whereas the second script should apply the "XXX" character style to any selection:
--BEGINNING OF SCRIPT 1
tell application "Pages"
activate
tell application "System Events" to tell process "Pages"
-- Show the format bar:
if not (pop up button 1 of window 1 exists) then
click menu item "Show Format Bar" of menu 1 of menu bar item "View" of menu bar 1
end if
-- Show the styles drawer and character styles:
if menu item "Show Styles Drawer" of menu 1 of menu bar item "View" of menu bar 1 exists then
keystroke "t" using {shift down, command down}
end if
tell front window
tell checkbox 1 of group 1 of drawer 1 -- “Show or hide character styles.” checkbox
repeat until it exists
delay 0.1 -- wait until the styles drawer is open
end repeat
if description is "show character style" then click
end tell
-- Get the row index (although it is not a property) of the character style:
tell menu button 2 -- “Choose a character style.” menu button
click
set k to 0
repeat
set k to k + 1
if value of attribute "AXMenuItemMarkChar" of menu item k of menu 1 exists then exit repeat
end repeat
keystroke return -- hide the menu
end tell
-- Get the character style name:
if k > 1 then set k to k + 1
value of static text 1 of row k of outline 1 of scroll area 2 of splitter group 1 of group 1 of drawer 1
end tell
end tell
end tell
--END OF SCRIPT 1
--BEGINNING OF SCRIPT 2
set myStyle to "XXX" -- the name of the character style you want to apply
tell application "Pages"
activate
tell application "System Events" to tell process "Pages"
-- Show the format bar:
if not (pop up button 1 of window 1 exists) then
click menu item "Show Format Bar" of menu 1 of menu bar item "View" of menu bar 1
end if
-- Show the styles drawer and character styles:
if menu item "Show Styles Drawer" of menu 1 of menu bar item "View" of menu bar 1 exists then
keystroke "t" using {shift down, command down}
end if
tell front window
tell checkbox 1 of group 1 of drawer 1 -- “Show or hide character styles.” checkbox
repeat until it exists
delay 0.1 -- wait until the styles drawer is open
end repeat
if description is "show character style" then click
end tell
set characterStyles to value of static text 1 of rows of outline 1 of scroll area 2 of splitter group 1 of group 1 of drawer 1
set k to 0
repeat with thisStyle in the characterStyles
set k to k + 1
if thisStyle as text is myStyle then exit repeat
end repeat
-- Apply the character style:
if k > 1 then set k to k - 1
click menu button 2 -- “Choose a character style.” menu button
click menu item k of menu 1 of menu button 2
end tell
end tell
end tell
--END OF SCRIPT 2
I suppose that +paragraph styles+ should work the same.
I'm beginning to know Pages ’09 a little better now.
Message was edited by: Pierre L. (show format bar) -
Connecting to DB2 Database using JDBC for select/Insert
Hi,
I am trying to connect to an DB2 Database using JDBC adapter, I have build an UDF for the same.
The UDF will try to query the database in the form of Select and INSERT.I am using the LOOKUP API provided by SAP.When I try to execute the UDF I have received the following error.can any of you provide the solution for the error and also is it that the JDBC adapter has to be situated on Central Adapter engine to execute the API, can the JDBC adapter used for executing the INSERT statement.
Exception during processing the payload.Problem when calling an adapter by using communication channel JDBC_PIDB_Receiver_CC (Party: , Service: XIDB_BSRV, Object ID: 59f2d7694acc3e81840f89b0169d9323) XI AF API call failed. Module exception: (No information available). Cause Exception: (No information available).
com.sap.aii.mapping.lookup.LookupException: Problem when calling an adapter by using communication channel JDBC_PIDB_Receiver_CC (Party: , Service: XIDB_BSRV, Object ID: 59f2d7694acc3e81840f89b0169d9323) XI AF API call failed. Module exception: (No information available). Cause Exception: (No information available).
at com.sap.aii.ibrun.server.lookup.AdapterProxyLocal.execute(AdapterProxyLocal.java:131)
at com.sap.aii.ibrun.server.lookup.SystemAccessorInternal.execute(SystemAccessorInternal.java:68)
at com.sap.aii.ibrun.server.lookup.SystemAccessorHmiServer.process(SystemAccessorHmiServer.java:149)
at com.sap.aii.ibrun.server.lookup.SystemAccessorHmiServer.process(SystemAccessorHmiServer.java:77)
at com.sap.aii.utilxi.hmis.server.HmisServiceImpl.invokeMethod(HmisServiceImpl.java:169)
at com.sap.aii.utilxi.hmis.server.HmisServer.process(HmisServer.java:178)
at com.sap.aii.utilxi.hmis.web.HmisServletImpl.processRequestByHmiServer(HmisServletImpl.java:296)
at com.sap.aii.utilxi.hmis.web.HmisServletImpl.processRequestByHmiServer(HmisServletImpl.java:211)
at com.sap.aii.utilxi.hmis.web.workers.HmisInternalClient.doWork(HmisInternalClient.java:70)
at com.sap.aii.utilxi.hmis.web.HmisServletImpl.doWork(HmisServletImpl.java:496)
at com.sap.aii.utilxi.hmis.web.HmisServletImpl.doPost(HmisServletImpl.java:634)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
Root Cause:
com.sap.aii.af.service.api.AFException: XI AF API call failed. Module exception: (No information available). Cause Exception: (No information available).
at com.sap.aii.af.service.api.AdapterAccess.sendMsg(AdapterAccess.java:214)
at com.sap.aii.af.service.api.AdapterAccess.execute(AdapterAccess.java:283)
at com.sap.aii.ibrun.server.lookup.AdapterProxyLocal.execute(AdapterProxyLocal.java:123)
at com.sap.aii.ibrun.server.lookup.SystemAccessorInternal.execute(SystemAccessorInternal.java:68)
at com.sap.aii.ibrun.server.lookup.SystemAccessorHmiServer.process(SystemAccessorHmiServer.java:149)
at com.sap.aii.ibrun.server.lookup.SystemAccessorHmiServer.process(SystemAccessorHmiServer.java:77)
at com.sap.aii.utilxi.hmis.server.HmisServiceImpl.invokeMethod(HmisServiceImpl.java:169)
at com.sap.aii.utilxi.hmis.server.HmisServer.process(HmisServer.java:178)
at com.sap.aii.utilxi.hmis.web.HmisServletImpl.processRequestByHmiServer(HmisServletImpl.java:296)
at com.sap.aii.utilxi.hmis.web.HmisServletImpl.processRequestByHmiServer(HmisServletImpl.java:211)
at com.sap.aii.utilxi.hmis.web.workers.HmisInternalClient.doWork(HmisInternalClient.java:70)
at com.sap.aii.utilxi.hmis.web.HmisServletImpl.doWork(HmisServletImpl.java:496)
at com.sap.aii.utilxi.hmis.web.HmisServletImpl.doPost(HmisServletImpl.java:634)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
Thanks,
Kiran.Hi,
have you deployed the JDBC driver for your DB2 database in your XI system........if not, then ask your basis guys to find the weblog to deploy the JDBC driver in XI system and then deploy your DB2 database driver in your JDBC driver in XI system............
then again execute your scenario.
Regards,
Rajeev Gupta -
Need to use Hint for Select Query 11g
Hi,
I have a select query which is fetching data from multiple table.
I just need 10 or less rows, already I m using rownum <=10
Could you tell which is the better choice for using HINT.
/*+ FIRST_ROWS(10) */ (or) /*+ all_rows */
Thanks.On Oracle 11.2.0.3 and 11.1.0.7 on my test table with an ORDER BY in the query, I found FIRST_ROWS using the index to get sorted rows and ALL_ROWS retrieving 10 rows from a full scan and then sorting them.
On Oracle I didn't find any difference in plan on a different, physically smaller, table.
For the ALL_ROWS version the optimiser already knows that there will only be 10 rows returned.
The performance difference: As usual, only use FIRST_ROWS if you actually intend to fetch less than the full data set. If you intend to fetch all 10 rows, use ALL_ROWS, which should be the default (taken from the optimizer_mode system parameter). -
Is it possible to use Citrix for home-use and for free, Only one use?
Hi
I am a .Net developer so i need to have Microsoft Visual Studio and Microsoft Windows for my Work, but i like iPad 2 in Tablets so that i bought one, Now in a video i have seen that Citrix is such a professional Desktop and App Virtualization that it seems Microsoft Windows is running on iOS, so i want to use it but not for business and just for home use, is it possible to set it up for free?
Best Regards,
PK DEVELOPERCitrix does not allow iOS to run Windows. Citrix products are one of several ways to connect an iOS device to a system that does run Windows and allow the iOS device to take control of that Windows system. Citrix, to the best of my knowledge, does not make their back-end products (i.e. the software that runs on the system to which you want to connect) available for free; it's usually quite expensive as it's intended for enterprise use.
Citrix for home use would almost certainly be vast overkill, though. Just do a web search for "VNC". VNC is a solution for Windows and iOS that would allow you to take control of your Windows system.
Regards. -
I tried to search and nothing comes up. I can't even find it in the Illustrator's Manual. I am trying to play with different ways to trace or sketch and clicked on this Sketch and Line Art, which seems to always be greyed out, no matter what image I have on the artboard.
Has anyone used it? Please advise.
Thanks!It's an useful function if you also use this:
Adobe Photoshop Sketch per iPhone, iPod touch e iPad dall'App Store su iTunes
It's an Adobe mobile application you can download and use for free in connection with Illustrator on your desktop computer.
Leonardo Agosti
Join us on: http://www.facebook.com/groups/indesignusergroupit/ -
MPEG Streamclip options for iMovie use and for iDVD use
Hi.
This is my first posting so I apologise for all procedural inadequacies.
I am doing a montage of clips from different DVDs, using the DVDs as source material. For this I first run the DVDs through MPEG Streamclip, pick the relevant clips, then export the .VOB files as Quicktime files, then import them into iMovie HD, editing them together in it. I then save the montage as an iMovie HD project, import it into iDVD in order to burn a separate DVD which can be played on regular DVD players and on TV sets.
Everything looks fine until I see the final product on the TV screen. The picture quality is poor and it seems that the frame rate is odd. The sound is muffled, too. What am I doing wrong? I am not sure if I am choosing the right options in the MPEG Streamclip – Movie Exporter window (Compression, Quality, Frame Size, Frame Blending, Field Dominance, Interlaced Scaling, Reinterlace Chroma, Deinterlace Video etc.) I’m not even sure how relevant this is for this problem. I even tried exporting DVD .VOB files as MPEG4 files and as DV files instead of as Quicktime files, hoping the picture and overall quality would be better. It works in iMovie HD but when I try to import the edited montage into iDVD it won’t recognize it.
I’m stuck. Does anyone know what the optimal set of options is for what I’m trying to do? Any help will be greatly appreciated. Thanks.
P.S. How do I alter the DV-NTSC setting which iMovie HD seems to have as default on the top of its window as soon as it starts up? I am in the UK and need to know that all is always set to PAL.export the .VOB files as Quicktime files
"QuickTime" is rather vague, because it includes A LOT of very different codecs and qualities!
You want to output PAL/NTSC DV_streams if you want to import it to iMovie/iDVD! If the source is PAL, output PAL and vice versa (converting decent quality PAL<->NTSC is another can of worms).
But: if you want to preserve quality, you really should edit MPEG and re-author it as a DVD, and forget iMovie/iDVD because they want DV, and converting DVD->DV->DVD will lose quality!
See also:
http://www.sjoki.uta.fi/~shmhav/SVCDon_a_Macintosh.html#edit_convertMPEG
http://www.sjoki.uta.fi/~shmhav/SVCDon_a_Macintosh.html#PALNTSC -
Proxy.pac file not working for using proxy for selected websites
After changing my ISP, i cant connect to Bluenest.org directly but with proxy. I can also connect by setting manual proxy server for all websites. But I dont want to do that as there is a bit security problem. I just wrote Proxy.pac files to use proxy sever for that particular website & put its location on Automatic Proxy Configuration. But its not working. I va tried with two types of .pac files. Given the code of the files below.....
First one..........
<pre><nowiki>
function FindProxyForURL(url, host)
if (shExpMatch(url, "http://bluenest.org") || localHostOrDomainIs(host, "http://www.bluenest.org"))
return "PROXY 204.45.138.4:80";
else
return "DIRECT";
</nowiki></pre>
Second one......
<pre><nowiki>function FindProxyForURL(url, host)
if(!isResolvable(host))
return "DIRECT";
return "PROXY 204.45.138.4:80";
}</nowiki></pre>
but none of them working. Please help.
Can you please tell which proxy server is fastest & safest.
Thanx in advanceI submitted a bug report to Apple. The problem is present since 10.9.2, now with 10.10 and iOS. I hope they will take this problem seriously.
-
Restrict number of characters in table field for select statement.
SELECT * FROM table
WHERE column1 = z-column.
The field column1 is of type char and size 20
The field z-column is of type char size 10.
how do we perform this select?
Anyone can guide me?
Edited by: Hadesfx on Sep 11, 2009 3:56 PM
Edited by: Hadesfx on Sep 11, 2009 3:59 PMHello,
In your OP did you mention this? Please be specific when you post the next time.
Can you please post your code?
I think you have to try a work around:
DATA:
RS_STOCKID TYPE SELOPT,
RT_STOCKID TYPE STANDARD TABLE OF SELOPT.
LOOP AT GT_ZB1PUT_STOCKTMP.
RS_STOCKID-SIGN = 'I'.
RS_STOCKID-OPTION = 'EQ'.
RS_STOCKID-LOW = GT_ZB1PUT_STOCKTMP-STOCKID.
APPEND RS_STOCKID TO RT_STOCKID.
CLEAR RS_STOCKID.
ENDLOOP.
You can use this RANGE table to SELECT data from the table.
SELECT * FROM zb1xxt_param
FOR ALL ENTRIES IN gt_zb1put_stocktmp[]
WHERE zzcode = 'DEV036'
AND zzdomain = 'SD'
AND zzdata = 'INBOUND'
AND zzinput1 = 'STOCKID'
AND zzinput2 IN RT_STOCKID. "Use RT_STOCKID for SELECT'ing data
BR,
Suhas -
Installing: hotkeys for Select Packages, Install Packages,
Hi everyone.
Ive been trying to install arch but because I dont know what keys to press to select something I am stuck at stupid places.
So I was wondering if someone could tell me the proper keys (and If its allowed Im thinking about adding them to the "Beginners Guide", because I really think they are needed there).
The first time I got stuck was when I was supposed to "select packages". What key(s) are to be pressed to select it?
I asume its the same keys as for window after that one. If not so, could someone write those aswell.
Later I found a problem with "nano" where I didnt know how to select, and stuff like that.
I got some help with how to save and exit. Also I never got that ^ meant control before they said so.
http://bbs.archlinux.org/viewtopic.php?id=55023
ctrl+o save
ctrl+x exits
ctrl is what the ^ means on the bottom menu.
I tried searching for it and read in the manual. But I guess its to "basic" to be in it.
Does anyone see a problem with me adding an explanation for:
^ = ctrl
and what key to press to select something when selecting packages
to the "Beginners Guide"?I assume you use space for selecting categories and packages, at least it's the normal thing to assume (maybe as normal as ^ meaning ctrl), it has been some time that I installed Arch.
If you feel putting these things in the Beginner's Guide would be a good thing, just go ahead. That's why it's a wiki. -
Validation for selection screen
hi all,
can anyone help me on the particular issue for adding f4 functionality based on selection criteris.i am using the code below but i am not able to get the selection.
SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETERS: P_MBLNR LIKE MKPF-MBLNR OBLIGATORY, "Customer Number
P_WERKS LIKE MSEG-WERKS OBLIGATORY.
SELECTION-SCREEN:SKIP 2.
SELECTION-SCREEN: BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-001.
PARAMETERS: RAD1 RADIOBUTTON GROUP RAD DEFAULT 'X',
RAD2 RADIOBUTTON GROUP RAD.
SELECTION-SCREEN END OF BLOCK B2.
SELECTION-SCREEN END OF BLOCK B1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_MBLNR.
DATA: BEGIN OF I_MBLNR OCCURS 0,
V_MBLNR LIKE MSEG-MBLNR,
V_BWART LIKE MSEG-BWART,
END OF I_MBLNR.
IF NOT P_MBLNR IS INITIAL.
IF RAD1 = 'X'.
SELECT SINGLE MBLNR INTO I_MBLNR-V_MBLNR FROM MSEG
WHERE BWART = '541'.
ELSEIF RAD2 = 'X'.
SELECT SINGLE MBLNR INTO I_MBLNR-V_MBLNR FROM MSEG
WHERE BWART = '551'.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = MSEG-MBLNR
RETFIELD = IT_HEADER-MBLNR
PVALKEY = ' '
DYNPPROG = ' '
DYNPNR = ' '
DYNPROFIELD = ' '
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'C'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
VALUE_TAB = IT_HEADER.
FIELD_TAB =
RETURN_TAB =
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
ENDIF.HI NAVNEET ,
thanks for replying actuallty i have n internal table it_header which i have used it for my program but this interna table i have used only for selection criteria. can you plz see the portion of my code which i have used for selection criteria.please find below
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_MBLNR.
DATA: BEGIN OF I_MBLNR OCCURS 0,
MBLNR LIKE MSEG-MBLNR,
END OF I_MBLNR.
IF NOT ( P_MBLNR IS INITIAL ).
refresh i_mblnr.
clear i_mblnr.
IF ( RAD1 = 'X' ).
SELECT MBLNR INTO I_MBLNR FROM MSEG
WHERE BWART = '541'.
ENDSELECT.
ELSEIF ( RAD2 = 'X' ).
SELECT MBLNR INTO I_MBLNR FROM MSEG
WHERE BWART = '551'.
ENDSELECT.
ENDIF.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = 'MSEG'
RETFIELD = 'MBLNR'
PVALKEY = ' '
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'P_MBLNR'
VALUE_ORG = 'S'
CALLBACK_FORM = SY-REPID
TABLES
VALUE_TAB = I_MBLNR
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF. -
Hello experts,
I'm totally new to C#. I'm trying to modify existing code to automatically rename a file if exists. I found a solution online as follows:
string[] allFiles = Directory.GetFiles(folderPath).Select(filename => Path.GetFileNameWithoutExtension(filename)).ToArray();
string tempFileName = fileName;
int count = 1;
while (allFiles.Contains(tempFileName ))
tempFileName = String.Format("{0} ({1})", fileName, count++);
output = Path.Combine(folderPath, tempFileName );
string fullPath=output + ".xml";
However, it gives the following compilation errors
for the Select and Contain methods respectively.:
'System.Array' does not contain a definition for 'Select' and no extension method 'Select' accepting a first argument of type 'System.Array' could be found
(are you missing a using directive or an assembly reference?)
'System.Array' does not contain a definition for 'Contains' and no extension method 'Contains' accepting a first argument of type 'System.Array' could be
found (are you missing a using directive or an assembly reference?)
I googled on these errors, and people suggested to add using System.Linq;
I did, but the errors persist.
Any help and information is greatly appreciated.
P. S. Here are the using clauses I have:
using System;
using System.Data;
using System.Windows.Forms;
using System.IO;
using System.Collections.Generic;
using System.Text;
using System.Linq;Besides your issue with System.Core, you also have a problem with the logic of our code, particularly your variables. It is confusing what your variables represent. You have an infinite loop, so the last section of code is never reached. Take a look
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace consAppFileManipulation
class Program
static void Main(string[] args)
string fullPath = @"c:\temp\trace.log";
string folderPath = @"c:\temp\";
string fileName = "trace.log";
string output = "";
string fileNameOnly = Path.GetFileNameWithoutExtension(fullPath);
string extension = Path.GetExtension(fullPath);
string path = Path.GetDirectoryName(fullPath);
string newFullPath = fullPath;
string[] allFiles = Directory.GetFiles(folderPath).Select(filename => Path.GetFileNameWithoutExtension(filename)).ToArray();
string tempFileName = fileName;
int count = 1;
//THIS IS AN INFINITE LOOP
while (allFiles.Contains(fileNameOnly))
tempFileName = String.Format("{0} ({1})", fileName, count++);
//THIS CODE IS NEVER REACHED
output = Path.Combine(folderPath, tempFileName);
fullPath = output + ".xml";
//string fullPath = output + ".xml";
UML, then code
Maybe you are looking for
-
AIR applications - AIR license agreement showing instead of application
Hi there I have a user who is experiencing the following issue - when he tries to run an AIR application, the license agreement shows (accept/decline), and then nothing (the app doesn't launch when you click accept). This happens for all his AIR appl
-
All I want to do is print a web page to file so I can refer to it later. (insurance quote details -impossible to recall without starting from scratch) how do I copy a web page IMAGE for later review?
-
Where Download CRM business package??
Hi experts: Can you tell me ,where can i download CRM business package on http://service.sap.com/swdc ? On http://service.sap.com/swdc Downloads->Entry by Application Group --> SAP Applications Compents , but i can't find CRM business p
-
Launching programs at Windows 10 startup
Hello, When starting Windows 10, I want to execute automatically two (or more) different programs in two (or more) virtual desktops. Thanks for your answers, Jean EVRARD
-
I want to display one column values with multiple symbols
i am created one report. my column name is offshore & on shore i want display 3 values with % symbol, then i want show 4 th value as $ 2000, but it was allowing only one format $ or % but i need to display symbols with my values.