Modularize the code

Hi  Experts,
I am using Function module F4_INT_TABLE_VALUE_REQUEST for F4 help funtionality . i have 30 to 40 fields for which i need to use this function module .
Every time i need to pass different fields and diferent tables.
Anbody please tell how to modularize so that i can call this FM only once. please if i need to write perform give me sample line.
thanks.

HI
THIS IS TESTED CODE ....in this you can change the value of W_CHAR  and W_TABLE and use it or take it as parameter
do sum modification to get your functionality
REPORT  YH1306_TESTPACK123.
TABLES:
  sflight.
PARAMETERS:
  p_conn TYPE sflight-connid,
  p_carr TYPE sflight-carrid.
data:
  w_char TYPE dfies-fieldname VALUE 'CARRID',
  w_table type string value 'T_TABLE'.
TYPES:
  BEGIN OF type_s_carr,
    carrid TYPE sflight-carrid,
  END OF type_s_carr.
DATA:
  t_table TYPE
STANDARD TABLE
       OF type_s_carr
     WITH HEADER LINE.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_carr.
  SELECT carrid
    FROM sflight
    INTO TABLE t_table
   UP TO 1 ROWS.
perform sub_2 TABLES  T_TABLE
                using w_char
*&      Form  SUB_2
      text
     -->P_W_CHAR  text
     -->P_T_TABLE  text
FORM SUB_2   TABLES T_TABLE
USING    P_W_CHAR.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
  EXPORTING
  DDIC_STRUCTURE         = ' '
    retfield               = p_w_char
  PVALKEY                = ' '
  DYNPPROG               = ' '
  DYNPNR                 = ' '
  DYNPROFIELD            = ' '
  STEPL                  = 0
  WINDOW_TITLE           =
  VALUE                  = ' '
  VALUE_ORG              = 'C'
  MULTIPLE_CHOICE        = ' '
  DISPLAY                = ' '
  CALLBACK_PROGRAM       = ' '
  CALLBACK_FORM          = ' '
  MARK_TAB               =
IMPORTING
  USER_RESET             =
  tables
    value_tab              = T_table
  FIELD_TAB              =
  RETURN_TAB             =
  DYNPFLD_MAPPING        =
EXCEPTIONS
  PARAMETER_ERROR        = 1
  NO_VALUES_FOUND        = 2
  OTHERS                 = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM.                    " SUB_2
regards
Edited by: Mohit Kumar on Feb 18, 2009 1:39 PM

