"flex_init​ialize_con​troller" function
I'm trying to initialize my motion controller (PCI 7334) using the "flex_initialize_controller" function and settings saved in "UTM" with the MAX version 3.1. Problem is the input parameter "settingsName" of the function. What datatype should it be?? According to the help it's a array of bytes [i8], according to the MAX it's a string.
With LabView 7.1 everything works well when I enter "UTM" as string on the "Initialize Controller" vi.
Does someone have an example of this function used in VB???
this problem will be solved with NI-Motion 7
for now you can do the following:
Basically the fix involves changing the 'string' entries in FLEXMOTN.BAS from charArray% to ByVal charArray As String. Note that the name of the varible isn't always charArray. You can replace the function prototypes in the file with the ones below:
- Declare Function flex_initialize_controller Lib "FlexMotion32.dll" (ByVal boardID%, ByVal settingsName As String) As Long
- Declare Function flex_get_error_description Lib "FlexMotion32.dll" (ByVal descriptionType%, ByVal errorCode&, ByVal commandID%, ByVal resourceID%, ByVal charArray As String, sizeOfArray&) As Long
- Declare Function flex_get_motion_board_name Lib "FlexMotion32.dll" (ByVal boardID%, ByVal charArray As Strin
g, sizeOfArray&) As Long
- Declare Function flex_load_description Lib "FlexMotion32.dll" (ByVal boardID%, ByVal object%, ByVal description As String) As Long
- Declare Function flex_read_description_rtn Lib "FlexMotion32.dll" (ByVal boardID%, ByVal object%, ByVal description As String) As Long
Regards,
Bjorn
Similar Messages
-
I record my band rehearsals using the voice memo on my iPhone 5s. Then I sync to iTunes and convert file to mp3. When i sync back to my iPhone it appears in my music. So far, so good. When I use the search function in music it finds the file but won't play from tapping. I must troll through all my music songs (currently 2227 of them) to find it and then play it. Is it something to do with it still being under the genre "voice memos" or what ? Anybody help please. Thanks
iWeb is an application to create webpages with.
It used to be part of the iLife suite of applications.
iWeb has no knowledge of the internal speaker on your iPhone.
You may want to ask in the right forum. -
Hello.
I seem to be having a problem using the RegRead function within vbscript to return a simple value from the registry. When I run it on my workstation (windows 7 x64 sp1), it seems to miss certain registry values that are indeed there (specifically, I am looking
for instances of "Adobe" in the displayName value of HKLM\Software\wow6432node\microsoft\windows\uninstall). However, when I run on a test VM, it returns the values fine. I am hoping someone might be able to explain this inconsistency and why it
is happening.
The code is very simple:
On Error Resume Next
if wscript.arguments.count < 1 then
wscript.echo "usage: regread.vbs <hostname> <appname>"
wscript.quit
end if
AppName = wscript.arguments(1)
strComputer = wscript.arguments(0)
const HKEY_LOCAL_MACHINE = &H80000002
Set WshShell = WScript.CreateObject("WScript.Shell")
Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!//"& strComputer & "/root/default:StdRegProv")
strKeyPath = "SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall"
objReg.EnumKey HKEY_LOCAL_MACHINE, strKeyPath, arrSubKeys
For Each subkey In arrSubKeys
'wscript.echo subkey
InstalledAppName = ""
InstalledAppName = WshShell.RegRead("HKLM\" & strKeyPath & "\" & subkey & "\DisplayName")
wscript.echo vbtab&"DisplayName: "&InstalledAppName
if instr(InstalledAppName,AppName) > 0 then
wscript.echo vbcrlf&"found"&vbcrlf
end if
Next
When I run "cscript regread.vbs remoteHost Adobe" on my local machine, it does not "find" any instance of Adobe within the registry of machine "remoteHost". However, when I run it from a test VM, it does find the existing instances
of Adobe within the DisplayName value of the uninstall key of the registry, here is the output from both, first the non-working one, then the working test VM.
Non-working:
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName: GPL Ghostscript 8.60
DisplayName: GPL Ghostscript Fonts
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName: Microsoft Office Professional Plus 2010
DisplayName:
DisplayName:
DisplayName:
DisplayName: Microsoft ASP.NET 2.0 AJAX Extensions 1.0
DisplayName:
DisplayName: Sybase PowerBuilder 12.0 Standard Runtime
DisplayName: MSXML 4.0 SP3 Parser
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName: MSXML 4.0 SP3 Parser (KB2758694)
DisplayName: Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.4148
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName: Microsoft Windows Journal Viewer
DisplayName: Java Auto Updater
DisplayName: VBA (2627.01)
DisplayName: Microsoft Visual C++ 2005 Redistributable
DisplayName:
DisplayName: Apple Software Update
DisplayName: SQL Anywhere 9 for Windows x64
DisplayName: Microsoft Office Professional Plus 2010
DisplayName:
DisplayName:
DisplayName:
DisplayName: Update for Microsoft Office 2010 (KB2553267) 32-Bit Edition
DisplayName:
DisplayName:
DisplayName:
DisplayName: Update for Microsoft Office 2010 (KB2760631) 32-Bit Edition
DisplayName:
DisplayName:
DisplayName: Update for Microsoft Office 2010 (KB2494150)
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName: HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{90140000-0011-0000-0000-0000000FF1CE}_Office14.PROPLUS_{9569DE03-1425-4D12-96EB-44D852AF759A}\DisplayName
DisplayName:
DisplayName:
DisplayName:
DisplayName: Update for Microsoft Office 2010 (KB2553065)
DisplayName:
DisplayName: Security Update for Microsoft Office 2010 (KB2598243) 32-Bit Edition
DisplayName: Update for Microsoft Office 2010 (KB2825640) 32-Bit Edition
DisplayName:
DisplayName: Update for Microsoft Outlook Social Connector 2010 (KB2553406) 32-Bit Edition
DisplayName: Security Update for Microsoft Office 2010 (KB2553371) 32-Bit Edition
DisplayName:
DisplayName:
DisplayName:
DisplayName: Security Update for Microsoft Office 2010 (KB2589320) 32-Bit Edition
DisplayName:
DisplayName:
DisplayName:
DisplayName: Update for Microsoft Office 2010 (KB2596964) 32-Bit Edition
DisplayName: Update for Microsoft Office 2010 (KB2566458)
DisplayName:
DisplayName:
DisplayName: Microsoft Office Access MUI (English) 2010
DisplayName:
DisplayName: Microsoft Office Excel MUI (English) 2010
DisplayName:
DisplayName: Microsoft Office PowerPoint MUI (English) 2010
DisplayName:
DisplayName:
DisplayName: Microsoft Office Publisher MUI (English) 2010
DisplayName:
DisplayName: Microsoft Office Outlook MUI (English) 2010
DisplayName: Update for Microsoft Outlook Social Connector 2010 (KB2553406) 32-Bit Edition
DisplayName:
DisplayName:
DisplayName: Microsoft Office Word MUI (English) 2010
DisplayName:
DisplayName: Microsoft Office Proof (English) 2010
DisplayName:
DisplayName:
DisplayName: Microsoft Office Proof (French) 2010
DisplayName:
DisplayName:
DisplayName: Microsoft Office Proof (Spanish) 2010
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName: Microsoft Office Proofing (English) 2010
DisplayName:
DisplayName: Microsoft Office InfoPath MUI (English) 2010
DisplayName:
DisplayName: Microsoft Office Shared MUI (English) 2010
DisplayName:
DisplayName:
DisplayName: Update for Microsoft Office 2010 (KB2553310) 32-Bit Edition
DisplayName: Microsoft Office OneNote MUI (English) 2010
DisplayName:
DisplayName: Update for Microsoft OneNote 2010 (KB2553290) 32-Bit Edition
DisplayName: Microsoft Office Groove MUI (English) 2010
DisplayName:
DisplayName: Microsoft Office Shared Setup Metadata MUI (English) 2010
DisplayName:
DisplayName:
DisplayName: Microsoft Office Access Setup Metadata MUI (English) 2010
DisplayName:
DisplayName: Microsoft Office Visio Viewer 2003 (English)
DisplayName: Cardiff TeleForm
DisplayName:
DisplayName:
DisplayName: CodeMax Runtime Installer
DisplayName: Microsoft .NET Framework 1.1
DisplayName:
DisplayName:
DisplayName: Microsoft XML Parser
DisplayName:
DisplayName: Microsoft Visual C++ 2010 x86 Redistributable - 10.0.40219
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
Working:
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.
DisplayName:
DisplayName:
DisplayName:
DisplayName: DYMO Label v.8
DisplayName:
DisplayName: GPL Ghostscript 8.60
DisplayName: GPL Ghostscript Fonts
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName: Microsoft Office Professional Plus 2010
DisplayName:
DisplayName:
DisplayName:
DisplayName: Microsoft ASP.NET 2.0 AJAX Extensions 1.0
DisplayName: Adobe Flash Player 11 Plugin
found
DisplayName: Sybase PowerBuilder 12.0 Standard Runtime
DisplayName: MSXML 4.0 SP3 Parser
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName: MSXML 4.0 SP3 Parser (KB2758694)
DisplayName: Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.4148
DisplayName: Cisco WebEx Meeting Center for Internet Explorer
DisplayName: Configuration Manager Client
DisplayName: Java 7 Update 51
DisplayName: Citrix Online Launcher
DisplayName: MSXML 4.0 SP3 Parser (KB2721691)
DisplayName: Microsoft Windows Journal Viewer
DisplayName: Java Auto Updater
DisplayName: VBA (2627.01)
DisplayName: Microsoft Visual C++ 2005 Redistributable
DisplayName: Microsoft Visual C++ 2005 Redistributable
DisplayName: Apple Software Update
DisplayName: SQL Anywhere 9 for Windows x64
DisplayName: Microsoft Office Professional Plus 2010
DisplayName: Update for Microsoft Filter Pack 2.0 (KB2810071) 32-Bit Edition
DisplayName: Security Update for Microsoft Office 2010 (KB2826035) 32-Bit Edition
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Update for Microsoft Office 2010 (KB2553267) 32-Bit Edition
DisplayName: Update for Microsoft PowerPoint 2010 (KB2553145) 32-Bit Edition
DisplayName: Update for Microsoft Office 2010 (KB2589375) 32-Bit Edition
DisplayName: Security Update for Microsoft Office 2010 (KB2687276) 32-Bit Edition
DisplayName: Update for Microsoft Office 2010 (KB2760631) 32-Bit Edition
DisplayName: Update for Microsoft OneNote 2010 (KB2810072) 32-Bit Edition
DisplayName: Security Update for Microsoft InfoPath 2010 (KB2687422) 32-Bit Edition
DisplayName: Update for Microsoft Office 2010 (KB2494150)
DisplayName: Security Update for Microsoft Office 2010 (KB2687423) 32-Bit Edition
DisplayName: Security Update for Microsoft Office 2010 (KB2597986) 32-Bit Edition
DisplayName: Update for Microsoft Office 2010 (KB2794737) 32-Bit Edition
DisplayName: Update for Microsoft SharePoint Workspace 2010 (KB2589371) 32-Bit Edition
DisplayName: Security Update for Microsoft Publisher 2010 (KB2553147) 32-Bit Edition
DisplayName: Security Update for Microsoft Office 2010 (KB2850016) 32-Bit Edition
DisplayName: Definition Update for Microsoft Office 2010 (KB982726) 32-Bit Edition
DisplayName: Security Update for Microsoft InfoPath 2010 (KB2760406) 32-Bit Edition
DisplayName: Update for Microsoft Visio Viewer 2010 (KB2810066) 32-Bit Edition
DisplayName: HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{90140000-0011-0000-0000-0000000FF1CE}_Office14.PROPLUS_{9569DE03-1425-4D12-96EB-44D852AF759A}\DisplayName
DisplayName: Update for Microsoft Office 2010 (KB2767886) 32-Bit Edition
DisplayName: Update for Microsoft Office 2010 (KB2597087) 32-Bit Edition
DisplayName: Security Update for Microsoft Office 2010 (KB2687510) 32-Bit Edition
DisplayName: Update for Microsoft Office 2010 (KB2553065)
DisplayName: Update for Microsoft Access 2010 (KB2553446) 32-Bit Edition
DisplayName: Security Update for Microsoft Office 2010 (KB2598243) 32-Bit Edition
DisplayName: Update for Microsoft Office 2010 (KB2825640) 32-Bit Edition
DisplayName: Security Update for Microsoft Visio 2010 (KB2810068) 32-Bit Edition
DisplayName: Update for Microsoft Outlook Social Connector 2010 (KB2553406) 32-Bit Edition
DisplayName: Security Update for Microsoft Office 2010 (KB2553371) 32-Bit Edition
DisplayName: Update for Microsoft Office 2010 (KB2826026) 32-Bit Edition
DisplayName: Update for Microsoft Office 2010 (KB2589298) 32-Bit Edition
DisplayName: Security Update for Microsoft Excel 2010 (KB2826033) 32-Bit Edition
DisplayName: Security Update for Microsoft Office 2010 (KB2589320) 32-Bit Edition
DisplayName: Security Update for Microsoft Word 2010 (KB2863902) 32-Bit Edition
DisplayName: Security Update for Microsoft Office 2010 (KB2826023) 32-Bit Edition
DisplayName: Update for Microsoft Office 2010 (KB2760598) 32-Bit Edition
DisplayName: Update for Microsoft Office 2010 (KB2596964) 32-Bit Edition
DisplayName: Update for Microsoft Office 2010 (KB2566458)
DisplayName: Update for Microsoft Office 2010 (KB2589352) 32-Bit Edition
DisplayName: Security Update for Microsoft Outlook 2010 (KB2837597) 32-Bit Edition
DisplayName: Microsoft Office Access MUI (English) 2010
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Microsoft Office Excel MUI (English) 2010
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Microsoft Office PowerPoint MUI (English) 2010
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Update for Microsoft PowerPoint 2010 (KB2553145) 32-Bit Edition
DisplayName: Microsoft Office Publisher MUI (English) 2010
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Microsoft Office Outlook MUI (English) 2010
DisplayName: Update for Microsoft Outlook Social Connector 2010 (KB2553406) 32-Bit Edition
DisplayName: Update for Microsoft Outlook 2010 (KB2687623) 32-Bit Edition
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Microsoft Office Word MUI (English) 2010
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Microsoft Office Proof (English) 2010
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Update for Microsoft Office 2010 (KB2850079) 32-Bit Edition
DisplayName: Microsoft Office Proof (French) 2010
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Update for Microsoft Office 2010 (KB2850079) 32-Bit Edition
DisplayName: Microsoft Office Proof (Spanish) 2010
DisplayName: Update for Microsoft Office 2010 (KB2850079) 32-Bit Edition
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Update for Microsoft Filter Pack 2.0 (KB2810071) 32-Bit Edition
DisplayName: Update for Microsoft OneNote 2010 (KB2810072) 32-Bit Edition
DisplayName: Update for Microsoft SharePoint Workspace 2010 (KB2589371) 32-Bit Edition
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Update for Microsoft Office 2010 (KB2760598) 32-Bit Edition
DisplayName: Update for Microsoft Office 2010 (KB2589352) 32-Bit Edition
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Microsoft Office Proofing (English) 2010
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Microsoft Office InfoPath MUI (English) 2010
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Microsoft Office Shared MUI (English) 2010
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Security Update for Microsoft Office 2010 (KB2553284) 32-Bit Edition
DisplayName: Update for Microsoft Office 2010 (KB2553310) 32-Bit Edition
DisplayName: Microsoft Office OneNote MUI (English) 2010
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Update for Microsoft OneNote 2010 (KB2553290) 32-Bit Edition
DisplayName: Microsoft Office Groove MUI (English) 2010
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Microsoft Office Shared Setup Metadata MUI (English) 2010
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Microsoft Office Access Setup Metadata MUI (English) 2010
DisplayName: Microsoft Office 2010 Service Pack 1 (SP1)
DisplayName: Microsoft Office Visio Viewer 2003 (English)
DisplayName: Cardiff TeleForm
DisplayName: Adobe Acrobat XI Pro
found
DisplayName: QuickTime
DisplayName: CodeMax Runtime Installer
DisplayName: Microsoft .NET Framework 1.1
DisplayName: WinZip 15.0
DisplayName: McAfee VirusScan Enterprise
DisplayName: Microsoft XML Parser
DisplayName: McAfee Agent
DisplayName: Microsoft Visual C++ 2010 x86 Redistributable - 10.0.40219
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName:
DisplayName: Apple Application Support
Does anyone know why this might be happening? The only main difference is that the machine that the script does not work on, has visual studio 2013 installed.
Please helpWell I think we can agree that it is not supported remotely. Because while it did initially work remotely, it didnt behave consistently; that is, it worked on the VM, but not my desktop. That's the whole reason I created this thread. Sorry if you are confused,
but I most certainly was not lying and not trying to troll the forum or whatever it is you are insuinuating. Chill out a little bit and maybe you might get that Microsoft MVP.
I am trying to get you t understand why what you are saying is wrong. You may have thought it worked but there were a number of things that make it impossible to actually work.
You were enumerating a remote key. You were using that key name with RegRead and it was looking up the local value. That is why it could not find remote keys and values. The local and remote machines will not match on all keys.
The correct call is the "GetStringValue" of the registry provider because it is the only call that can read remote values. My point is that you were fooling yourself by thinking that it ever actually worked. If anything it was just dumb luck
that the keys would match.
So maybe you weren't actually lying but you were surely foolingyourself and confusing us.
Anyway - glad you fixed it and just remember to not mix calls like you did. Also don't use On Error Resume Next unless you plan on test every call for an error.
¯\_(ツ)_/¯ -
What functions work with iPhone 3GS on OS4 with Apple wireless keyboard?
I've successfully paired my Apple Wireless Keyboard with my iPhone 3GS running OS4. I can type messages and emails, but many functions seem to be missing, like moving to the "send" button in email or moving around my iPhone screen. Does anyone know where to find info on what keys on the wireless keyboard perform what functions on the iPhone? Thanks
Joe Z in VA wrote:
Does it matter?
On topic, there are a few things that work with the keyboard on to iPhone:
* F1 and F2 - Brightness
* F3 - Disabled
* F4 - Disabled
* F5 and F6 - Disabled
* F7 - Previous Track
* F8 - Pause/Play iPod
* F9 - Skip Track
* F10 - Mute
* F11 - Volume Down
* F12 - Volume Up
* Eject - Disabled (unless Apple adds a mini-Disc)
* Caps Lock - YEAY
* FN Control Option/Alt Command - All Disabled DOH
* Arrow Keys - YEAY
Wow, troll. Stop bringing up dead threads...especially when you can't get your information correct.
The eject key hides and displays the softkeyboard in text entry mode. -
Apple remote not fully functional since upgrading to Lion
I've found that since Lion no longer has Front Row, the Apple Remote functionality has been diminished. As I don't have an Apple TV, what good is it now for me to have one? I used Front Row to watch my movies but now this doesn't work. Trolling the intoonet doesn't bring up anything apart from how to restore Front Row. Anyone come up with a similar issue or a solution?
Thanks, MartinThanks again but I have no peripheral devices connected. It's very annoying whenever I close the lid the logo stays lit and the computer does not go to sleep (light on front stays solid white). Each time it happens I have to open and close the lid 3-4 times before it finally goes to sleep. It's as if the computer gets hung up trying to go to sleep.
-
Fax function of HP LaserJet Enterprise 500 Color MFP M575
Hi,
I am one of users of HP LaserJet Enterprise 500 Color MFP M575.
I would like to know can I set the printer do not print my fax number and fax header on paper when I fax my document to others.
I had login as admin but I did not see where I can config it.
Thank you.
Regards,
Jimmy PunThere is no change to this problem after 6 months since the last post. Put simply, and as stated in the previous posts, there is no way to scan a document and receive the image on your PC. If you are working with graphics for any length of time or want to create an image for inclusion as an image in a document or web page using this piece of equipment will not allow you to do so.
Great shame as every other function works well - it cannot be beyond the wit of HP to include a Windows application that enables you to scan an image, receive it in the software you are using at the time (e.g. Outlook, Word, Photoshop...) and use it in your work.
HP Printers several years older than this £1000+ Enterprise printer were able to do this simple job and have done so for a great many years. Just being able to use Microsoft's Fax and Scan would be start. -
Logical Operations in SQL decode function ?
Hi,
Is it possible to do Logical Operations in SQL decode function
like
'>'
'<'
'>='
'<='
'<>'
not in
in
not null
is null
eg...
select col1 ,order_by,decode ( col1 , > 10 , 0 , 1)
from tab;
select col1 ,order_by,decode ( col1 , <> 10 , 0 , 1)
from tab;
select col1 ,order_by,decode ( col1 , not in (10,11,12) , 0 , 1)
from tab;
select col1 ,order_by,decode ( col1 ,is null , 0 , 1)
from tab;
Regards,
infan
Edited by: user780731 on Apr 30, 2009 12:07 AM
Edited by: user780731 on Apr 30, 2009 12:07 AM
Edited by: user780731 on Apr 30, 2009 12:08 AM
Edited by: user780731 on Apr 30, 2009 12:08 AM
Edited by: user780731 on Apr 30, 2009 12:09 AMexample:
select col1 ,order_by,case when col1 > 10 then 0 else 1 end
from tab;
select col1 ,order_by,case when col1 <> 10 then 0 else 1 end
from tab;
select col1 ,order_by,case when col1 not in (10,11,12) then 0 else 1 end
from tab;As for testing for null, decode handles that by default anyway so you can have decode or case easily..
select col1 ,order_by,decode (col1, null , 0 , 1)
from tab;
select col1 ,order_by,case when col1 is null then 0 else 1 end
from tab; -
Hi,
When we use IF in calculation view with CE function the SQL engine is used.
When we remove the "IF" the CE engine is used.
Is there any alternative for if or case in CE functions?
Thanks,
AmirIs it possible to use CE_CALC for this functionality?
We are trying to use it inside projection:
res_bal = CE_PROJECTION (:bal,[ "BUDAT", "RYEAR" , "Bal_Date" AS "BALANCE_DATE", "RTCUR" ,"MAX_ZGROUP"],'"BALANCE_DATE" == 20140101');
works but:
res_bal = CE_PROJECTION (:bal,[ "BUDAT", "RYEAR" , "Bal_Date" AS "BALANCE_DATE", "RTCUR" ,"MAX_ZGROUP"], '"BALANCE_DATE" == CE_CALC( 'if(''20140101'' == ''19000101'', ''19000101'', ''20140101'')');
Doesn't work.
Thanks,
Amir -
HP AiO Remote app will not recognize scan and copy function of HP Envy 120
Good morning! HP AiO Remote App is installed on my iPad4 and in the same WiFi network with my HP Envy 120 printer. The printer is recognized by the app and marked with a green led. When I tap on scan or copy in the app menu, it tells me that these functions were available in the app only for printers which provide these features. But HP Envy 120 has both scanner and copier. And last time it worked. Some idea what could have happened here? Thanks. UJ
Replied on: http://h30434.www3.hp.com/t5/ePrint-Print-Apps-Mobile-Printing-and-ePrintCenter/HP-AiO-Remote-will-n...
TwoPointOh
I work on behalf of HP
Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping! -
HP AiO Remote will not recognize scan and copy function of HP Envy 120 printer
Good morning! HP AiO Remote App is installed on my iPad4 and in the same WiFi network with my HP Envy 120 printer. The printer is recognized by the app and marked with a green led. When I tap on scan or copy in the app menu, it tells me that these functions were available in the app only for printers which provide these features. But HP Envy 120 has both scanner and copier. And last time it worked. Some idea what could have happened here? Thanks. UJ
Hi UJKarl, welcome to the HP Forums. You should be able to scan from the HP AIO Remote App on your Envy 120 printer. You probably just need to power cycle the printer, iPad and router to regain proper function.
Turn off your printer with the power button. Power down the iPad by holding the sleep button down until you get the option to 'slide to power off'. Then disconnect the power cord to your router and count to about 10, and then plug it back in. Once the router comes back online, turn the printer on. When the printer comes back online (blue wi-fi light stops blinking), then power the iPad back up. Try again, and it should work.
Let me know how it turns out.
TwoPointOh
I work on behalf of HP
Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping! -
7515 ios 8 scanning doesn't function using document feeder
My AiO remote updated on my iPad today and i have issues scanning from the scanner. The printer and tablet functions properly when scanning using the glass however when using the document feeder, AiO remote scans the sheets then before saving it says there is a problem with the scanner, check the scanner. not sure why it works with the glass and NOT with the feeder.
I am having the exact same problem. I will add that scanning from the document feeder to my Mac Book works fine. The problem with the document feeder is only whenn atttempting to use the AiO software on my iPad.
-
I want to implement thems functionality in my swing application
Hi All...
I want to implement the themes object in my swing application,How ,where to start and move that functionality,If anybody use this functionality in your program experience can u share with me.
Than to Advance
ARjun...Hi Kuldeep Chitrakar
I can do that in web intelligence. dont want that
I am replicating some of the sample report of SQL Servers in BusinessObjects XI R3.1.
One of the SQL Sever's report is of product catalogue type that gives complete information like name, category, description along with the products image etc... for each of the products.
I am trying to replicate the above said SQL Server report in Business objects XI R3.1. I am facing problem in bringing the image in to my BO report. The image resides in a table and its datatype is of varbinary(max). I don't know the exact matching while creating an object in the uiverse designer.
Here is the url link http://errorsbusinessobjectsxir3.blogspot.com/2010/10/business-objects-image-errors.html
Regards
Prasad -
Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels. Such problems never arose during two years of using LTR-4 and nothing else has changed on my computer. I have a pretty simple system with only a few plug-ins, which are usually not in operation. I have 12GB of RAM in my Windows 7 PC. I could illustrate these problems with screen shots if you would tell me how to submit screen shots. Otherwise I will try to describe the problems in words.
The problem is clearly cumulative, growing worse as usage time passes. Compare View feature gradually slows down and eventually seems to choke as my work session proceeds. If I Exit LTR and re-enter and start all over, things will work normally for maybe 30 minutes, but then the Compare View feature begins to become very slow to respond. In a recent example with my screen full of thumbnails in Library mode I highlighted two images to compare. LTR started to open the Compare View screen by first having the top row of thumbnails disappear to be replaced by the "SELECT" and "CANDIDATE" words in their spaces (but no images), but Compare View never succeeded in gaining control of the screen. After some seconds the top row of thumbnails reasserted its position and the Compare View windows disappeared. But LTR kept trying to bring them back. Again the top row of thumbnails would go away, Select and candidate would reappear, try again, and give up. This went on for at least 2-3 minutes before I tried to choose File and Exit, but even that did not initially want to respond. It doesn't like to accept other commands when it's trying to open Compare View. Finally it allowed me to exit.
To experiment I created a new catalog of 1100 images. After 30-40 minutes, the Compare View function began to operate very slowly. With left and right side panels visible and two thumbnails highlighted, hitting Compare View can take half a minute before the two mid-size images open in their respective SELECT and CANDIDATE windows. When the side panels are open and two images are in the Select/Candidate spaces, hitting the Tab button to close the side panels produces a very delayed response--25-30 seconds to close them, a few more seconds to enlarge the two images to full size. To reverse the process (i.e., to recall the two side panels), hitting Tab would make the two sides of the screen go black for up to a minute, with no words visible. Eventually the info fields in the panels would open up.
I also created a new user account and imported a folder of 160 images. After half an hour Compare View began mis-placing data. (I have a screen shot to show this.) CANDIDATE appears on the left side of SELECT, whereas it should be on the right. The accompanying camera exposure data appears almost entirely to the left of the mid-screen dividing line. Although the Candidate and Select headings were transposed, the image exposure data was not, but the data for the image on the right was almost entirely to the left of the line dividing the screen in two.
Gurus in The Lightroom Forum have examined Task Manager data showing Processes running and Performance indicators and they see nothing wrong. I could also send screen shots of this data.
At this point, the only way I can process my images is to work 30-40 minutes and then shut down everything, exit, and re-start LTR. This is not normal. I hope you can find the cause, and then the solution. If you would like to see my screen shots, tell me how to submit them.
Ollie
[email protected]Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels. Such problems never arose during two years of using LTR-4 and nothing else has changed on my computer. I have a pretty simple system with only a few plug-ins, which are usually not in operation. I have 12GB of RAM in my Windows 7 PC. I could illustrate these problems with screen shots if you would tell me how to submit screen shots. Otherwise I will try to describe the problems in words.
The problem is clearly cumulative, growing worse as usage time passes. Compare View feature gradually slows down and eventually seems to choke as my work session proceeds. If I Exit LTR and re-enter and start all over, things will work normally for maybe 30 minutes, but then the Compare View feature begins to become very slow to respond. In a recent example with my screen full of thumbnails in Library mode I highlighted two images to compare. LTR started to open the Compare View screen by first having the top row of thumbnails disappear to be replaced by the "SELECT" and "CANDIDATE" words in their spaces (but no images), but Compare View never succeeded in gaining control of the screen. After some seconds the top row of thumbnails reasserted its position and the Compare View windows disappeared. But LTR kept trying to bring them back. Again the top row of thumbnails would go away, Select and candidate would reappear, try again, and give up. This went on for at least 2-3 minutes before I tried to choose File and Exit, but even that did not initially want to respond. It doesn't like to accept other commands when it's trying to open Compare View. Finally it allowed me to exit.
To experiment I created a new catalog of 1100 images. After 30-40 minutes, the Compare View function began to operate very slowly. With left and right side panels visible and two thumbnails highlighted, hitting Compare View can take half a minute before the two mid-size images open in their respective SELECT and CANDIDATE windows. When the side panels are open and two images are in the Select/Candidate spaces, hitting the Tab button to close the side panels produces a very delayed response--25-30 seconds to close them, a few more seconds to enlarge the two images to full size. To reverse the process (i.e., to recall the two side panels), hitting Tab would make the two sides of the screen go black for up to a minute, with no words visible. Eventually the info fields in the panels would open up.
I also created a new user account and imported a folder of 160 images. After half an hour Compare View began mis-placing data. (I have a screen shot to show this.) CANDIDATE appears on the left side of SELECT, whereas it should be on the right. The accompanying camera exposure data appears almost entirely to the left of the mid-screen dividing line. Although the Candidate and Select headings were transposed, the image exposure data was not, but the data for the image on the right was almost entirely to the left of the line dividing the screen in two.
Gurus in The Lightroom Forum have examined Task Manager data showing Processes running and Performance indicators and they see nothing wrong. I could also send screen shots of this data.
At this point, the only way I can process my images is to work 30-40 minutes and then shut down everything, exit, and re-start LTR. This is not normal. I hope you can find the cause, and then the solution. If you would like to see my screen shots, tell me how to submit them.
Ollie
[email protected] -
URGENT: Function modules or BAPIs
Hi Experts,
I need function modules or BAPI to get the open items and cleared items G/L Account wise.
Useful replies will be surely awarded.Hi Chakradhar,
Check tcode : BAPI
u will get all bapis there.
Regards,
Hemant -
How to attached class or function module in FD03
Hi Guys
I want to attached CL_ATTACHMENT_LIST for retriving attachment list from fd03 please help to attached the function module in my program?
regards
Piroz
report zfir_aged_debtors no standard page heading
line-size 255.
Type group
type-pools:
slis. " ALV types
Tables
tables:
adrc, " Addresses
bsad, " Accounting: Customer secondary index (Cleared)
bsid, " Accounting: Customer secondary index (Open)
kna1, " Customer master: General data
knkk, " Customer master: Credit management
knvk. " Customer master: Contact persons
Types
types:
begin of ty_bsadbsid,
bukrs like bsad-bukrs, " Company code
kunnr like bsad-kunnr, " Customer
gjahr like bsad-gjahr, " Fiscal year
belnr like bsad-belnr, " Accounting document number
buzei like bsad-buzei, " Line item
budat like bsad-budat, " Posting date
bldat like bsad-bldat, " Document date
waers like bsad-waers, " Currency
xblnr like bsad-xblnr, " Reference
shkzg like bsad-shkzg, " Debit/credit indicator
dmbtr like bsad-dmbtr, " Amount
zfbdt like bsad-zfbdt, " Baseline date for due date
" calculation
zbd1t like bsad-zbd1t, " Cash discount days 1
zbd2t like bsad-zbd2t, " Cash discount days 2
zbd3t like bsad-zbd3t, " Net payment terms period
rebzg like bsad-rebzg, " Number of the invoice
rebzt like bsad-rebzt, " Follow on document type
end of ty_bsadbsid,
ty_it_bsadbsid type ty_bsadbsid occurs 0,
begin of ty_merged,
kunnr like kna1-kunnr, " Customer number
name1 like adrc-name1, " Name
city1 like adrc-city1, " City
post_code1 like adrc-post_code1, " Post code
street like adrc-street, " Street
house_num1 like adrc-house_num1, " House number
tel_number like adrc-tel_number, " Telephone number
fax_number like adrc-fax_number, " Fax number
namev like knvk-namev, " First name
namew like knvk-name1, " Last name
telf1 like knvk-telf1, " Telephone number
klimk like knkk-klimk, " Credit limit
skfor like knkk-skfor, " Total receivables
total like bsad-dmbtr, " Total amount
rast1 like bsad-dmbtr, " Amount period 1
rast2 like bsad-dmbtr, " Amount period 2
rast3 like bsad-dmbtr, " Amount period 3
rast4 like bsad-dmbtr, " Amount period 4
rast5 like bsad-dmbtr, " Amount period 5
rast6 like bsad-dmbtr, " Amount period 6
end of ty_merged,
ty_it_merged type ty_merged occurs 0.
Internal tables
data:
Internal table to store customer line items from BSAD and BSID
it_bsadbsid type ty_it_bsadbsid,
Internal table to store field catalog for ALV function call
it_fieldcat type slis_t_fieldcat_alv,
Internal table to store summarised data for report output
it_merged type ty_it_merged.
Structures
data:
Display variant structures
st_tvariant like disvariant,
st_variant like disvariant.
Constants
constants:
co_delim_dash type c
value '-',
co_false type c " False
value space,
co_koart_d like faede-koart " Customer account type
value 'D',
co_save_u type c " User display variant
value 'U', " saving allowed.
co_shkzg_h like bsid-shkzg " Debit/Credit indicator
value 'H', " for credit
co_shkzg_s like bsid-shkzg " Debit/Credit indicator
value 'S', " for debit
co_selected type c " Value of selected radio
value 'X', " button or checkbox
co_true type c " True
value co_selected.
Variables
data:
va_exit type c.
Selection screen definition
selection-screen: begin of block b1 with frame title text-001.
select-options:
s_kunnr for bsad-kunnr. " Customer number
parameters:
p_kkber like knkk-kkber, " Credit control area
p_pafkt like knvk-pafkt, " Contact function
p_datum like sy-datum. " Report date
selection-screen: begin of line,
comment 01(30) text-006,
position pos_low.
parameters:
rastbis1 like rfpdo1-allgrogr " Due date sorted 1
default '000',
rastbis2 like rfpdo1-allgrogr " Due date sorted 2
default '000',
rastbis3 like rfpdo1-allgrogr " Due date sorted 3
default '000',
rastbis4 like rfpdo1-allgrogr " Due date sorted 4
default '000',
rastbis5 like rfpdo1-allgrogr " Due date sorted 5
default '000'.
selection-screen: end of line.
selection-screen: end of block b1,
begin of block b2 with frame title text-002.
parameters:
p_varint like disvariant-variant. " Display variant.
selection-screen: end of block b2.
Initialisation
initialization.
Provide default periods for due date sorted list.
rastbis1 = 0.
rastbis2 = 30.
rastbis3 = 60.
rastbis4 = 90.
rastbis5 = 120.
Default report date to current.
p_datum = sy-datlo.
Default credit control area to BP01.
p_kkber = 'BP01'.
At selection screen on value request for
at selection-screen on value-request for p_varint.
Provide display variant list for this program.
call function 'REUSE_ALV_VARIANT_F4'
exporting
is_variant = st_variant
i_save = co_save_u
importing
e_exit = va_exit
es_variant = st_tvariant
exceptions
not_found = 2.
if sy-subrc eq 2.
message id sy-msgid type 'S'
number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
else.
if va_exit eq space.
st_variant = st_tvariant.
p_varint = st_tvariant-variant.
endif.
endif.
At selection screen
at selection-screen.
Load display variant.
if not p_varint is initial.
move st_variant to st_tvariant.
move p_varint to st_tvariant-variant.
call function 'REUSE_ALV_VARIANT_EXISTENCE'
exporting
i_save = co_save_u
changing
cs_variant = st_tvariant.
st_variant = st_tvariant.
else.
clear st_variant.
st_variant-report = sy-repid.
endif.
if p_kkber is initial.
Ensure credit control area is specified.
message e000(zgen) with 'Credit control area must be specified'.
endif.
if p_pafkt is initial.
Ensure contact person function is specified.
message e000(zgen) with 'Contact person function must be specified'.
endif.
Start of selection
start-of-selection.
Extract open customer items from BSID
select bukrs kunnr gjahr belnr buzei budat bldat waers xblnr shkzg
dmbtr zfbdt zbd1t zbd2t zbd3t rebzg rebzt
from bsid
into table it_bsadbsid
where kunnr in s_kunnr
and budat le p_datum.
Extracct cleared customer items from BSAD
select bukrs kunnr gjahr belnr buzei budat bldat waers xblnr shkzg
dmbtr zfbdt zbd1t zbd2t zbd3t rebzg rebzt
from bsad
appending table it_bsadbsid
where kunnr in s_kunnr
and budat le p_datum
and augdt ge p_datum.
Ensure that items were not selected twice while getting data from the
open and cleared items tables (Only if transaction occured during
report run).
sort it_bsadbsid by bukrs belnr gjahr buzei.
delete adjacent duplicates from it_bsadbsid
comparing bukrs belnr gjahr buzei.
if it_bsadbsid[] is initial.
No data found for selection
message s001(zgen).
exit.
endif.
Merge data for report output
perform merge_data tables it_bsadbsid
it_merged.
Build field catalog
perform build_field_catalog tables it_fieldcat.
Output report via ALV
perform output_report_via_alv tables it_fieldcat
it_merged.
*& Form merge_data
text
form merge_data tables pa_it_bsadbsid type ty_it_bsadbsid
pa_it_merged type ty_it_merged.
Local work areas
data:
lwa_bsadbsid type ty_bsadbsid,
lwa_merged type ty_merged.
Local structures
data:
lst_faede like faede.
Local variables
data:
lva_daysover type i,
lva_merged_tabix like sy-tabix.
loop at pa_it_bsadbsid into lwa_bsadbsid.
Lookup merged entry for customer
clear lwa_merged.
read table pa_it_merged into lwa_merged
with key kunnr = lwa_bsadbsid-kunnr
binary search.
lva_merged_tabix = sy-tabix.
if sy-subrc ne 0.
Create new merged record for customer
lwa_merged-kunnr = lwa_bsadbsid-kunnr.
Get customer details from KNA1
clear kna1.
select single *
from kna1
where kunnr eq lwa_bsadbsid-kunnr.
Get customer address details from ADRC
clear adrc.
select single *
from adrc
where addrnumber eq kna1-adrnr
and date_from le p_datum.
lwa_merged-name1 = adrc-name1.
lwa_merged-city1 = adrc-city1.
lwa_merged-post_code1 = adrc-post_code1.
lwa_merged-street = adrc-street.
lwa_merged-house_num1 = adrc-house_num1.
lwa_merged-tel_number = adrc-tel_number.
lwa_merged-fax_number = adrc-fax_number.
Get credit limit details from KNKK
clear knkk.
select single *
from knkk
where kunnr eq lwa_bsadbsid-kunnr
and kkber eq p_kkber.
lwa_merged-klimk = knkk-klimk.
lwa_merged-skfor = knkk-skfor.
Get customer contact person details from KNVK
clear knvk.
select single *
from knvk
where kunnr eq lwa_bsadbsid-kunnr
and pafkt eq p_pafkt.
lwa_merged-namev = knvk-namev.
lwa_merged-namew = knvk-name1.
lwa_merged-telf1 = knvk-telf1.
insert lwa_merged into pa_it_merged index lva_merged_tabix.
endif.
Interpret debit/credit indicator
case lwa_bsadbsid-shkzg.
when co_shkzg_h.
Credit
lwa_bsadbsid-dmbtr = 0 - lwa_bsadbsid-dmbtr.
when co_shkzg_s.
Debit
endcase.
Perform ageing
clear lst_faede.
move-corresponding lwa_bsadbsid to lst_faede.
lst_faede-koart = co_koart_d.
call function 'DETERMINE_DUE_DATE'
exporting
i_faede = lst_faede
importing
e_faede = lst_faede
exceptions
others = 1.
lva_daysover = p_datum - lst_faede-netdt.
Accumulate total.
add lwa_bsadbsid-dmbtr to lwa_merged-total.
if lva_daysover le rastbis1.
add lwa_bsadbsid-dmbtr to lwa_merged-rast1.
else.
if lva_daysover le rastbis2 or
rastbis3 is initial.
add lwa_bsadbsid-dmbtr to lwa_merged-rast2.
else.
if lva_daysover le rastbis3 or
rastbis4 is initial.
add lwa_bsadbsid-dmbtr to lwa_merged-rast3.
else.
if lva_daysover le rastbis4 or
rastbis5 is initial.
add lwa_bsadbsid-dmbtr to lwa_merged-rast4.
else.
if lva_daysover le rastbis5.
add lwa_bsadbsid-dmbtr to lwa_merged-rast5.
else.
add lwa_bsadbsid-dmbtr to lwa_merged-rast6.
endif.
endif.
endif.
endif.
endif.
Update the merged record
modify pa_it_merged from lwa_merged index lva_merged_tabix.
endloop.
endform. " merge_data
*& Form build_field_catalog
text
form build_field_catalog tables pa_it_fieldcat type slis_t_fieldcat_alv.
Local work areas
data:
lwa_fieldcat type slis_fieldcat_alv.
--WG1K903216: Start Insert-
data: v_datum type datum,
v_mdmth type datum,
v_datxt type string,
v_noday type i.
--WG1K903216: End Insert---
refresh pa_it_fieldcat.
clear lwa_fieldcat.
lwa_fieldcat-tabname = 'PA_IT_MERGED'.
lwa_fieldcat-fieldname = 'KUNNR'.
lwa_fieldcat-ref_tabname = 'KNA1'.
lwa_fieldcat-ref_fieldname = 'KUNNR'.
lwa_fieldcat-row_pos = '1'.
lwa_fieldcat-col_pos = '1'.
append lwa_fieldcat to pa_it_fieldcat.
clear lwa_fieldcat.
lwa_fieldcat-tabname = 'PA_IT_MERGED'.
lwa_fieldcat-fieldname = 'NAME1'.
lwa_fieldcat-ref_tabname = 'ADRC'.
lwa_fieldcat-ref_fieldname = 'NAME1'.
lwa_fieldcat-row_pos = '1'.
lwa_fieldcat-col_pos = '2'.
append lwa_fieldcat to pa_it_fieldcat.
clear lwa_fieldcat.
lwa_fieldcat-tabname = 'PA_IT_MERGED'.
lwa_fieldcat-fieldname = 'CITY1'.
lwa_fieldcat-ref_tabname = 'ADRC'.
lwa_fieldcat-ref_fieldname = 'CITY1'.
lwa_fieldcat-row_pos = '1'.
lwa_fieldcat-col_pos = '3'.
append lwa_fieldcat to pa_it_fieldcat.
clear lwa_fieldcat.
lwa_fieldcat-tabname = 'PA_IT_MERGED'.
lwa_fieldcat-fieldname = 'POST_CODE1'.
lwa_fieldcat-ref_tabname = 'ADRC'.
lwa_fieldcat-ref_fieldname = 'POST_CODE1'.
lwa_fieldcat-row_pos = '1'.
lwa_fieldcat-col_pos = '4'.
append lwa_fieldcat to pa_it_fieldcat.
clear lwa_fieldcat.
lwa_fieldcat-tabname = 'PA_IT_MERGED'.
lwa_fieldcat-fieldname = 'STREET'.
lwa_fieldcat-ref_tabname = 'ADRC'.
lwa_fieldcat-ref_fieldname = 'STREET'.
lwa_fieldcat-row_pos = '1'.
lwa_fieldcat-col_pos = '5'.
append lwa_fieldcat to pa_it_fieldcat.
clear lwa_fieldcat.
lwa_fieldcat-tabname = 'PA_IT_MERGED'.
lwa_fieldcat-fieldname = 'HOUSE_NUM1'.
lwa_fieldcat-ref_tabname = 'ADRC'.
lwa_fieldcat-ref_fieldname = 'HOUSE_NUM1'.
lwa_fieldcat-row_pos = '1'.
lwa_fieldcat-col_pos = '6'.
append lwa_fieldcat to pa_it_fieldcat.
clear lwa_fieldcat.
lwa_fieldcat-tabname = 'PA_IT_MERGED'.
lwa_fieldcat-fieldname = 'TEL_NUMBER'.
lwa_fieldcat-ref_tabname = 'ADRC'.
lwa_fieldcat-ref_fieldname = 'TEL_NUMBER'.
lwa_fieldcat-row_pos = '1'.
lwa_fieldcat-col_pos = '7'.
append lwa_fieldcat to pa_it_fieldcat.
clear lwa_fieldcat.
lwa_fieldcat-tabname = 'PA_IT_MERGED'.
lwa_fieldcat-fieldname = 'FAX_NUMBER'.
lwa_fieldcat-ref_tabname = 'ADRC'.
lwa_fieldcat-ref_fieldname = 'FAX_NUMBER'.
lwa_fieldcat-row_pos = '1'.
lwa_fieldcat-col_pos = '8'.
append lwa_fieldcat to pa_it_fieldcat.
clear lwa_fieldcat.
lwa_fieldcat-tabname = 'PA_IT_MERGED'.
lwa_fieldcat-fieldname = 'NAMEV'.
lwa_fieldcat-ref_tabname = 'KNVK'.
lwa_fieldcat-ref_fieldname = 'NAMEV'.
lwa_fieldcat-row_pos = '1'.
lwa_fieldcat-col_pos = '9'.
lwa_fieldcat-seltext_l = 'Contact first name'.
lwa_fieldcat-seltext_m = 'Contact Fname'.
lwa_fieldcat-seltext_s = 'Ctct Fname'.
lwa_fieldcat-ddictxt = 'L'.
append lwa_fieldcat to pa_it_fieldcat.
clear lwa_fieldcat.
lwa_fieldcat-tabname = 'PA_IT_MERGED'.
lwa_fieldcat-fieldname = 'NAMEW'.
lwa_fieldcat-ref_tabname = 'KNVK'.
lwa_fieldcat-ref_fieldname = 'NAME1'.
lwa_fieldcat-row_pos = '1'.
lwa_fieldcat-col_pos = '10'.
lwa_fieldcat-seltext_l = 'Contact last name'.
lwa_fieldcat-seltext_m = 'Contact Lname'.
lwa_fieldcat-seltext_s = 'Ctxt Lname'.
lwa_fieldcat-ddictxt = 'L'.
append lwa_fieldcat to pa_it_fieldcat.
clear lwa_fieldcat.
lwa_fieldcat-tabname = 'PA_IT_MERGED'.
lwa_fieldcat-fieldname = 'TELF1'.
lwa_fieldcat-ref_tabname = 'KNVK'.
lwa_fieldcat-ref_fieldname = 'TELF1'.
lwa_fieldcat-row_pos = '1'.
lwa_fieldcat-col_pos = '11'.
lwa_fieldcat-seltext_l = 'Contact phone no.'.
lwa_fieldcat-seltext_m = 'Contact phone'.
lwa_fieldcat-seltext_s = 'Ctct Phne'.
lwa_fieldcat-ddictxt = 'L'.
append lwa_fieldcat to pa_it_fieldcat.
clear lwa_fieldcat.
lwa_fieldcat-tabname = 'PA_IT_MERGED'.
lwa_fieldcat-fieldname = 'KLIMK'.
lwa_fieldcat-ref_tabname = 'KNKK'.
lwa_fieldcat-ref_fieldname = 'KLIMK'.
lwa_fieldcat-row_pos = '1'.
lwa_fieldcat-col_pos = '12'.
lwa_fieldcat-seltext_l = 'Credit limit'.
lwa_fieldcat-seltext_m = 'Credit limit'.
lwa_fieldcat-seltext_s = 'Crdt limit'.
lwa_fieldcat-ddictxt = 'L'.
append lwa_fieldcat to pa_it_fieldcat.
clear lwa_fieldcat.
lwa_fieldcat-tabname = 'PA_IT_MERGED'.
lwa_fieldcat-fieldname = 'SKFOR'.
lwa_fieldcat-ref_tabname = 'KNKK'.
lwa_fieldcat-ref_fieldname = 'SKFOR'.
lwa_fieldcat-row_pos = '1'.
lwa_fieldcat-col_pos = '13'.
lwa_fieldcat-seltext_l = 'Credit used'.
lwa_fieldcat-seltext_m = 'Credit used'.
lwa_fieldcat-seltext_s = 'Crdt used'.
lwa_fieldcat-ddictxt = 'L'.
append lwa_fieldcat to pa_it_fieldcat.
clear lwa_fieldcat.
lwa_fieldcat-tabname = 'PA_IT_MERGED'.
lwa_fieldcat-fieldname = 'TOTAL'.
lwa_fieldcat-ref_tabname = 'BSAD'.
lwa_fieldcat-ref_fieldname = 'DMBTR'.
lwa_fieldcat-row_pos = '1'.
lwa_fieldcat-col_pos = '14'.
lwa_fieldcat-seltext_l = 'Total'.
lwa_fieldcat-seltext_m = 'Total'.
lwa_fieldcat-seltext_s = 'Total'.
lwa_fieldcat-ddictxt = 'L'.
append lwa_fieldcat to pa_it_fieldcat.
clear lwa_fieldcat.
lwa_fieldcat-tabname = 'PA_IT_MERGED'.
lwa_fieldcat-fieldname = 'RAST1'.
lwa_fieldcat-ref_tabname = 'BSAD'.
lwa_fieldcat-ref_fieldname = 'DMBTR'.
lwa_fieldcat-row_pos = '1'.
lwa_fieldcat-col_pos = '15'.
--WG1K903216: Start Delete-
concatenate '<'
rastbis2
into lwa_fieldcat-seltext_l
separated by space.
--WG1K903216: End Delete---
--WG1K903216: Start Insert-
clear: v_datum,
v_datxt.
v_noday = rastbis2.
Always use the middle of the report month as a heading reference date.
concatenate p_datum+0(6) '15' into v_mdmth.
call function 'ZWAG_DATE_CALCULATOR'
exporting i_datum = v_mdmth
i_noday = v_noday
i_oprnd = '+'
importing e_datum = v_datum
exceptions invalid_operand = 1.
call function 'ZWAG_END_MONTH'
exporting i_datum = v_datum
importing e_datum = v_datum
e_datxt = v_datxt
exceptions invalid_date = 1.
concatenate 'Due' v_datxt into lwa_fieldcat-seltext_l
separated by space.
--WG1K903216: End Insert---
lwa_fieldcat-seltext_m = lwa_fieldcat-seltext_l.
lwa_fieldcat-seltext_s = lwa_fieldcat-seltext_l.
lwa_fieldcat-ddictxt = 'L'.
append lwa_fieldcat to pa_it_fieldcat.
clear lwa_fieldcat.
lwa_fieldcat-tabname = 'PA_IT_MERGED'.
lwa_fieldcat-fieldname = 'RAST2'.
lwa_fieldcat-ref_tabname = 'BSAD'.
lwa_fieldcat-ref_fieldname = 'DMBTR'.
lwa_fieldcat-row_pos = '1'.
lwa_fieldcat-col_pos = '16'.
--WG1K903216: Start Delete-
concatenate rastbis1
rastbis2
into lwa_fieldcat-seltext_l
separated by co_delim_dash.
--WG1K903216: End Delete---
--WG1K903216: Start Insert-
clear: v_datum,
v_datxt.
v_noday = rastbis1.
call function 'ZWAG_DATE_CALCULATOR'
exporting i_datum = v_mdmth
i_noday = v_noday
i_oprnd = '+'
importing e_datum = v_datum
exceptions invalid_operand = 1.
call function 'ZWAG_END_MONTH'
exporting i_datum = v_datum
importing e_datum = v_datum
e_datxt = v_datxt
exceptions invalid_date = 1.
concatenate 'Due' v_datxt into lwa_fieldcat-seltext_l
separated by space.
--WG1K903216: End Insert---
lwa_fieldcat-seltext_m = lwa_fieldcat-seltext_l.
lwa_fieldcat-seltext_s = lwa_fieldcat-seltext_l.
lwa_fieldcat-ddictxt = 'L'.
append lwa_fieldcat to pa_it_fieldcat.
clear lwa_fieldcat.
lwa_fieldcat-tabname = 'PA_IT_MERGED'.
lwa_fieldcat-fieldname = 'RAST3'.
lwa_fieldcat-ref_tabname = 'BSAD'.
lwa_fieldcat-ref_fieldname = 'DMBTR'.
lwa_fieldcat-row_pos = '1'.
lwa_fieldcat-col_pos = '17'.
--WG1K903216: Start Delete-
concatenate rastbis2
rastbis3
into lwa_fieldcat-seltext_l
separated by co_delim_dash.
--WG1K903216: End Delete---
--WG1K903216: Start Insert-
clear: v_datum,
v_datxt.
v_noday = rastbis2.
call function 'ZWAG_DATE_CALCULATOR'
exporting i_datum = v_mdmth
i_noday = v_noday
i_oprnd = '-'
importing e_datum = v_datum
exceptions invalid_operand = 1.
call function 'ZWAG_END_MONTH'
exporting i_datum = v_datum
importing e_datum = v_datum
e_datxt = v_datxt
exceptions invalid_date = 1.
concatenate 'Due' v_datxt into lwa_fieldcat-seltext_l
separated by space.
--WG1K903216: End Insert---
lwa_fieldcat-seltext_m = lwa_fieldcat-seltext_l.
lwa_fieldcat-seltext_s = lwa_fieldcat-seltext_l.
lwa_fieldcat-ddictxt = 'L'.
append lwa_fieldcat to pa_it_fieldcat.
clear lwa_fieldcat.
lwa_fieldcat-tabname = 'PA_IT_MERGED'.
lwa_fieldcat-fieldname = 'RAST4'.
lwa_fieldcat-ref_tabname = 'BSAD'.
lwa_fieldcat-ref_fieldname = 'DMBTR'.
lwa_fieldcat-row_pos = '1'.
lwa_fieldcat-col_pos = '18'.
--WG1K903216: Start Delete-
concatenate rastbis3
rastbis4
into lwa_fieldcat-seltext_l
separated by co_delim_dash.
--WG1K903216: End Delete---
--WG1K903216: Start Insert-
clear: v_datum,
v_datxt.
v_noday = rastbis3.
call function 'ZWAG_DATE_CALCULATOR'
exporting i_datum = v_mdmth
i_noday = v_noday
i_oprnd = '-'
importing e_datum = v_datum
exceptions invalid_operand = 1.
call function 'ZWAG_END_MONTH'
exporting i_datum = v_datum
importing e_datum = v_datum
e_datxt = v_datxt
exceptions invalid_date = 1.
concatenate 'Due' v_datxt into lwa_fieldcat-seltext_l
separated by space.
--WG1K903216: End Insert---
lwa_fieldcat-seltext_m = lwa_fieldcat-seltext_l.
lwa_fieldcat-seltext_s = lwa_fieldcat-seltext_l.
lwa_fieldcat-ddictxt = 'L'.
append lwa_fieldcat to pa_it_fieldcat.
clear lwa_fieldcat.
lwa_fieldcat-tabname = 'PA_IT_MERGED'.
lwa_fieldcat-fieldname = 'RAST5'.
lwa_fieldcat-ref_tabname = 'BSAD'.
lwa_fieldcat-ref_fieldname = 'DMBTR'.
lwa_fieldcat-row_pos = '1'.
lwa_fieldcat-col_pos = '19'.
--WG1K903216: Start Delete-
concatenate rastbis4
rastbis5
into lwa_fieldcat-seltext_l
separated by co_delim_dash.
--WG1K903216: End Delete---
--WG1K903216: Start Insert-
clear: v_datum,
v_datxt.
v_noday = rastbis4.
call function 'ZWAG_DATE_CALCULATOR'
exporting i_datum = v_mdmth
i_noday = v_noday
i_oprnd = '-'
importing e_datum = v_datum
exceptions invalid_operand = 1.
call function 'ZWAG_END_MONTH'
exporting i_datum = v_datum
importing e_datum = v_datum
e_datxt = v_datxt
exceptions invalid_date = 1.
concatenate 'Due' v_datxt into lwa_fieldcat-seltext_l
separated by space.
--WG1K903216: End Insert---
lwa_fieldcat-seltext_m = lwa_fieldcat-seltext_l.
lwa_fieldcat-seltext_s = lwa_fieldcat-seltext_l.
lwa_fieldcat-ddictxt = 'L'.
append lwa_fieldcat to pa_it_fieldcat.
clear lwa_fieldcat.
lwa_fieldcat-tabname = 'PA_IT_MERGED'.
lwa_fieldcat-fieldname = 'RAST6'.
lwa_fieldcat-ref_tabname = 'BSAD'.
lwa_fieldcat-ref_fieldname = 'DMBTR'.
lwa_fieldcat-row_pos = '1'.
lwa_fieldcat-col_pos = '20'.
--WG1K903216: Start Delete-
concatenate '>'
rastbis5
into lwa_fieldcat-seltext_l
separated by space.
--WG1K903216: End Delete---
--WG1K903216: Start Insert-
clear: v_datum,
v_datxt.
v_noday = rastbis5.
call function 'ZWAG_DATE_CALCULATOR'
exporting i_datum = v_mdmth
i_noday = v_noday
i_oprnd = '-'
importing e_datum = v_datum
exceptions invalid_operand = 1.
call function 'ZWAG_END_MONTH'
exporting i_datum = v_datum
importing e_datum = v_datum
e_datxt = v_datxt
exceptions invalid_date = 1.
concatenate 'Due By' v_datxt into lwa_fieldcat-seltext_l
separated by space.
--WG1K903216: End Insert---
lwa_fieldcat-seltext_m = lwa_fieldcat-seltext_l.
lwa_fieldcat-seltext_s = lwa_fieldcat-seltext_l.
lwa_fieldcat-ddictxt = 'L'.
append lwa_fieldcat to pa_it_fieldcat.
endform. " build_field_catalog
*& Form output_report_via_alv
text
form output_report_via_alv
tables pa_it_fieldcat type slis_t_fieldcat_alv
pa_it_merged type ty_it_merged.
Local variables
data:
lva_repid like sy-repid,
lva_formname type slis_formname.
lva_repid = sy-repid.
lva_formname = 'USER_COMMAND'.
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = lva_repid
i_callback_user_command = lva_formname
i_save = 'A'
is_variant = st_variant
it_fieldcat = pa_it_fieldcat[]
tables
t_outtab = pa_it_merged
exceptions
program_error = 1
others = 2.
endform. " output_report_via_alvHi shiva
Thanks for your help,
Can you check this coding and revert me back ASAP Please.
REPORT BDS_GOS_CONNECTION.
DATA : logical_system LIKE BAPIBDS01-log_system.
CLASSNAME LIKE BAPIBDS01-CLASSNAME
OBJKEY LIKE SWOTOBJID-objkey.
PARAMETERS: pa_lo_sys BAPIBDS01-log_system,
pa_class like BPIBDS01-CLASSNAME,
pa_objkey like swotobjidobjkey.
AT SELECTION-SCREEN.
CALL FUNCTION 'BDS_GOS_CONNECTIONS_GET'
EXPORTING
bor_id = bor_id
IMPORTING
logical_sytem = pa_lo_sys.
classname = pa_class.
objkey = pa_objkey.
EXCEPTIONS
no_objects_found = 1
internal_error = 2
internal_gos_error = 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.
clear v_attno1.
i_object1-typeid = 'BUS2012'.
i_object1-catid = 'BO'.
i_object1-instid = i_yItem-docno.
call method cl_gos_attachment_query=>count_for_object
exporting
is_object = i_object1
ip_arl = space
receiving
rt_stat = i_stat1.
read table i_stat1 into wa_stat1 index 1.
if sy-subrc eq c_0.
move wa_stat1-counter to v_attno1.
endif.
CALL METHOD cl_gos_attachment_query=>count_for_object
EXPORTING
is_object = object
ip_arl = space
RECEIVING
rt_stat = lt_stat.
READ TABLE lt_stat INDEX 1 into ls_stat.
count = ls_stat-counter.
*The object has to be a concatenation of your document, like this:
CONCATENATE object-instid tab-gjahr INTO object-instid.
ELSE.
CONCATENATE tab-bukrs tab-belnr tab-gjahr INTO
object-instid.
ENDIF.
Maybe you are looking for
-
How to find out who had deleted a varient of a report
Hi, I want to know who has deleted a variant of a report. is there any table or a transaction code from where we can know the login id of the person. Thanks, Vinayak
-
Hello Everybody, I have PDF documents maintained in DMS and assigned to a material. When a production order is created I have to print the PDF from DMS automatically. Can someone tell me how to do that? What ABAP code is to be written to do that. Ple
-
Apple tv iphone desconecta cuando se bloquea
hola. tengo un problema desde hace unos días cuando veo en el apple tv un video desde el iphone. cuando se bloquea el iphone me da un error con el apple Tv y pierdo la conexión Qué puedo hacer???
-
Hi Experts, How can I find out when a document e.g. Production is last updated from the system? Just wonder if there is a way to find out the metadata from the system that when a field get changed. There is a status field on Production Order Header t
-
SQL 2014 - current SQL Server edition is not supported by MDS
Hi, we've installed SQL Server 2014 on a Windows 2008 R2 server with a namde instance for the database service. We also installed MDS 2014 on a different server and configured it with the MDS database on de before mentioned database server. The confi