ME22n - doubt in IMPORT/EXPORT in EXIT_SAPMM06E_013 and EXIT_SAPMM06E_012

hi
i need to validate a condition in EXIT_SAPMM06E_013 and accordingly i need to populate the error msg in EXIT_SAPMM06E_012 while saving and stop the PO posting.
in ZXM06U44 in EXIT_SAPMM06E_013 i have written the code
IF sy-mandt = 888.
  DATA: gv_check TYPE xfeld.
  DATA: itab TYPE STANDARD TABLE OF uekes,
  wa TYPE uekes.
  IF sy-tcode = 'ME22N' OR
     sy-tcode = 'ME22'.
    LOOP AT xekes.
      IF xekes-ebtyp = 'LA' AND
         xekes-vbeln = space.
        gv_check = 'X'.
        EXIT.
      ENDIF.
    ENDLOOP.
    IF gv_check = 'X'.
      EXPORT gv_check = 'X' TO MEMORY ID 'A123'.
    ENDIF.
  ENDIF.
ENDIF.
i am exporting the variable and importing in the below exit.
in ZXM06U43 in exit EXIT_SAPMM06E_012  i have written the code
IF sy-mandt = 888.
  DATA: gv_check TYPE xfeld,
  IF sy-tcode = 'ME22N' OR
     sy-tcode = 'ME22'.
    IMPORT gv_check FROM MEMORY ID 'A123'.
    IF gv_check = 'X'.
      MESSAGE e000(z1) WITH 'No manual LA Allowed'.
    ENDIF.
  ENDIF.
ENDIF.
but the value is not getting imported and actually when i press the save button, the EXIT_SAPMM06E_012  is called first and then goes to EXIT_SAPMM06E_013 and my PO gets saved.
how to solve this issue.
Regards,
Sakthi.

Why do you want to do validation in EXIT_SAPMM06E_013 and err message in EXIT_SAPMM06E_012?
Do an validation in EXIT_SAPMM06E_013 FM itself.
the below statement is wrong
EXPORT gv_check = 'X' TO MEMORY ID 'A123'.
gv_check  = 'X'.
EXPORT gv_check TO MEMORY ID 'A123'.
Regards,

