Writing a user exit on Microsoft Windows
On Microsoft Windows, a foreign function that can be invoked from a user exit is contained in a dynamic link library(DLL). A DLL is a library that loads into memory only when the contained code is invoked, and a DLL can be shared by multiple applications.
I need examples, please help me
null
http://otn.oracle.com/sample_code/products/forms/sample_code_index.htm used to contain the help U need. The same content is available on Forms help also. Go on search for Foreign Functions. U have a whole lot of functions available from ORA_FFI package.
Similar Messages
-
Need Logic for writing the User exit
Hi Gurus,
I am writing the User Exit code to populate the 'Valid to' field in the data source.
Technical Name - DATUB and Type- DATS
I am using the FM 'GET_STPO"
My extract structure has following fields.
MANDT
MATNR
WERKS
STLAN
STLNR
STLAL
STLTY
STLKN
STPOZ
DATUV
IDNRK
PSWRK
MEINS
MENGE
MTART
DISMM
DATUB
I am not getting the DATUB value for some of the BOM Node Numbers(STLKN).
Please suggest me as How Can I write the code?
Thanks a lot.
Shalaka.Hi ,
You can also try this :
int countold = 0;
int countnew = 0;
int k = 0;
for(int i =0;i<var1.length;i++)
countold = countnew + 1;
countnew = countnew + Integer.parseInt(var1<i>);
for( int j = countold-1 ;j<countnew;j++)
result.addValue(var2[k]);
k++;
result.addContextChange();
Regards,
Ganesh -
Writing a User exit for a Variable in Bex Query
Hi Guys,
I need some urgent help on this. I appreciate your help.
I have a variable ZVAR1 ( Store id) in a query. This processing type is manual entry.
There is another variable ZVAR2 (0Orgunit). The value in ZVAR2 should be populated by converting the ZVAR1 value that the user entered.
The master data 0orgunit has the marriage between these two.
So i guess I need to write a user exit to populate ZVAR2 from ZVAR1. How can I do that.
Please help me out on this.
Thanks a lot,Hi,
You can read the value of ZVAR1 from I_T_VAR_RANGE in your exit coding.
Then perform the required manipulation to populate ZVAR2.
Thanks,
Balaji -
The "ad" file names look like they're randomly generated. They look like n6sxx8t5.dat and 038prmz7.txt. I get one for every pop-up ad that is generated. That pop-up ad is generally related to the type of web page i'm on when it triggers. it only occurs once per session. what i don't know is if it is also trying to capture any data i'm entering.
like i said, i've deleted the text and index.dat files, but they keep coming back.Do a malware check with some malware scanning programs.<br />
You need to scan with all programs because each program detects different malware.<br />
Make sure that you update each program to get the latest version of their databases before doing a scan.<br />
<br />
* http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
* http://www.superantispyware.com/ - SuperAntispyware
* http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
* http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
* http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
See also:
* "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked
* https://support.mozilla.com/kb/Searches+are+redirected+to+another+site
If using the above listed scanners does not fix it or if you are blocked from installing those scanners then ask advice on one of the forums that specialize in malware removal mentioned in the <i>Popups_not_blocked</i> article. -
User exit for string input in a query
Hi All,
I am writing a query where the user would enter a string for materials, depending on which all those materials which match that pattern should be displayed in the result set of the query.
This report is to display the stock value of all such materials.
I want to write a user exit for the same but have no knowledge of how to do it.
Pl help me with the code and some documents on writing a user exit.
Thanks,
SharmishthaYou have to write Customer Exit for it.
Take help of this how to guide:
https://websmp103.sap-ag.de/~sapdownload/011000358700002762582003E/HowToDeriveVariableValue.pdf
Basically nur exit code you have to make use of CP (compare pattern) in opt paramter of code:
http://help.sap.com/saphelp_nw04s/helpdata/en/1d/ca10d858c2e949ba4a152c44f8128a/content.htm -
Need Fcode in User Exit For Infotype
Hi,
I am writing a User exit for Infotype 0002 at Customers Site. I need Fcode to realize a specific logic. I am using the exit PBAS0001 for this purpose. can anyone tell me how to I get Fcode so that I can use it in the code ?
Regards,
SumaHi Suma,
sorry that i posted the false BAdI.
You have to use HRPAD00INFTY. That is for PA.
The BAdI HRBAS00INFTY is for PD/OM.
Regards
Bernd
But there is no paramter ok_code
Message was edited by:
Bernd Köhn -
Populating field code - User Exit
Hello friends
I need your help. I am writng a User Exit and i have a requirement.This is my first time writing a User Exit so pelase help me out. First i went to the generic datasource i am trying to extend.I went to the structure in there and added 3 zfields i need.My requirement is that am using a View i created and a generic datasource on it. I need to get WEMNG,WADAT and SLFDT from EKET table where DELKZ= FE
DELNR = EBELN.
I need the exact code ill need in ZXRSAU01.How will i call teh datasource and lay down these conditions.Please assist me.hi,
first have a commen field in the itab and e_tata.
data:begin of itab occurs 0,
commnon field.
WEMNG like EKET -WEMNG ,
WADAT LIKE EKET-WADAT,
SLFDT LIKE EKET-SLFDT ,
END IF ITAB.
data:i_tab like standard table of e_t_data with header line.
i_tab[] = e_t_data[].
select wemng wadat sfldt from eket into table itab where DELKZ= FE
DELNR = EBELN.
loop at i_tab.
read table itab with key fieldname condition.
i_tab-WEMNG = itab-wemng.
i_tab-WADAT = itab-wadat.
i_tab-SLFDT = itab-sfldt.
modify i_tab index sy-tabix.
endloop.
e_t_data[] = i_tab[].
pls assign points if helpful. -
Microsoft-Windows-Folder Redirection Error 502. CSC database locked by another user
Dear all,
We are finalizing our Windows 7 migration where we migrated 500+ clients. In our enterprise concept we implemented RUP (Roaming User Profiles) and Redirected Folders for all
users. The Redirected Folders have been by enabled by a single GPO which redirects all folders from
AppData to
Searches \\servername.domain.name\documents$\%username%.
Problem:
The RUP and Redirected folders solution works fine until a new user wants to logon. This new user has been migrated to RUP and Redirected on another system and
he just wants to work on another workplace or gets a temporary pc. What happens is that redirected folders do not work. The user gets a message that the folder is not reachable and desktop is empty.
Troubleshooting:
Soon I found out that something was being locked. If we used a user account which had working Redirect Folders than this
worked for that user. An event of 10 was logged in OfflineFiles area of EventViewer to reconnect the path which was configured in the GPO.
This is example screenshot. It says "Error on Open Folder. \\server.domain.name\documents$\%username%\Desktop refers to a location that is unavailable. It could be on a hard disk
on this computer, or a on a network. Check to make sure that the disk is properly inserted, or that you are connected to the Internet or your network, and then try again. If it still cannot be located, the information might have been moved to a different location."
These symptoms happen randomly and not on all workstations. The pain here is when it happens on a portable computer. For desktop we disabled the "Disable Offline Files' in "Manage
Offline Files" control panel and then reboot. After the reboot the folders are directed
and it works without these errors... On portable computer we can't use this work around as they need to work offline.
If I connect to the share without the FQDN like \\servername\documents$\%username%\Desktop than this works fine and user can access all folders. When I try the FQDN path which is
configured in the GPO to redirect user to like \\servername.domain.name\documents$\%username%\Desktop than it fails with this message. I personally think because the C:\Windows\CSC database is locked by the previous user who has been logged on this system.
An example of the event generated in the Applications Event viewer part (I removed some username and server path):
Log Name: Application
Source: Microsoft-Windows-Folder Redirection
Date: 1-2-2011 17:40:11
Event ID: 502
Task Category: None
Level: Error
Keywords:
User: domain\ivan
Computer: computer.domain.name
Description:
Failed to apply policy and redirect folder "Videos" to "\\servername.domain.name\documents$\ivan\Documents\My Videos".
Redirection options=0x1001.
The following error occurred: "Can not create folder "\\\servername.domain.name\documents$\ivan\Documents\My Videos"".
Error details: "Access is denied.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-Folder Redirection" Guid="{7D7B0C39-93F6-4100-BD96-4DDA859652C5}" />
<EventID>502</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x8000000000000000</Keywords>
<TimeCreated SystemTime="2011-02-01T16:40:11.486983400Z" />
<EventRecordID>2754</EventRecordID>
<Correlation ActivityID="{3211E6FB-2801-456D-BE6E-66AAE150A4DC}" />
<Execution ProcessID="968" ThreadID="5856" />
<Channel>Application</Channel>
<Computer>computer.domain.name</Computer>
<Security UserID="S-1-5-21-3705223304-2632712944-1292073641-26755" />
</System>
<EventData Name="EVENT_FDEPLOY_FailedToApplyPolicy">
<Data Name="FromFolder">Videos</Data>
<Data Name="ToFolder">\\servername.domain.name\documents$\ivan\Documents\My Videos</Data>
<Data Name="Options">0x1001</Data>
<Data Name="Error">Can not create folder "\\servername.domain.name\documents$\ivan\Documents\My Videos"</Data>
<Data Name="ErrorDetails">Access is denied.
</Data>
</EventData>
</Event>
Something like this I see in the Application Eventviewer:
Environment:
Windows 7 Enterprise client with patches until 1-Nov-2010
Windows Server 2008 R2 for the Documents$ share
Windows Server 2003 R2 as the domain controller
I have tried all different option even to rebuild the CSC database but this also was not helping. I hope we are not dealing with a bug.
Any help is much appreciated.
Best regards, Ivan Versluis http://www.networknet.nlIvan and SteveDIG - Thanks for taking the time to post detailed information about what you have found. I have found the same things over the past few months and have been working with Microsoft to resolve this. Like Ivan, I have been told by
MS that this is a design problem in Windows 7, but they did admit it is a bug and did not charge me for the case. That was the good news. The bad news was that the problem is so 'deep' in Windows 7 that it will not be fixed until Windows 8 and
the CSC engineering team in Redmond has rejected several requests to fix this issue in Windows 7 from several customers. I personally feel we should have hauled our TAM in over this, but that wasn't my call so we haven't attempted to get an attitude
change from MS.
<RANT> I find this completely outrageous. Windows is supposed to be a multi-user operating system suitable for deployment to mobile workforces spread around the world and often using slow VPN links. Offline folders, folder redirection,
slow link detection, etc. are all great on paper and as I did the design work for the W7 solution I've just built I sold these advantages heavily. I now have serious egg on my face and am not happy. Like others here I missed this in testing as
multiple users are a fringe for us, but still important, I unfortunately didn't think to specifically test for multiple users, though I tested the features thoroughly and was happy with the results when used on single user machines.</RANT>
As identified above, this issue manifests when more than one user uses a machine and their Offline folders (all redirected folders are configured this way by default) are in an offline state when the first user logs off. The second user cannot access
this 'offline' share so folder redirection fails. We get burnt as we have latency=0 configured for slow link detection with Offline folders so users always work offline. This is partly because of WAN optimisers in the network that lie to Windows
so the online/offline transition doesn't work on slow links (not MS's fault), and partly because it made sense for other reasons.
The workaround Microsoft and I came up with for our environment was to use individual file shares for each user. We had been using a common file share with each user folder under that file share. Changing to an individual share for each users
means the share is not locked by the previous user.
Examples
This would cause a problem if John then Emma logged on to the same machine. Folder redirection would fail for Emma:
\\FileServer1\Users$\john
\\FileServer1\Users$\emma
So would this if DFS was used
\\my.domain\users\john (points to \\FileServer1\Users$\John)
\\my.domain\users\emma (points to \\FileServer1\Users$\Emma)
This would fix the problem:
\\FileServer1\John$
\\FileServer1\Emma$
Unfortunately we then figured we could move these shares behind DFS like so:
\\my.domain\homes\john (points to \\FileServer1\John$)
\\my.domain\homes\emma (points to \\FileServer1\emma$)
This was wrong. The problem returned. I assume the share that is being locked is now the DFS root and not the user share.
The operations team here is very reluctant to go with direct access to the file servers and not use DFS as that will create issues for them in the future when they need to make file server changes. I sympathise with them but can't see an alternative
at the moment as we are deploying W7 and can't stop. If I'd picked this up earlier a third party product might have been the solution (MS actually suggested this when I opened my case).
I hope the information about individual shares above is helpful to someone. Otherwise I don't really have more to add but I needed the rant :-)
<RANT>BTW. Has anyone tested changing a user’s home directory path once it is cached? Try it. Test a scenario where you move the user from one file server to another. You will not enjoy the results. I'll say no more
than this as it is off topic, but it shows the lack of investment in the CSC feature in Windows. Very disappointing</RANT> -
Disable the characteristic window in sales order and user-exit to pick up
Hi Freinds,
I am working on 1 VC assignment in which
1. I have to pick up the characteristic values selected in VA02 in sales order before saving the change sales order.
2. I have to Disable the characteristic window (with characteristic name and value) appear after click on u2018item detail : configurationu2019 button in sales order (if the chracterstic say 'Approval' having the value 'Yes')
3. I have to disable the characteristic window after selecting the one of the characteristic value to 'Yes' in VA02
So I need to fetch this character value witnin sales order before saving the change sales order and need to restrict the user to change any other characteristic value(disable the characteristic window) .
Please guide for any user exit at configuration side to export and import the values in sales order and disable the characteristic window to restrict the user from changing any other characteristic value for the item.
Please do the needfull.
Best Regards,
Vikram ChavanHi,
Check....
Exit Name Description
LMR1M001 User exits in Logistics Invoice Verification
LMR1M002 Account grouping for GR/IR account maintenance
LMR1M003 Number assignment in Logistics Invoice Verification
LMR1M004 Logistics Invoice Verification: item text for follow-on docs
LMR1M005 Logistics Inv. Verification: Release Parked Doc. for Posting
LMR1M006 Logistics Invoice Verification: Process XML Invoice
MRMH0001 Logistics Invoice Verification: ERS procedure
MRMH0002 Logistics Invoice Verification: EDI inbound
MRMH0003 Logistics Invoice Verification: Revaluation/RAP
MRMN0001 Message output and creation: Logistics Invoice Verification
Reward points if useful....
Regards
AK -
Cannot add/ change user account - error with Microsoft-Windows-User Profiles Service
Hello
A few days ago my computer went wierd.
I cannot update windows because I get no results when I use "Windows Search"
My metro UI doesnt work properly. I cannot use it.
Somebody said that it could be that my User Account could be corrupted.
I tried to create I new one, but I could do the first steps, because the computer doesnt respond when I click "Change my account" in controlpanel.
I get errorlogs like this:
Loggnamn: Application
Källa: Microsoft-Windows-User Profiles Service
Datum: 2015-04-29 12:03:16
Händelse-ID: 1542
Aktivitetskategori:Ingen
Nivå: Fel
Nyckelord:
Användare: SYSTEM
Dator: Baddarn
Beskrivning:
Det går inte att läsa in registerfilen för klasser.
INFORMATION - The system cannot find the file specified.
Händelsens XML-data:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-User Profiles Service" Guid="{89B1E9F0-5AFF-44A6-9B44-0A07A7CE5845}" />
<EventID>1542</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x8000000000000000</Keywords>
<TimeCreated SystemTime="2015-04-29T10:03:16.571099200Z" />
<EventRecordID>91382</EventRecordID>
<Correlation />
<Execution ProcessID="1128" ThreadID="2524" />
<Channel>Application</Channel>
<Computer>Baddarn</Computer>
<Security UserID="S-1-5-18" />
</System>
<EventData>
<Data Name="Error">The system cannot find the file specified.
</Data>
</EventData>
</Event>
What can I do?Hi Intesabra,
Have you made any modifications to the machine before the issue?
First of all ,I would suggest you to update the machine manually.
Control Panel\All Control Panel Items\Windows Update\Check for updates.
I also suggest you to perform a full scan with the antivirus software to eliminate the virus issue considering this issue is a little wierd. We can do this in safe mode to improve the scanning quality.
Run "services.msc" to check the status of "User Profiles Service" and ensure it is running.
Run "dism /online /cleanup-image /restorehealth" or "sfc /scannow" to check the health of the whole system files.
Considering this issue occurred recently, we can perform a system restore to recover the machine to a previous point.
Best regards
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected] -
"Use my Microsoft Windows user ID and password" is grayed out
Hello Experts,
I've disabled "SOX Auditing" option in Server Manager in BPC 5.1 SP03, but "Use my Microsoft Windows user ID and password" is still grayed out. The only option I unlocked is saving password.
How do I enable Windows Authentication in BPC?
Thanks in advance,
AkimEnabling/Disabling SOX Compliance does not take effect until the 2nd time you go through the Connection Wizard.
Your problem could also be within Internet Explorer.
Go to:
1. Internet Explorer>Tools>Internet Options>Security Tab
2. Click on Local Intranet zone>Custom Level
3. Scroll down to User Authentication>Logon. Ensure that Automatic Logon with Current UN and PW is checked.
4. Do the same for the Internet zone.
Try on multiple machines.
Also on the client machine, look at the value for BASICAUTHENTICATION in:
hkeycurrentuser>software>vb and vba program settings>outlooksoft 5>latest -
Hi everybody,
I've tried to deploy my application into the Azure Worker role but could not get it done successfully. I hope somebody can help me.
After the error, I can see the error "Plugin Microsoft.Windows.Azure.Extensions.RDP 1.0.0.1 injection failed. Installation exit code: -1" in my Windows Azure Portal.
If I do RDP, I can see the error message in details Install command for plugin Microsoft.Windows.Azure.Extensions.RDP 1.0.0.1 program D:\Packages\Plugins\Microsoft.Windows.Azure.Extensions.RDP\1.0.0.1\RemoteAccessPluginLauncher.exe exited with non-zero exit
code -1. . MessageId = 3004 SymbolicName = EVENT_PLUGIN_INSTALL_EXITED_WITH_SUCCESS Severity = Success Language = English Install command for plugin Microsoft.Windows.Azure.Extensions.RDP 1.0.0.1 program D:\Packages\Plugins\Microsoft.Windows.Azure.Extensions.RDP\1.0.0.1\RemoteAccessPluginLauncher.exe
exited with zero exit code -1. . MessageId = 3005 SymbolicName = EVENT_PLUGIN_INSTALL_STARTED Severity = Success Language = English Executing install command for plugin Microsoft.Windows.Azure.Extensions.RDP 1.0.0.1 program D:\Packages\Plugins\Microsoft.Windows.Azure.Extensions.RDP\1.0.0.1\RemoteAccessPluginLauncher.exe.
Do anybody know what happens?
FYI. I see Windows Azure Remote Forwarder Plugin was installed successfully.
MSI (s) (00:00) [18:32:58:311]: Product: Windows Azure Remote Forwarder Plugin -- Configuration completed successfully.
MSI (s) (00:00) [18:32:58:311]: Windows Installer reconfigured the product. Product Name: Windows Azure Remote Forwarder Plugin. Product Version: 1.8.40316.1333. Product Language: 1033. Manufacturer: Microsoft Corporation. Reconfiguration success or error status:
0.
=== Logging stopped: 6/24/2014 18:32:58 ===
Thanks,You can try it later. I had this issue long ago and waited one day.
You also try those two solution:
1.redeploy your project to worker role and enable the RDP setting (see this blog
2.recklessly, you could delete your worker role and redeploy it. The error will be disappeared.
Regards,
-Billgiee -
Users not given option to "Use my Microsoft Windows user ID"
Hi guys.
Anyone seen this before?
When our users connect to BPC, either through IE or straight from Excel, they get the following:
The first time they connect in any session (after a reboot, logon, etc.) they are offered both options to sign in...
"Use my Microsoft Windows user ID and password"
and
"Use a different user ID and password"
This is as intended
However, on any subsequent login requests (changing Apps, AppSets, closing and re-opening Excel, etc.), they are ONLY given the "Use a different user ID and password" option.
Whilst this might seem a minor issue, the number of times that users are having to re-enter their password in a day is getting on people's nerves and we're hearing a lot about it.
Has anyone come across anything similar before, and if so, how (if at all) did you resolve it?
This has been a problem in v7.5 SP4 for a while and is still a problem after an upgrade to 7.5 SP6
ThanksHi Art.
That was gthe first thing I checked.
However, we have resolved it. Strangely, we had to set SOX compliance to ON and then back to OFF.
This seems to have done the trick.
Thanks for the suggestion though. -
Microsoft Windows Outlook Users and Mac OS X 10.6.2 Server
Is there any way to configure Microsoft Windows Outlook (2003 or 2007) to check their email (POP3) from Mac OS X 10.6.2 mail server by using CRAM-MD5 or APOP?
Wrong forum. Please ignore.
-
I want to write user exit in the GR Creation.
Please help me out.did you find the user exit.
find the user exit in smod ,what do you want to do..
accordingly you can find the user exit.
these are the exists..
MBCF0002 Customer function exit: Segment text in material doc. item
MBCF0005 Material document item for goods receipt/issue slip
MBCF0006 Customer function for WBS element
MBCF0007 Customer function exit: Updating a reservation
MBCF0009 Filling the storage location field
MBCF0010 Customer exit: Create reservation BAPI_RESERVATION_CREATE1
MBCF0011 Read from RESB and RKPF for print list in MB26
MB_CF001 Customer Function Exit in the Case of Updating a Mat. Doc.
vijay
Message was edited by: Vijay Babu Dudla
Maybe you are looking for
-
Can't sync songs to ipod - help?
I've been having trouble with syncing songs to my ipod. I inadvertently lost all my songs, but they agreed to restore them. So far, so good. All the 50+ songs that I'd purchased from itunes in the last 2 years were restored --- but to what? My "libra
-
Implementing WebDynpro ABAP in JAVA Portal
Hello We have a JAVA enterprise Portal and we would like to create an iView of WebDynpro ABAP application. We have done it in our QA portal by creating a system and in the property editor configuring the "Web AS Host Name" & "Web AS Path". It works g
-
How do I resolve an unresponsive white screen with a beeping sound in a pattern of three?
How do I resolve an unresponsive white screen with a beeping sound in a pattern of 3?
-
About to throw this mb OUT THE WINDOW
Ok bought a new 915p combo Motherboard and it posts and does all of that just fine. However Now I cant get it to boot Xp. And yea I know what your going to say fresh install xp but there is another glitch I cant even get it to run my harddrive utilit
-
Lost all audio after installing HP recommende​d upgrade??
I just update per HP suggestion. Lost all audio on my notebook. Need it back asap as I am running audio for a show tonight