How to enqueue a table with fileds that are not primary keys

Hi,
I am using the FM view_enqueue in order to lock a standard table. Now , the requirement is to restrict the lock based on compnay code.
Since this is not a primary key in table veiav , I am unable to do this . More over, the development has to be done in a enhancement point.
Below is the code:
wa_VIMSELLIST-viewfield = 'NUMMBUKRS'.
wa_VIMSELLIST-operator = 'EQ'.
wa_VIMSELLIST-value = dd_bukrs-low.
wa_VIMSELLIST-ddic = 'B'.
APPEND wa_VIMSELLIST to lt_VIMSELLIST.
if sy-tcode = 'VE01'.
CALL FUNCTION 'VIEW_ENQUEUE'
  EXPORTING
   ACTION                     = P_ACTION
  ENQUEUE_MODE               = 'E'
   view_name                  = P_VIEW_NAME
   ENQUEUE_RANGE              = 'X'
TABLES
   SELLIST                    = lt_VIMSELLIST
EXCEPTIONS
   CLIENT_REFERENCE           = 1
   FOREIGN_LOCK               = 2
   INVALID_ACTION             = 3
   INVALID_ENQUEUE_MODE       = 4
   SYSTEM_FAILURE             = 5
   TABLE_NOT_FOUND            = 6
   OTHERS                     = 7

HI,
Make use of control-Break events.
LOOP  ..................
AT NEW company code.
call FM ENQUEUEXXXXXXXXXXX
ENDLOOP

