BADI - BBP_CATALOG_TRANSFER - Debuging in web browser

Scenario:
The end user will launch a catalogue via the EBP system. The user will search for materials and services within the catalogue search engine. The materials and services will be displayed with the numbers from the R/3 system. The end user will select the services and materials from the catalogue and the data will be transferred via OCI interface into the shopping cart of the EBP system. The master data for materials and services within the catalogue won’t contain any leading zeros like in the R/3 system.
Requirement:
I want to stuff leading zeros to the material/service number when data gets transfered, so I am trying to use BBP_CATALOG_TRANSFER BADI. I have stated coding ENRICH_ITEM_DATA method but unable to test the data. I like to know how to debug the code... since I am viewing it in web browser breakpoint is not working... how to put some message or write statement and view it in browser... and which parameter I need to use to get material no.
Advance thanks.
Regards,
Balaji Viswanath.

If you set an internal break point in Badi ENRICH_ITEM_DATA then the BADI code ‎does not stop, but if you set an external break point in the code with the same user that is ‎used to run the shopping cart then the it will stop at that external breakpoint in the BADI.‎
‎ ‎
I have done this on a number of occasions.‎
The trick that I stated above :- ‎
‎1) Login as i.e. EBPREQ2 set the External Break point ‎
in the code this will be active for the next 2 hours for User EBPREQ2.‎
‎2) Then bring up the Browser then login as EBPREQ2 ‎
into SRM and go shopping then when you submit order ‎
R3 will do a stop inside that BADI.‎