Similar Messages

  • How can i print all the contect of the code in sapscript window ? ?

    how can i print all the contect of the code in sapscript window ? ?

    Hi,
    Do you mean that you want to print the ABAP code to SAPscrip form ?
    Svetlin

  • Am i the only one who when trying to enter the code for creative cloud activation ?

    I give up,i have been trying to activate a 3 month subscription for CS6 from Staples and every time i try the code it will not work.  I have used the chat live and spent about 3 hours already going nowhere.  I do not like talking on the phone to some help desk overseas and the only thing i think left to do is to return the junk.

    I tried all that and even took a picture of the numbers and blew them up so a blind person could read them and had 3 others read them off.  A simple way to fix the problem is get someone on Adobes staff to find a font that most people can read from whatever product the stick it to.
    John McDonough
    Date: Wed, 1 Aug 2012 18:33:58 -0600
    From: [email protected]
    To: [email protected]
    Subject: Am i the only one who when trying to enter the code for creative cloud activation ?
        Re: Am i the only one who when trying to enter the code for creative cloud activation ?
        created by David__B in Adobe Creative Cloud - View the full discussion
    Hey John,
    Not sure if it helps or not, but I know sometimes with codes like that its really hard to tell certain characters apart, O - like in Oscar versus 0 - number and number 1 versus lowercase L like in Lima.
    Might test entering it both ways if you have any suspect characters?
    -Dave
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4592955#4592955
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4592955#4592955. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Adobe Creative Cloud by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • HT1539 iTunes says the code is invalid when it clearly is valid, what do I do? How do I get my digital copy??

    I bought The Dark Knight a few years ago, I tried to download the digital copy before but I gave up. Now that I have my iPhone, I'm determined to get all the digital copies I'm entitled to! So I'm here to find out how to remedy the situation. iTunes says the code is invalid when it clearly should work. I didn't buy the DVD off the street or anything. iTunes doesn't give me any further options, so what can I do? Anybody have any advice, please?

    Yeah, I actually did get it. I had to send an e-mail to Warner Bros. with all available info and my issue and they sent me another code that actually worked.
    So I actually just had to do what varjak paw suggested, it just took a few days (maybe a week) and I forgot to get back to you guys. So, belated but all the same thank you, varjak paw!

  • Can not view the code for views, triggers or table definition

    Hello Gurus,
    I can not see the code for any of the triggers, views, tables etc. in sql developer. For instance a view code will be
    "create or replace" and then nothing, I could see the code in the past.
    When clicking on SQL tab for table I get following errors
    1. Ora-00904 Invalid Column name
    2. Ora-31600: invalid input value emit_schema for parameter name in function SET_TRANSFORM_PARAMORA-06512: at SYs.DBMS_SYS_ERROR............................
    please advice.
    Thanks

    Sqldev was only certified starting from 9.0.2, so it's possible that's the culprit. The latest update in the certification document even omits 9i entirely.
    Did it start happening after upgrading sqldev? What version are you on?
    K.

  • I purchased a blu-ray of The Hunger Games and it came with a code for a digital copy. I redeemed the code on iTunes but the download has been continuing for 2 weeks now and it never finishes! The time just keeps going up. Never an issue in the past.

    I purchased the blu-ray of The Hunger Games and it came with a code to redeem for a digital copy. I redeemed the code in iTunes and the movie downloaded fine, but the "EXTRAS" have been downloading for 2 weeks! Everytime I launch iTunes it starts the download again and the counter keeps going UP, at one point it said it would take 3 weeks. I have paused and restarted the download, I have deleted the download, nothing works to finish or stop this download! Does anyone have a clue what's up?

    ps when syncing it jumps through steps 1 - 4 real fast, i seem to remeber iphone showing the number of tracks transferring and names, but i see nothing? then it sits on 5 saying "waiting for changes to be applied"

  • I have Apple tv and Im trying to activate Netflix on Air play.I need a code but the code doesnt show when I go to Air Play on the apple screen..Why doesnt it show. Also when I enter my id and password for itunes it wont accept it. Need help...

    I just hooked up my Apple tv and im having problems already..When i enter my ID and Password for itunes it says that it is not valid,yet I double checked and its correct. Also, when I try to find the code to connect my Net flix account in Air Play the icon for the code is not there.I have wireless internet connection and it says Im connected so thats not the problem. Im ready to return my Apple tv for another product..Does anyone have a fix for this problem??

    Click here and request assistance.
    (91679)

  • In synk, when I click "add device" instead of opening a window to enter the codes, it opens another firefox window and takes me to the help page for synk. [SOLVED]

    I got a new laptop today and after downloading firefox I tried to use the synk feature and it says I have to add device on my old computer. In following the directions I never get to the screen to enter the codes from my new computer onto the old one. When I click add device on the old computer it takes me to the help page on the web with the same directions that took me there in the first place! So, how am I supposed to synk my new computer if I can't add device on the old or simply log in to my synk account on the new?

    Ok, I figured it out, I clicked "i don't have device available" and it let me log in to my account.

  • How to delete protlet from the code?

    Hi All,
    I want to delete the portlet at runtime (means from code) so does anyone has any idea how to do it?
    Scenario - I have home page, there I have 5-8 portlets so I want to provide functionality to end user so they can delete and add the same portlet. So, for that I have created one more portlet which is on another page, from that portlet I am deleting one specific portlet by passing it's portlet instance ID.
    I have written following code to delete it but it doesn't work out. I am not getting any exception while executing below code but it doesn't delete the portlet , so when I go back to home page I can see that portlet. FYI, It prints all SOPs.
    I have written following code in backing file which is at page level (not on Home page).
    String LOOKUP_NAME = com.bea.p13n.management.ApplicationHelper.getApplicationName() +"."+
         com.bea.netuix.application.manager.persistence.PortalCustomizationManagerHome.LOOKUP_NAME;
         Object obj = JndiHelper.lookup(LOOKUP_NAME, com.bea.netuix.application.manager.persistence.PortalCustomizationManager.class);
         System.out.println("=========="+obj.getClass().getName());
         com.bea.netuix.application.manager.persistence.PortalCustomizationManagerHome home = (com.bea.netuix.application.manager.persistence.PortalCustomizationManagerHome)obj;
         System.out.println("[HomePageBacking][Home]"+home);
         com.bea.netuix.application.manager.persistence.PortalCustomizationManager portalCustomizationManager = home.create();
         System.out.println("[HomePageBacking][portalCustomizationManager]"+portalCustomizationManager);
         com.bea.netuix.application.manager.CustomizationContext customizationContext = new com.bea.netuix.application.manager.CustomizationContext(request);
         System.out.println("[HomePageBacking][customizationContext]"+customizationContext);
         customizationContext.setVisitorMode(true);
         System.out.println("-------getParameter--------"+request.getParameter("instanceID"));
         String instanceID = request.getParameter("instanceID");
         if(instanceID != null)
              com.bea.netuix.application.identifier.PortletInstanceId portletInstanceId = com.bea.netuix.application.identifier.PortletInstanceId.createPortletInstanceId(Integer.parseInt(instanceID));
              //portletInstanceId.setId(Integer.parseInt(instanceID));
              System.out.println("[HomePageBacking][customizationContext.isVisitorMode()]"+customizationContext.isVisitorMode());
              System.out.println("[HomePageBacking][portletInstanceId.getId()]"+portletInstanceId.getId());
    portalCustomizationManager.deletePortletInstance(customizationContext, portletInstanceId);
    with the last line of above code it should delete that portlet for that user but it doesn't work.
    So, any one has any idea on this?? I appreciate your help.
    Thanks,
    HJ

    Following is the code to delete the portlet at runtime of from your code.
    String webApp = ApplicationHelper.getWebAppName(request);
    ResourceContext resourceContext = ResourceContext.createResourceContext(request, true);
    String deletePortletId = "XXXXXX"; // This you can get it from request or from session
    List<ControlAction> actions = new ArrayList<ControlAction>();
    com.bea.netuix.application.identifier.Id id = new PortletInstanceId(Integer.valueOf(deletePortletId).intValue());
    actions.add(PageInstanceAction.removePlaceableFromPageInstance(pageControl, (PlaceableInstanceId) id, webApp,
                             new PortalPath(portalPath), new DesktopPath(desktopPath)));
    portalControl.executeActions(actions, resourceContext);
    I hope this will help someone who wants to delete portlet at runtime fron code.
    Thanks,
    HJ

  • Link repositioning breaks the code

    This problem was reported on August 4th with no resolution. I have now updated to the latest version (Build 040621) on XP Pro, with Java 1.4.2_04, and the problem persists.
    I can't believe that links on a page cannot be repositioned without breaking the code. I may be doing something wrong but please try the following and tell me what result you get:
    1) - Create a New Project (nav4) - This creates a new page Page1.jsp
    2) - Drop an "output text" : value = Page 1 just to give it a visual title.
    3) - Right click on page1.jsp and select "Page Navigation"
    4) - Right Click on Page1.jsp in the navigation panel and select [New Page] . Create 2 new pages: Page2.jsp, Page3.jsp
    5) - Right Click on Page1.jsp and [Add button], [Add link] (as mentionned in tutorial)
    6) - to create a navigation link from page1.jsp to page2.jsp and page3.jsp, drag from the hyperlink on page1.jsp to page 2.jsp and the button on page1.jsp to page3.jsp
    7) - Double click on page2.jsp to open it into the design view, and drop an "output text" .Change its value to "page 2". Select page navigation again and do the same for page3.jsp . This is to show some kind of "message" on each page.
    Run the application and everything is fine.....
    Now I challenge you to move the Link on page1.jsp and see what happens.... The link won't work anymore... and you'll have to "undo" to get it to work again.
    If there is any other way I can get around this(short of hacking into the code), please let me know, this functionality is extremely important to my project.
    Thank you for your assistance.

    Hi John,
    Please do me a favour.
    After you moved the link, just verify which page the button forwards you to . You will see that after the link has moved,
    both the button and the link take you to the same page. In my case page2.jsp
    This is the content of the log file :
    Log Session: Tuesday, August 31, 2004 4:48:09 o'clock PM PDT
    System Info: Product Version = Java Studio Creator (Build 040621)
    Operating System = Windows XP version 5.1 running on x86
    Java; VM; Vendor = 1.4.2_04; Java HotSpot(TM) Client VM 1.4.2_04-b05; Sun Microsystems Inc.
    Java Home = C:\Sun\Creator\java\jre
    System Locale; Encod. = en_CA; Cp1252
    Home Dir; Current Dir = C:\Documents and Settings\bcb; C:\Sun\Creator\bin
    IDE Install; User Dir = C:\Sun\Creator; C:\Documents and Settings\bcb\.Creator\1_0
    CLASSPATH = C:\Sun\Creator\lib\ext\boot.jar;C:\Sun\Creator\lib\ext\jgraph.jar;C:\Sun\Creator\lib\ext\naming.jar;C:\Sun\Creator\lib\ext\pbclient.jar;C:\Sun\Creator\lib\ext\pbtools.jar;C:\Sun\Creator\lib\ext\rowset.jar;C:\Sun\Creator\lib\ext\smbase.jar;C:\Sun\Creator\lib\ext\smdb2.jar;C:\Sun\Creator\lib\ext\sminformix.jar;C:\Sun\Creator\lib\ext\smoracle.jar;C:\Sun\Creator\lib\ext\smresource.jar;C:\Sun\Creator\lib\ext\smsqlserver.jar;C:\Sun\Creator\lib\ext\smsybase.jar;C:\Sun\Creator\lib\ext\smutil.jar;C:\Sun\Creator\lib\ext\sql.jar;C:\Sun\Creator\lib\ext\sqlx.jar;C:\Sun\Creator\java\lib\dt.jar;C:\Sun\Creator\java\lib\tools.jar
    Boot & ext classpath = C:\Sun\Creator\java\jre\lib\rt.jar;C:\Sun\Creator\java\jre\lib\i18n.jar;C:\Sun\Creator\java\jre\lib\sunrsasign.jar;C:\Sun\Creator\java\jre\lib\jsse.jar;C:\Sun\Creator\java\jre\lib\jce.jar;C:\Sun\Creator\java\jre\lib\charsets.jar;C:\Sun\Creator\java\jre\classes;C:\Sun\Creator\java\jre\lib\ext\dnsns.jar;C:\Sun\Creator\java\jre\lib\ext\ldapsec.jar;C:\Sun\Creator\java\jre\lib\ext\localedata.jar;C:\Sun\Creator\java\jre\lib\ext\sunjce_provider.jar
    Dynamic classpath = C:\Sun\Creator\lib\core.jar;C:\Sun\Creator\lib\openfile-cli.jar;C:\Sun\Creator\lib\openide-loaders.jar;C:\Sun\Creator\lib\openide.jar;C:\Sun\Creator\lib\ravelnf.jar
    [org.netbeans.core.modules #4] Warning: the extension C:\Sun\Creator\modules\ext\sac.jar may be multiply loaded by modules: [C:\Sun\Creator\modules\css.jar, C:\Sun\Creator\modules\insync.jar]; see: http://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/openide/doc-files/classpath.html#class-path
    Turning on modules:
         org.openide/1 [4.26.1 040621]
         org.openide.io [1.1.1 040621]
         org.openide.execution [1.1.1 040621]
         org.openide.compiler [1.2.1 040621]
         org.netbeans.lib.terminalemulator [1.1.1 040621]
         org.openide.src [1.1.1 040621]
         org.openide.loaders [4.11.1 040621]
         org.netbeans.core/1 [1.21.1 040621]
         org.netbeans.core.output/1 [1.1.1 040621]
         org.netbeans.core.compiler/1 [1.4.1 040621]
         org.openide.debugger [1.1.1 040621]
         org.netbeans.modules.j2eeapis/1 [1.0 040621]
         org.netbeans.modules.settings/1 [1.4.1 040621]
         org.netbeans.api.xml/1 [1.3.1.3.6.0 3.6.0 040621]
         org.netbeans.modules.javahelp/1 [2.1.1 040621]
         org.netbeans.modules.schema2beans/1 [1.7.1 040621]
         org.netbeans.core.execution/1 [1.3.1 040621]
         org.netbeans.modules.debugger.core/3 [2.10.1 040621]
         org.netbeans.libs.j2eeeditor/1 [1.1.1 040621]
         org.netbeans.modules.j2eeserver/3 [1.1.2 040701_4]
         org.netbeans.api.java/1 [1.3.1 040621]
         org.netbeans.libs.xerces/1 [1.4.1 2.6.0]
         org.apache.tools.ant.module/3 [3.6.1 040621]
         org.netbeans.modules.debugger.jpda/1 [1.17.1 040621]
         org.netbeans.api.web.dd/1 [1.1.1 1.0 040621]
         com.sun.rave.project/1 [1.0.1 040701_4]
         com.sun.rave.jsfsupport/1 [1.0.1 040701_4]
         org.netbeans.modules.editor/1 [1.14.2 040701_4]
         com.sun.rave.insync/1 [1.0.1 040701_4]
         org.netbeans.modules.diff/1 [1.7.1 040621]
         com.sun.rave.jsfmetadata/1 [1.0 040621]
         com.sun.rave.toolbox/1 [1.0.1 040701_4]
         org.netbeans.modules.classfile/1 [1.8 040621]
         org.netbeans.modules.java/1 [1.16.1 040621]
         com.sun.rave.designer/1 [1.0.1 040701_4]
         com.sun.rave.navigation/1 [1.0.1 040701_4]
         org.netbeans.modules.xml.core/2 [1.1.1.3.6.0 3.6.0 040621]
         org.netbeans.modules.xml.catalog/2 [1.1.1.3.6.0 3.6.0 040621]
         com.sun.tools.appserver/1 [2.0 20040621-1109]
         org.netbeans.core.ui/1 [1.3.1 040621]
         com.sun.rave.servernav/1 [1.0 040621]
         com.sun.rave.licensemgr/1 [1.2 040621]
         org.openidex.util/2 [2.7.1 040621]
         org.netbeans.modules.html/1 [1.12.1 040621]
         org.netbeans.modules.extbrowser/1 [1.3.1 040621]
         org.netbeans.modules.servletapi24/1 [2.0.1 2.0.1 040621]
         org.netbeans.modules.web.jspparser/2 [2.0.1 040621]
         org.netbeans.modules.xml.text/2 [1.1.1.3.6.0 3.6.0 040621]
         org.netbeans.modules.web.core.syntax/1 [1.13.1 040621]
         com.sun.rave.jspsyntaxint/1 [1.0 040621]
         org.netbeans.modules.schema2beansdev/1 [1.1.1 040621]
         com.sun.rave.welcome/1 [1.0 040621]
         org.netbeans.modules.beans/1 [1.11.1 040621]
         com.sun.rave.jwsdpsupport/1 [1.0 040621]
         com.sun.rave.sam/1 [1.0.1 040701_4]
         com.sun.rave.websvc/1 [1.0.1 040701_4]
         org.netbeans.modules.text/1 [1.12.1 040621]
         org.netbeans.modules.image/1 [1.11.1 040621]
         org.netbeans.modules.autoupdate/1 [2.8.1 040621]
         org.netbeans.modules.clazz/1 [1.13.1 040621]
         com.sun.rave.raveupdate/1 [1.0.1 040621]
         com.sun.rave.layoutmgr/1 [1.1 040621]
         org.netbeans.modules.properties/1 [1.11.1 040621]
         org.netbeans.modules.properties.syntax/1 [1.11 040621]
         org.netbeans.core.ide/1 [1.3.1 040621]
         org.netbeans.modules.utilities/1 [1.15.1 040621]
         com.sun.rave.errorhandler.server/1 [0.1 040621]
         com.sun.rave.plaf/1 [0.1 040621]
         com.sun.rave.windowmgr/1 [1.1 040621]
         com.sun.rave.dataconnectivity/1 [1.0.1 040701_4]
         org.netbeans.modules.css/2 [1.1.1.3.6.0 3.6.0 040621]
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! After moving the link here
    *********** Exception occurred ************ at Tue Aug 31 16:51:30 PDT 2004
    java.lang.IllegalArgumentException: Dimensions (width=2147483645 height=2147483645) are too large
         at java.awt.image.SampleModel.<init>(SampleModel.java:112)
         at java.awt.image.SinglePixelPackedSampleModel.<init>(SinglePixelPackedSampleModel.java:124)
         at java.awt.image.Raster.createPackedRaster(Raster.java:757)
         at java.awt.image.Raster.createPackedRaster(Raster.java:460)
         at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1015)
         at java.awt.image.BufferedImage.<init>(BufferedImage.java:250)
         at com.sun.rave.designer.Dragger.initializeImages(Unknown Source)
         at com.sun.rave.designer.Dragger.getImages(Unknown Source)
         at com.sun.rave.designer.Dragger.paint(Unknown Source)
         at com.sun.rave.designer.SelectionManager.paint(Unknown Source)
    [catch] at com.sun.rave.designer.DesignerPaneUI.paintSafely(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.paint(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.update(Unknown Source)
         at javax.swing.JComponent.paintComponent(JComponent.java:541)
         at com.sun.rave.designer.DesignerPane.paintComponent(Unknown Source)
         at javax.swing.JComponent.paint(JComponent.java:808)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JViewport.paint(JViewport.java:722)
         at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4787)
         at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4740)
         at javax.swing.JComponent._paintImmediately(JComponent.java:4685)
         at javax.swing.JComponent.paintImmediately(JComponent.java:4488)
         at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    *********** Exception occurred ************ at Tue Aug 31 16:51:30 PDT 2004
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
         at java.util.ArrayList.RangeCheck(ArrayList.java:507)
         at java.util.ArrayList.get(ArrayList.java:324)
         at com.sun.rave.designer.Dragger.paint(Unknown Source)
         at com.sun.rave.designer.SelectionManager.paint(Unknown Source)
    [catch] at com.sun.rave.designer.DesignerPaneUI.paintSafely(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.paint(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.update(Unknown Source)
         at javax.swing.JComponent.paintComponent(JComponent.java:541)
         at com.sun.rave.designer.DesignerPane.paintComponent(Unknown Source)
         at javax.swing.JComponent.paint(JComponent.java:808)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JViewport.paint(JViewport.java:722)
         at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4787)
         at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4740)
         at javax.swing.JComponent._paintImmediately(JComponent.java:4685)
         at javax.swing.JComponent.paintImmediately(JComponent.java:4488)
         at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    *********** Exception occurred ************ at Tue Aug 31 16:51:30 PDT 2004
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
         at java.util.ArrayList.RangeCheck(ArrayList.java:507)
         at java.util.ArrayList.get(ArrayList.java:324)
         at com.sun.rave.designer.Dragger.paint(Unknown Source)
         at com.sun.rave.designer.SelectionManager.paint(Unknown Source)
    [catch] at com.sun.rave.designer.DesignerPaneUI.paintSafely(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.paint(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.update(Unknown Source)
         at javax.swing.JComponent.paintComponent(JComponent.java:541)
         at com.sun.rave.designer.DesignerPane.paintComponent(Unknown Source)
         at javax.swing.JComponent.paint(JComponent.java:808)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JViewport.paint(JViewport.java:722)
         at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4787)
         at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4740)
         at javax.swing.JComponent._paintImmediately(JComponent.java:4685)
         at javax.swing.JComponent.paintImmediately(JComponent.java:4488)
         at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    *********** Exception occurred ************ at Tue Aug 31 16:51:30 PDT 2004
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
         at java.util.ArrayList.RangeCheck(ArrayList.java:507)
         at java.util.ArrayList.get(ArrayList.java:324)
         at com.sun.rave.designer.Dragger.paint(Unknown Source)
         at com.sun.rave.designer.SelectionManager.paint(Unknown Source)
    [catch] at com.sun.rave.designer.DesignerPaneUI.paintSafely(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.paint(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.update(Unknown Source)
         at javax.swing.JComponent.paintComponent(JComponent.java:541)
         at com.sun.rave.designer.DesignerPane.paintComponent(Unknown Source)
         at javax.swing.JComponent.paint(JComponent.java:808)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JViewport.paint(JViewport.java:722)
         at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4787)
         at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4740)
         at javax.swing.JComponent._paintImmediately(JComponent.java:4685)
         at javax.swing.JComponent.paintImmediately(JComponent.java:4488)
         at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    *********** Exception occurred ************ at Tue Aug 31 16:51:30 PDT 2004
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
         at java.util.ArrayList.RangeCheck(ArrayList.java:507)
         at java.util.ArrayList.get(ArrayList.java:324)
         at com.sun.rave.designer.Dragger.paint(Unknown Source)
         at com.sun.rave.designer.SelectionManager.paint(Unknown Source)
    [catch] at com.sun.rave.designer.DesignerPaneUI.paintSafely(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.paint(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.update(Unknown Source)
         at javax.swing.JComponent.paintComponent(JComponent.java:541)
         at com.sun.rave.designer.DesignerPane.paintComponent(Unknown Source)
         at javax.swing.JComponent.paint(JComponent.java:808)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JViewport.paint(JViewport.java:722)
         at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4787)
         at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4740)
         at javax.swing.JComponent._paintImmediately(JComponent.java:4685)
         at javax.swing.JComponent.paintImmediately(JComponent.java:4488)
         at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    *********** Exception occurred ************ at Tue Aug 31 16:51:30 PDT 2004
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
         at java.util.ArrayList.RangeCheck(ArrayList.java:507)
         at java.util.ArrayList.get(ArrayList.java:324)
         at com.sun.rave.designer.Dragger.paint(Unknown Source)
         at com.sun.rave.designer.SelectionManager.paint(Unknown Source)
    [catch] at com.sun.rave.designer.DesignerPaneUI.paintSafely(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.paint(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.update(Unknown Source)
         at javax.swing.JComponent.paintComponent(JComponent.java:541)
         at com.sun.rave.designer.DesignerPane.paintComponent(Unknown Source)
         at javax.swing.JComponent.paint(JComponent.java:808)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JViewport.paint(JViewport.java:722)
         at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4787)
         at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4740)
         at javax.swing.JComponent._paintImmediately(JComponent.java:4685)
         at javax.swing.JComponent.paintImmediately(JComponent.java:4488)
         at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    *********** Exception occurred ************ at Tue Aug 31 16:51:31 PDT 2004
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
         at java.util.ArrayList.RangeCheck(ArrayList.java:507)
         at java.util.ArrayList.get(ArrayList.java:324)
         at com.sun.rave.designer.Dragger.paint(Unknown Source)
         at com.sun.rave.designer.SelectionManager.paint(Unknown Source)
    [catch] at com.sun.rave.designer.DesignerPaneUI.paintSafely(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.paint(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.update(Unknown Source)
         at javax.swing.JComponent.paintComponent(JComponent.java:541)
         at com.sun.rave.designer.DesignerPane.paintComponent(Unknown Source)
         at javax.swing.JComponent.paint(JComponent.java:808)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JViewport.paint(JViewport.java:722)
         at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4787)
         at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4740)
         at javax.swing.JComponent._paintImmediately(JComponent.java:4685)
         at javax.swing.JComponent.paintImmediately(JComponent.java:4488)
         at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    *********** Exception occurred ************ at Tue Aug 31 16:51:31 PDT 2004
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
         at java.util.ArrayList.RangeCheck(ArrayList.java:507)
         at java.util.ArrayList.get(ArrayList.java:324)
         at com.sun.rave.designer.Dragger.paint(Unknown Source)
         at com.sun.rave.designer.SelectionManager.paint(Unknown Source)
    [catch] at com.sun.rave.designer.DesignerPaneUI.paintSafely(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.paint(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.update(Unknown Source)
         at javax.swing.JComponent.paintComponent(JComponent.java:541)
         at com.sun.rave.designer.DesignerPane.paintComponent(Unknown Source)
         at javax.swing.JComponent.paint(JComponent.java:808)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JViewport.paint(JViewport.java:722)
         at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4787)
         at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4740)
         at javax.swing.JComponent._paintImmediately(JComponent.java:4685)
         at javax.swing.JComponent.paintImmediately(JComponent.java:4488)
         at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    *********** Exception occurred ************ at Tue Aug 31 16:51:31 PDT 2004
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
         at java.util.ArrayList.RangeCheck(ArrayList.java:507)
         at java.util.ArrayList.get(ArrayList.java:324)
         at com.sun.rave.designer.Dragger.paint(Unknown Source)
         at com.sun.rave.designer.SelectionManager.paint(Unknown Source)
    [catch] at com.sun.rave.designer.DesignerPaneUI.paintSafely(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.paint(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.update(Unknown Source)
         at javax.swing.JComponent.paintComponent(JComponent.java:541)
         at com.sun.rave.designer.DesignerPane.paintComponent(Unknown Source)
         at javax.swing.JComponent.paint(JComponent.java:808)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JViewport.paint(JViewport.java:722)
         at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4787)
         at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4740)
         at javax.swing.JComponent._paintImmediately(JComponent.java:4685)
         at javax.swing.JComponent.paintImmediately(JComponent.java:4488)
         at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    *********** Exception occurred ************ at Tue Aug 31 16:51:31 PDT 2004
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
         at java.util.ArrayList.RangeCheck(ArrayList.java:507)
         at java.util.ArrayList.get(ArrayList.java:324)
         at com.sun.rave.designer.Dragger.paint(Unknown Source)
         at com.sun.rave.designer.SelectionManager.paint(Unknown Source)
    [catch] at com.sun.rave.designer.DesignerPaneUI.paintSafely(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.paint(Unknown Source)
         at com.sun.rave.designer.DesignerPaneUI.update(Unknown Source)
         at javax.swing.JComponent.paintComponent(JComponent.java:541)
         at com.sun.rave.designer.DesignerPane.paintComponent(Unknown Source)
         at javax.swing.JComponent.paint(JComponent.java:808)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JViewport.paint(JViewport.java:722)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at com.sun.winsys.layout.impl.DnDPanel.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at com.sun.winsys.layout.impl.DnDPanel.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1021)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at com.sun.winsys.layout.impl.DnDPanel.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1021)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at com.sun.winsys.layout.impl.DnDPanel.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JLayeredPane.paint(JLayeredPane.java:557)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paint(JComponent.java:817)
         at javax.swing.JLayeredPane.paint(JLayeredPane.java:557)
         at javax.swing.JComponent.paintChildren(JComponent.java:647)
         at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4794)
         at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4740)
         at javax.swing.JComponent.paint(JComponent.java:798)
         at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:21)
         at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60)
         at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97)
         at java.awt.Container.paint(Container.java:1312)
         at sun.awt.RepaintArea.paint(RepaintArea.java:177)
         at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:260)
         at java.awt.Component.dispatchEventImpl(Component.java:3678)
         at java.awt.Container.dispatchEventImpl(Container.java:1627)
         at java.awt.Window.dispatchEventImpl(Window.java:1606)
         at java.awt.Component.dispatchEvent(Component.java:3477)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

  • How to connect my app interface with the code in flash builder?

    I'm a beginner and learning my way around actionscript,mxml and flash builder.So this may seem foolish but please bear with me,I'm creating a very simple ios app using flash builder,I have created a simple app interface (A background and a custom navigation bar)using photoshop for my app,now the question is how do i import it into flash builder so that i can connect it with the code i have written? or is there another simpler way to create a app interface using other products like fireworks or catalyst?
    In short, I want to know how is an app interface created(wt software) and how is it connected with its code using flash builder.Any help would be greatly appreciated, and tutorials would be swell
    Thanks!

    Can you use stage.width or stage.stageWidth?

  • URGENT check the code for vendor ageing (Give Solution)

    hi this is the code which i am using to calculate the
    ageing but not able to get the result.
    every time the result is 0.plz suggest me the solution.
    its very urgent.
    *& Report  Z_VENDOR AGEING                                                    *
    *&  in this repoet I am calculating the vendor ageing
        which is depending on formula
        AGEING = Current Date(or any date entered by user) – Bline Date(BSIK-zfbdt) 
    REPORT  z_vendor  NO STANDARD PAGE HEADING
                      LINE-SIZE 200
                      LINE-COUNT 65(3).
    TABLES : bsik.
    DATA : BEGIN OF t_out OCCURS 0,
           bukrs LIKE bsik-bukrs,
           saknr LIKE bsik-saknr,
           bldat LIKE bsik-bldat,
           wrbtr LIKE bsik-wrbtr,
           lifnr LIKE bsik-lifnr,
           zfbdt like bsik-zfbdt,
           ageing type i,
           END OF t_out.
    parameters : p_date1 type d.
    SELECT-OPTIONS : s_bukrs FOR bsik-bukrs,
                     s_saknr FOR bsik-saknr,
                     s_lifnr FOR bsik-lifnr.
    SELECT bukrs saknr bldat wrbtr lifnr zfbdt
           FROM bsik
           INTO  TABLE t_out
           WHERE saknr IN s_saknr
           AND bukrs IN s_bukrs
           AND lifnr IN s_lifnr.
    CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES'
      EXPORTING
        i_datum_bis                   = p_date1
        i_datum_von                   = t_out-zfbdt
      I_KZ_EXCL_VON                 = '0'
      I_KZ_INCL_BIS                 = '0'
      I_KZ_ULT_BIS                  = ' '
      I_KZ_ULT_VON                  = ' '
      I_STGMETH                     = '0'
      I_SZBMETH                     = '1'
    IMPORTING
       E_TAGE                        = t_out-ageing
    EXCEPTIONS
      DAYS_METHOD_NOT_DEFINED       = 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.
    LOOP AT t_out.
      WRITE : / t_out-saknr,
                t_out-lifnr,
                t_out-wrbtr,
                t_out-zfbdt,
                t_out-ageing.
    ENDLOOP.

    hi sanjeev,
    still problem there.
    dont worry. just copy this code.
    try this code.
    TABLES : bsik.
    DATA : BEGIN OF t_out OCCURS 0,
    bukrs LIKE bsik-bukrs,
    saknr LIKE bsik-saknr,
    bldat LIKE bsik-bldat,
    wrbtr LIKE bsik-wrbtr,
    lifnr LIKE bsik-lifnr,
    zfbdt like bsik-zfbdt,
    ageing type i,
    END OF t_out.
    parameters : p_date1 type d.
    SELECT-OPTIONS : s_bukrs FOR bsik-bukrs,
    s_saknr FOR bsik-saknr,
    s_lifnr FOR bsik-lifnr.
    SELECT bukrs saknr bldat wrbtr lifnr zfbdt
    FROM bsik
    INTO <b>corresponding fields of</b> TABLE t_out
    WHERE saknr IN s_saknr
    AND bukrs IN s_bukrs
    AND lifnr IN s_lifnr.
    <b>loop at t_out.</b>
    CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES'
    EXPORTING
    i_datum_bis = p_date1
    i_datum_von = t_out-zfbdt
    I_KZ_EXCL_VON = '0'
    I_KZ_INCL_BIS = '0'
    I_KZ_ULT_BIS = ' '
    I_KZ_ULT_VON = ' '
    I_STGMETH = '0'
    I_SZBMETH = '1'
    IMPORTING
    E_TAGE = t_out-ageing
    EXCEPTIONS
    DAYS_METHOD_NOT_DEFINED = 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.
    <b>modify t_out.</b>
    clear t_out.
    <b>endloop.</b>
    LOOP AT t_out.
    WRITE : / t_out-saknr,
    t_out-lifnr,
    t_out-wrbtr,
    t_out-zfbdt,
    t_out-ageing.
    endloop
    rgds
    anver
    Message was edited by: Anversha s

  • I need the code for creating popup windows and code for open and close

    I can write the code for creating popup window , i am getting problem while trying to open and closing that popup windows.
    Can anybody help me in that pls ?
    Regards
    Sreeni.

    Hi
    For pop up window
    IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("PopWin");
    IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
    window.setWindowPosition (300, 150);
    window.show();
    wdContext.currentYourNodeElement().setPopupAttribute(window);
    For closing window code
    IWDWindow window = wdContext.currentYourNodeElement().getPopupAttribute();
    window.hide();
    window.destroyInstance();
    For more infornation refer this link
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/20d2def3-f0ec-2a10-6b80-877a71eccb68&overridelayout=true
    This link is very useful for you.
    Regards
    Ruturaj
    Edited by: Ruturaj Inamdar on Aug 13, 2009 9:10 AM

  • Problem in fetching the code for the line item

    Hi,
    I am working on a report in which to display the values corresponding to the line item of a PO.
    For, ex, if there are 3 line items 10,140,150 and their condition values such zing,zgrd,zbrd are the condition types consist of different values depending on the line item i.e. 10,140,150.
    My problem is when i execute the code the data of 1st line item is correctly fetched but the rest 2 line item data is pasted as it is. only the main pricre changes and the code for zing,zbrd,zgrd remains same as it is in the first line item 10.
    plzz proivde me guide lines how to solve this problem.
    Here's d code:-
    DATA : vspl LIKE konv-kbetr.
    DATA : vspl1 LIKE konv-kbetr.
    DATA : vkwert LIKE konv-kwert.
    DATA: VSPL2 LIKE KONV-kbetr.    "ZING COST
    DATA: VSPL3 LIKE KONV-kbetr.    "ZGRD COST
    DATA: VSPL4 LIKE KONV-kbetr.    "ZBDL COST
    LOOP AT item.
        SELECT kbetr FROM konv INTO item-rate  WHERE knumv = header-knumv AND kposn = item-ebelp
         AND ( kschl = 'ZP00' OR kschl = 'P001' OR kschl = 'PBXX' OR kschl = 'P000' OR kschl = 'PB00' OR kschl = 'ZING' OR kschl = 'ZBRD' OR kschl = 'ZGRD').
          MODIFY item.
       ENDSELECT.
      ENDLOOP.
      LOOP AT item.
        SELECT kwert FROM konv INTO vkwert  WHERE knumv = header-knumv AND kposn = item-ebelp
        AND ( kschl = 'ZP00' OR kschl = 'P001' OR kschl = 'PBXX' OR kschl = 'P000' OR kschl = 'PB00' OR kschl = 'ZING' OR kschl = 'ZBRD' OR kschl = 'ZGRD').
        ENDSELECT.
      ENDLOOP.
    CLEAR : vspl , vspl1 , vspl2 , vspl3 , vspl4.
      LOOP AT item.
        SELECT kbetr FROM konv INTO vspl  WHERE knumv = header-knumv AND kposn = item-ebelp  
       AND  kschl = 'ZCOM'.
        ENDSELECT.
        SELECT kbetr FROM konv INTO vspl1 WHERE knumv = header-knumv AND kposn = item-ebelp
        AND  kschl = 'ZBR1'.
        ENDSELECT.
    *******************Begin - new code added on 14.01.2009******************
        SELECT kbetr FROM konv INTO vspl2 WHERE knumv = header-knumv AND kposn = item-ebelp
        AND  kschl = 'ZING'.
        ENDSELECT.
       SELECT kbetr FROM konv INTO vspl3 WHERE knumv = header-knumv AND kposn = item-ebelp
       AND  kschl = 'ZGRD'.
        ENDSELECT.
       SELECT kbetr FROM konv INTO vspl4 WHERE knumv = header-knumv AND kposn = item-ebelp
       AND  kschl = 'ZBRL'.
       ENDSELECT.
    *******************End - new code added on 14.01.2009******************
      ENDLOOP.
      LOOP AT item.
        item-rate  = item-rate + vspl + vspl1.
    *******************Begin - new code added on 14.01.2009******************
        item-rate1 = item-rate1 + vspl2.
        item-rate2 = item-rate2 + vspl3.
        item-rate3 = item-rate3 + vspl4.
    ********************End - new code added on 14.01.2009*******************
        MODIFY item INDEX sy-tabix TRANSPORTING rate.
    *******************Begin -11`` new code added on 14.01.2009******************
        MODIFY item INDEX sy-tabix TRANSPORTING rate1.
        MODIFY item INDEX sy-tabix TRANSPORTING rate2.
        MODIFY item INDEX sy-tabix TRANSPORTING rate3.
    *********************End - new code added on 14.01.2009******************
      ENDLOOP.
    PLZ PROIVDE ME GUIDLINES HOW TO SOLVE THIS PROBLEM .
    Edited by: ricx .s on Jan 19, 2009 10:16 AM
    Edited by: Vijay Babu Dudla on Jan 19, 2009 5:22 AM

    Hello,
    Why are you looping at the same internal table so many times, you could probably perform everything within one loop instead.
    DATA : vspl LIKE konv-kbetr.
    DATA : vspl1 LIKE konv-kbetr.
    DATA : vkwert LIKE konv-kwert.
    DATA: VSPL2 LIKE KONV-kbetr. "ZING COST
    DATA: VSPL3 LIKE KONV-kbetr. "ZGRD COST
    DATA: VSPL4 LIKE KONV-kbetr. "ZBDL COST
    field-symbols <fs>.
    LOOP AT item assigning <fs>.
    SELECT kbetr FROM konv INTO <fs>-rate WHERE knumv = header-knumv AND kposn = item-ebelp
    AND ( kschl = 'ZP00' OR kschl = 'P001' OR kschl = 'PBXX' OR kschl = 'P000' OR kschl = 'PB00' OR kschl = 'ZING' OR kschl = 'ZBRD' OR kschl = 'ZGRD').
    MODIFY item.
    ENDSELECT.
    SELECT kwert FROM konv INTO vkwert WHERE knumv = header-knumv AND kposn = item-ebelp
    AND ( kschl = 'ZP00' OR kschl = 'P001' OR kschl = 'PBXX' OR kschl = 'P000' OR kschl = 'PB00' OR kschl = 'ZING' OR kschl = 'ZBRD' OR kschl = 'ZGRD').
    ENDSELECT.
    ENDLOOP.
    CLEAR : vspl , vspl1 , vspl2 , vspl3 , vspl4.
    SELECT kbetr FROM konv INTO vspl WHERE knumv = header-knumv AND kposn = item-ebelp
    AND kschl = 'ZCOM'.
    ENDSELECT.
    SELECT kbetr FROM konv INTO vspl1 WHERE knumv = header-knumv AND kposn = item-ebelp
    AND kschl = 'ZBR1'.
    ENDSELECT.
    *******************Begin - new code added on 14.01.2009******************
    SELECT kbetr FROM konv INTO vspl2 WHERE knumv = header-knumv AND kposn = item-ebelp
    AND kschl = 'ZING'.
    ENDSELECT.
    SELECT kbetr FROM konv INTO vspl3 WHERE knumv = header-knumv AND kposn = item-ebelp
    AND kschl = 'ZGRD'.
    ENDSELECT.
    SELECT kbetr FROM konv INTO vspl4 WHERE knumv = header-knumv AND kposn = item-ebelp
    AND kschl = 'ZBRL'.
    ENDSELECT.
    *******************End - new code added on 14.01.2009******************
    <fs>-rate = <fs>-rate + vspl + vspl1.
    *******************Begin - new code added on 14.01.2009******************
    <fs>-rate1 = item-rate1 + vspl2.
    <fs>-rate2 = item-rate2 + vspl3.
    <fs>-rate3 = item-rate3 + vspl4.
    ENDLOOP.
    Also, use field-symbols and use loop at itab assigning addition so that you can directly change the contents of the table without using modify statment.
    regards,
    Advait

  • Report Problem need to fix the code

    Hello Expert
    I am new to apex, I was given a task to interpret the code and fix the problem.
    This Apex application has a list of value where the user select the institution as a drop down list menu. After selecting the institution the main report below the drop down list will be populated based on the selection. The problem is that when the user insert record for standalone program, this insert don't appear on the report when the user select the instituion.
    can someone look at the code below and explain to me line by line what it does and how can I twick it to solve this problem? I am cloue less and I need expert help
    select dt.* 
             ,case when dt.delivery_location is null then null
                      else htf.anchor ('javascript:void(0);'
                                              ,'<img src=#APP_IMAGES#location.png
                                                title=''' ||dt.delivery_location || '''
                                                alt=''' ||dt.delivery_location || '''
                                                height=24 width=24/>'
              end dl_hover
      from (
    select
            CASE WHEN INDEP_DEGREE = 'Y' THEN
            CASE WHEN Dt.DEGREE_ACRONYM IN ('AACC','ASCC') then
              da.DESCRIPTION   || ' with an Emphasis Area of ' ||
                     NVL(Mt.DESCRIPTION,cC.DESCRIPTION)
                ELSE    
             nvl(dt.description, da.DESCRIPTION)
             END
             ELSE
                CASE WHEN Dt.DEGREE_LEVEL IN ('V','A') THEN
                     nvl(dt.description, da.DESCRIPTION )  || ' with an Option in ' ||
                     NVL(Mt.DESCRIPTION,Cc.DESCRIPTION)
                WHEN Dt.DEGREE_LEVEL IN ('E','C','Z','F')  THEN
                     nvl(dt.description, da.DESCRIPTION )  || ' in ' ||
                     NVL(Mt.DESCRIPTION,Cc.DESCRIPTION)
                ELSE    
                     nvl(dt.description, da.DESCRIPTION )  || ' with a Major in ' ||
                     NVL(Mt.DESCRIPTION,Cc.DESCRIPTION)
                END
        END
    degree_name
    --,'???' emphasis_area
    ,nvl(mt.cip_code,dt.cip_code) cip_code
    ,nvl(mt.hours, dt.hours) total_credit_hours
    -- ,dt.deactivated status
    ,case when nvl(mt.deactivated,dt.deactivated)  = 'A' then 'Active'
              when nvl(mt.deactivated,dt.deactivated) = 'D' then 'Deactivated'
              when nvl(mt.deactivated,dt.deactivated) = 'T' then 'Terminated'
          WHEN NVL(mt.deactivated,dt.deactivated) = 'I'
          THEN 'Inactive'
              else null
       end status
    --,dt.degree_level program_type
    ,dl.description program_type
    ,dt.coop_indicator coop_indicator
    ,nvl(mt.approval_date,dt.approval_date) approval_date
    ,nvl(mt.implemented,dt.implemented) implemented
    ,nvl(mt.implementation_date, dt.implementation_date) implementation_date
    ,nvl(mt.delivery_mode ,dt.delivery_mode) delivery_mode
    ,(select rtrim(replace(replace(xmlagg(xmlelement("C" ,c.cixxvext_name)).getclobval() ,'<C>' ,'') ,'</C>' ,'&#xD; ') ,'&#xD; ') C
      from degree_transaction_details dtd
             ,cixxvext c
      where (dtd.degree_transaction_id = case when INDEP_DEGREE= 'Y' then dt.degree_id else mt.major_id end )
          and c.cixxvext_ext_site_cd = dtd.detail_value
    and dtd.record_type= case when INDEP_DEGREE = 'Y' then 'DEGREE' else 'MAJOR' end ) delivery_location
    ,dt.degree_id degree_id
    ,'Comparison Report' comparison_report
    ,apex_util.prepare_url ('f?p=&APP_ID.:2:&SESSION.::&DEBUG.:2:P2_FICE_CODE,P2_DEGREE_ID:&P1_FICE_CODE.,'||dt.degree_id) edit_link
    ,apex_util.prepare_url ('f?p=&APP_ID.:4:&SESSION.::&DEBUG.:RP,4:P4_DEGREE_ID:'||dt.degree_id) cr_link
    ,dt.description
    ,mt.major_id major_id
    ,nvl(mt.online_percentage,dt.online_percentage) online_percent
    ,nvl(mt.last_inst_review,dt.last_inst_review) last_inst_review
    from degree_transactions dt,
        degree_acronyms da,
        major_transactions mt,
        degree_levels dl,
        cip_codes cc
    where dt.degree_id = mt.degree_id
      and mt.cip_code = cc.cip_code
      and dl.degree_level = nvl(mt.degree_level,dt.degree_level)
      and dt.degree_acronym = da.degree_acronym
      and dt.Fice_code = da.fice_code
      and dt.degree_level = da.degree_level
      and dt.deactivated in ('A','D')
      and mt.deactivated in ('A','D')
      and dt.fice_code = :P1_FICE_CODE
      and dt.show_inst = 'Y'
    ) dt
    order by dt.description nulls first

    You said:
    "I was able to debug the code in SQL Developer."  Does this mean that you:
    ran the code, got results
    then set indep_degree to 'Y' on a row in your database
    ran the code again and saw the results you are looking for?
    If true, your code is working and should operate the same in APEX.
    So if your code is working, we need to understand what processes are running on the form and when they are firing.
    Jeff

Maybe you are looking for

  • Dual-band wireless question

    Hi again: I am new to this dual-band wireless stuff in TC having just replaced my AE with a new TC. I have a few questions regarding wireless setup. 1. When selecting the "Radio Mode" you are presented with options like "802.11a/n - 802.11b/g". Does

  • Error while deploying Human Task

    Hi All, I am getting the following error while deploying a simple Human Task Error while deploying the form on server "Tom-latitude" Error message : java.lang.SecurityException      at oracle.ide.IdeCore$7.checkExit(IdeCore.java:177)      at java.lan

  • Dynamic forms in php

    I'm trying to populate a drop down box in a form(form2) dynamically using a form variable from a different form(form1) on the same php page. does anyone know what i should set the action as for form 1 so that when form 1 is submitted form 2 is popula

  • Should I use HPSA application to install recommended HP updates, windows updates and tune-ups?

    Should I use HPSA application to install recommended HP updates, windows updates and tune-ups?  I understand you can select the updates that you want to install but I always select and install the recommended updates through HPSA. Thanks. This questi

  • EXIF data for PNG files

    I seem to have lost all EXIF data for pictures that I first converted to PNG format, and then edited in iPhoto. The EXIF data is still there in the copies of the files in the "Originals" folder in the iPhoto Library. If I open these files with Graphi