Similar Messages

  • How can we use IMPORT-EXPORT as structure and TABLES parameters?

    Hello Sir,
    I have used SAPRFC with single IMPORT and EXPORT parameter.
    Could anybody give me an example in I can use IMPORT/EXPORT as structure and TABLE parameter as input?
    of course from/to PHP.
    Regards,
    RH

    Thanks

  • Import/export to memory and global variables

    Hi,
    Im working on some functionality using import/export to memory. One of the statements is:
    import gf_memid_exit = g_exit_flag gf_memid_result = t352r from memory id 'ZREV_EXT'.
    Im using global variables to contain the cluster names. But this is not working. When I change the global variables into local variables, it works. It this normal? Because I would like to have global variables (even better I would like to have global constants) to declare in order to use them within the program.
    Any ideas?
    With regards,
    Mike

    Hi Mike...
    I think with import u can use global or local variables..in debug mode pl. check when u r using global variables..whether it is getting cleared or overwritten by some other values or not. Or try with global constants..it should work...
    Regards,
    Joy.

  • Selective member import/export using dllexport and default constructor

    We can only export some methods in the class(https://msdn.microsoft.com/es-es/library/8d7d1303-b9e9-47ca-96cc-67bf444a08a9%28v=vs.100%29)
    What if we export only some methods in the class and not exported the default constructor(Will it get generated by the compiler in external app which use this dll?).The class may have some private data member as well which are not exposed in the published
    header file(Which we distribute with DLL).
    How the memory gets allocated to those private data members which are not exposed as the default constructor is not exported? 
    Niranjan

    We can only export some methods in the class(https://msdn.microsoft.com/es-es/library/8d7d1303-b9e9-47ca-96cc-67bf444a08a9%28v=vs.100%29)
    What if we export only some methods in the class and not exported the default constructor(Will it get generated by the compiler in external app which use this dll?).The class may have some private data member as well which are not exposed in the published
    header file(Which we distribute with DLL).
    How the memory gets allocated to those private data members which are not exposed as the default constructor is not exported? 
    Niranjan

  • Import/Export Between Gschem and PSpice,

    I have some .sch files I made with gEDA's schematic editor (gschem), and am trying to import them into PSpice for Windows. I'm not sure if this is the right community to ask, but I figured I'd just see if anyone here knows how to do it...
    Or, if anyone can point me in the right direction (where to look, who to ask), I'd be very grateful.
    Thanks!

    No. You need to be at the same revision level of Portal in both source and target environments.
    Best Regards,
    Harry

  • Importing/exporting playlists in Tunes - will take decades

    Is there a program that can do this effeciently or another method than ordinary manual selection? It's really frustrating having to select one and one playlist to import at a time when you have hundreds... Is there a way to import/export playlist folders and subfolders?
    This is a problem that seems to be frequent in iTunes by the way... It's difficult to transfer whole folders and subfolders to/from apps with the USB-cable. The only app I know of which is allowing this is GoodReader (zip and unzip). If I remember right, this is because of restrictions given by Apple to the app developers - Is this true and why??

    While the Windows version of iTunes supports the WMA format, the Mac version does not. That annoys me on very rare occasions. EasyWMA will be necessary if you continue using the Axim - at least with current software. Back when I owned an iPaq I had a music program that support mp3s - but darned if I can remember what it was called. You might want to look into that since it would make sharing your iTunes music with the Axim a little easier.
    Since Microsoft wrote both the Windows and PocketPC operating systems, it isn't surprising that there is tight integration between them. Perhaps your next purchase should be an iPod? Or perhaps a Palm. I don't use my Palm for music much, I have an iPod, but I do have a spare SDRam card filled with music - Missing Sync for the Palm integrates nicely with iTunes. For me, as much as I liked the iPaq, it never was an easy fit with my Mac. In the end the Mac won.

  • Questions on Subviews and Import/Export in Data Modeler v3 EA1.

    I have a few questions about the capabilities of Data Modeler v3 EA1:
    1) Is it possible to rename subviews? Would like more meaningful names then Relational_x - Subview_x.
    2) Is it possible to save documents at subview level?
    3) Is it possible to import/export subsets of data?
    4) Having problems importing Erwin 7 .xml file, is there known problems with this import?
    Judy

    Hi Judy,
    1) To rename a subview just right click on it in the browser tree and select "Properties". In the properties dialog change the name and click OK button.
    2) You can save a subview as new Data Modeler design - from the File menu select Export -> To Data Modeling Design. In the newly opened dialog select the subview you want to export and click OK button.
    3) After saving a subview as new design (see answer #2) it can be imported in some other design (File -> Import -> Data Modeler Design).
    4) What kind of problems do you have with import of Erwin 7.* xml file?
    Regards,
    Ivan

  • Transfer palm data from PC to Mac without using the M100 - only exporting the data and importing?

    I had an old Palm M100 that I haven't used in a while but I love the palm desktop app - my PC currently runs 4.1.4
    I have a mac powerbook and I loaded 4.2.1
    When I export my calendar and address book data in the .aba and  .dba format from my PC - the Mac palm desktop app doesn't seem to recognize those file formats.
    Are those not standard formats between the two platforms?  It also looks like the Mac desktop app doesn't even recognize importing data from another Palm format?  It just shows the other program formats.
    Also, when importing as CSV or tab-delimeted those are extremely messed up also.
    Any "easy" way to get the data off of my PC and onto my Mac without using the Palm M100 itself?
    Thanks,
    Dave 
    Post relates to: Palm m100

    The suggestion is not accurate, at least with respect to calendar information. I'm in nearly the same situation, and just tried it. (Saving .dba file out of Windows Palm Desktop 4.1.0, importing into Mac Palm Desktop 4.2.1revD.)
    First, the Mac program will not recognize the .dba as an importable format if one selects All Readable Documents.
    Second, if one selects All Documents instead, you get the following error message:
    The file could not be imported.
    In order to import data from Windows Palm Desktop software, export the file in one of these formats: comma (.csv) or tab (.tab) delimited, vCard, or vCal.
    The problem with this is that Windows Palm Desktop 4.1.0 offers only two options for exporting Date Book information:
    1) the whole datebook as a .dba file.
    2) individual calendar items as a vCal.
    So far as I can see, there's no way to Select All so as to export all as a vCal, and no pre-set option to do so.
    Post relates to: Palm m125
    Post relates to: Palm m125

  • Error while Export from 10g and import to 11g

    Hi,
    I get the following error on few tables when i try to export from 10g and import to 11g DB.
    import done in US7ASCII character set and AL16UTF16 NCHAR character set
    import server uses AL32UTF8 character set (possible charset conversion)
    . importing TBAADM's objects into TEST
    . . importing table "ACCT_AUTH_SIGN_TABLE"
    IMP-00019: row rejected due to ORACLE error 12899
    IMP-00003: ORACLE error 12899 encountered
    ORA-12899: value too large for column "TEST"."ACCT_AUTH_SIGN_TABLE"."MODE_OF_DESPATCH" (actual: 3, maximum: 1)
    How to over come this ?
    Regards,
    jibu

    Jibu  wrote:
    Hi,
    I get the following error on few tables when i try to export from 10g and import to 11g DB.
    import done in US7ASCII character set and AL16UTF16 NCHAR character set
    import server uses AL32UTF8 character set (possible charset conversion)
    . importing TBAADM's objects into TEST
    . . importing table "ACCT_AUTH_SIGN_TABLE"
    IMP-00019: row rejected due to ORACLE error 12899
    IMP-00003: ORACLE error 12899 encountered
    ORA-12899: value too large for column "TEST"."ACCT_AUTH_SIGN_TABLE"."MODE_OF_DESPATCH" (actual: 3, maximum: 1)
    How to over come this ?
    Regards,
    jibu
    [oracle@localhost sql]$ oerr ora 12899
    12899, 00000, "value too large for column %s (actual: %s, maximum: %s)"
    // *Cause: An attempt was made to insert or update a column with a value
    //         which is too wide for the width of the destination column.
    //         The name of the column is given, along with the actual width
    //         of the value, and the maximum allowed width of the column.
    //         Note that widths are reported in characters if character length
    //         semantics are in effect for the column, otherwise widths are
    //         reported in bytes.
    // *Action: Examine the SQL statement for correctness.  Check source
    //          and destination column data types.
    //          Either make the destination column wider, or use a subset
    //          of the source column (i.e. use substring).

  • I exported an archive of iCal from a computer running the last OS X. On a new computer running OS X (10.7.4), I tried to import the .icbu file and got a message "The calendar failed to restore". How do I fix this/get my calendar?

    I exported an archive of iCal from a computer running the last OS X. On a new computer running OS X (10.7.4), I tried to import the .icbu file and got a message "The calendar failed to restore". How do I fix this/get my calendar?

    I exported an archive of iCal from a computer running the last OS X. On a new computer running OS X (10.7.4), I tried to import the .icbu file and got a message "The calendar failed to restore". How do I fix this/get my calendar?

  • Is there a note app that features encryption, folders, backup, and import/export?

    Hi friends,
    I have been searching for a month for a Notetaking app for the iphone which has these attributes:
    able to import/export notes from some form of text file suchas csv. I need to bring over a large number of notes from my android phone. I can perl-script and should be able to massage my data into any format requiredby any text-based importer. I would expect this feature to be based either on itunes or a proprietary sync program on a Mac.
    encryption (not just a password), preferably AES-256 bit orhigher
    features categories, tags, or folders (any one of these isfine)
    able to backup and restore notes in encrypted form, in caseof loss of device
    You would think this is a very basic set of features, but I have notbeen able to find anything on the App store that includes all of thesefeatures. If you know of any such app, please let me know.
    Thanks a lot!

    There should be some utilities that might do that on macupdate.com if you search around in there. It could be done as a macro action in Photoshop, but that's an expensive solution for this. VueScan could also potentially do it, but is also not cheap.
    Also, some of the utilities that come bundled with scanners may be able to do this, but only when running the scanner they came with.
    Definitely the features exist on the Mac like auto-recognition of multiple images on a page, auto-rotation, auto-levels, PDF export etc. You just need to find them in the right combination in the right app.

  • Export Import to Maintain Test and Production Environments

    We have developed an application using Locally built Database Providers in Oracle Portal 9.0.2.6 which is installed to 2 schemas, has 5 different providers, and over 100 Portal major components (Forms, Reports, and Calendars) and over 200 minor components (LOV's and Links). We have used export/import transport sets with some luck, but it is a struggle becuase the import procedures are not very robust. Many things (such as missing LOV's, corrupt components, preexisting versions, etc, etc.) can cause an import to fail. And the cleanup necessary to finally achieve a successful import can be very time-consuming.
    Having a robust import mechanism is very important to our strategy for keeping installed (our own and clients') portal instances up-to-date with our latest release. Some of the enhancements that would make it much easier to develop and maintain Portal applications include:
    Within the Portal:
    1. Ability to copy an entire provider within the same portal (rather than one component at a time).
    2. Ability to change the schema to which a Provider is associated.
    3. When copying a component from one provider to another, the dependent items (i.e. LOVs and Links) should be copied to new second provider as well. (i.e. rather rebuilding each LOV in each provider and then editing each form to point to the new LOVs)
    Transport Sets:
    4. Should allow for changing provider names and provider schema, and global component name changes, and resetting unqiue id's on import (to create copy rather than overwrite).
    5. Should allow the option to ignore errors and import all components which pass pre-check (rather than failing all components if all items do not pass pre-check).
    How are other Portal Developers dealing with installing and then rolling out new sets of Locally built Database Providers from Development environments to Production? Are there any whitepapers on the best practices for replicating/installing a portal application to a new portal instance and then keeping it updated?
    Oracle, are any of my wish-list items above on the future enhancement lists? Or have others figured out workarounds?
    Thanks,
    Trenton

    There are a couple of references which can be found on Portalstudio.oracle.com that are of some use:
    1. A FAQ for Portal 9.0.2.6 Export/Import http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/OTN_CONTENT/MAINPAGE/DEPLOY_PERFORM/9026_EXPORT_IMPORT_FAQ_0308.HTM
    2. Migration Instructions by Larry Boussard (BRUSARDL)
    3. Migrating Oracle Portal from Dev Systems to Production Systems bt Dheeraj Kataria.
    These are all useful documents for a successful first-time Export-Import. However, the limitations and lack of robustness I listed in my first post, make the process so time-consuming and error fraught as to not be a practical development strategy.

  • Import/Export Portal Content between EP6 6.20 and 6.40

    Hi there,
    We are about to setup a second portal in Europe on 6.40, while the US portal will still be a EP6 SP2 on 6.20 for some time.
    I was wondering about the possibilities to share portal content between those 2 installations, especially iViews and pages (not using remote iViews). As long as the name of the related PAR files (code link) are the same, this should work.
    On the other hand, iViews and pages will have a different set of parameters like "Allow Client-Side Caching" or "Use API of Tray" based on different portal versions. What will happend when importing/exporting these objects from 6.20 to 6.40 or the other way around?
    Thanks,
    Florian

    Ivo, thank you for your reply.
    But I think mapping ports doesn't solve our problem.
    WAS 6.20:
    Just the context path will be send in the header field 'location' to the browser (located in the internet).
    In case of a redirect the browser mixes the server name of the sender (the reverse proxy) and the context path and sends the request to the reverse proxy. The reverse proxy forwards the request to the WAS 6.20 intranet server.
    WAS 6.40:
    The header field 'location' contains now the whole URL (with the server name of the WAS 6.40 system, which is only accessible from our intranet).
    In case of a redirect the browser takes the content of the header field 'location' and sends the request to the not accessible WAS 6.40 intranet server. Of course that doesn't work.
    So it it depends on the content of the header field 'location'.
    What can we do in WAS 6.40, so that the header field 'location' contains only the context path as it has done in WAS 6.20?
    Regards,
    Uwe

  • Export/import OWB (10.1 and PARIS) metadata problems

    I am attempting to import an OWB 10.1–exported map into an OWB 10.2/PARIS repository .. this failed as follows from the Paris Design Center menu bar ...
    Design – Import – Warehouse Builder Metadata and specify a previously exported OWB 10.1 map. I receive the following message … ”Metadata version is not compatible with you current repository version. Upgrading the file is required to import your metadata”
    … Selecting ”UPGRADE” yields the following …
    Upgrade started at Jul 25, 2006 12:02:05 PM
    Preloading objects from release 9.2
    Upgrading objects from release 9.2 to 10.0
    Project "SIRR_DATA_CONVERSION"
    "Error occurred importing from file "C:\MKS\ConfigurationMgmt\OWB\Unit Testing\Build 1.13\Client Account\OWBC_ALS_CLI_CLIENT\OWBC_ALS_CLI_CLIENT.mdl".
    CNV0002-0025(ERROR): Unexpected error occurred. Upgrade terminated. See log file C:\MKS\ConfigurationMgmt\OWB\Unit Testing\Build 1.13\Client Account\OWBC_ALS_CLI_CLIENT\OWBC_ALS_CLI_CLIENT_10_0_upgrade.log for details. Please contact"
    The log contained over 16000 lines of info associated with mapping parameter/mapping parameter properties/property values, groups and finally, before failing, mappingparameterconnection --> mappingparameterconnection .. I can email the log if anybody is interested in taking a look.
    Two things with error above .. I do not have a 9.2 map (seems the upgrade is assuming a 9.2 map) but a 10.1 map .. and the error message seems to be truncated after ”Please contact”
    any advice on importing OWB 10.1 metadata(maps) into OWB PARIS ? as I am trying to create business case for upgrading from OWB 10.1 to PARIS.

    There is a similar issue logged in our Support database relating to this type of problem. The bug (ref number 5309802) has some workarounds relating to issues within an MDL file relating to non-unique IDs and blank properties for certain objects.
    The log file should tell you exactly where the problem objects are located, row and column reference. If you could open a TAR with Oracle Support and send them the log file and the associated MDL file they should be able to organize a fix for you.
    If you want to try this yourself then make a backup of the MDL file. Next open the MDL file using Winzip and extract the two files within the MDL file. The larger of the two files is in fact an XML file. Open this file in a text editor that shows line and column numbers. Now refer back to the log file and find the error messages from that file and cross reference row/column numbers within the XML file and see if the error makes sense to you. If it does, correct the error and then rezip everything back into an MDL file and try importing the MDL file again.
    Alternatively you may want to leave this to Oracle Support to manage for you.
    Hope this helps
    Keith

  • Import, Export and Preset settings from TimeMachine

    I'd like to recover only my Import, Export and Preset settings of Aperture 3.0 from my backup disk using TimeMachine. Can someone pls guide me on what files to look for and where to find them? (I just reformatted my MBP and hence this query).
    Thanks in advance.

    You will find the setting in your User Library in the folder
         Your Home Directory > Library > Application Support > Aperture
    Everything with "preset" in its name might be interesting to you.
    Reveal the User Library by going to the Finder main menu bar, select "Go" and hold down the "option" key, until you see the Library in the drop down menu. Select it.
    In the Library Finder window navigate to the "Application Support" folder, then "Aperture".
    Drag the Aperture folder to the Finder Sidebar for easy access, then open Time Machine.
    Go back in Time to the time you want to restore from, then restore the "Aperture Folder"  to your Desktop and copy the files you need to your Library.
    Regards
    Léonie

Maybe you are looking for

  • Where is the custom stamp location in Acrobat 9 Pro for Win Vista

    Where is the custom stamp location in Acrobat 9 Pro for Win Vista?

  • Accept cookies option

    The accept cookies option in the security menu no longer appears under block pop up windows.  how do i get it back so I can remove cookies?

  • Connection Speed

    Hi All, Had some issues with my broadband router, replaced it and it's been stable for quite a few days.  Prior to the instability I was getting 4.5mb download, but now it's stuck at 2.2, and has been for the last 91 hours. Speedtest shows my ip prof

  • HT1926 The last version of 64bit iTunes problem

    Hello. The last version of itunes 64 bit has a strange problem. It install itself to program files x86 folder and not to run smooth. It always stopped itself and closed. 11.0.4 doesn't have this kind of problem. Please someone help.

  • Import avi problems

    I been running premier cs3 on a single processor system for the past few months with good results. Yes it was slow, and rendering was like watching paint dry. So this past week I bought a new system, with a core2 Quad 28.3 processor. It is awesome, b