Similar Messages

  • What will going to happend with app that are not ready for IOS 5?

    What will going to happend with app that are not ready for IOS 5?

    Most applications will work just fine.  I typically have 150 or so apps installed, and typically only 1 or 2 will "break".  The vast majority of apps will continue to operate just as well as before if not better.  iOS developers are privy to beta testing the upcoming OS, so the week or so before and after the official release you'll see a larger number of apps needing to be updated than normal.  Last night I updated 23 apps, and you'll see alot over the next week or two getting updates.  Most are making minor changes to take advantage of new APIs, or add a new feature based on a new function of the OS (like twitter integration into the OS for example).  Very few apps, (maybe 3-4 percent??) actually are getting updated because they're broken, but there will be a few.  Most of the time, any apps that would break will have already been addressed in an update prior to the release of the new OS, and you've probably already updated that app so that it will work seamlessly and perfectly after the update hits.

  • How do you add/use typekit fonts that are not edge web fonts?

    I am just trying out the new Muse CC 2014.1 (August) release and was keen to try the new font facilities.  As far as I can see that while I can now add other fonts for which I have downloaded web font files via the Self Hosted Web Fonts function, Typekit fonts that are not "Adobe Edge Web Fonts" are effectively unavailable?  Have I missed something.
    As an example I want to use the Proxima Nova web font family.  I have selected it on the type kit site, set them up to Sync via my Creative Cloud account.  So for example if I select a font in Photoshop CC or Illustrator, the Proxima Nova fonts appear. Even ok in Word for Mac.  They do not appear in Muse.
    To add them as self hosted web fonts, I would need to physically download the relevant fonts files and install them on my desktop using the OS-X font tool.  However as they are being sync'd via Creative Cloud this shouldn't be necessary should it?  Also I don't see an option for doing so on the typekit site.
    Any help or guidance would be very welcome.
    PS:  I seem to have a separate issue with the Creative Cloud app, which is not listing fonts under the Assets tab.  But I don't think that is related as they are working fine for Photoshop, etc.

    Hi David,
    I'm sorry that you ran into trouble with this. To add fonts from Typekit to your Muse website, you will want to use the web fonts path instead of desktop fonts.  (You can use a desktop font synced from Typekit in your Muse design, but it will exported as an image the same as any other system font.)
    There are a couple options for using Typekit web fonts in Muse:
    o) The Muse Insider wrote a post on how to insert the Typekit embed code from the Muse interface:
    http://museinsider.com/how-to-add-typekit-fonts-to-your-muse-site.html
    o) Or you can add the embed code to the Page Properties dialog within Muse, which will include it in the <head> of the page when you export your website. The steps are the same as this tutorial, but you will add the Typekit embed code to Muse instead of into your page directly:
    TYPEKIT | Adding fonts to your site
    Note that in either case the Typekit fonts will not be displayed in the Muse preview window. You'll need to publish your site to a server in order for the Typekit fonts to be loaded into the page.
    If those look like more coding that you are comfortable with, you might try one of the fonts which you can select from the font menu instead. Here are some that are similar to :
    https://edgewebfonts.adobe.com/fonts#/?xHeight=high&contrast=low&class=sans-serif&width=re gular
    We are also working on a more complete integration of Typekit with Muse in the future, but I can't say yet when that will be available.
    >> PS:  I seem to have a separate issue with the Creative Cloud app, which is not listing fonts under the Assets tab.  But I don't think that is related as they are working fine for Photoshop, etc.
    Do you see a "loading" icon in the tab (e.g. a blue spinner wheel)?  It sounds similar to this thread; you might try these suggestions:
    Re: Adobe Creative Cloud / Desktop App / Home Screen: Constant Spinning Wheel
    I hope that this helps; let me know if you have any other questions.  Best,
    -- liz

  • How do I include those empployee numbers that are not 8 digits?

    Hello all again.
    My script currently doesn't find those employee numbers that are NOT 8 digits (some emp nos are 6, 7, 9) when doing comparisons. I've tried LPAD but it still doesn't find. Can anybody suggest a reason for this? I can post my whole script if you want but basically it doesn't match record in my temp table (SU_TEMPLOYEE_DETAILS):
      SELECT std_hire_date, std_last_name, std_sex, std_date_of_birth,
                 std_email_address, std_emp_status,
                 LPAD (std_employee_number, 8, '0') std_employee_number,
               --  std_employee_number,
                 std_first_name, std_marital_status, std_middle_names,
                 std_nationality, std_title, std_national_identifier,
                 std_address_line1, std_address_line2, std_address_line3,
                 std_address_line4, std_post_code, std_telephone_1, std_country,
                         std_location_id,         LPAD (std_supervisor_number, 8, '0') std_supervisor_number
          FROM   SU_TEMPLOYEE_DETAILS
           WHERE  std_employee_number = :p_emp_number..with the existing record in Production instance:
                 SELECT DISTINCT per.person_id, per.business_group_id, per.last_name,
                          per.start_date, per.date_of_birth, per.email_address,
                         --LPAD (per.employee_number, 8, '0') employee_number,
                        per.employee_number,
                          per.first_name,
                          per.marital_status, per.middle_names, per.nationality,
                          per.national_identifier, per.sex, per.title,
                          padd.address_id, padd.primary_flag, padd.address_line1,
                          padd.address_line2, padd.address_line3,
                          padd.town_or_city, padd.postal_code,
                          padd.telephone_number_1, paas.assignment_id,
                          paas.assignment_number, paas.object_version_number,
                          paas.effective_start_date, paas.effective_end_date,
                          paas.job_id, paas.position_id, paas.location_id,
                          paas.organization_id, paas.assignment_type,
                          paas.supervisor_id, paas.default_code_comb_id,
                          paas.set_of_books_id, paas.period_of_service_id
                     FROM per_all_people_f per,
                          per_all_assignments_f paas,
                          per_addresses padd
                    WHERE padd.person_id(+) = per.person_id
                      AND paas.person_id(+) = per.person_id
                      AND per.employee_number LIKE 'C%'-- :p_emp_number 
                          AND per.national_identifier = :p_ni_number
                          AND  REGEXP_LIKE(per.employee_number, '[[:alpha:]]');The Employee Number is 7 digits long (0000016). But I need the script to match its record where it may be 000016 or 00000016 in Production. Is this possible?
    Many thanks for looking..
    Steven

    JackyWhite wrote:
    My script currently doesn't find those employee numbers that are NOT 8 digits (some emp nos are 6, 7, 9) when doing comparisons. I've tried LPAD but it still doesn't find. Can anybody suggest a reason for this? I can post my whole script if you want but basically it doesn't match record in my temp table (SU_TEMPLOYEE_DETAILS):
    The Employee Number is 7 digits long (0000016). But I need the script to match its record where it may be 000016 or 00000016 in Production. Is this possible? I would like to use the TRIM Function here rather than a simple LPAD (with hard coded length) especially if the length of the column std_employee number varies based on the leading zeroes. Something like:
    SQL> WITH test_tab AS
      2       (SELECT '000016' col
      3          FROM DUAL
      4        UNION ALL
      5        SELECT '10000016'
      6          FROM DUAL
      7        UNION ALL
      8        SELECT '00000016'
      9          FROM DUAL)
    10  -- "end of test data "
    11  SELECT col, TRIM (LEADING '0' FROM col) changed_col_2
    12    FROM test_tab
    13  /
    COL      CHANGED_
    000016   16
    10000016 10000016
    00000016 16
    3 rows selected.
    SQL> variable param VARCHAR2(30);
    SQL> exec :param := '00016';
    PL/SQL procedure successfully completed.
    SQL>  WITH test_tab AS
      2        (SELECT '000016' col
      3           FROM DUAL
      4         UNION ALL
      5         SELECT '10000016'
      6           FROM DUAL
      7         UNION ALL
      8         SELECT '00000016'
      9           FROM DUAL)
    10   -- "end of test data "
    11   SELECT col, TRIM (LEADING '0' FROM col) changed_col_2
    12     FROM test_tab
    13    WHERE TRIM (LEADING '0' FROM col) = TRIM (LEADING '0' FROM :param)
    14   /
    COL      CHANGED_
    000016   16
    00000016 16
    2 rows selected.
    SQL> exec :param := '016';
    PL/SQL procedure successfully completed.
    SQL>  WITH test_tab AS
      2        (SELECT '000016' col
      3           FROM DUAL
      4         UNION ALL
      5         SELECT '10000016'
      6           FROM DUAL
      7         UNION ALL
      8         SELECT '00000016'
      9           FROM DUAL)
    10   -- "end of test data "
    11   SELECT col, TRIM (LEADING '0' FROM col) changed_col_2
    12     FROM test_tab
    13    WHERE TRIM (LEADING '0' FROM col) = TRIM (LEADING '0' FROM :param)
    14   /
    COL      CHANGED_
    000016   16
    00000016 16
    2 rows selected.
    SQL> So your where clause will become something like:
    WHERE TRIM (LEADING '0' FROM std_employee_number) =
                                              TRIM (LEADING '0' FROM :p_emp_number)Hope this helps.
    Regards,
    Jo

  • How can I delete stored email addresses that are not in my contacts

    Does any one know how to delete email addresses that are not in the contacts folder, with out completly wiping out my entire phone?

    Yes, just open mail and click on the window menu and select previous recipients, when the window opens start edit your email addresses.

  • How can I download my past purchases that are not in my icloud?  Somehow I lost songs that I purchased they say that the orginal files are gone but I did not delete them

    How can I download past purchases that are not in my icloud?  Somehow I lost songs it says that the orginal files can not be located.  They are still available in the store but it doesn't give me the option to download them.  I did not delete any songs or files but I am missing a lot of files

    The "missing file" error happens if the file is no longer where iTunes expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, or that the drive it lives on has had a change of drive letter. It is also possible that iTunes has changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout, or vice-versa, and so is looking in slightly the wrong place.
    Select a track with an exclamation mark, use Ctrl-I to get info, then cancel when asked to try to locate the track. Look on the summary tab for the location that iTunes thinks the file should be. Now take a look around your hard drive(s). Hopefully you can locate the track in question. If a section of your library has simply been moved, or a drive letter has changed, it should be possible to reverse the actions.
    If another application like Windows Media Player has moved/renamed the files then the chances are that subtle differences in naming strategies will make it hard to restore the media to the precise path that iTunes is expecting. In such cases, as long as the missing files can be found somewhere, you should be able to use my FindTracks script to reconnect them to iTunes. See this post for an explanation of how it works.
    If you have to resort to trying to pull back the library from your iPod see Recover your iTunes library from your iPod or iOS device.
    Note also that if iTunes has an entry for a song, even if that entry is broken, then it won't offer that track for download since it "thinks" you already have it. If you can't find the original files or recover them from a device, then you may need to delete the broken entries, close iTunes and reopen before you can access the past purchases.
    tt2

  • How to add video files to iMovie that are not present in photos ?

    i purchased iMovie yesterday for iPad and i am enjoying it a lot , but how to add my personal videos to edit that are not present in photos ? i m not a mac user but i hope soon i will get the budget to buy mac

    Put your videos in a folder and sync iPhone with iTunes, "Photos" tabpreviously selected "Sync photos" and checked the box next to "videos include" I understand you do not have Mac, but with a PC can do the same, with this you will reel and your videos can be edited withiMovie on your iPhone.

  • How to Alter any table to make some fields Composite Primary Key

    I need to Alter Table to make some fields Composite Primary Key.
    Is it possible to do this ?
    Please give any example.
    Regards,
    AgrawalV

    Agrawal
    If you are looking for an example to create a composite primary key, here you are.
    sql> Alter Table myTable add constraint pk_myTable primary key(col1, col2, ...coln) ;
    where
    pk_myTable is the name of the primary key constraint,
    myTable is the name of the table that you want to create a constraint on and
    col1...coln are the column names in the table <myTable)

  • How do you delete songs on iTune that are NOT on the library?

    I got a new computer few days ago, and I downloaded iTune on my new computer today.
    I want to delete all my songs that are in my iPod Touch now, and want to buy other songs.
    I don't have any songs in my library at the moment, since there's no song in my new computer now.
    So I want to delete songs, but since I don't have any of those songs in the library, I can't delete them. (I can't delete them since they are not on the library.)
    Are there any ways I can delete songs that are NOT on the library?

    You don't want to keep the songs that are on your iPod touch, in your library?
    You can keep them in your library and not put them on the touch.
    Then you can purchase other songs and put those on the touch.

  • How to update a table with strin that contains &

    Hi,
    I would like to update ename col of emp table with a string that contains &
    update emp set ename = 'tom&jerry' where empno = 7369But this gives an error.Please advice.
    Regards,

    Consult the sql*plus reference manual on how to disable the &
    Software engineers should be capable of doing research themselves, please stop abusing this forum to increase your salary by being spoon fed for free.
    Sybrand Bakker
    Senior Oracle DBA

  • How do I handle values in source that are not in "lookup" table?

    hi there,
    I have 3 tables (all Oracle technology):
    1) Source table: CALLS with columns MSISDN, TRANS_DATE, TYPE, COST, DURATION
    2) Lookup table: SUBSCRIBERS with columns SUBSCRIBERID, MSISDN, IMSI
    3) Target table: FACT_CALLS with columns SUBSCRIBERID (not null), CALLDATE, CALLTYPE, CALLDURATION, CALLCHARGE.
    Join between source and lookup table:
    NVL(CALLS.MSISDN,0) =SUBSCRIBERS.MSISDN)
    Mappings on target:
    FACT_CALLS.SUBSCRIBERID --> SUBSCRIBERS.SUBSCRIBERID
    FACT_CALLS.CALLDATE --> CALLS.TRANS_DATE
    FACT_CALLS.CALLTYPE --> CALLS.TYPE
    FACT_CALLS.CALLDURATION --> CALLS.DURATION
    FACT_CALLS.CALLCHARGE --> CALLS.CHARGE
    I have a dummy value in SUBSCRIBERS with values MSISDN = 0, SUBSCRIBERID = 0 and IMSI = 0, to be used if MSISDN in the source table is null or does not exist in the lookup table.
    The NVL on the join takes care of the case when source MSISDN is null and this is working fine i.e. returns 0 for SUBSCRIBERID.
    The problem occurs when the source MSISDN does have a value but such a value does not exist in the lookup table, such records are rejected.
    How do I implement a solution for this?

    hi Guru,
    Yes I have 2 source tables and a target.
    1) I created a join by dragging MSISDN on CALLS to MSISDN on SUBSCRIBERS then added the NVL part to have NVL(CALLS.MSISDN,0) =SUBSCRIBERS.MSISDN)
    2) the target does not have MSISDN. Using the join the target SUBSCRIBERID column gets populated with the correct value from the lookup table.
    i.e. FACT_CALLS.SUBSCRIBERID = (select SUBSCRIBERID from SUBSCRIBERS where SUBSCRIBERS.MSISDN = CALLS.MSISDN)

  • HT201272 What is it with songs that are not from the itunes store, but are coming from cd's and other download sources that all of a sudden do not play on my iphone and have a red stop button in a red round circle around them, behind the title?

    Songs that I have had previously downloaded from various other sources, but NOW ALL of a sudden they DO NOT PLAY on my IPHONE and DISPLAY a RED STOP BUTTON in a red round circle next to the title.  Everytime I click on it it DOESNT play.   What happen???? How can i get them to play.,   Why should i have to pay for the songs, and why are they in the ITUNES store and not in my regular playlist.

    Amazing steps you've done so far! The great news is this is very unlikely an issue with your iPhone.
    I've run into a similar issue lately as well. I narrowed it down to one song that was causing 30 songs not to sync. I removed the song from the sync list (unchecked it) and all 29 songs were able to sync.
    You may be running into a similar issue. This may be a problem with this version of iTunes, an issue with one song or a group of songs; hard to know for sure. It's important to narrow down and isolate the cause. Most imporantly get that music back on there!
    The way to narrow down the casue add just a few songs at a time (even 1, just to get that first sync finished). Manually syncing is what you'll need here.
    Plug in your iPhone, on the Summary screen (shows a picture of your iPhone, the iOS version, Restore iPhone....; etc). Under the Options area at the bottom choose to Manually Manage Videos and Music then choose Apply in the lower right. The music that's on your iPhone now should be removed from your iPhone now. You're now able to sync music manually.
    The link below explains how to drag the songs from the iTunes library on the computer on to your iPhone which will start the sync. Add just one song just to see if you can get 1 of those hundreds of songs on there. If you can, awesome! Keep adding until you find the song or group of songs that are causing this issue.
    http://support.apple.com/kb/HT1535
    Please let me know how things are going.
    Cheers!

  • How can i remove videos and music that are not on my ipad mini but are still taking up space and are showing that they are there even after i've deleted them?

    how can i remove videos and music that have been deleted from the ipad but are still showing in settings as still being on the ipad?

    I believe that I have the same issue with iPad Mini with Retina Display, iOS 8.1. No matter which way I delete videos from my iPad, they will still show as "deleted", yet the space is not cleared up. I tried restore and then a full restore (clean setup as a new iPad) and it still does this to me. I can solve it by doing a restore each and every time I download a video and delete it. Rather frustrating. Has been a problem since day 1 of iOS 8. I'm yet to try the power+home button reset. It may very well work, but I am surprised that a "fresh setup" of an iPad didn't resolve it from ever occurring.

  • How Can I delete all the tracks that are not in my Itunes Library?

    I am runnig out of disk space and i just want to have more space. My files are located everywhere on my mac and I saw that I have a lot of songs that are in my itunes music folder and the same are in an other folder. I want to keep everything that is in Itunes and delete the rest out of my mac!
    Thanks

    You can select some files in iTunes then right click consolidate.
    Then delete the original files not in the iTunes media folder.
    This way you don't have to do it all at once.
    Note that when you add files to iTunes, they are copied into the iTunes media folder so anything you added in the past is already in the iTunes media folder. Consolidating wont do anything to those. Likely all you need to do is delete the original.

  • How do you transfer videos on imovie that are not showing up?

    so im doing a english project and i need to add in  some video clips that a friend  sent me in an email to my project on imovie. but they are not showing up, and they will not drag in. Help please

    You don't want to keep the songs that are on your iPod touch, in your library?
    You can keep them in your library and not put them on the touch.
    Then you can purchase other songs and put those on the touch.

Maybe you are looking for

  • 2 Sites don't work on iPhone but SHOULD + more problems = no complaints?

    For informative purposes only... Long story short, I made a call on the iPhone and arranged to meet an individual at a specific location and call them when I arrived there to complete rendezvous. I first received their email from my .mac email on my

  • BDC Uploading from flat file to VA01.

    i have a flat file, where i have to upload data  into VA01, but it should suppose to multiple materials under same customer and it should not get saved until end user decide whether data is ok or not. my problem is, how to make multiple entries of di

  • Portal Runtime error - Customization

    Hi, How to customize the Portal runtime error message page in portal. Is it required to modify any standard par file for this? If so what par file needs to be modified. Ramganesan Karuppaiyah

  • Using NetBeans getting gibrish instead of local

    Hi, Help will be appreciated, Using NetBeans (Using jdk1.6.0_01 and windows xp pro ) � Created properties file in local Hebrew but received gibrish in the final outcome, how can it be fixed ?

  • Mail for Gmail: They are there, but...

    My Mail doesn't retrieve the emails in my gmail account. I have already: 1. set the account (X) like gmail said in both Mail and Gmail POP account faq 2. tested w/ other gmail account (Y) with the above setting and it works 3. repair permissions n re