Dynamic date display as a heading in module pool

Dynamic date display as a heading in module pool from a ztable
the ZTABLE contain the date from which the date value is to be printed as a heading like
"BILLING FOR THE MONTH OF MAY 2010 WILL BE CLOSED ON 26/05/2010"
thanks,
Sree

Hi Sreekanth,
Simply follow below steps:
1. Create a Input/Output field in screen layout.
2. Double click on it and 'Attributes' window will get opened.
3. Give a 'Name' to it (Ex: Text) and under 'Display' tab, tick 2D display and As label on left
4. Save and Activate.
5. In PBO, use below code,
MODULE status_2000 OUTPUT.
  SET PF-STATUS 'DEMO'.        " PF status
  DATA: l_f_date TYPE sy-datum.
  SELECT SINGLE zdate FROM ztable  INTO l_f_date.         " Select Date from ur ZTABLE
  text = 'BILLING FOR THE MONTH OF MAY 2010 WILL BE CLOSED ON'.
  CONCATENATE text l_f_date INTO text SEPARATED BY spce.
ENDMODULE.                 " STATUS_2000  OUTPUT
6. In TOP include,
DATA:  TEXT type string.     " Same name given to  Input/Output field in screen layout.
7. Save & Activate.
Thanks..

Similar Messages

  • How to display  LONG TEXT STRING in Module Pool Screen ?

    Hi Experts,
    I want to display long text string, on screen designed through module pool(SE51). I tried to display through input/output field , but it displays it in SINGLE LINE and i have to scroll all through to view all string.
    I want to display it in rectangular format . It doesnt allow me to set HEIGHT of component.
    Please provide solution.
    Thanks in advance.
    Regards
    Deepak

    This is the program where u can get the WA_THEAD from other program like report and trying to display and modifying that text. U can do instead of WA_THEAD u can generate here itself and use also
    *& Module pool       ZMP_LTEXT                                         *
    PROGRAM  ZMP_LTEXT                               .
    TABLES: STXL.
    *&      Module  STATUS_9000  OUTPUT
    MODULE STATUS_9000 OUTPUT.
    CONSTANTS:line_length type i value 132.
    DATA:g_editor type ref to cl_gui_textedit,
         g_editor_container type ref to cl_gui_custom_container,
         CONT1 type scrfname value 'CONT1',
         g_repid like sy-repid,
         g_ok_code like sy-ucomm,
         g_mytable(132) type c occurs 0,
         g_mycontainer(30) type c ,
         v_result(256) type c,
         g_head like thead,
         it_line type table of tline with header line,
         wa_stxl type stxl.
    DATA : BEGIN OF IT_THEAD1,
           ICON TYPE ICON-ID.
           INCLUDE STRUCTURE STXL.
    DATA : END OF IT_THEAD1.
    DATA : IT_THEAD LIKE TABLE OF IT_THEAD1,
           WA_THEAD LIKE LINE OF IT_THEAD.
    IMPORT WA_THEAD FROM MEMORY ID 'ABCD'.
    select SINGLE * from STXL into wa_stxl
                     where tdname = '00006000156500000002'.
    SELECT SINGLE * from STXL into wa_stxl
                      where tdname = WA_THEAD-TDNAME
                      AND TDID = WA_THEAD-TDID
                      AND TDOBJECT = WA_THEAD-TDOBJECT
                      AND TDSPRAS = WA_THEAD-TDSPRAS.
    IF SY-SUBRC NE 0.
    MESSAGE 'NO RECORD EXIST' TYPE 'E'.
    ENDIF.
    MOVE-CORRESPONDING WA_STXL TO G_HEAD.
    SET PF-STATUS 'STATUS'.
    SET TITLEBAR '001'.
      if g_editor is initial.
         CREATE OBJECT G_EDITOR_CONTAINER
           EXPORTING
            PARENT                      =
             CONTAINER_NAME              = CONT1
            STYLE                       =
            LIFETIME                    = lifetime_default
            REPID                       =
            DYNNR                       =
            NO_AUTODEF_PROGID_DYNNR     =
           EXCEPTIONS
            CNTL_ERROR                  = 1
            CNTL_SYSTEM_ERROR           = 2
            CREATE_ERROR                = 3
            LIFETIME_ERROR              = 4
            LIFETIME_DYNPRO_DYNPRO_LINK = 5
             others                      = 6.
         IF SY-SUBRC <> 0.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
         ENDIF.
         CREATE OBJECT G_EDITOR
           EXPORTING
            MAX_NUMBER_CHARS       =
            STYLE                  = 0
       WORDWRAP_MODE          = cl_gui_textedit=>wordwrap_at_fixed_position
    for to fix number of characters in row to 132 characers
             WORDWRAP_POSITION      = line_length
             WORDWRAP_TO_LINEBREAK_MODE = cl_gui_textedit=>true
    for the word to break to next line if it don’t fit in line
            FILEDROP_MODE          = DROPFILE_EVENT_OFF
             PARENT                 = G_EDITOR_CONTAINER
            LIFETIME               =
            NAME                   =
           EXCEPTIONS
            ERROR_CNTL_CREATE      = 1
            ERROR_CNTL_INIT        = 2
            ERROR_CNTL_LINK        = 3
            ERROR_DP_CREATE        = 4
            GUI_TYPE_NOT_SUPPORTED = 5
             others                 = 6  .
         IF SY-SUBRC <> 0.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
         ENDIF.
      REFRESH g_mytable.
         MOVE: WA_THEAD-TDNAME TO STXL-TDNAME,
               WA_THEAD-TDID TO STXL-TDID,
               WA_THEAD-TDOBJECT TO STXL-TDOBJECT,
               WA_THEAD-TDSPRAS TO STXL-TDSPRAS.
        CALL FUNCTION 'READ_TEXT'
        EXPORTING
        CLIENT                        = SY-MANDT
          ID                            = wa_stxl-tdid
          LANGUAGE                      = wa_stxl-tdspras
          NAME                          = wa_stxl-tdname
          OBJECT                        = wa_stxl-tdobject
        ARCHIVE_HANDLE                = 0
        LOCAL_CAT                     = ' '
      IMPORTING
        HEADER                        =
        TABLES
          LINES                         = it_line
      EXCEPTIONS
        ID                            = 1
        LANGUAGE                      = 2
        NAME                          = 3
        NOT_FOUND                     = 4
        OBJECT                        = 5
        REFERENCE_CHECK               = 6
        WRONG_ACCESS_TO_ARCHIVE       = 7
        OTHERS                        = 8
      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 IT_LINE INTO V_RESULT.
       APPEND V_RESULT TO G_MYTABLE.
    ENDLOOP.
    CALL METHOD G_EDITOR->SET_TEXT_AS_R3TABLE
       EXPORTING
         TABLE           = G_MYTABLE
       EXCEPTIONS
         ERROR_DP        = 1
         ERROR_DP_CREATE = 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.
       endif.
    ENDMODULE.                 " STATUS_9000  OUTPUT
    *&      Module  USER_COMMAND_9000  INPUT
    MODULE USER_COMMAND_9000 INPUT.
    CASE SY-UCOMM.
    REFRESH G_MYTABLE[].
    REFRESH IT_LINE[].
    CLEAR V_RESULT.
      WHEN 'SAVE'.
         CALL METHOD G_EDITOR->GET_TEXT_AS_R3TABLE
          EXPORTING
            ONLY_WHEN_MODIFIED     = FALSE
            IMPORTING
              TABLE                  = G_MYTABLE
            IS_MODIFIED            =
          EXCEPTIONS
            ERROR_DP               = 1
            ERROR_CNTL_CALL_METHOD = 2
            ERROR_DP_CREATE        = 3
            POTENTIAL_DATA_LOSS    = 4
            others                 = 5
         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 G_MYTABLE INTO V_RESULT.
       APPEND V_RESULT TO IT_LINE.
    ENDLOOP.
    CLEAR V_RESULT.
        CALL FUNCTION 'SAVE_TEXT'
          EXPORTING
            CLIENT                = SY-MANDT
            HEADER                = G_HEAD
            INSERT                = ' '
            SAVEMODE_DIRECT       = 'X'
          OWNER_SPECIFIED       = ' '
          LOCAL_CAT             = ' '
        IMPORTING
          FUNCTION              =
          NEWHEADER             =
          TABLES
            LINES                 = IT_LINE
        EXCEPTIONS
          ID                    = 1
          LANGUAGE              = 2
          NAME                  = 3
          OBJECT                = 4
          OTHERS                = 5
       IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ENDIF.
    REFRESH G_MYTABLE[].
    REFRESH IT_LINE[].
    CLEAR V_RESULT.
    WHEN 'BACK' OR 'CANCEL' OR 'EXIT'.
    LEAVE TO SCREEN '0'.
    *CALL SCREEN '0'.
    WHEN OTHERS.
    ENDCASE.
    *G_OK_CODE = SY-UCOMM.
    *CLEAR SY-UCOMM.
    ENDMODULE.                 " USER_COMMAND_9000  INPUT

  • How to pass the Data to sclect option field in module pool??

    Hai Experts,
                         I have Created the Select-Options using Sub screen its working fine for me.
    But the problem is when i pass the data to one of the my select options field its not  showing  in display mode..
    please me this
    i created select option slike this,
    SELECTION-SCREEN BEGIN OF SCREEN 400 AS SUBSCREEN.
    SELECT-OPTIONS : s_kunnr  FOR wa_zcodntr-fin_kunnr,
                                  s_altkn FOR wa_zcodntr-altkn.
    SELECTION-SCREEN END OF SCREEN 400 .
    Thanks ,
    Adv.

    Thanks SAP_wiz kick replay,
    Actullay in my module pool screen i have to select option field like F1 and F2
    any one filed give the input and excute pick the coresponding data for F2 (select option) field and  display  and vice -versa.

  • Displaying list of materials in module pool

    Hello frds,
    i have senario where i have to select a push button to display list of materials in the next screen based on the range .In reports v write a select query but in module pool its not working.
    PLZ help me out with simple example

    Hi sai,
    Please refer th procedure.
    For the select-options you might have defined a selection screen.
    Next you can fetch the entire data that you wanted to display in a module pool into an internal table.
    you can call the screen you defined for o/p upon the selection.
    Then, You define a screen XXXX  and a table control in the scree, and in the PAI module of the screen
    you write a chain end chain processing in which you can display the contents of your internal table.
    OR
    if you want the selection also to be in the module pool,  then for displaying the O/P you can definr a sub-screen of the initial screen and you can call that sub-screen on selcting, which can be done with a function code.
    Hope this helps

  • How can i display the success msg using module pool

    Hi frnds,
    I want to display the error mesg or success msg in a dialogbox with ok button through module pool,
    Pls help me any one.
    Thanks in advance.

    Hi,
    Check this example in SAP:
    DEMO_MESSAGES -
    > This is a good example of displaying messages given by SAP.
    For more information on messages please visit this link:
    http://help.sap.com/saphelp_nw04/helpdata/en/91/dec863880411d194cb0000e8353423/content.htm
    This will tell you the complete status of each messages in the ABAP with its displaying position on the screen.
    May this information helps you.
    Thanks
    Deepak Sharma

  • How to insert data into a  Ztable by using module pool programming??

    Hi,
    I am new to ABAP, Actually I have made a Ztable now I want to insert data by using the module pool programming. In which there are all field in the first screen and there is a save button. So when ever i press SAVE button it shud update the Ztable with new entries.But actually I am not getting How can i update that??can you please send me the code for inserting data.
    Thanks in Advance.
    Edited by: Swapna Ram on Feb 17, 2008 12:01 AM

    Swapna,
    Check this thread...
    Custom Table updation thru table control
    ALso check this..
    Dialog programming

  • Displaying report o/p in module pool screen

    hi,
    i have developed a report  &
    i want to display the report o/p using module pool screen
    shall i use call screen.
    pls kindly suggest me

    u can use call screen,
    but you can only display the O/p in ALV

  • Dynamic Date Display

    Hi everyone,
    We got a report using two dates as a query filter (getting records between date_1 and date_2). Now we'd like to display the two dates in the report, for example, include it in the title part to indicate which period we are looking at. Thought something like free standing cell would work but couldn't find a way to extract the dates in query filter.
    I wonder if there is any way I could achieve that? Thank you very much!
    Regards,
    Russo

    hi
    try to use function
    =UserResponse()
    for eg =UserResponse("date_1") it will display which date you had selected at the run time of the webi
    Note
    =UserResponse("provide a exact prompt text")
    as per above example
    =UserResponse("Enter Fiscal year:")

  • Error in Dynamic Data display using Visual Design in ADF Richclient Demo

    Hi,
    I am using JDeveloper Studio Edition Version 11.1.1.1.0 with build Build JDEVADF_11.1.1.1.0_GENERIC_090615.0017.5407
    I have found a reference to this ADF faces richclient demo on the following link:
    http://jdevadf.oracle.com/adf-richclient-demo/faces/visualDesigns/index.jspx?_afrLoop=2181068810216756#%2FvisualDesigns%2Fdashboard.jspx%40
    I downloaded the WAR file and deployed in the server and running smoothly. But when I added, for example, EmployeesView1, by drag and drop from datacontrol,
    on one of the panels (.jsff page) and ran the application. Now its throwing an exception like:
    javax.el.PropertyNotFoundException: Target Unreachable, identifier 'bindings' resolved to null
    Can any guru shed the light on this and help me out?
    Looking forward to any replies.
    Thanks in advance.
    Yadava Rao

    Hi,
    My faces project is having the following libraries under WEB-INF/lib folder:
    adflogginghandler-JDEVADF_MAIN_GENERIC_070917.1906.4699.jar
    adf-richclient-api-11-r1-SNAPSHOT.jar
    adf-richclient-impl-11-r1-SNAPSHOT.jar
    adfsharebase-JDEVADF_MAIN_GENERIC_070917.1906.4699.jar
    adfshare-JDEVADF_MAIN_GENERIC_070917.1906.4699.jar
    commons-beanutils-1.6.jar
    commons-lang-2.1.jar
    dms-11.1.1.jar
    indexer-080909.1801.375.jar
    jsf-facelets-1.1.11.jar
    trinidad-api-1.2.11.1-SNAPSHOT.jar
    trinidad-api-1.2.11.1-SNAPSHOT-sources.jar
    trinidad-impl-1.2.11.1-SNAPSHOT.jar
    xercesImpl-2.6.2.jar
    xmlparserv2-11.1.1.JM7_4119.jar
    Apart from this, my model project contains the following libraries (shows in Project Properties):
    ADF Model Runtime
    BC4J Oracle Domains
    BC4J Runtime
    BC4J Security
    BC4J Tester
    MDS Runtime
    MDS Runtime Dependencies
    Oracle JDBC
    So, please suggest me if something is missing apart from these.
    Appreciate your help or a soultion to get the data from databse in jsff page of dashboard visual design in adf-richclient-demo.
    Thanks

  • HTMLDB - Forms and Reports dynamic data display - can it be done ?

    Hi,
    Can HTMLDB do the following :-
    Forms
    I want to create a standard input form, but depending on the user depends on what input fields they can enter can you make the none relevant fields invisable or not enterable ?
    Reports
    I have a standard report and want to make certain columns invisable (not displayed) depending on the current htmldb user ?
    Is this possible
    Thanks in anticipation
    Simon.

    Hi,
    Download the pdf from http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b16373.pdf, it has very fruitful information about conditional column display. You can find in pdf using keywords Controling When colunm displays.
    Thanks & Best Regards,
    M.Ahmar Arshi

  • Dynamic VO error while testing without Application Module Pooling

    Hi,
    I am using ADF11g 11.1.1.4
    I have a dynamic VO which is used to display data depending on user defined configuration .
    It works fine till I try to test the application for activation / passivation by disabling application Module
    The moment I do this the application starts throwing ArrayIndexOutOfBound exception with the following trace.
    oracle.jbo.JboException: JBO-29000: Uventet undtagelse fundet: java.lang.ArrayIndexOutOfBoundsException, msg=0
    at oracle.jbo.server.Serializer.passivate(Serializer.java:234)
    at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:290)
    at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:267)
    at oracle.jbo.server.ApplicationModuleImpl.passivateStateInternal(ApplicationModuleImpl.java:5913)
    at oracle.jbo.server.ApplicationModuleImpl.passivateState(ApplicationModuleImpl.java:5783)
    at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:381)
    at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:8933)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4496)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.doManagedCheckin(ApplicationPoolImpl.java:2742)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.releaseApplicationModule(ApplicationPoolImpl.java:1554)
    at oracle.jbo.common.ampool.SessionCookieImpl.releaseApplicationModule(SessionCookieImpl.java:729)
    at oracle.jbo.common.ampool.SessionCookieImpl.releaseApplicationModule(SessionCookieImpl.java:649)
    at oracle.adf.model.bc4j.DCJboDataControl.releaseApplicationModule(DCJboDataControl.java:2437)
    at oracle.adf.model.bc4j.DCJboDataControl.endRequest(DCJboDataControl.java:2130)
    at oracle.adf.model.dcframe.DataControlFrameImpl.endRequestInternal(DataControlFrameImpl.java:579)
    at oracle.adf.model.dcframe.DataControlFrameImpl.endRequest(DataControlFrameImpl.java:457)
    at oracle.adf.model.BindingContext.endRequest(BindingContext.java:1955)
    at oracle.adf.model.BindingRequestHandler.invokeEndRequest(BindingRequestHandler.java:406)
    at oracle.adf.model.BindingRequestHandler.endRequest(BindingRequestHandler.java:302)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:210)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
    at oracle.jbo.server.ViewRowStorage.getAttributeInternal(ViewRowStorage.java:1669)
    at oracle.jbo.server.ViewRowImpl.getAttributeValue(ViewRowImpl.java:1891)
    at oracle.jbo.server.ViewRowImpl.getAttributeInternal(ViewRowImpl.java:834)
    at oracle.jbo.server.ViewRowImpl.getKey(ViewRowImpl.java:645)
    at oracle.jbo.server.ViewObjectImpl.doPassivateSettings(ViewObjectImpl.java:19423)
    at oracle.jbo.server.ViewObjectImpl.doPassivateSettings(ViewObjectImpl.java:19127)
    at oracle.jbo.server.ApplicationModuleImpl.passivateVOs(ApplicationModuleImpl.java:7712)
    at oracle.jbo.server.ApplicationModuleImpl.doPassivateState(ApplicationModuleImpl.java:7522)
    at oracle.jbo.server.ApplicationModuleImpl.doPassivateAMState(ApplicationModuleImpl.java:7509)
    at oracle.jbo.server.Serializer.passivate(Serializer.java:213)
    ... 51 more
    Edited by: user3067156 on 2012-04-07 15:53

    Hi Frank,
    The view object is an Entity based view object with a very simple where clause
    We have a train flow and each stop is a jsf page which renders the dynamic VO
    Each pages have a simple iterator for View object related to the stop to create a form iterating over the View object attributes.
    We tried to investigate the problem by making a train for two stops with two dynamic VO, one on each stop , this was done as a train which had only one stop as dymanic VO worked fine.
    We found the problem to be that when passivation was being called on change of train stop1 to train stop 2,
    Application module was passivting all the view objects and it was trying to find attributes of view object2 , which is attached to train stop 2, while being at train stop 1 and it was not able to find the attribute definition on train stop 1.
    Strangely it was able to find the view object 2 definition but not the attributes of the view object 2, even when there was no binding in the page def for the view object Iterator 2.
    To solve , We created a iterators for view objects on both the pages and rendered the one not related to the stop be false and It then solved the problem
    But I am not very comfortable with the solution as I am not very sure how does an Iterator binding on the jsff page , set to rendered false help in passivation.

  • Displaying dynamic data on load

    Hello,
    Being a newb, I am trying to figure all this out. I am trying to figure out how to make my dynamic data display. I am close but it still is not working the way it needs to. As you can see in the code I am trying to create a dynamic radio group, to load data when the page loads, but as it is it loads one radio button with a lable of "[object Operation]" and it should be creating 6 radio buttons. You can also see where I have commented out a button, now, if I uncomment it and run the page, pressing the button will populate the radio controls. What I need to do is get it so that when the page loads the data will load without having to press a button. This is taken from examples on the web and modifying to fit my needs. TIA.
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" width="554" height="400">
    <mx:Script>
          <![CDATA[
                import mx.controls.Alert;
                import mx.rpc.events.FaultEvent;
                import mx.rpc.Fault;
                import mx.rpc.events.ResultEvent;
                import mx.controls.RadioButton;
                private function result(evt:ResultEvent):void { 
                      productsRepeater.dataProvider = evt.result;
                private function fault(evt:FaultEvent):void {
                      Alert.show(evt.fault.message);                
          ]]>
    </mx:Script>
    <mx:RemoteObject id="mycfc" destination="ColdFusion" showBusyCursor="true" source="flexdemo.src.DemoCFC" result="result(event)" fault="fault(event)">
    </mx:RemoteObject>    
           <!--  <mx:Button label="Button" click="mycfc.GetData()"/> -->
          <mx:HRule/>
          <mx:Repeater id="productsRepeater" dataProvider="{mycfc}">
          <mx:RadioButton id="buttonsArray"
              label="{productsRepeater.currentItem.affiliatetype}"
              data="{productsRepeater.currentItem}"/>
        </mx:Repeater>
    </mx:Application>

    You are getting close to having this correct - there just needs to be a few changes.
    First, the reason that you are getting the [Operation operation] is that you have the dataProvider for the repeater bound to the RemoteObject.  In this case, what you want to do is bind it to the data the RemoteObject returns.  For this example, the first thing you need to do is create a variable that will serve as the dataProvider.  For example, if you have an ArrayCollection (not sure what format your data will be in), our <mx:Script> block would change to be as follows:
    <mx:Script>
          <![CDATA[
                import mx.controls.Alert;
                import mx.rpc.events.FaultEvent;
                import mx.rpc.Fault;
                import mx.rpc.events.ResultEvent;
                import mx.controls.RadioButton;
                [Bindable]
                public var returnedData:ArrayCollection;
                private function result(evt:ResultEvent):void { 
                   // This assumes that an array is being returned by the service
                   // You first tell Flex that this is an array and then use that to create a new ArrayCollection
                   returnedData = new ArrayCollection( evt.result as Array ); 
                   returnedData = evt.result;
                private function fault(evt:FaultEvent):void {
                      Alert.show(evt.fault.message);                
          ]]>
    </mx:Script>
    With that in place, you can now bind the repeater to the correct data.
    <mx:Repeater id="productsRepeater" dataProvider="{ returnedData }">
    Finally, if you want this to happen when the application loads, you need to listen for the creationComplete method of the application.  When this event is dispatched, you want to tell your remote object to go and grab the data.  Now your opening <mx:Application> tag will look like this:
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" width="554" height="400" creationComplete="mycfc.getData()">
    With those items in place, it should work.

  • Displaying MIR4 attachment list TIF image in module pool screen

    Hi All,
    I have a screen with a custom container and I tried to call a TIF image from MIR4 which is in attachment list(which is stored in archived link).
    I need a function module to display this image in my Module pool screen using the container.
    I tried using below code
    * Create controls
         CREATE OBJECT container_1
           EXPORTING
             container_name = 'CONTAINER'.
    *    create object container_2
    *      exporting container_name = 'PICTURE_CONTROL_2'.
         CREATE OBJECT PICTURE_CONTROL_1
           EXPORTING
             parent = container_1.
    *    CREATE OBJECT PICTURE_CONTROL_2 exporting parent = container_2.
    CALL METHOD PICTURE_CONTROL_1->LOAD_PICTURE_FROM_URL
           EXPORTING
    *    URL    = 'SAPR3://984BE16932C81EE3B2AA1E3B0D12C6FF'
    *      URL    = 'file://E:\Personal\New_Passport4.jpg'
    *       URL    = 'SAPR3://984BE16932C81EE3B2BDF8E44B035648.TIF'
    *URL    = 'SAPR3://SAPR3CMS/get/100/Z1/984BE16932C81EE3B2BDF8E44B035648//.TIF'.
         URL    = 'SAPR3://WebRepository/0020698212/DEMOWORD97SAPLOGO?Version=00000'
         IMPORTING
              RESULT = lv_result.
    CALL METHOD PICTURE_CONTROL_1->set_display_mode
         EXPORTING
           display_mode = PICTURE_CONTROL_1->display_mode_fit_center.
    But I am able to display this URL    = 'SAPR3://WebRepository/0020698212/DEMOWORD97SAPLOGO?Version=00000' and not able to display my archive link image which is in TIF.
    note: Display image of Arc.link Doc.type ZBUSI_TIF (doc.class TIF)
    Please help me on this.
    Thanks
    Geetha Charan

    Hi sai,
    Please refer th procedure.
    For the select-options you might have defined a selection screen.
    Next you can fetch the entire data that you wanted to display in a module pool into an internal table.
    you can call the screen you defined for o/p upon the selection.
    Then, You define a screen XXXX  and a table control in the scree, and in the PAI module of the screen
    you write a chain end chain processing in which you can display the contents of your internal table.
    OR
    if you want the selection also to be in the module pool,  then for displaying the O/P you can definr a sub-screen of the initial screen and you can call that sub-screen on selcting, which can be done with a function code.
    Hope this helps

  • How to add logo in module pool screen

    Hi Expert,
    I need to display company logo in the module pool screen
    how this can be added ?
    Regards
    Bikas

    Hi,
    create a custom control called 'CUSTOM_CONTROL'
    CONSTANTS: CNTL_TRUE  TYPE I VALUE 1,
          CNTL_FALSE type i value 0.
    data:h_picture       type ref to cl_gui_picture,
         h_pic_container type ref to cl_gui_custom_container.
    data: graphic_url(255),
          graphic_refresh(1),
          g_result like cntl_true.
    data: begin of graphic_table occurs 0,
            line(255) type x,
          end of graphic_table.
    data: graphic_size type i.
    data: g_stxbmaps type STXBITMAPS,
          l_bytecnt  type i,
          l_content   TYPE  standard table of bapiconten initial size 0.
    g_stxbmaps-tdobject = 'GRAPHICS'.
    g_stxbmaps-tdname = 'ENJOY'.
    g_stxbmaps-tdid = 'BMAP'.
    g_stxbmaps-tdbtype = 'BMON'. 
    call function 'SAPSCRIPT_GET_GRAPHIC_BDS'
         exporting
              i_object       = g_stxbmaps-tdobject
              i_name         = g_stxbmaps-tdname
              i_id           = g_stxbmaps-tdid
              i_btype        = g_stxbmaps-tdbtype
         importing
              e_bytecount    = l_bytecnt
         tables
              content        = l_content
         exceptions
              not_found      = 1
              bds_get_failed = 2
              bds_no_content = 3
              others         = 4.
    call function 'SAPSCRIPT_CONVERT_BITMAP'
         exporting
              old_format               = 'BDS'
              new_format               = 'BMP'
              bitmap_file_bytecount_in = l_bytecnt
         importing
              bitmap_file_bytecount  = graphic_size
         tables
              bds_bitmap_file        = l_content
              bitmap_file            = graphic_table
         exceptions
              others                 = 1.
    call function 'DP_CREATE_URL'
         exporting
            type                 = 'image'           
            subtype              = cndp_sap_tab_unknown
            size                 = graphic_size
            lifetime             = cndp_lifetime_transaction
         tables
            data                 = graphic_table
         changing
            url                  = graphic_url
         exceptions
            others               = 4 .
    create object h_pic_container
           exporting container_name =  'CUSTOM_CONTROL'.
    create object h_picture exporting parent = h_pic_container.
    call method h_picture->set_display_mode
         exporting
              display_mode = cl_gui_picture=>display_mode_normal.
    call method h_picture->load_picture_from_url
         exporting url    = graphic_url
         importing result = g_result.
    or you can check the program RSDEMO_CUSTOM_CONTROL
    check link :
    How to insert Image on Screen
    thanks
    Parvathi

  • Traffic light in Module Pool screen

    How to display traffic light in a module pool screen

    To display a traffic light in a screen, put a icon/ i/o field (display only) on the screen.
    Say my screen has an icon element ICON_GREEN_LIGHT
    Now in my Top include create a data elemnt like
    Data:ICON_GREEN_LIGHT(4) type c.
    and in PBO assign the value as:
    ICON_GREEN_LIGHT = '@08@'."  Green light; positive
    Check type-group ICON for the 4 char string

Maybe you are looking for

  • Tp finished with return code: 208

    Hi Basis Gurus, I have received transport data and cofiles from system XYZ. I have copied data and cofiles in /usr/sap/trans/data and /usr/sap/trans/cofiles respectively. Now I have change my directory to /usr/sap/trans/bin I want to see the Object L

  • Adobe Printing Form in new Adobe Acrobat Window (not SAPGUI)?

    Hi, I'm having a problem with an Adobe form and maybe you can help. We have two SAP systems in place: system A is a 4.6C system and system B is a ECC 6.0 system. I have written an ABAP report that runs in system A and calls a function module (RFC cal

  • CATS_APPR_LITE - restricting ability to approve own time

    I have a question regarding transaction CATS_APPR_LITE.  Is this transaction intended to be used only by "master" time administrators? My reason for asking is that I cannot find a way to restrict a user who has access to this transaction from approvi

  • Anyone know the name of the site for guest maps, comments, etc?

    Hi, Does anyone know the name of the site that has lots of iWeb things, they have many kinds of guest maps, sunlit earth maps, comments you can add to iWeb, etc. They had lots of cool things and I can't find them. All help appreciated. Thanks, Todd

  • UCS C200 CIMC Keeps Rebooting

    This has happened twice so far, where one of the CIMC in one of my C200's would start continually rebooting. It will do this for a couple of hours or so and then finally stop. Afterwards everything appears to be fine and I can't find anything in the