LR4: Save reverse geocoded location data to DNGs

With the introduction of the maps module I try to use it the same way I use other programs (e.g. Geosetter).
Lightroom allows fetching reverse geocoded location information, i.e. city, state, country via Google API. This information is shown in light grey once retrieved:
The problem is: This information is not saved with the DNG. I can activate "export reverse geocoding suggestions whenever address fields are empty" which would export these things with the JPEGs, but I want the information saved within the DNG - additional to the LR database.
How can I achieve this or is this a feature request?

Gotta love those hidden features :-) Thank you.
I added a feature request for what would actually help me speed up my workflow: http://feedback.photoshop.com/photoshop_family/topics/enable_automatic_accepting_of_revers e_geocoding_suggestions

Similar Messages

  • Reverse geocoding suggestions data invisible for filename templates and plugins

    Hi,
    Reverse geocoding are amazing, saves me a lot of work, but filename template I use seems don't work well with that feature.
    With file naming scheme like this: "Country-City-Sequence # (001)" the result is "--001.jpg" instead of "France-Paris-001.jpg" and I have to confirm address for hundreds photos manually to see country and city information in filename.
    Same situation in jf PicasaWeb plugin, when using caption scheme like this: "{Country}. {City}. {YYYY}. {Caption}." the result is ". . 2012. Example caption." instead of "France. Paris. 2012. Example caption."
    It is possible for Lightroom to use address suggestions in this situations whenever address fields are empty?
    Most important for me is to plugins see the address suggestions like normal (hard) data if address fields are empty.

    Reverse geocoding are amazing, saves me a lot of work, but filename template I use seems don't work well with that feature.
    With file naming scheme like this: "Country-City-Sequence # (001)" the result is "--001.jpg" instead of "France-Paris-001.jpg" and I have to confirm address for hundreds photos manually to see country and city information in filename.
    On the face of it, Lr4's implementation of reverse geocoding is excellent, and it is when dealing with images taken at the same location. However, its handling of mixed locations is painful. In my case I use Jeffrey Friedl's plugin. It fully integrates with the Map module and allows you to reverse geocode without the limitations your currently experiencing. Very likely not what you wnated to read, but it does provided a painless solution to the problem you've identified.
    Jeffrey's plugin can be downloaed from http://regex.info/blog/lightroom-goodies/gps

  • Unable to use reverse geocoding when renaming files

    I've asked about this on different discussion boards but no answer so far. The first versions of Lightroom that came with reverse geocoding did not have this problem. But somehow after an update in Lightroom 4 the Google reverse geocoded location fields cannot be used to rename files. This was very convenient for me to export images to people as a landscape photographer working in many places and making it easy for others to locate the place via the filename.
    Is this a bug or a Google rights thing? And is there a way to make reverse geocoded metadata permanent (not in gray and italics?) because when I overtype the place myself it does work.
    Example below: note that the fields {Country} and {City} or not added to the file name, even though they are in the metadata field.

    Don't use realtive paths, at least not without making them absolute yourself.
    Java gives you the ability to figure out the path from which the executing program was loaded. Use that, together with your relative path, to construct an absolute path.

  • How to reverse geocode in LR4 if image is already tagged with latitude/longitude

    I've seen Terry White's video about geocoding by importing a .gpx file, but what if I've already got the latitude and longitude, and what I need is for Lightroom 4 to look up the city, state, country, etc.  Is this possible?

    Bump
    Nina Fox wrote:
    Uncheck the reverse geocoding checkboxes in the catalog settings.
    Restart LR.
    Enable the checkboxes.
    Now it works.
    This fixed the problem for any photo that does not have existing GPS coordinates embedded.  Two continuing problems:
    1 - Sadly all of my images that already have GPS coordinates embedded (iPhone shots and dSLR shots with a GPS unit) will not auto fill the City, State, Country fields. 
    2 - Having to click on the City, State, Country fields to commit them makes the feature of little value as it saves no time.  I can select images in grid mode and batch append the individual fields faster than clicking into the fields to commit.  I imagine this can be fixed by a preference that allows for some type of auto commit of the Google appended metadata.

  • Write Reverse Geocoding suggestions into xmp + make permanent easily

    So far Lightroom only exports reverse geocoding suggestions if thi option is checked in the catalog settings.
    I can see no reason why LR does not also write them out into the image file or its xmp sidecar when "Save Metadata to File" is chosen. At least it should be an option.
    It does write this data, if it was made permanent fist by clicking on the filed titles ("Sublocation", "City" etc.) and then selecting the first entry in the appearing pop-up. But this can be a tedious process if it needs to be done to multiple images with different location data (<mixed> appears in the fields).
    There should be a button "Make Reverse Geocoding suggestions permanent".
    Lastly, there is some weird behavior with the ISO Country Code field. If it was once filled out manually, then gets deleted and the image is either exported or metadata is saved to the file, the old ISO Country Code value will still be there (can be seen in Photo Mechanic).

    You might try searching for this topic here: http://feedback.photoshop.com/photoshop_family/products/photoshop_family_photoshop_lightro om , adding your voice to any existing request or creating a new feature request on this, the official request forum.

  • Reverse geocoding & file naming

    Hi,
    My images are geotagged. With Lightroom 5, I can reverse geocode the images to have Country, State and City in the IPTC fields. However, unless I go in each field, they are greyed. When I want to export the images, I want to use the naming convention Country-State-City-incremental number.jpg for each image, but unless the fields have been edited, lightroom ignore the fileds (and hence put ---1.jpg). Any idea how I can confirm the location without having to go to each image and edit the fields?
    Thanks

    I agree that reverse geocoding data need to be reviewed. In my case, 85+ of the data is correct and this would be easier to validate this info with a single key combination rather than having to click in 4 field per image. Adobe is confident enough with the data to use it in filters without it being reviewed by the user, so why not in export and/or other functions? This still puzzles me. This will give the user the option to review, or trust the data retrieved.

  • Reverse geocoding, county no longer working

    In my app i am getting the users location data using reverse
    geocoding.....i am getting the zipcode, city and county....the problem
    is, i was getting the name of the county right until like 2 weeks ago
    when the county is being returned as nil....i am using [placemark
    SubAdministrativeArea ] to get the county name
    does anyone know what the issue is and if there is a work around it?

    In my app i am getting the users location data using reverse
    geocoding.....i am getting the zipcode, city and county....the problem
    is, i was getting the name of the county right until like 2 weeks ago
    when the county is being returned as nil....i am using [placemark
    SubAdministrativeArea ] to get the county name
    does anyone know what the issue is and if there is a work around it?

  • Reverse geocoding

    I thought one of the features of Aperture 3 was reverse-geocoding? I am so pleased with the addition of Places, I've wanted this for a very long time! But I was hoping that reversing existing GPS co-ordinates would have been a feature so that photos can be searched for with their location data manually.
    Am I missing something?

    Yea I have those two products as well, I beta tested Maperture and it never worked for me so was over the moon to see Places in A3. I was thinking about Apple's decision to leave it out, as they put everything but the kitchen sink into Places in A3, and it tallies with the rest of the way A3 works in terms of metadata.. that is its kept separate from the file and inside a database until exported.
    So you'll have a series of relative drop-down menus which (except for custom Places added by yourself) will show the official and approved (and correctly spelt) names of places to choose from, very good but I think then Apple want you to be tied to their system until your ready for export, of which the numerical data is parsed. But searching for images via a textual search menu does not work, but then that's a habit to get out of.
    It still leaves room for rev-geocoding but I'm thankful that's all which is missing.

  • Metadata conflict: Doesn't show location data

    Hello there,
    I imported some pictures to Lightroom and edited them there normally. After closing lightroom I edited the location information via GeoSetter (www.geosetter.de). Looking at the images via ACDSee, I see correctly entered City, Sublocation, Procince, Country Code and Country Name in the IPTC data.
    Firing up Lightroom 2, I do not see these metadata changes, location fields are all empty. So I click on Synchronize folder and synchronize Metadata. Lightroom now gives all images a Metadata status of "Has been changed". When I click on "Resolve conflict", the location data still is not shown, but actually the location data is deleted when looking at the image again via GeoSetter (or ACDSee) - basically the Lightroom-state-of-things (no locationdata) has been restored I guess. Ok, moving on.
    I go back to GeoSetter and reset the location to where it should be, click on synchronize metadata in Lightroom again and the Metadata status is "up to date" - no "resolve conflict" possible, the problem now is:
    The location data is STILL in the IPTC fields, Lightroom doesn't show it though, location fields are empty and stay empty even after synchronizing, or Lightroom deletes it as previously stated.
    What is the correct way to edit metadata externally and how to tell Lightroom to resolve the metadata conflict by ACCEPTING the external changes and not reverting to the status quo?
    Sincerely,
    Dennis

    >will this method not revert any prior changes made to the images? (e.g. Crop, Keywords, Local Adjustments).
    It will, which as you have already figured out, isn't a good idea.
    I don't know anything about Geosetter, but my guess is that it's writing the data back into the original photos. Unfortunately, Lightroom doesn't see these changes when Sync folder command is used because it's looking for a Metadata Change date, which is normally stored in XMP. There is a workaround though.
    You haven't mentioned the type of files that you're working with, but I'll assume they're raw. If so the workaround is to use the Lr "Save Metadata to file" command before working on them with the external application (Geosetter). This will create an XMP file for each photo that contains all your existing metadata plus any Develop adjustments. Now you can save the new IPTC back to the files using Geosetter. Once that part is completed you can use the "Read Metadata from file" command knowing that all your original Lr metadata and develop adjustments will be copied back along with the new IPTC info.
    Above also works with JPEG and TIFF files

  • No 'move to' used 'save as' msg given: 'no authority to save to this location"

    no 'move to' used 'save as' msg given: 'no authority to save to this location" of app.vit:Q

    Hi
    Spotlight.
    A Search app top right of the Menu Bar ( or it was until Mountain Lion when Notifications now has the far right spot)
    Spotlight has a magnifying/spy glass type icon.
    It has been part of the OS for sometime now.  (I have one computer here currently booted in to OS X 10.3  (Panther) and it is not in that version but it is soon after that.)
    The Archive folder is dated folders.
    Uploaded with Skitch!  (Click Pic or link to see bigger version)
    I find Spotlight and then using the Show in Finder option and look through the list shows me the Files saved since Mountain lion was installed.
    Also the Messages > File Menu > Recent Items will call up the Chat again (And show you the conversation joined up with other Saved chats back to the Mountain Lion Install date).
    To Look in the Home Folder/Library you can do the following:-
    Have the Finder as the "Front" App (Showing in the Menu bar)
    Use the Go Menu
    WHilst this is in the Drop down view hold trhe ALT key down
    This display the hidden Library
    Select the Library.
    You can then select the various folders in the Library.
    You need Messages and the contents of that folder.
    8:47 PM      Tuesday; August 14, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Reverse geocoder error

    We have tried to reverse geocode with SDO_GCDR.REVERSE_GEOCODE function and NAVTEQ sample data. The first step, we geocode an address to get the ordinates and then using reverse geoding function for the returned result like below:
    select SDO_GCDR.GEOCODE_AS_GEOMETRY(
    'NAVTEQ',
    SDO_KEYWORDARRAY(
    '780 COLINAS MIRA',
    'SAN DIEGO'),
    'US')
    from dual;
    and result is:
    MDSYS.SDO_GEOMETRY(2001, 8307, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1,1,1), MDSYS.SDO_ORDINATE_ARRAY(-117.10536,32.67193))
    And we try with above ordinates, we get the following error:
    SELECT SDO_GCDR.REVERSE_GEOCODE('NAVTEQ',
    SDO_GEOMETRY(2001, 8307,
    SDO_POINT_TYPE(-117.10536, 32.67193, NULL), NULL, NULL),
    'US') FROM DUAL;
    Error starting at line 1 in command:
    SELECT SDO_GCDR.REVERSE_GEOCODE('NAVTEQ',
    SDO_GEOMETRY(2001, 8307,
    SDO_POINT_TYPE(-117.10536, 32.67193, NULL), NULL, NULL),
    'US') FROM DUAL
    Error report:
    SQL Error: ORA-29532: Java call terminated by uncaught Java exception: Error:
    Message:Error in ReverseGeocoder
    Nested exception is:
    oracle.jdbc.driver.OracleSQLException: ORA-13208: internal error while evaluating [sdo_nn_distance ancillary] operator
    ORA-06512: at "MDSYS.SDO_GCDR", line 778
    ORA-06512: at "MDSYS.SDO_GCDR", line 831 29532. 00000 - "Java call terminated by uncaught Java exception: %s"
    *Cause:    A Java exception or error was signaled and could not be
    resolved by the Java code.
    *Action:   Modify Java code, if this behavior is not intended.
    We don't know how to resolve that problem, have anyone can help us in this case? Thanks

    Hey Ray,
    Thanks for that link - it looks like what I'm running into. I made the suggested code changes, but when I tried to run it, I got some weird error and the app won't even go past the splash screen in the simulator. The log shows the following:
    [Session started at 2010-05-23 15:57:07 -0700.]
    GNU gdb 6.3.50-20050815 (Apple version gdb-1461.2) (Fri Mar 5 04:43:10 UTC 2010)
    Copyright 2004 Free Software Foundation, Inc.
    GDB is free software, covered by the GNU General Public License, and you are
    welcome to change it and/or distribute copies of it under certain conditions.
    Type "show copying" to see the conditions.
    There is absolutely no warranty for GDB. Type "show warranty" for details.
    This GDB was configured as "x86_64-apple-darwin".sharedlibrary apply-load-rules all
    Attaching to process 1190.
    dyld: Symbol not found: __CFStringGetUserDefaultEncoding
    Referenced from: /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
    Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    in /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
    No memory available to program now: unsafe to call malloc
    Data Formatters temporarily unavailable, will re-try after a 'continue'. (Unknown error loading shared library "/Developer/Applications/Xcode.app/Contents/PlugIns/GDBMIDebugging.xcplugin/Contents/Resources/PBGDBIntrospectionSupport.A.dylib")
    Cannot access memory at address 0x0
    Cannot access memory at address 0x0
    I don't think it is related to the changes I am making, but I can be wrong. I searched for the web, but have not found any useful tips. I am using SDK 3.2.2 on OS X 10.6.3.
    -Sam-

  • Fall back of the reverse geocoder

    Hi All,
    Looking at the results of reverse geocoding, it seems that it’s only based on the street_segment geometries with a nearest neighbor search without considering the actual distance. Looking at the oracle spatial geocoder schema from NAVTEQ samples, it seem that only street segment are spatially indexed in the geocoder and the GC_AREA table doesn’t seem to even have the spatial boundaries (it just have the centroid information).
    I wanted to know if there was a reason for that behavior/design, or even a fix in later version of Oracle Spatial geocoder (we are using 10.2.0.5)
    Typically ReverseGeocoders on the market, when the point is too far from street segment, will fallback and use the spatial boundaries (municipality boundaries or state/province boundaries),
    to perform Point in polygon operation like sdo_contains to know if the point falls into a specific polygon.
    In the case of my customer, this is a huge issue, as he expect to reverse geocode in area where there are few or no street and he expect to have data from limited amount of country.
    Using reverse geocoding (implemented as nearest neighbor) in that case will give inconsistent result, that could be several kilometers or even hundred kilometers, from the point clicked.
    The easy work around I see would be to limit the distance accepted between the point clicked and the segment returned by the reverse geocoding,
    But that would have the side effect that if I click in a specific Municipality or province, I would not be able to get reverse geocoding result.
    The same way, since reverse geocoding take the nearest segment, it can return a segment in a municipality even if the point clicked is in another municipality,
    Thanks for the help,
    Pierre.

    Hi
    You would need to review the logs (MIVR/MCVD logs) to determine the cause of this failure:
    They are in subfolders of c:\program files\wfavvid\log
    Feel free to post them up.
    Aaron

  • ADF Mobile reverse geocoding

    I'm developing my first Oracle ADF Mobile application.
    I'm using the geolocation feature to obtain the latitude and longitude of the device. I need to resolve that data to the Country the user is in.
    Given that there is a mapping component in the UI is there any API facility for reverse geocoding so that I may provide the current latitude and longitude from getDeviceManager.getCurrentPosition() and obtain the Country name or other identifier?
    Many thanks.

    Hi,
    there is no service like this in ADF Mobile. However, you can try
    http://ws.geonames.org/countryCode?lat=49.03&lng=10.2
    using a REST call where you dynamically provide "lat" and "lng" values
    http://stackoverflow.com/questions/4497728/get-country-from-latitude-longitude
    Frank

  • 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

  • My calendar will no longer let me add new event or delete them, it comes up with an error saying "cannot save event, no end date set" or "event does not belong to that event store". can anyone help with this?

    my calendar will no longer let me add new event or delete them, it comes up with an error saying "cannot save event, no end date set" or "event does not belong to that event store". can anyone help with this?

    Hi,
    To configure your ODBC DataSource, go to Control Panel ---> DataSources(ODBC) (If you are in a Windows environment).
    Select the tab System DSN. If you have not added your data source, then do so by clicking on the Add button. If you have added the datasource, click on the Configure button to configure it.
    Give the datasource name, then the database name.
    You have to give the hostname, service name and server name. I guess, in most cases, the datasource name and host name will be the same, service name and server name will be the same. If you are using TCP/IP, the protocol will be onsoctcp.
    There will be a file named Services under C:\WINNT\system32\drivers\etc where you have to give the port number for accessing this server.
    It will be like this <service name> <portnumber>/tcp
    Hope this helps...
    best wishes,
    Nish

Maybe you are looking for

  • Problem in XML Publisher

    Hi, I am trying to get xdo package from java_top, but i dint find required classes in it(DocumentHelper, DocumentViewer ), I am using Version 11.5.10.2CU. So is there any solution for this. Thanks Babu

  • Restriction of payment

    hai, Regarding vendor payment, the system want to allow the out going payment when it comes under due/overdue. How do fix the payment terms in MM? govind.

  • Embedding Video in In Design

    I understand that you cannot embed a video within In Design and export as a SWF. I'm wondering if anyone knows how to embed a URL from Vimeo or YouTube that includes the video and have it play normally within the SWF when exported. Or any other ways

  • Two oracle versions on one client

    Hello I installed Oracle7 and Oracle8 Client together on the same machine. So far it works well. But when I want to open one of my ODBC Drivers, I4m getting the following error: ODBCADM caused a general protection fault in KRNL386.exe at 0001:243F. I

  • Exams 1Z0-001 and 1Z0-007

    I wonder, can you be an Oracle 9i certified database associate if you have a combination of 1Z0-001 (oracle 8i Pl/SQL) and 1Z0-031? (9iDatabase fundamentals 1)