Cookie exceptions not saving
I am using Firefox stable version 24 on Windows 8.1 (RTM).
I would like to clear all cookies upon exit of Firefox, except for those sites specified in the exceptions list. When I add websites to the exceptions list they are saved until I restart firefox, at which point the exceptions list becomes empty again.
I have tried to play around with the about:permissions page, but the list of websites on the left is also empty despite me having visited numerous websites in the current browsing session.
Any help would be appreciated.
Thank you cor-el, this must have been the reason the issue occurred.
Similar Messages
-
Hello,
I use Windows 7 SP1 + IE11 with flash version 14.0.0.176 (langage : French).
New installation.
The flash files/cookies are not saved. It is visible in flash games: save don't work.
I have found a test on this site: IE10 Test Drive Demo: Flash Cookies that shows on my PC that no flash cookie is saved at all.
I have searched several forum without finding any solution.
For exemple : I have verified in the flash control panel that web site are allowed to save file. I have verified that an "infinite" amount of storage is also allowed... I have seen similar topics unanswered in this forum. I have searched the SOL file, but they never appear.
But may be I have missed something. I would appreciate a solution!
May the fact that the C:\users directory is redirected (through a link) to another location do something?
Also, some flash applications don't work at all. Some videos embedded in information site for example don't start. Some games begin to launch but never start.
Thanks in advance!
JoeI have now had a chance to try this and it doesn't work for me. Seems my Flash installation is really messed up.
I have edited the mms.cfg in C:\Windows\SysWOW64\Macromed\Flash. It now has:
SilentAutoUpdateEnable=0
AutoUpdateDisable=0
EnableInsecureJunctionBehavior=1
Enhanced Protect Mode in IE is not checked.
I have rebooted the computer.
And I still have the same problem creating the cookie. I get no error message but the cookie does not appear. Flash still seems happy to create directories for the websites I visit, but I get no cookie files in them.
Thanks for trying to fix this problem. Looks like it is time to try to unwind my junction point and move everything onto the C: drive. Perhaps I'll try uninstalling and reinstalling Flash one more time...
Mark -
Cookies are not saved (login info, cookie acceptance, bank cookies etc)
Cookies are not being saved. examples: if I log into the telegraph site the login does not persist, if I accept the cookies from The Register I get asked again, If I set my location on the BBC news site it resets, the same with my bank website.
I have tried:
disabling all add-ons
resetting firefox
uninstalling and reinstalling firefox (no add-ons at all)
deleting my user config files
deleting anything to do with firefox and reinstalling
unsyncing firefox
I'm tearing my hair out now lol. It's making it impossible to use firefox (especialy with banks that set a cookie to recognise the pc etc)
Any ideas what could be wrong or what else to try to locate the problem?In case you are using "Clear history when Firefox closes":
*do not clear the Cookies
*do not clear the Site Preferences
*Tools > Options > Privacy > Firefox will: "Use custom settings for history": [X] "Clear history when Firefox closes" > Settings
*https://support.mozilla.org/kb/Clear+Recent+History
Note that clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, passwords, and other website specific data.
Clearing cookies will remove all specified (selected) cookies including cookies with an allow exception that you would like to keep.
It is possible that the <i>cookies.sqlite</i> file that stores the cookies is corrupted if clearing cookies doesn't work.
Rename (or delete) <b>cookies.sqlite</b> (cookies.sqlite.old) and delete other present cookies files like <b>cookies.sqlite-journal</b> in the Firefox profile folder in case the file cookies.sqlite got corrupted.
*http://kb.mozillazine.org/Cookies
*https://support.mozilla.org/kb/Deleting+cookies -
Pop Up blocker exceptions are not saved in the browser for use, the next time the PC reboots. How do you save these exceptions for long term use?
In case you are using "Clear history when Firefox closes":
*do not clear the Site Preferences
*Tools > Options > Privacy > Firefox will: "Use custom settings for history": [X] "Clear history when Firefox closes" > Settings
*https://support.mozilla.org/kb/remove-browsing-search-and-download-history
Note that clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, passwords, and other website specific data.
If you have software like Advanced SystemCare (Surfing Protection feature) that might reset some files to older versions to protect these files against changes then check the settings or uninstall this software. -
Iphone not saving cookies anymore....
Iphone not saving cookies anymore.... I am running an IPhone 3gs and just upgraded my firmware from I think 4.1.2 to 4.3.2 (8H7). Now the problem. I spend
a lot of time on craigslist searching for specific items all day long. With the 4.1 firmware, When you look at a certain items and go back it highlights it a
different color (light purple) so that it shows that you have previously visited that item. The un visited ones ar blue. I can go back tomorrow and it will still
show that I have visited that item. However, since upgrading to 4.3.2 it no longer holds the cookie. For example go to craigslist and search for something, then
view the item, and in safari press the back arrow. The item you just looked at is now light purple, the rest being blue. Now hit the refresh arrow in the address
field at the top and the item will return to blue and will not show that the item was visited. This color change sort of checks off what i have already looked at.
Without it I have to look through them all over again. If you have a solution to this problems, Please email me at [email protected] thanksTry deleting and manually recreating the account on your iPhone.
-
Internet Explorer 10 and 11 not saving cookies when Roaming Profile used.
Hi,
We are using Citrix Xenapp 6.5 with roaming profile and IE9.
I have tried to upgrade to IE10 and IE11 on a test Xenapp server, when we log off Windows and log back on again any website settings stored in cookies were lost.
The cookies is stored in the roaming part of the profile. New in IE10 is the webcache file database that keeps track of cookie stored in the profile
AppData\Local folder gets deleted when you log off, if you have a roaming profile, and when you log on again all coockies are rewritten. Same problem with IE11.Hi,
Here is a workaround to make cookies work is to set a Group Policy Preference to set the registry value, please see detailed instructions in the following link
Internet Explorer 10 not saving cookies when Roaming Profile used
http://rcmtech.wordpress.com/2013/08/30/internet-explorer-10-not-saving-cookies-when-roaming-profile-used/
NOTE
This
response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you.
Microsoft
does not control these sites and has not tested any software or information found on these sites.
Yolanda
TechNet Community Support -
Clicking "Clear Recent History..." wipes all cookies and even worse the cookies exceptions list although the cookies box is not ticked.
Problem persist across restarts of Firefox and reboots of the OS.The exceptions are part of the "Site Preferences".
Make sure that you do not use [[Clear Recent History]] to clear the 'Cookies' and the 'Site Preferences'.
You need an allow exception for cookies that you want to keep. -
Ios 8 not saving cookies or logins to web pages
I have an 4S iPhone which was upgraded to ios 8.0.2 (12A4050)
Each time I go to some favorite web sites, I have to log in each time. Once I log in and access the site, it acts as though the cookies are not being saved.
I have my setting to allow all cookie and not to block any site. One I exit the sites a little time later when I access them again, I have to re-log into them again.
I have another iPhone 4S with ios 6.1.3 (10B329) on it and it acts fine. Once I log into each of my favorite web sites, I can close the browser and when I go back to them I do not have to log in again, only if I manually clear the cookies and history of my browser.Start fresh ..
Tap Settings > Safari then tap to clear History, Cookies, & Data
Then restart your iPhone.
Check your autofill settings.
Tap Settingds > Safari > Password & AutoFill.
Make sure: Names and passwords is selected. -
Firefox 26 not saving logins OR passwords after clicking "Remember me"?
Problem:
Began having this issue about a month ago, after altering some Google privacy settings. I then went on a rampage of cookie deleting and disabled all third party cookies... and managed, somehow, to disable Firefox's ability to remember /any/ website's "remember me".
I constantly have to log in to every account each time I exit the webpage, even after clicking the remember me box.
Passwords and login info are still stored; they auto-fill when I click on the fill-in bars; but accounts refuse to stay logged-in.
Additional info:
After toying around with the google settings, that didn't fix things.
Re-enabling third party cookies didn't fix things.
Privacy/Security Add Ons include: Ghostery 5.1, Adblock Plus 2.4.1, WOT
Changing security settings in the Options -> Firefox Privacy didn't fix things.
Resetting Firefox didn't fix things.
"Remember form & search history" is on.
Everything in privacy is currently checked EXCEPT "Use private browsing".
Using Firefox 26.''Soniahryn wrote:''
Passwords and login info are still stored; they auto-fill when I click on the fill-in bars; but accounts refuse to stay logged-in.
Then you have a problem with cookies.
''Soniahryn wrote:''
Everything in privacy is currently checked EXCEPT "Use private browsing".
Click the '''Exceptions''' button and delete any unwanted entries. ''Block'' exceptions will prevent cookies from the respective domain from being saved altogether, while ''Allow for Session'' exceptions will delete cookies from the respective domain once Firefox is closed.
If you don't have any cookie exceptions, does the problem go away if you disable all your add-ons in the Add-ons Manager, Extensions category and restart Firefox? If yes, then see
* [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]
If the problem persists with all extensions disabled, try the following.
# Under '''[[Settings for privacy, browsing history and do-not-track|Options - Privacy]]''', set ''Firefox will: Remember history''.
# Open '''[[Profiles - Where Firefox stores your bookmarks, passwords and other user data|your profile folder]]'''.
# Exit Firefox.
# Delete the ''cookies.sqlite'' file and if found, also ''cookies.sqlite-shm'' and ''cookies.sqlite-wal''. Note that this will discard any saved cookies you may have. -
– I have the most recent version of Firefox.
– I have my settings in Preferences -> Privacy on "Keep third party cookies until I close Firefox".
– I've checked "Clear history when Firefox closes" and have ticked every single box under settings (except saved passwords).
– But still, Cookies do not get deleted when I close Firefox – there are hundreds of cookies every time I open it.
– If I go to Tools -> Clear recent history, choose "everything" and tick every single box, history etc. get deleted but the cookies remain.
– If I go to Preferences -> Privacy and click "Show Cookies" and then click "Remove all cookies" twice, the cookies disappear, but they're back just seconds later.
– I've even tried going to Preferences, clicking on Exceptions and manually adding some of the websites that showed up under "show cookies" and blocking them and then deleting the cookies, but still they re-appeared within seconds, and the exceptions were blank again.
– I've checked all your support pages about this topic.
– I've seen this https://support.mozilla.org/en-US/questions/740598?esab=a&as=aaq and tried it and it didn't help.
– I've seen this https://support.mozilla.org/en-US/questions/936308?esab=a&as=aaq and this https://support.mozilla.org/en-US/questions/868910?esab=a&as=aaq, and yes I do use "Do Not Track Plus" and some of the Cookies seem to be Opt-Out-Cookies but most are not.
Please help me. I used to be a big fan of Firefox but this is getting really scary.You can't remove opt-cookies that are added by an extension unless you disable or uninstall that extension, so you can disable the do not track extension as a test to see if that allows to remove the cookies.
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
If clearing cookies doesn't work then it is possible that the <i>cookies.sqlite</i> file that stores the cookies is corrupted.
Rename (or delete) <b>cookies.sqlite</b> (cookies.sqlite.old) and delete other present cookie files like <b>cookies.sqlite-journal</b> in the Firefox Profile Folder in case the file cookies.sqlite got corrupted.
You can use this button to go to the Firefox profile folder:
*Help > Troubleshooting Information > Profile Directory: Show Folder -
Dear sirs,
I develop a web-site which uses cookies. A captcha and log-in state of the site depend on cookies. For unknown reasons the cookies are not read programmatically now by the site. Using an add-on, I see that cookies are being written, but not read. Everything worked just before I updated FF to 35.0
I tested my site in major browser, everything works fine in IE, Safari, Opera, Opera Mobile and MS Page Inspector. But in FF and Chrome cookies are not read.
If you want me to email you my cookies.sqlite, I can do it, it is just around 1MB. Thanks.Does document.cookie show these cookies if you paste this command in the command line in the Web Console (Firefox/Tools > Web Developer)?
You can enable the Storage tab in the Web Console by clicking the toolbar settings (gear) icon and use the storage inspector to check what cookies are created.
*https://developer.mozilla.org/Tools/Tools_Toolbox#Settings
You can check in the Web Console if there are (JavaScript) error messages about this issue.
You can remove all data stored in Firefox from a specific domain via "Forget About This Site" in the right-click context menu of an history entry ("History > Show All History" or "View > Sidebar > History") or via the about:permissions page.
Using "Forget About This Site" will remove all data stored in Firefox from that domain like bookmarks, cookies, passwords, cache, history, and exceptions, so be cautious and if you have a password or other data from that domain that you do not want to lose then make sure to backup this data or make a note.
You can't recover from this 'forget' unless you have a backup of the involved files.
It doesn't have any lasting effect, so if you revisit such a 'forgotten' website then data from that website will be saved once again. -
Firefox is not saving my passwords.
I have followed the instructions in the article titled "Usernames and passwords are not saved" but Firefox is not saving my passwords. What am I doing wrong? I am running Windows 8.1.
Make sure that you do not run Firefox in permanent Private Browsing mode (Never remember history).
*https://support.mozilla.org/kb/Private+Browsing
*Tools > Options > Privacy > Firefox will: "Use custom settings for history"
*Deselect: [ ] "Always use Private Browsing mode"
Details like websites remembering you (log you in automatically) are stored in a cookie.
*Create a cookie 'allow' exception to keep such cookies, especially in case of secure websites and when cookies expire when Firefox is closed.
*Tools > Options > Privacy > "Use custom settings for history" > Cookies: Exceptions -
It's not saving my browzing & download history.
It's not saving my browzing & download history.
-> Tap '''ALT''' key or press '''F10''' to show the Menu Bar
-> go to Tools Menu -> Options -> Privacy -> History section -> '''Firefox will: select "Use Custom Settings for History"''' -> REMOVE Checkmark from '''"Permanent Private Browsing mode"''' -> place CHECKMARKS on:
1) Remember my Browsing History 2) Remember Download History 3) Remember Search History 4) Accept Cookies from sites -> click '''Exceptions...''' button and click '''Remove All Sites''' 4a) Accept Third-party Cookies -> ''Keep Until'' ''': select They Expire'''
-> REMOVE CHECKMARK from CLEAR HISTORY WHEN FIREFOX CLOSES
-> '''When using the Location Bar, suggest: select "History and Bookmarks"'''
-> go to Tools Menu -> Options -> Security -> place Checkmarks on:
1) Warn me when sites try to install add-ons 2) Block reported attack sites 3) Block reported web forgeries
-> go to Tools Menu -> Options -> Advanced -> General -> Remove Checkmark from '''Warn me when websites try to redirect or reload the page'''
-> Click OK on Options window -> Restart Firefox
Check and tell if its working.
Be careful when you use '''Clear Recent History''' feature
https://support.mozilla.com/en-US/kb/Clear%20Recent%20History -
Image is not saved in jpeg/bmp file but ok with png
Hi i am unable to save the image in disk in jpeg format.
Here is the code.
public void saveImage(){
//if no filechooser is there means no image file opened.
if(fileChooser==null){
if(errorWindow==null)
errorWindow=new ErrorWindow(XXX.getPrimaryStage());
errorWindow.showErrorWindow("There is no image to save !!\n");
else{
fileChooser.setTitle("Save The Image");
File saveFile=fileChooser.showSaveDialog(XXX.getPrimaryStage());
if(saveFile!=null){
System.out.println("saveFile path= "+saveFile);
//get the extension of output image to be saved.
//XXX: is the main class name(say)
outExtension=*XXX*.getImageExtension(saveFile);
//if user does not give extension: set default extension as jpg
if(outExtension.equalsIgnoreCase(saveFile.getName())){
outExtension="jpg";
String newPath=(saveFile.toString())+".jpg";
saveFile=new File(newPath);
Task task = new Task<Void>() {
@Override
public Void call() {
Platform.runLater(
new Runnable() {
public void run() {
try {
//The image is inside ImageView->inside ScrollPane-> inside TabPane.
Image curImage=XXX.getCurrentImage();
int width=(int)curImage.getWidth();
int height=(int)curImage.getHeight();
System.out.println("cur image width= "+width+" ht= "+height);
bufferedImage=new BufferedImage(width, height,BufferedImage.TYPE_INT_ARGB );
//set the current image to awt Buffered Image
SwingFXUtils.fromFXImage(curImage, bufferedImage);
imageTabPane=xxx.getImageTabPane();
Tab tab=imageTabPane.getSelectionModel().getSelectedItem();
TabPane childTabPane=(TabPane)tab.getContent();
ScrollPane sp=(ScrollPane)childTabPane.getSelectionModel().getSelectedItem().getContent();
final ImageView imageView=(ImageView)sp.getContent();
WritableImage wim = new WritableImage(width,height);
imageView.snapshot(null, wim);
System.out.println(" snapShot width= "+wim.getWidth()+" ht="+wim.getHeight());
*ImageIO.write(SwingFXUtils.fromFXImage(wim,null), outExtension, saveFile);*
//<------ its not working for png,jpeg,bmp,gif
// the below lines are working only for png and gif
OutputStream out = new FileOutputStream(saveFile);
ImageIO.write((RenderedImage) bufferedImage, outExtension, out);
out.flush();
} catch (Exception ex) {
Logger.getLogger(FileMenuController.class.getName()).log(Level.SEVERE, null, ex);
//ex.printStackTrace();
System.out.println("finished");
return null;
Thread th = new Thread(task);
th.start();
}else{
System.out.println("File is not saved");
}//saveImageNote: The above code is executed in ubuntu(10.04) using Netbeans 7.2(Javafx(2.2), java(1.7.0_11).
When i run(from terminal) separately in a new class with an image in an Imageview( inside a Vbox) and take the snapshot
of the imageview and write into the file using ImageIO.write(SwingFXUtils.fromFXImage(wim,null), outExtension, saveFile);
with any extension (jpeg,png etc) it is working fine.
Please help me.
Any small hint is also helpful.Please feel free to comment or give suggestion.
Edited by: 963038 on Feb 17, 2013 7:14 PMWhen i omit the line OutputStream out = new FileOutputStream(saveFile);
and write only
ImageIO.write((RenderedImage) bufferedImage, outExtension,saveFile);
//out.flush();
then saving the image even in "png" also fails.
The following is the error code:
Note : FileMenuController is my file where the saveImage() is wrtten.
javax.imageio.IIOException: I/O error writing PNG file!
finished
at com.sun.imageio.plugins.png.PNGImageWriter.write(PNGImageWriter.java:1168)
at javax.imageio.ImageWriter.write(ImageWriter.java:615)
at javax.imageio.ImageIO.doWrite(ImageIO.java:1612)
at javax.imageio.ImageIO.write(ImageIO.java:1536)
at *newciptk.controls.menu.file.FileMenuController$1$1.run(FileMenuController.java:205)*
at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:173)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:76)
at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at com.sun.glass.ui.gtk.GtkApplication$3$1.run(GtkApplication.java:82)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.io.IOException: Operation not supported
at java.io.RandomAccessFile.writeBytes(Native Method)
at java.io.RandomAccessFile.write(RandomAccessFile.java:499)
at javax.imageio.stream.FileImageOutputStream.write(FileImageOutputStream.java:124)
at javax.imageio.stream.ImageOutputStreamImpl.writeInt(ImageOutputStreamImpl.java:91)
at com.sun.imageio.plugins.png.ChunkStream.finish(PNGImageWriter.java:136)
at com.sun.imageio.plugins.png.PNGImageWriter.write_IHDR(PNGImageWriter.java:401)
at com.sun.imageio.plugins.png.PNGImageWriter.write(PNGImageWriter.java:1135)
... 9 more
javax.imageio.IIOException: I/O error writing PNG file!
at com.sun.imageio.plugins.png.PNGImageWriter.write(PNGImageWriter.java:1168)
at javax.imageio.ImageWriter.write(ImageWriter.java:615)
at javax.imageio.ImageIO.doWrite(ImageIO.java:1612)
at javax.imageio.ImageIO.write(ImageIO.java:1536)
at newciptk.controls.menu.file.FileMenuController$1$1.run(FileMenuController.java:205)
at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:173)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:76)
at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at com.sun.glass.ui.gtk.GtkApplication$3$1.run(GtkApplication.java:82)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.io.IOException: Operation not supported
at java.io.RandomAccessFile.writeBytes(Native Method)
at java.io.RandomAccessFile.write(RandomAccessFile.java:499)
at javax.imageio.stream.FileImageOutputStream.write(FileImageOutputStream.java:124)
at javax.imageio.stream.ImageOutputStreamImpl.writeInt(ImageOutputStreamImpl.java:91)
at com.sun.imageio.plugins.png.ChunkStream.finish(PNGImageWriter.java:136)
at com.sun.imageio.plugins.png.PNGImageWriter.write_IHDR(PNGImageWriter.java:401)
at com.sun.imageio.plugins.png.PNGImageWriter.write(PNGImageWriter.java:1135)
... 9 more -
Storage location Data is not saving in table MARD using BAPI method.
Hi Experts,
TABLES: T001L, "Storage Locations
MARA, "General Material Data
MAKT, "Material Descriptions
MBEW, "Material Valuation
MARC, "Plant Data for Material
MARD. "Storage Location Data for Mate
DATA: BAPI_HEAD LIKE BAPIMATHEAD, "MATERIAL
BAPI_MAKT LIKE BAPI_MAKT, "Material Description
BAPI_MARA1 LIKE BAPI_MARA, "Client Data
BAPI_MARAX LIKE BAPI_MARAX,
BAPI_MARC1 LIKE BAPI_MARC, "Plant View
BAPI_MARCX LIKE BAPI_MARCX,
BAPI_MBEW1 LIKE BAPI_MBEW, "Accounting View
BAPI_MBEWX LIKE BAPI_MBEWX,
BAPI_MARD1 LIKE BAPI_MARD, "Storage location
BAPI_MARDX LIKE BAPI_MARDX,
BAPI_RETURN LIKE BAPIRET2.
DATA: BEGIN OF INT_MAKT OCCURS 100.
INCLUDE STRUCTURE BAPI_MAKT.
DATA: END OF INT_MAKT.
DATA: BEGIN OF INT_MAT OCCURS 100,
WERKS(4), "Plant
LGORT(4), "Storage location
MTART(4), "Material type
MATNR(18), "Material number
MAKTX(40), "Material description
MATKL(9) , "Material group
MBRSH(1), "Industry sector
MEINS(3), "Base unit of measure
GEWEI(3), "Weight Unit
SPART(2), "Division
EKGRP(3), "Purchasing group
VPRSV(1), "Price control indicator
STPRS(12), "Standard price
PEINH(3), "Price unit
SPRAS(2), "Language key
BKLAS(4), "VALUATION CLASS
VERPR TYPE VERPR_BAPI, "MOVING PRICE
BWTTY(1), "Valuation Catogory
MLAST(1), "Price determination
MLMAA(1), "Material Ledger
EKLAS(4), "Valuation Class for sales order stock
QKLAS(4), "Valuation Class for Project Stock
ZKPRS TYPE DZKPRS, "Future price
ZKDAT TYPE DZKDAT, "Valid From Date
BWPRS TYPE BWPRS, "Tax price 1
BWPS1 TYPE BWPS1, "Tax price 2
VJBWS TYPE VJBWS, "Tax price 3
ABWKZ TYPE ABWKZ, "Devaluatin indicator
BWPRH TYPE BWPRH, "Commercial price 1
BWPH1 TYPE BWPH1, "Commercial price 2
VJBWH TYPE VJBWH, "Commercial Price 3
XLIFO(1), "LIFO/FIFO revelant
MYPOL(4), "Pool no for LIFO
MMSTA(2), "Plant specific material status
AUSME TYPE AUSME, "Unit of issue
QMATA(6), "Material Authorization group
RBNRM(9), "Catalog Profile
WEBAZ TYPE WEBAZ, "Goods reciept processing time in days
PRFRQ TYPE PRFRQ, "Recurring Insepction
SSQSS(8), "QM Control key
QZGTP(4), "Certificate Type
QSSYS(4), "Required QM system for vendor
END OF INT_MAT.
DATA: V_MATNR TYPE MARA-MATNR.
SELECT-OPTIONS:
PLANT FOR MARC-WERKS OBLIGATORY MEMORY ID PLT,
S_LGORT FOR MARD-LGORT MEMORY ID STL,
MATERIAL FOR MARA-MATNR MEMORY ID MAT,
MATLTYPE FOR MARA-MTART MEMORY ID MTY,
DIVISION FOR MARA-SPART MEMORY ID DIV.
PARAMETERS: F_FILE LIKE RLGRAP-FILENAME
DEFAULT 'C:\DATA\ZMATERIAL.XLS' MEMORY ID F_FILE,
GETDATA AS CHECKBOX, "Tick to download materials data to local harddisk
UPDDATA AS CHECKBOX. "Tick to update date to Materials Master
IF GETDATA = 'X'.
PERFORM DOWNLOAD_DATA.
PERFORM DOWNLOAD_FILE.
ENDIF.
IF UPDDATA = 'X'.
PERFORM UPLOAD_FILE.
PERFORM UPDATE_MM.
ENDIF.
FORM DOWNLOAD_DATA.
SELECT * FROM MARC WHERE LVORM EQ ' '
AND WERKS IN PLANT
AND MATNR IN MATERIAL.
CLEAR MARA.
SELECT SINGLE * FROM MARA WHERE MATNR = MARC-MATNR.
CHECK MATLTYPE.
CHECK DIVISION.
CLEAR MBEW.
SELECT SINGLE * FROM MBEW WHERE MATNR = MARC-MATNR
AND BWKEY = MARC-WERKS.
CLEAR MAKT.
SELECT SINGLE * FROM MAKT WHERE SPRAS = 'EN'
AND MATNR = MARC-MATNR.
CLEAR MARD.
SELECT SINGLE * FROM MARD WHERE WERKS IN PLANT
AND LGORT IN S_LGORT.
WRITE:/ MARC-WERKS, "Plant
MARD-LGORT, "Storage location
MARA-MTART, "Material type
MARA-MATNR, "Material number
MARA-MATKL, "Material group
MARA-MBRSH, "Industry sector
MARA-MEINS, "Base unit of measure
MARA-GEWEI, "Weight Unit
MARA-SPART, "Division
MARC-EKGRP, "Purchasing group
MBEW-VPRSV, "Price control indicator
MBEW-STPRS, "Standard price
MBEW-PEINH, "Price unit
MBEW-BKLAS, "VALUE CLASS
MAKT-SPRAS, "Language key
MBEW-BKLAS, "Valuation Class
MBEW-VERPR, "Moving price
MAKT-MAKTX, "Material description
MBEW-BWTTY, "Valutaion Catogorey
MBEW-MLAST, "Price Determination
MBEW-MLMAA, "Material Ledger
MBEW-EKLAS, "Valuation class for Sales order stock
MBEW-QKLAS, "Valutaion Class for Project Stock
MBEW-ZKPRS, "Future Price
MBEW-ZKDAT, "Valid From Date
MBEW-BWPRS, "Tax price 1
MBEW-BWPS1, "Tax price 2
MBEW-VJBWS, "Tax price 3
MBEW-ABWKZ, "Devaluatin indicator
MBEW-BWPRH, "Commercial price 1
MBEW-BWPH1, "Commercial price 2
MBEW-VJBWH, "Commercial Price 3
MBEW-XLIFO, "LIFO/FIFO revelant
MBEW-MYPOL, "Pool no for LIFO
MARC-MMSTA, "Plant specific material status
MARC-AUSME, "Unit of issue
MARC-QMATA, "Material Authorization group
MARA-RBNRM, "Catalog Profile
MARC-WEBAZ, "Goods reciept processing time in days
MARC-PRFRQ, "Recurring Insepction
MARC-SSQSS, "QM Control key
MARC-QZGTP, "Certificate Type
MARC-QSSYS. "Required QM system for vendor
INT_MAT-WERKS = MARC-WERKS. "Plant
INT_MAT-LGORT = MARD-LGORT. "Storage Location
INT_MAT-MTART = MARA-MTART. "Material type
INT_MAT-MATNR = MARA-MATNR. "Material number
INT_MAT-MAKTX = MAKT-MAKTX. "Material description
INT_MAT-MATKL = MARA-MATKL. "Material group
INT_MAT-MBRSH = MARA-MBRSH. "Industry sector
INT_MAT-MEINS = MARA-MEINS. "Base unit of measure
INT_MAT-GEWEI = MARA-GEWEI. "Weight Unit
INT_MAT-SPART = MARA-SPART. "Division
INT_MAT-EKGRP = MARC-EKGRP. "Purchasing group
INT_MAT-VPRSV = MBEW-VPRSV. "Price control indicator
INT_MAT-STPRS = MBEW-STPRS. "Standard price
INT_MAT-PEINH = MBEW-PEINH. "Price unit
INT_MAT-SPRAS = MAKT-SPRAS. "Language key
INT_MAT-BKLAS = MBEW-BKLAS. "VALVATION CLASS
INT_MAT-VERPR = MBEW-VERPR. "MOVING price
INT_MAT-BWTTY = MBEW-BWTTY. "Valutaion Catogorey
INT_MAT-MLAST = MBEW-MLAST. "Price Determination
INT_MAT-MLMAA = MBEW-MLMAA. "Material Ledger
INT_MAT-EKLAS = MBEW-EKLAS. "Valuation class forS.O Stock
INT_MAT-QKLAS = MBEW-QKLAS. "Valutaion Class for Project
INT_MAT-ZKPRS = MBEW-ZKPRS. "Future Price
INT_MAT-ZKDAT = MBEW-ZKDAT. "Valid From Date
INT_MAT-BWPRS = MBEW-BWPRS. "Tax price 1
INT_MAT-BWPS1 = MBEW-BWPS1. "Tax price 2
INT_MAT-VJBWS = MBEW-VJBWS. "Tax price 3
INT_MAT-ABWKZ = MBEW-ABWKZ. "Devaluatin indicator
INT_MAT-BWPRH = MBEW-BWPRH. "Commercial price 1
INT_MAT-BWPH1 = MBEW-BWPH1. "Commercial price 2
INT_MAT-VJBWH = MBEW-VJBWH. "Commercial Price 3
INT_MAT-XLIFO = MBEW-XLIFO. "LIFO/FIFO revelant
INT_MAT-MYPOL = MBEW-MYPOL. "Pool no for LIFO
INT_MAT-MMSTA = MARC-MMSTA. "Plant specific material
INT_MAT-AUSME = MARC-AUSME. "Unit of issue
INT_MAT-QMATA = MARC-QMATA. "Material Authorization group
INT_MAT-RBNRM = MARA-RBNRM. "Catalog Profile
INT_MAT-WEBAZ = MARC-WEBAZ. "Goods reciept processing
INT_MAT-PRFRQ = MARC-PRFRQ. "Recurring Insepction
INT_MAT-SSQSS = MARC-SSQSS. "QM Control key
INT_MAT-QZGTP = MARC-QZGTP. "Certificate Type
INT_MAT-QSSYS = MARC-QSSYS. "Required QM system for
APPEND INT_MAT.
CLEAR INT_MAT.
ENDSELECT.
ENDFORM.
FORM DOWNLOAD_FILE.
call function 'WS_DOWNLOAD'
EXPORTING
FILENAME = F_FILE
FILETYPE = 'DAT'
FILETYPE = 'WK1'
tables
data_tab = INT_MAT
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
OTHERS = 10.
IF SY-SUBRC = 0.
FORMAT COLOR COL_GROUP.
WRITE:/ 'Data Download Successfully to your local harddisk'.
SKIP.
ENDIF.
ENDFORM.
FORM UPLOAD_FILE.
call function 'WS_UPLOAD'
EXPORTING
FILENAME = F_FILE
FILETYPE = 'DAT'
FILETYPE = 'WK1'
tables
data_tab = INT_MAT
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
OTHERS = 10.
IF SY-SUBRC = 0.
FORMAT COLOR COL_GROUP.
WRITE:/ 'Data Upload Successfully from your local harddisk'.
SKIP.
ENDIF.
ENDFORM.
FORM UPDATE_MM.
LOOP AT INT_MAT.
CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
EXPORTING
INPUT = INT_MAT-MATNR
IMPORTING
OUTPUT = INT_MAT-MATNR
EXCEPTIONS
LENGTH_ERROR = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Header
BAPI_HEAD-MATERIAL = INT_MAT-MATNR.
BAPI_HEAD-IND_SECTOR = INT_MAT-MBRSH.
BAPI_HEAD-MATL_TYPE = INT_MAT-MTART.
BAPI_HEAD-BASIC_VIEW = 'X'.
BAPI_HEAD-PURCHASE_VIEW = 'X'.
BAPI_HEAD-ACCOUNT_VIEW = 'X'.
Material Description
REFRESH INT_MAKT.
INT_MAKT-LANGU = INT_MAT-SPRAS.
INT_MAKT-MATL_DESC = INT_MAT-MAKTX.
APPEND INT_MAKT.
Client Data - Basic
BAPI_MARA1-MATL_GROUP = INT_MAT-MATKL.
BAPI_MARA1-BASE_UOM = INT_MAT-MEINS.
BAPI_MARA1-UNIT_OF_WT = INT_MAT-GEWEI.
BAPI_MARA1-DIVISION = INT_MAT-SPART.
BAPI_MARAX-MATL_GROUP = 'X'.
BAPI_MARAX-BASE_UOM = 'X'.
BAPI_MARAX-UNIT_OF_WT = 'X'.
BAPI_MARAX-DIVISION = 'X'.
Plant - Purchasing
BAPI_MARC1-PLANT = INT_MAT-WERKS.
BAPI_MARC1-PUR_GROUP = INT_MAT-EKGRP.
BAPI_MARC1-PUR_STATUS = INT_MAT-MMSTA.
BAPI_MARC1-ISSUE_UNIT = INT_MAT-AUSME.
BAPI_MARC1-QM_AUTHGRP = INT_MAT-QMATA.
BAPI_MARC1-GR_PR_TIME = INT_MAT-WEBAZ.
BAPI_MARC1-INSP_INT = INT_MAT-PRFRQ.
BAPI_MARC1-CTRL_KEY = INT_MAT-SSQSS.
BAPI_MARC1-CERT_TYPE = INT_MAT-QZGTP.
BAPI_MARC1-QM_RGMTS = INT_MAT-QSSYS.
BAPI_MARCX-PLANT = INT_MAT-WERKS.
BAPI_MARCX-PUR_GROUP = 'X'.
BAPI_MARCX-PUR_STATUS = 'X'.
BAPI_MARCX-ISSUE_UNIT = 'X'.
BAPI_MARCX-QM_AUTHGRP = 'X'.
BAPI_MARCX-GR_PR_TIME = 'X'.
BAPI_MARCX-INSP_INT = 'X'.
BAPI_MARCX-CTRL_KEY = 'X'.
BAPI_MARCX-CERT_TYPE = 'X'.
BAPI_MARCX-QM_RGMTS = 'X'.
Accounting 1
BAPI_MBEW1-VAL_AREA = INT_MAT-WERKS.
BAPI_MBEW1-PRICE_CTRL = INT_MAT-VPRSV.
BAPI_MBEW1-STD_PRICE = INT_MAT-STPRS.
BAPI_MBEW1-PRICE_UNIT = INT_MAT-PEINH.
BAPI_MBEW1-MOVING_PR = INT_MAT-VERPR.
BAPI_MBEW1-VAL_CLASS = INT_MAT-BKLAS.
BAPI_MBEW1-VAL_CAT = INT_MAT-BWTTY.
BAPI_MBEW1-ML_SETTLE = INT_MAT-MLAST.
BAPI_MBEW1-ML_ACTIVE = INT_MAT-MLMAA.
BAPI_MBEW1-VM_SO_STK = INT_MAT-EKLAS.
BAPI_MBEW1-VM_P_STOCK = INT_MAT-QKLAS.
BAPI_MBEW1-FUTURE_PR = INT_MAT-ZKPRS.
BAPI_MBEW1-VALID_FROM = INT_MAT-ZKDAT.
*ACCOUNTING 2
BAPI_MBEW1-TAXPRICE_1 = INT_MAT-BWPRS.
BAPI_MBEW1-TAXPRICE_2 = INT_MAT-BWPS1.
BAPI_MBEW1-TAXPRICE_3 = INT_MAT-VJBWS.
BAPI_MBEW1-DEVAL_IND = INT_MAT-ABWKZ.
BAPI_MBEW1-COMMPRICE1 = INT_MAT-BWPRH.
BAPI_MBEW1-COMMPRICE2 = INT_MAT-BWPH1.
BAPI_MBEW1-COMMPRICE3 = INT_MAT-VJBWH.
BAPI_MBEW1-LIFO_FIFO = INT_MAT-XLIFO.
BAPI_MBEW1-POOLNUMBER = INT_MAT-MYPOL.
BAPI_MBEWX-VAL_AREA = INT_MAT-WERKS.
BAPI_MBEWX-PRICE_CTRL = 'X'.
BAPI_MBEWX-STD_PRICE = 'X'.
BAPI_MBEWX-PRICE_UNIT = 'X'.
BAPI_MBEWX-MOVING_PR = 'X'.
BAPI_MBEWX-VAL_CLASS = 'X'.
BAPI_MBEWX-VAL_CAT = 'x'.
BAPI_MBEWX-ML_SETTLE = 'X'.
BAPI_MBEWX-ML_ACTIVE = 'X'.
BAPI_MBEWX-VM_SO_STK = 'X'.
BAPI_MBEWX-VM_P_STOCK = 'X'.
BAPI_MBEWX-FUTURE_PR = 'X'.
BAPI_MBEWX-VALID_FROM = 'X'.
BAPI_MBEWX-TAXPRICE_1 = 'X'.
BAPI_MBEWX-TAXPRICE_2 = 'X'.
BAPI_MBEWX-TAXPRICE_3 = 'X'.
BAPI_MBEWX-DEVAL_IND = 'X'.
BAPI_MBEWX-COMMPRICE1 = 'X'.
BAPI_MBEWX-COMMPRICE2 = 'X'.
BAPI_MBEWX-COMMPRICE3 = 'X'.
BAPI_MBEWX-LIFO_FIFO = 'X'.
BAPI_MBEWX-POOLNUMBER = 'X'.
*Storage Locations
BAPI_MARD1-PLANT = INT_MAT-WERKS.
BAPI_MARD1-STGE_LOC = INT_MAT-LGORT.
BAPI_MARDX-PLANT = INT_MAT-WERKS.
BAPI_MARDX-STGE_LOC = INT_MAT-LGORT.
WRITE:/ BAPI_HEAD-MATERIAL, BAPI_MARC1-PLANT ,BAPI_MARD1-STGE_LOC.
call function 'BAPI_MATERIAL_SAVEDATA'
exporting
HEADDATA = BAPI_HEAD
CLIENTDATA = BAPI_MARA1
CLIENTDATAX = BAPI_MARAX
PLANTDATA = BAPI_MARC1
PLANTDATAX = BAPI_MARCX
FORECASTPARAMETERS =
FORECASTPARAMETERSX =
PLANNINGDATA =
PLANNINGDATAX =
<b> STORAGELOCATIONDATA = BAPI_MARD1
STORAGELOCATIONDATAX = BAPI_MARDX</b>
VALUATIONDATA = BAPI_MBEW1
VALUATIONDATAX = BAPI_MBEWX
WAREHOUSENUMBERDATA =
WAREHOUSENUMBERDATAX =
SALESDATA = BAPI_MVKE1
SALESDATAX = BAPI_MVKEX
STORAGETYPEDATA =
STORAGETYPEDATAX =
IMPORTING
RETURN = BAPI_RETURN
TABLES
MATERIALDESCRIPTION = INT_MAKT
UNITSOFMEASURE =
UNITSOFMEASUREX =
INTERNATIONALARTNOS =
MATERIALLONGTEXT =
TAXCLASSIFICATIONS =
RETURNMESSAGES =
PRTDATA =
PRTDATAX =
EXTENSIONIN =
EXTENSIONINX =
IF BAPI_RETURN-TYPE = 'E'.
WRITE:/ 'Error Message ', BAPI_RETURN-MESSAGE.
ENDIF.
ENDLOOP.
ENDFORM.
<b>i am using this bapi method to copy materials from one plant to another plant using storage location so here what happenig is everyting is going correct but only the storage location data is not saving in table mard so any body faced this kind of problem please tell me.... and one more dbt
bapi_marcx-pur_status = 'x' what is 'X' here??? is that mandatory field or required field ???
points wil be rewarded.
reagrds,
sunil k airam.In the HEADDATA structure, STORAGE_VIEW should also be set as 'X' , in order to update storage location data
for example
BAPI_HEAD-STORAGE_VIEW = 'X'.
Also, PUR_STATUS corresponds to field MARA-MSTAE whose domain has value table T141, therefore values in the field are checked against T141
Edited by: Harris Veziris on May 12, 2008 12:37 PM
Maybe you are looking for
-
New Apple discution forums bugs or what?
Hi, Since the new forums become online, I must admit there is many different issues that looks strange to me. For instance: - when I post, I get a screen with only the top Apple site icons and the botton site support links. I have then to browse back
-
How can I share a folder between two users on the same mac?
Hi all, I would like to share a folder between multiple users on the same macbook without having to transfer the folder to the Public/Shared folder. Is there not a way, using the the folders shared permissions, to allow shared folders from one user t
-
I can no longer follow links on my Gmail page, can sometimes open in tab
Do not have the same problem using Safari. Oddly, also can't open Mozilla after closing it unless I reboot; even if I try from the start menu. Gmail appears to be the only site where the link problem exists. It's started after the auto upgrade.
-
Why use only 3gb ram when instaled 4 gb?
why use only 3gb ram when instaled 4 gb?? macbook 2,1 late 2007 mac os 10.6.8 Название модели: MacBook MacBook2,1 Intel Core 2 Duo 2.16 ГГц RAM: 4 ГБ 667 МГц Версия Boot ROM: MB21.00A5.B07 Версия SMC (система): 1.17f0
-
One node RAC pause/hang/block on other node shutdown
Hi, We have a Java application running on Linux servers connecting to a 10.2.0.1 RAC cluster, also Linux. When the application starts it opens up a pool of connections to the databsae, and these are used throughout the life time of the application. O