Similar Messages

  • JDev902: How to make it NOT start up a web browser on debug start?

    In my JDeveloper setup, when I click on the bug to start my application, it starts up the embedded OC4J and eventually finishes initializing it. I then go to my already running web browser and request the application URL. This works fine.
    My colleagues, however, get slightly different behavior when they click on the bug, at some point during that process it actually starts up another instance of a web browser and tries to go to a particular web page. We all find that very annoying and would like to turn it off. Fortunately for me, it doesn't do that to me. What do they have to do in their environments to make that NOT happen? We don't want it to start another web browser instance when we debug the application.

    You'd think if the field was blank, it wouldn't do this at all.
    I looked at my configuration, and the field is blank.
    I went to my coworker's system, whose field was also blank, and who is getting this annoying behavior, so we changed the field to "aaaa". This works. It doesn't bring up the browser window. It does, however, still print out a line in the messages window, like this:
    Target URL -- http://<ipaddress>:8992/felix/index.jsp
    I do NOT see this message.
    So this workaround helps, as it avoids the annoying symptom, but I still wonder WHY I never had this problem, and why I don't see that "Target URL" message, which seems to be related. Both of us have the "Default run target" in our projects set to the same JSP page.

  • Regarding BADI BBP_CATALOG_TRANSFER

    Hi All,
    we are implementing SRM5.0 ,i created a BSP application for transfering shoping cart items , this BSP application is called from the BBP , when i click a link ECAR overthere.
    But the items in Shopping cart of my application are not getting transfered to the calling application.
    When i implemented the BADI BBP_CATALOG_TRANSFER i get the following runtime error , on clicking the ADD TO CART button in BSP application:
    Method: IF_EX_BBP_CATALOG_TRANSFER~ENRICH_ITEM_DATA of program ZCL_IM_CATALOG_TRANSFER=======CP
    Method: IF_EX_BBP_CATALOG_TRANSFER~ENRICH_ITEM_DATA of program ZCL_IM_CATALOG_TRANSFER=======CP
    Method: IF_EX_BBP_CATALOG_TRANSFER~ENRICH_ITEM_DATA of program CL_EX_BBP_CATALOG_TRANSFER====CP
    Function: BBP_WS_IMPORT_SC_DATA of program SAPLBBP_WS_API
    Form: CATALOG_CONTENT_GET of program SAPLBBP_SC_APP
    Function: BBP_SC_APP_EVENT_DISPATCHER of program SAPLBBP_SC_APP
    Form: APP_EVENT_HANDLER of program SAPLBBP_SC_UI_ITS
    Form: SC_EVENT_DISPATCHER of program SAPLBBP_SC_UI_ITS
    Module: SC_EVENT_DISPATCHER of program SAPLBBP_SC_UI_ITS
    if i deactivate the implementation of this BADI i get the following error:
    No logical system for FI is maintained.Inform system Admin.
    Enter the company code.
    No logical system for FI is maintained.Inform system Admin
    Error in account assignment for item1.
    what might be the problem?
    Is this a problem with the BSP application or customization?
    One more thing is that How is this BADI called? We have not called it in the BSP application?
    Thanks.
    Anubhav.
    Edited by: Anubhav Jain on Jun 4, 2008 6:35 AM

    Starting with basics,
    what is the need of custom BSP?
    are the standard ITS & BSP applications are not enough for yr requirement?
    because you have said it's catalog stored on the internal server only
    and you are not punching out from external(supplier) server.
    what is the data that you are adding or changing with BBP_CATALOG_TRANSFER ?
    The call of this BAdI occurs in function module 'BBP_WS_IMPORT_SC_DATA'. This module is called by the relevant application to import catalog items previously sent by the browser of the user to the application Web server from there. After the catalog has transferred the data to SAP Enterprise Buyer the system carries out the following actions.
    Conversion of ISO code of unit of measure and currency to SAP format
    Conversion of price field to SAP format
    In the case of transfer of a material or service number:
    The system reads the product master with this number. If the number exists, the system transfers from the product master record the description and the purchase order unit of measure.
    In the case of a partner number:
    The system reads the business partner master with this number. If the number does not exist, the number in the shopping cart item is reset.
    What is the Error analysis for the run time error in ST22?
    You may also show the code under "Information on where terminated" to yr functional guy
    and he may locate the table which needs to be filled up
    BR
    Dinesh

  • Apex Listener started successfully however nothing show on the web browser

    Apex Listener started successfully, when try to visit APEX (http://localhost:8080), nothing showing on the local web browser. See following output message during the startup of APEX Listener. Thank for your help.
    Kevin
    D:\app\administrator\apex_listener.2.0.0.354.17.05>java -jar apex.war
    Feb 16, 2013 2:17:23 PM oracle.dbtools.standalone.Standalone execute
    INFO: NOTE:
    Standalone mode is designed for use in development and test environments. It is not supported for use in production environments.
    Feb 16, 2013 2:17:23 PM oracle.dbtools.standalone.Standalone execute
    INFO: Starting standalone Web Container in: D:\app\administrator\apex_listener.2.0.0.354.17.05\apex
    Feb 16, 2013 2:17:23 PM oracle.dbtools.standalone.Deployer deploy
    INFO: Will deploy application path = D:\app\administrator\apex_listener.2.0.0.354.17.05\apex\apex\WEB-INF\web.xml
    Feb 16, 2013 2:17:24 PM oracle.dbtools.standalone.Deployer deploy
    INFO: Deployed application path = D:\app\administrator\apex_listener.2.0.0.354.17.05\apex\apex\WEB-INF\web.xml
    Feb 16, 2013 2:17:24 PM oracle.dbtools.common.config.file.ConfigurationFolder logConfigFolder
    INFO: Using configuration folder: D:\app\administrator\apex_listener.2.0.0.354.17.05\apex
    Configuration properties for: apex
    cache.caching=false
    cache.directory=/tmp/apex/cache
    cache.duration=days
    cache.expiration=7
    cache.maxEntries=500
    cache.monitorInterval=60
    cache.procedureNameList=
    cache.type=lru
    db.hostname=dpuwomd-cluster
    db.password=******
    db.port=1521
    db.servicename=dpuwomor.clevelandwpc.com
    debug.debugger=true
    debug.printDebugToScreen=false
    error.keepErrorMessages=true
    error.maxEntries=50
    jdbc.DriverType=thin
    jdbc.InactivityTimeout=1800
    jdbc.InitialLimit=3
    jdbc.MaxConnectionReuseCount=1000
    jdbc.MaxLimit=10
    jdbc.MaxStatementsLimit=10
    jdbc.MinLimit=1
    jdbc.statementTimeout=900
    log.logging=false
    log.maxEntries=50
    misc.compress=
    misc.defaultPage=apex
    security.disableDefaultExclusionList=false
    security.maxEntries=2000
    db.username=APEX_PUBLIC_USER
    Using JDBC driver: Oracle JDBC driver version: 11.2.0.3.0
    Feb 16, 2013 2:17:26 PM oracle.dbtools.rt.web.SCListener contextInitialized
    INFO: Oracle Application Express Listener initialized
    Application Express Listener version : 2.0.0.354.17.06
    Application Express Listener server info: Grizzly/1.9.49
    Feb 16, 2013 2:17:26 PM com.sun.grizzly.Controller logVersion
    INFO: GRIZZLY0001: Starting Grizzly Framework 1.9.49 - 2/16/13 2:17 PM
    Feb 16, 2013 2:17:26 PM oracle.dbtools.standalone.Standalone execute
    INFO: http://localhost:8080/apex started.

    Hi Kevin,
    this looks like a common issue: You've probably not configured the static contents for APEX ("images") properly. Please make sure you've set the parameter to point to a path that contains the contents of the "images" directory of the APEX installation package that fits to the APEX version of the instance your APEX Listener is supposed to host.
    -Udo

  • Use a web browser as the source for the vision assistant

    I want to access an ip camera over the internet and then use its video feed to do some processing with the vision assistant. I was wondering if someone could tell me if this is possible and how can it be done. what I have so far is an application that works with local cameras and I also have an example of a web broser in labview. I thought I could use the web browser and use a local variable from the browser in order to get the image, but this can't be wired to the grab or snap, because its not an image, so can someone please tell me how to convert the browser into a video feed, in order for me to use it in my application.

    Crop the image out of the print screen.  I imagine your screen will be a much larger resolution then the camer, and will only take up a portion of your browser window.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • [solved] pacman can't acces repositories, but my web browser does

    Hi,
    there is a strange problem. Today I tried a pacman -Syu to update, but pacman can't acces my repositories. Gives me errors of
    error: failed retrieving file 'core.db' from mirror.archlinux.ro : No address record
    I tried different mirrors, change the protocol from ftp to http, but without result. The strange think is that I can access those repositories with my web browser, so I think that it is pacman or python problem.
    My last entries in pacman's log are
    [2011-04-09 15:51] Running 'pacman -Syu'
    [2011-04-09 15:51] synchronizing package lists
    [2011-04-09 15:51] starting full system upgrade
    [2011-04-09 15:52] upgraded audacious-plugins (2.4.4-2 -> 2.4.4-3)
    [2011-04-09 15:52] upgraded libgpg-error (1.9-2 -> 1.9-3)
    [2011-04-09 15:52] upgraded libgcrypt (1.4.6-1 -> 1.4.6-2)
    [2011-04-09 15:52] upgraded gnutls (2.10.5-1 -> 2.12.2-1)
    [2011-04-09 15:52] warning: /usr/share/config/kdm/kdmrc installed as /usr/share/config/kdm/kdmrc.pacnew
    [2011-04-09 15:52] upgraded kdebase-workspace (4.6.2-1 -> 4.6.2-2)
    [2011-04-09 15:52] upgraded xproto (7.0.20-1 -> 7.0.21-1)
    [2011-04-09 15:52] upgraded libx11 (1.4.3-1 -> 1.4.3-2)
    [2011-04-09 15:52] upgraded pycups (1.9.54-1 -> 1.9.55-1)
    [2011-04-09 15:52] upgraded taglib (1.6.3-1 -> 1.7-1)
    [2011-04-09 15:52] upgraded xdg-utils (1.1.0rc1-1 -> 1.1.0rc1-2)
    [2011-04-09 15:52] upgraded xextproto (7.1.2-1 -> 7.2.0-1)
    [2011-04-09 16:16] Running 'pacman -S k3b'
    [2011-04-09 16:17] installed libdiscid (0.2.2-1)
    [2011-04-09 16:17] installed libmusicbrainz3 (3.0.3-1)
    [2011-04-09 16:17] installed kdemultimedia-kioslave (4.6.2-1)
    [2011-04-09 16:17] installed openjpeg (1.3-3)
    [2011-04-09 16:17] installed ffmpeg (20110330-1)
    [2011-04-09 16:17] installed libao (1.1.0-1)
    [2011-04-09 16:17] installed cdrdao (1.2.3-5)
    [2011-04-09 16:17] installed cdrkit (1.1.11-1)
    [2011-04-09 16:17] installed k3b (2.0.2-1)
    [2011-04-09 16:17] Running 'pacman -S dvd+rw-tools'
    [2011-04-09 16:20] installed dvd+rw-tools (7.1-2)
    After this, it stopped working - I mean I can't download a thing with pacman, no updates, no packages.
    Last edited by inp3dance (2011-05-04 22:37:00)

    pacman -Syu --debug output:
    debug: config: attempting to read file /etc/pacman.conf
    debug: config: new section 'options'
    debug: config: HoldPkg: pacman
    debug: config: HoldPkg: glibc
    debug: config: SyncFirst: pacman
    debug: config: Architecture: i686
    debug: config: new section 'core'
    debug: registering sync database 'core'
    debug: config file /etc/pacman.conf, line 65: including /etc/pacman.d/mirrorlist
    debug: config: attempting to read file /etc/pacman.d/mirrorlist
    debug: adding new server URL to database 'core': http://mirror.archlinux.ro/archlinux/core/os/i686
    debug: setlibpaths() called
    debug: option 'cachedir' = /var/cache/pacman/pkg/
    debug: config: finished parsing /etc/pacman.d/mirrorlist
    debug: config: new section 'extra'
    debug: registering sync database 'extra'
    debug: config file /etc/pacman.conf, line 68: including /etc/pacman.d/mirrorlist
    debug: config: attempting to read file /etc/pacman.d/mirrorlist
    debug: adding new server URL to database 'extra': http://mirror.archlinux.ro/archlinux/extra/os/i686
    debug: config: finished parsing /etc/pacman.d/mirrorlist
    debug: config: new section 'community'
    debug: registering sync database 'community'
    debug: config file /etc/pacman.conf, line 74: including /etc/pacman.d/mirrorlist
    debug: config: attempting to read file /etc/pacman.d/mirrorlist
    debug: adding new server URL to database 'community': http://mirror.archlinux.ro/archlinux/community/os/i686
    debug: config: finished parsing /etc/pacman.d/mirrorlist
    debug: config: new section 'archlinuxfr'
    debug: registering sync database 'archlinuxfr'
    debug: adding new server URL to database 'archlinuxfr': http://repo.archlinux.fr/i686
    debug: config: finished parsing /etc/pacman.conf
    :: Synchronizing package databases...
    debug: database path for tree local set to /var/lib/pacman/local/
    debug: local database version 2
    debug: destfile found, using mtime only
    debug: using 'core.db' for download progress
    debug: HTTP_PROXY: (null)
    debug: http_proxy: (null)
    debug: FTP_PROXY: (null)
    debug: ftp_proxy: (null)
    error: failed retrieving file 'core.db' from mirror.archlinux.ro : No address record
    debug: failed to sync db: No address record
    error: failed to update core (No address record)
    debug: destfile found, using mtime only
    debug: using 'extra.db' for download progress
    debug: HTTP_PROXY: (null)
    debug: http_proxy: (null)
    debug: FTP_PROXY: (null)
    debug: ftp_proxy: (null)
    error: failed retrieving file 'extra.db' from mirror.archlinux.ro : No address record
    debug: failed to sync db: No address record
    error: failed to update extra (No address record)
    debug: destfile found, using mtime only
    debug: using 'community.db' for download progress
    debug: HTTP_PROXY: (null)
    debug: http_proxy: (null)
    debug: FTP_PROXY: (null)
    debug: ftp_proxy: (null)
    error: failed retrieving file 'community.db' from mirror.archlinux.ro : No address record
    debug: failed to sync db: No address record
    error: failed to update community (No address record)
    debug: destfile found, using mtime only
    debug: using 'archlinuxfr.db' for download progress
    debug: HTTP_PROXY: (null)
    debug: http_proxy: (null)
    debug: FTP_PROXY: (null)
    debug: ftp_proxy: (null)
    error: failed retrieving file 'archlinuxfr.db' from repo.archlinux.fr : No address record
    debug: failed to sync db: No address record
    error: failed to update archlinuxfr (No address record)
    error: failed to synchronize any databases
    debug: unregistering database 'local'
    debug: unregistering database 'core'
    debug: unregistering database 'extra'
    debug: unregistering database 'community'
    debug: unregistering database 'archlinuxfr'
    pacman.conf
    # /etc/pacman.conf
    # See the pacman.conf(5) manpage for option and repository directives
    # GENERAL OPTIONS
    [options]
    # The following paths are commented out with their default values listed.
    # If you wish to use different paths, uncomment and update the paths.
    #RootDir = /
    #DBPath = /var/lib/pacman/
    #CacheDir = /var/cache/pacman/pkg/
    #LogFile = /var/log/pacman.log
    HoldPkg = pacman glibc
    # If upgrades are available for these packages they will be asked for first
    SyncFirst = pacman
    #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
    #XferCommand = /usr/bin/curl -C - -f %u > %o
    #CleanMethod = KeepInstalled
    Architecture = auto
    # Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
    #IgnorePkg =
    #IgnoreGroup =
    #NoUpgrade =
    #NoExtract =
    # Misc options (all disabled by default)
    #UseSyslog
    #ShowSize
    #UseDelta
    #TotalDownload
    #CheckSpace
    # REPOSITORIES
    # - can be defined here or included from another file
    # - pacman will search repositories in the order defined here
    # - local/custom mirrors can be added here or in separate files
    # - repositories listed first will take precedence when packages
    # have identical names, regardless of version number
    # - URLs will have $repo replaced by the name of the current repo
    # - URLs will have $arch replaced by the name of the architecture
    # Repository entries are of the format:
    # [repo-name]
    # Server = ServerName
    # Include = IncludePath
    # The header [repo-name] is crucial - it must be present and
    # uncommented to enable the repo.
    # The testing repositories are disabled by default. To enable, uncomment the
    # repo name header and Include lines. You can add preferred servers immediately
    # after the header, and they will be used before the default mirrors.
    #[testing]
    #Include = /etc/pacman.d/mirrorlist
    [core]
    Include = /etc/pacman.d/mirrorlist
    [extra]
    Include = /etc/pacman.d/mirrorlist
    #[community-testing]
    #Include = /etc/pacman.d/mirrorlist
    [community]
    Include = /etc/pacman.d/mirrorlist
    # An example of a custom package repository. See the pacman manpage for
    # tips on creating your own repositories.
    #[custom]
    #Server = file:///home/custompkgs
    [archlinuxfr]
    Server = http://repo.archlinux.fr/$arch
    My mirrorlist is the default one, I have enabled only one mirror at a time, be it the Hungarian one or one of the Romanian mirrors, depending in which country I am.

  • Web browser ...need help

    hello everyone..i have built a simple web browser using java..i can go to google.com or facebook.com but whenever i want to search something or want to login providing necessary information it doesnt work..can anyone tell me whats wrong here??nd how can i solve it?itz really urgent...
    here's my code :
    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    import java.io.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class Browser extends JFrame {
    private JTextField enterField;
    private JEditorPane contentsArea;
    //here's the GUI
    public Browser()
    super("MY BROWSER");
    Container container = getContentPane();
    enterField=new JTextField("enter file url here");
    enterField.addActionListener(
    new ActionListener()
    public void actionPerformed(ActionEvent event)
    getThePage(event.getActionCommand());
    container.add(enterField,BorderLayout.NORTH);
    contentsArea = new JEditorPane();
    contentsArea.setEditable(false);
    contentsArea.addHyperlinkListener
    new HyperlinkListener()
    public void hyperlinkUpdate(HyperlinkEvent event)
    if(event.getEventType()==HyperlinkEvent.EventType.ACTIVATED)
    getThePage(event.getURL().toString());
    container.add(new JScrollPane(contentsArea), BorderLayout.CENTER);
    setSize(400,300);
    setVisible(true);
    //load document;change mouse cursor to indicate status
    private void getThePage(String location)
    setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
    try
    contentsArea.setPage(location);
    enterField.setText(location);
    catch(IOException io)
    JOptionPane.showMessageDialog(this,"ERROR retrieving specified URL","Bad URL",JOptionPane.ERROR_MESSAGE);
    setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
    public static void main(String args[])
    Browser application =new Browser();
    application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }

    Hello Fixxer, what did you find out from sprint?
    Nurse-Berry
    Follow NurseBerry08 on Twitter

  • BAdI BBP_CATALOG_TRANSFER - Material Group Mapping issue

    Hi all,
    Currently, we have to map Vendor Product Category to SAP Material Group using a customized table, as the shopping cart items are transferred via OCI (Open Catalog Interface) from External Catalog. I realize mapping can be done using BAdI BBP_CATALOG_TRANSFER in SRM system.
    Before any mapping logic is placed in the above BAdI, I notice Application Log (Tcode SLG1) returns me an error message after shopping cart items transferred via OCI:
    000001 Unable to find appropriate Category Id 98218237
    Hence, I have placed Product Category mapping logic in the above BAdI using CATALOG_CONTENT-MATGROUP (where Vendor Category ID 98218237 will be mapped to SAP Material Group 001803). However, once I attain Material Group 001803 from mapping z-table, I am not sure which internal table I need to update , should it be CATALOG_CONTENT, ENRICHED_ITEM_DATA, or ET_SC_ITEM_DATA?
    I notice that ET_SC_ITEM_DATA having empty entry, while CATALOG_CONTENT and ENRICHED_ITEM_DATA contains the shopping cart items from External Catalog. I have tried to update ENRICHED_ITEM_DATA but I still get the error message from Appl. Log (SLG1).
    000001 Unable to find appropriate Category Id 98218237
    What is the different between ENRICHED_ITEM_DATA and ET_SC_ITEM_DATA, while EV_SC_STRUCTURES_USED = 'X', when I debug the BAdI? And which table I need to update after I attain the right SAP Material Group from Mapping z-table, while ET_SC_ITEM_DATA is empty?
    Kindly advise.
    Many thanks,
    Patrick
    P/S: I'm on SRM 5.0

    HI,
    I am not sure how could you solve your concern, I have been to similar situations..and here is my opinion.
    The errors what you are getting for:
    Error: Jurisdiction code could not be determined
    Reason: You are using a Location or Ship-to-address in such a way that there are two Jurisdiction Codes in your backend system (are you using Third Party Tax engine such as Taxware?). In such case, Shopping Cart gets confused to select from two codes and throws out error message...or simply your backend system has not maintained any Tax Jurisdiction Code at all!!!
    Error: Not possible to calculate tax
    Reason: Because Shopping Cart could not get any correct Jurisdiction Code, it can not calculate tax!
    How to solve above two errors? Solve the 1st one, second one is automatically solved!
    You can implement BADI BBP_DET_TAXCODE_BADI to find atleast one and only one Jurisdiction Code for a line item of the Shopping Cart (or PO). (Tip: You can call an RFC to backend to call standard FM to get the Tax Jurisdiction Codes, if there are more than one, select the first one and return, or if there are none..use any default (which is okay to your customer) and give it to the structure.
    Let me share my understanding on the three structures you found in the BBP_CATALOG_TRANSFER BAdI.
    CATALOG_CONTENT: Contains the OCI fields flowing from the catalog. They are the original items coming from Catalog.
    ENRICHED_ITEM_DATA: Contains the Catalog_Content structure as sub-structure. This is used to modify the content as a broker.
    ET_SC_ITEM_DATA: Contains the SC items that is created because of Catalog Transfer. If there is any application error such as mismatch of Unit of measurement, ISO Codes, Product Category etc. this structure will not be filled in completely..Only perfect items (without any mapping error) will get into this structure.
    If you are finding that ET_SC_ITEM_DATA is empty, then check BBP_OCI object in SLG1 transaction, that will show you errors while catalog transfer and the same can be found during debugging of the BAdI.
    I think this can give some idea on how to use them..
    Thanks for reading...
    Ashok Kawa

  • Video Streaming on Web Browser from Web Camera

    How to run Web Camera on to the Web Browser through JAVA and JMF?

    How to run Web Camera on to the Web Browser
    through JAVA and JMF? As someone who has written dozens of applets, and
    helped debug hundreds of them, I can tell you that
    applets are not for beginners.
    Whenever I must have an applet that is any more
    than completely trivial, I will code it as a combined
    application/applet, if only for making testing faster
    and easier.
    Further, if you have a working application, it can be
    'launched from a link', just like an applet, but using
    web start.
    I suggest you put aside the applet idea for the
    moment, and concentrate on doing this in an
    application.
    When that is working, you can decide whether
    to launch it using web start, or embed it as an
    applet in a web page.
    Here is an example of launching JMF (the
    player) using web start.
    http://www.javasaver.com/testjs/jmf/#test5
    As far as coding for a web cam, a quick Google leads to..
    "Here is the source code to JMF Webcam app + saves jpeg"
    http://forum.java.sun.com/thread.jspa?threadID=247253
    2 notes:
    1) I found that URL for the web cam code using
    Google. I have never dealt with web cams myself.
    2) Normally I ignore threads with no dukes. I am
    usually pretty busy, and dukes indicate how
    important a thread is - to whoever is asking.
    So, if you want to complete this task faster, you might
    - search for answers first.
    - add dukes to any question, to indicate interest.
    HTH

  • No Adobe air app will run Only Flash Web browser....

    So I have re-installed Flash Builder So when I try and run a Adobe air app from the Flash Builder It brings up a prompt everytime saying - If the program is already running, close it before attempting to run. When I kill the Adobe Air debugger in the Task manager it pops up again saying If the program is already running, close it before attempting to run.
    After waiting a few moments from trying again I get a message: Unable to connect to the Application to fetch profile data. Please try profiling the application again.
    With Flash based - web browser apps - they run fine with no issue. How ever its only adobe air - desktop apps that run this way. This is the third time I have installed FB 4.5 on Windows 7 64 bit. last night it was all woprking fine I was able to debug my Flash Application and everything was working  - it has been doing this all day.

    I had the same issue suddenly today
    After hours of scratching my head - and just before re-installing FlashBuilder 4.5 - I found this suggestion
    I had an entry in the "mm.cfg" file:
    PreloadSWF=C:\Users\<USERNAME>\AppData\Roaming\Mozilla\Firefox\Profiles\9us94hs0.default\e xtensions\[email protected]\chrome\content\flashfirebug\flashfirebug.swf
    - I deleted the line and it now works
    ---- aaarrrrggghhh - wasted time
    thanks

  • Web browser out of memory

    Hi, i'm having problems running an app i've deisgned.
    It is a simple web browser but somtimes i get the lang.outOfMemoryError when i try to open huge pages such as the java api for exemple.
    I've worked on this buf for about 10 hours and even if my app is now running faster and the code looks easy to understand, i still have this problem.
    Here is the code:
    import java.awt.*;
    import java.net.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class Connexion
    extends JPanel {
    private JEditorPane jep;
    private int type;
    private URL url;
    Connexion(String urlString) {
    super();
    jep = new JEditorPane();
    try{url = new URL(urlString);}catch(Exception e){}
    openURL(urlString);
    jep.setEditable(false);
    jep.setContentType("text/html");
    setBackground(Color.white);
    add(jep);
    jep.addHyperlinkListener(new LinkActivator());
    //Permet de faire un "flush" de la m�moire pour afficher les pages importantes
    System.gc();
    //M�thode d'ouverture de l'url ou de modification de l'url pour ouverture
    private void openURL(String urlString) {
    type = 1;
    try {
    url = new URL(urlString);
    jep.setPage(url);/*
    catch (Exception e1) {
    try {
    url = new URL("http://" + urlString);
    jep.setPage(url);
    catch (Exception e2) {
    try {
    url = new URL("http://www." + urlString);
    jep.setPage(url);
    catch (Exception e3) {
    try {
    type = 2;
    url = new URL("file:" + urlString);
    jep.setPage(url);
    catch (Exception e4) {
    try {
    type = 3;
    url = new URL("file:" + System.getProperty("user.dir") +
    System.getProperty("file.separator") +
    "introuvable.htm");
    jep.setPage(url);*/
    catch (Exception ex) {}
    //Permet de faire un flush de la m�moire pour afficher les pages importantes
    System.gc();
    //Retourne l'URL de connexion
    public URL getUrl() {
    return url;
    //Retourne le type de fichier (html ou file)
    public int getType() {
    return type;
    class LinkActivator
    implements HyperlinkListener {
    public void hyperlinkUpdate(HyperlinkEvent he) {
    HyperlinkEvent.EventType type = he.getEventType();
    if (type == HyperlinkEvent.EventType.ENTERED)
    jep.setCursor(
    Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
    else if (type == HyperlinkEvent.EventType.EXITED)
    jep.setCursor(Cursor.getDefaultCursor());
    else if (type == HyperlinkEvent.EventType.ACTIVATED)
    openURL(he.getURL().toExternalForm());
    There's too much System.gc() but i think it can improve performance. am I wrong?
    Oh, by the way, i'm french so my comments are in french.
    I hope my english isn't too wrong.
    Please help.
    Thank you by advance.

    oups, sorry about that.
    Here is the formatted code
    import java.awt.*;
    import java.net.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class Connexion
        extends JPanel {
      private JEditorPane jep;
      private int type;
      private URL url;
      Connexion(String urlString) {
        super();
        jep = new JEditorPane();
        try{url = new URL(urlString);}catch(Exception e){}
        openURL(urlString);
        jep.setEditable(false);
        jep.setContentType("text/html");
        setBackground(Color.white);
        add(jep);
        jep.addHyperlinkListener(new LinkActivator());
        //Permet de faire un "flush" de la m�moire pour afficher les pages importantes
        System.gc();
      //M�thode d'ouverture de l'url ou de modification de l'url pour ouverture
      private void openURL(String urlString) {
        type = 1;
        try {
          url = new URL(urlString);
          jep.setPage(url);/*
        catch (Exception e1) {
          try {
            url = new URL("http://" + urlString);
            jep.setPage(url);
          catch (Exception e2) {
            try {
              url = new URL("http://www." + urlString);
              jep.setPage(url);
            catch (Exception e3) {
              try {
                type = 2;
                url = new URL("file:" + urlString);
                jep.setPage(url);
              catch (Exception e4) {
                try {
                  type = 3;
                  url = new URL("file:" + System.getProperty("user.dir") +
                                System.getProperty("file.separator") +
                                "introuvable.htm");
                  jep.setPage(url);*/
                catch (Exception ex) {}
        //Permet de faire un flush de la m�moire pour afficher les pages importantes
        System.gc();
      //Retourne l'URL de connexion
      public URL getUrl() {
        return url;
      //Retourne le type de fichier (html ou file)
      public int getType() {
        return type;
      class LinkActivator
          implements HyperlinkListener {
        public void hyperlinkUpdate(HyperlinkEvent he) {
          HyperlinkEvent.EventType type = he.getEventType();
          if (type == HyperlinkEvent.EventType.ENTERED)
            jep.setCursor(
                Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
          else if (type == HyperlinkEvent.EventType.EXITED)
            jep.setCursor(Cursor.getDefaultCursor());
          else if (type == HyperlinkEvent.EventType.ACTIVATED)
            openURL(he.getURL().toExternalForm());
    }In fact i already the xmx command but i 'm looking for another to debug this.
    There must be at least one.
    Don't I do the connexion in a weird way?
    is there any better way to do this???

  • Xmonad - prevent web browser from going "fullscreen"

    Hi,
    is there a possibility in xmonad to prevent an application (in my case the web browser) from resizing to fullscreen when it's the only window on a workspace? I have a huge display and do not want chromium to resize to the full resolution. I've done a lot of searching on this problem (and I can't believe that I'm the only one with this issue) but didn't find anything about that. Maybe because of my bad English...
    As mentioned in the title, the WM is xmonad.
    Thank you very much.

    Well, you could write a manageHook that tests if it is the only window on the screen, and if it is, changes the layout, or floats the browser with a spesific size

  • How to run an applet with JDBC connectivity on a web browser

    I've created an Applet in Java with SQL connectivity...i.e. it retrieves certain data from a table in SQL and puts in the TextField.....
    Now, the problem is that this Applet works in NETBEANS....but fails to work when I use a web-browser..or the "appletviewer" command....
    It says that it doesn't have permission to access local files....On Research, i've found that it is somethin' related to the concept of "Signed Applets", "Permissions" & "Security Policies" in java which doesn't allow any applet (without Certificate) to access Local Files.....
    Can Somebody please tell how to overcome this problem.....?

    I'm going to be blunt with you. You are most likely going to have to redesign your application from scratch. And if it turns out you don't have to then you should anyway because it's a bad idea and fraught with peril.
    Anyway here the major touchpoints on this discussion. You can be the judge of how these various points apply to you.
    - Applets are restricted. - Yes Applets have a number of security restrictions on what they can or cannot do. This is designed to protect users from malicious applets. By signing your applet you can request permission from the user to do certain activities that are otherwise restricted. But not all.
    - If you are using the JDBC-ODBC bridge then you need a different driver. If you sign your applet it might work in some limited scenarios but it will be hairy and is discouraged.
    - If you are using Access or another file based database (CSV Excel etc) then you are doomed. You'll have to get yourself a different database. A non file based one. It doesn't matter if you sign your applet or not. You're still doomed.
    - If you are trying to connect to a database server that is not at the same physical address as your web server you are doomed. Signing the applet will not help
    - Connecting directly to a database from an applet is extremely risky business. Starting with now anyone can steal your username and password for your database quite easily.
    What you should do in the redesign is put all the database accessing code in a Servlet. This Servlet does not have to be Java, it could be PHP, Perl, ASP, etc. It doesn't matter. Just put it on the server side. Then have your applet connect to this code via a webservice to do what is required.

  • Badi BBP_CATALOG_TRANSFER in EBP portal

    we have implemented  badi BBP_CATALOG_TRANSFER
    I have kept the debugger in the code written under this implementation .
    1. when I try to execute it giving CATALOG ID as input I am not getting any data in
    parameter u201CCATALOG_CONTENTu201D
    2. when i do the shopping through  EBP portal , and click on
    "Transfer Items from Catalog" control  does not go to implemented badi.
    Can any one please guide any pointer on it.

    If you set an internal break point in Badi ENRICH_ITEM_DATA then the BADI code &#8206;does not stop, but if you set an external break point in the code with the same user that is &#8206;used to run the shopping cart then the it will stop at that external breakpoint in the BADI.&#8206;
    &#8206; &#8206;
    I have done this on a number of occasions.&#8206;
    The trick that I stated above :- &#8206;
    &#8206;1) Login as i.e. EBPREQ2 set the External Break point &#8206;
    in the code this will be active for the next 2 hours for User EBPREQ2.&#8206;
    &#8206;2) Then bring up the Browser then login as EBPREQ2 &#8206;
    into SRM and go shopping then when you submit order &#8206;
    R3 will do a stop inside that BADI.&#8206;

  • Triggering BADI BBP_CATALOG_TRANSFER

    Hello People.
    I have implemented BBP_CATALOG_TRANSFER badi ( I want to use customer fields) , but its implementation is not called, the badi is active but is not called.
    We have SRM version 5.0 and Enterprise Buyer 3.0. ( ITS integrated)
    How I can triggering this badi?
    Regards.

    Hi,
    BBP_CATALOG_TRANSFER can be used  to change/map values returning from an OCI linked external catalog via the hook url. It lets you map out some of the data.
    See the foll related threads:
    Triggering BADI  BBP_CATALOG_TRANSFER
    How to debug the BADI 'BBP_CATALOG_TRANSFER'?
    Also sample code for the BADI for your reference:
    Like this, you can do much more things. Basically, you can map the data coming from external into SRM SC.
    loop at enriched_item_data into wa_enriched_item_data.
    category_id = wa_enriched_item_data-category_id+0(6).
    select category_guid
    into comm_category-category_guid
    up to 1 rows
    from comm_category
    where category_id = category_id.
    endselect.
    if sy-subrc eq 0.
    wa_enriched_item_data-category = comm_category-category_guid.
    wa_enriched_item_data-category_id = category_id.
    modify enriched_item_data from wa_enriched_item_data.
    else.
    select category_guid
    into comm_category-category_guid
    up to 1 rows
    from comm_category
    where category_id = c_category_id99.
    endselect.
    if sy-subrc eq 0.
    wa_enriched_item_data-category = comm_category-category_guid.
    wa_enriched_item_data-category_id = c_category_id99.
    modify enriched_item_data from wa_enriched_item_data.
    endif.
    endif.
    endloop.
    BR,
    Disha.
    Pls reward points for useful answers.

Maybe you are looking for

  • Illustrator CC - CRASHES when creating/opening new document.

    My Illustrator CC crashes when: - when I open any *.ai file saved on my disk - when I try to create new file I can open the Illustrator (blank, without any document) but as soon as I want to open some document or create (File/New) it crashes immediat

  • How can I sign a password protected PDF doc?

    I am trying to sign a password protected document, downloaded from a government site. I can use all button and drop-down menus and also validate the document but then, when I click on the line where I have to sign, there is only the cursor flashing a

  • Multiple sites as an alternative to CDSSO

    We use two domains for our web sites - typically one for internal and one for external applications. We have avoided CDSSO to date by using the client SDK to process logins and cookies. The price we pay is to not have true single sign-on among all ap

  • 7230,Skype and alternative browsers

    Am i right that this phone is not compatible with Skype? That is the asnwer got from skype.com. I installed already Opera Mini browser in order to see veoh.com videos. However, the videos can't be watched because of the wrong Nokia flash  Player. Is

  • How to update songs bought on itunes

    how to update songs bought on iTunes? in order to play them in Djay