How to Fill Text in Pop UP Window

Hi Friends,
My Requirement is to display Purchase Requisition Header text in POP UP Window in SRM ,  i used RFC_READ_TEXT  function module , data is coming into internal table,  but not able to fill the text in POP up Window, its giving DUMP, Cn any please help me
Thnx
Kumar Srini
my Code :
DATA lo_nd_header TYPE REF TO if_wd_context_node.
  DATA lo_el_header TYPE REF TO if_wd_context_element.
  DATA ls_header TYPE wd_this->element_header.
*   navigate from <CONTEXT> to <HEADER> via lead selection
  lo_nd_header = wd_context->get_child_node( name = wd_this->wdctx_header ).
  DATA : lt_rel TYPE TABLE OF bbp_pds_hrel,
         ls_rel TYPE bbp_pds_hrel.
  DATA : ls_guid TYPE crmd_orderadm_h-guid.
  DATA : doc_no TYPE be_object_id.
  DATA lo_COMPONENTCONTROLLER   TYPE REF TO     IG_COMPONENTCONTROLLER .
  TYPES:  BEGIN OF ty_ibiptextln,
           mandt      TYPE mandt,
           tdobject   TYPE tdobject,
           tdname     TYPE tdobname,
           tdid       TYPE tdid,
           tdspras    TYPE tdspras,
           counter(3) TYPE n,
           tdformat   TYPE tdformat,
           tdline     TYPE tdline,
          END OF ty_ibiptextln.
  DATA: lt_ibiptextln TYPE TABLE OF ty_ibiptextln,
        ls_ibiptextln TYPE          ty_ibiptextln.
  DATA : LV_TEXT TYPE STRING,
         LV_DOC_TEXT TYPE STRING.
*  *****> DATA DECLARATION FOR CALLING POPUP WINDOW
  data lo_window_manager type ref to if_wd_window_manager.
  data lo_api_component  type ref to if_wd_component.
*  data lo_window         type ref to if_wd_window.
*   @TODO handle non existant child
*   IF lo_nd_header IS INITIAL.
*   ENDIF.
*   get element via lead selection
  lo_el_header = lo_nd_header->get_element( ).
*   @TODO handle not set lead selection
  IF lo_el_header IS INITIAL.
  ENDIF.
*   get all declared attributes
  lo_el_header->get_static_attributes(
    IMPORTING
      static_attributes = ls_header ).
  ls_guid = ls_header-guid.
  CALL FUNCTION 'BBP_PD_SC_GETDETAIL'
    EXPORTING
      i_guid       = ls_guid
    TABLES
      e_header_rel = lt_rel.
  LOOP AT lt_rel INTO ls_rel.
    IF ls_rel-objid_a IS NOT INITIAL.
      doc_no = ls_rel-objid_a.
    ENDIF.
  ENDLOOP.
  IF doc_no IS NOT INITIAL.
    ls_ibiptextln-mandt     = ''.
    ls_ibiptextln-tdobject  = 'EBANH'.
    ls_ibiptextln-tdname    = doc_no.
    ls_ibiptextln-tdid      = 'B01'.
    ls_ibiptextln-tdspras   = sy-langu.
    APPEND ls_ibiptextln TO lt_ibiptextln.
    CALL FUNCTION 'RFC_READ_TEXT' DESTINATION 'TD1CLNT400'
      TABLES
        TEXT_LINES = lt_ibiptextln.
  ENDIF.
*  ****> Get Refrence of Component Controller .
lo_COMPONENTCONTROLLER =   wd_this->get_componentcontroller_ctr( ).
IF lt_ibiptextln IS NOT INITIAL.
    LOOP AT lt_ibiptextln INTO lS_ibiptextln where tdline is NOT INITIAL.
         lv_text = lS_ibiptextln-TDLINE.
         CONCATENATE LV_DOC_TEXT lv_text INTO LV_DOC_TEXT SEPARATED BY space .     " CONCATANATION OF THE PRODUCT DESCRIPTION
    ENDLOOP.
* ************* CALLING METHOD OF COMPONENT CONTROLLER
lo_componentcontroller =   wd_this->get_componentcontroller_ctr( ).
lo_componentcontroller =   wd_this->get_componentcontroller_ctr( ).
  lo_componentcontroller->fill_doc_text(
    lt_doc_text =  lv_text                     " string
DATA lo_window         TYPE REF TO if_wd_window.
"_*AT THIS POINT I AM GETTING SHORT DUMP_*
lo_window         = lo_window_manager->create_window(
                   window_name            = 'ZSRM_WIN'
                   title                  = 'Text Description'
                   message_display_mode   = if_wd_window=>co_msg_display_mode_selected
                   button_kind            = if_wd_window=>co_buttons_close
                   message_type           = if_wd_window=>co_msg_type_none
                   default_button         = if_wd_window=>co_button_close
else.
    lo_componentcontroller->fill_doc_text(
    lt_doc_text =  'THERE IS NO TEXT FOR THIS Document Number' ).
  lo_window         = lo_window_manager->create_window(
                   window_name            = 'ZSRM_WIN'
                   title                  = 'Text Description'
                   message_display_mode   = if_wd_window=>co_msg_display_mode_selected
                   button_kind            = if_wd_window=>co_buttons_close
                   message_type           = if_wd_window=>co_msg_type_none
                   default_button         = if_wd_window=>co_button_close
  endif.
  lo_window->open( ).

You haven't created lo_window_manager
you are missing the following two lines of code:
lo_api_component  = wd_this->wd_get_api( ).
  lo_window_manager = lo_api_component->get_window_manager( ).
Put them just before you get your dump.
Good luck!

Similar Messages

  • How to stop showing the pop-up window to change password

    Hi,
    How to stop showing the pop-up windows of changing password if the password is expired in dba_users table. This is related to form6.
    Pls advice.
    Thanks
    Raj

    Raj,
    Please do not start a new thread with the same problem. If you still need help, respond to your former thread, and we will still try to help you. But you haven't provided an answer to why you can't trap the error.
    Re: Trapping of error ora-28001, user expired in daa_users table

  • Have option to turn off text message pop up window.

    I would like to see the IPhone enhanced to allow the option to turn the text message pop up window on or off.
    There are times when I don't want my text message to pop up for privacy reasons; such as if someone else is using my phone or I have my phone out and people sitting nearby and can read the message. Since the ring tone is so poor on the phone, when I am out I have to put my phone on the table so I can hear it ring.
    With the text message pop up window turned off, I would still like to hear the alert sound (separate feature) and have the number display by SMS box as it currently does.
    This is a very important privacy issue and I appreciate Apple's consideration on this very important enhancement. I called Apple Customer Support and they told me to post my request here for consideration.

    Tell Apple. We are iphone users like you.
    http://www.apple.com/feedback/iphone.html

  • How to create an Interactive pop out window in inDesign CS 5?

    Happy New Year everyone.
    How do I create an interactive pop-out window in inDesign CS5? I want to have a filled content frame which has image, text and a border. when the user clicks on that frame, a pop-out window frame appears slightly over the previous frame in with a drop shadow fx. Then when the user clicks the pop-out window, it closes and the original content frame appears. Attached is a screenshot for reference.

    For what end product? HTML? SWF? PDF? Offset print? (I don't think so, but I might as well ask.)

  • How to make text messages pop up on screen?

    Hi...
    I used to have an iphone (sorry for swearing), and I used to love how text messages would pop up on the screen when the phone was in 'sleep' mode.
    Is there any way I can get my Z2 to do this?
    Thanks...

    Hi Sherratthead,
    Welcome to the community! Since you're new please be sure that you have checked out our Discussion guidelines.,
    You could also Try Handcent, this allows a POP up window that also acts as a Messenger window.
    https://play.google.com/store/apps/details?id=com.handcent.nextsms&hl=en
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • How to create one time pop-up window?

    I'd like to have a pop-up window called "how to use this app" show up just one time; the first time a user opens the folio to read it for instruction but then not appear again after it is closed. How could I do this? Thanks.

    I have not tried the "alert-box technique" yet.
    I have found code that will only display for first time visitors. How would I add an image to the below code with a link to a website?
    newwin=open("yourpage.htm", "dispwin",
    "width=350,height=350,scrollbars=no,menubar=no");

  • How can I create a pop up window for a Windows Media video file in Dreamweaver CS6?

    I have a Windows Media video file on my homepage that plays automatically when you go to the website. I'd like to change my homepage. I now would like to place text that says "click here to play the video" and I'd like a pop up window to open and play the video. I'm using Dreamweaver CS6. Your help will be appreciated. Thanks.

    BlueSapphire777 wrote:
    <!--[if lt IE 9]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    Is the code you told me about (above), is it necessary for older browsers such as ie8? I thought you were saying it was for the HTML5 tags and I wasn't sure I'd bother with it. If it helps people with ie8, I probably should add it.
    I include it (or a link to a localized copy of the file) by default now.
    To truly support the ancient browsers out there, you'd likely need something like...
    <video width="500" height="500">
        <source src="video.mp4" type="video/mp4" />
        <source src="video.ogv" type="video/ogg" />
        <source src="video.webm" type="video/webm" />
        <object width="500" height="500">
        <param name="movie" value="video.swf" />
        <embed src="video.swf" width="500" height="500"></embed>
        </object>
    </video>
    I don't bother with a Flash fall back for old browsers though. I just put in text letting the viewer know they're behind the times pretty severely, like...
    <video width="500" height="500">
        <source src="video.mp4" type="video/mp4" />
        <source src="video.ogv" type="video/ogg" />
        <source src="video.webm" type="video/webm" />
        <p>Your browser is horribly, helplessly and hilariously outdated. Visit <a href="firefox.com" target="_blank">www.firefox.com</a> to download something better, more secure, modern, worthwhile, etc, etc...</p>
    </video>
    For junky old browsers that can't see any HTML5 (which the <video> and <audio> tags are), they get a text message to get something better and a link to go there.

  • How do I stop the pop-up window in Facebook that asks "Are you sure you want to navigate away from this page"

    It recently started to ask this every time I do anything on Facebook.

    Yes, this pop-up window in facebook is getting extremely annoying and most times after clicking on Ok, it will take me to a page totally opposite to where I wanted to go.
    When I chat on the Scrabble Discussion Board I have to click Ok constantly with each post even though I am not navigating away from that page but merely replying to a post on the same original page.
    It is not present on Chrome or IE 8, just on firefox, why?
    Please remove, fix, or tell me how to disable this totally useless pop-up.

  • How can i avoid a pop-up window when calling the avi.dll?

    Ok, here another try!
    My problem is as followed:
    My program calls the avi.dll to initialize, write into and close an
    avi-file.
    Now, when initializing it, a pop-up window is shown so you can choose the
    codec to use.
    My question is, can I pre-define the codec, so the pop-up window won't show
    up?
    The program is meant to write several files, some starting without the user
    having to control them, so the pop-up window really isn't helping.
    Any ideas?
    I attached the avi.dll in case you need it to look at the problem.
    Also helpful would be, if someone could tell me, how I can take a closer
    look at the structure of the dll. Is there a program I can do that with?
    Thanx!
    regar
    ds,
    Martin

    Hello Martin,
    I have used this DLL before and wasn't asked to choose a codec. Maybe if you use all three functions (init, write, close), it works without problems. Here's a example that uses IMAQ hardware to acquire an 8-bit image at 30fps and writes each image to an avi file.
    There are utilities to examine dlls (see what functions are exported and what the dependencies are, but you can't see source code since it is compiles.) Check out QuickView or DependencyWalker.
    Attachments:
    avigrab.zip ‏66 KB

  • How to create an Auto Pop Up Window on homepage

    Hi, I am trying to create a pop up window in dreamweaver that loads when a first time visitor is on our homepage asking them to join our club. I would like to add a couple links in the image allowing them to either sign up or click no thanks. Can you help me out or direct me to a good tutorial? Thanks!

    I have not tried the "alert-box technique" yet.
    I have found code that will only display for first time visitors. How would I add an image to the below code with a link to a website?
    newwin=open("yourpage.htm", "dispwin",
    "width=350,height=350,scrollbars=no,menubar=no");

  • How to get ride of pop up window that freezes browser

    Sometimes I get these pop up windows that freezes the browser I don't want to click on the buttons so I have to force quit to close Safari.  The last one i had even showed up after I reopened Safari.  How can I avoid/get rid of these pop ups?

    lab_rat wrote:
    I am using the Block Pop Windows but it doesn't alway work as I do get the occasional little pop up window that I don't want to click on that freezes Safari.  My only option has been to force quit Safari.
    As we still have no magic crystal balls to see on your problem, it will be very nice if you have some more information about "that window" .
    Eventually post a screenshot here.

  • How to open a new pop-up window on click of a link using OAFunctions

    Hi ,
    I have a requirement to open a new pop-window on click of the responsibility name(functions available under responsibilities). The current URL /link is driven using OAFunctions.
    Any idea, how can i open a new window while still keeping the parent window as it is?
    Regards
    Puja

    This can be achieved, you need to first create the javascript function which will open the popup and add that to the HomePage through and then call that function during onLoad of the HomePage. Here is a code sample,
    1. Extend the page level controller and write a new controller
    2. Write the following code in processRequest before calling super.
    StringBuffer popupScript = new StringBuffer("function customPopUp() { ");
    popupScript.append("newWindow = window.open(theURL,'newWindow','toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,location=no,width=300,height=500);}");
    pageContext.putJavaScriptFunction("customPopUp", new String(popupScript));
    OABodyBean bodyBean = pageContext.getRootWebBean();
    bodyBean.setOnLoad("customPopUp");
    3. Use personalization to replace the existing controller with your extended controller and the popup should be launched whenever you enter the homepage.

  • How to pass value to pop up window using javascript function?

    I am not sure how to do this, I want to open new window from existing form,This is Mod/PLsql for consists some javascript functions also. When I am clicking on new window in form then new form should open with results of value entered,but new window form is opening with main page :( , not able to get text box value from parent form. How to call textbox input value in popup window from parent window using javascript?
    currently I'm using following code:
    HTP.p('<script type="text/javascript">
    function pop_up5()
    var l_url=window.opener.document.getElementById("p_single_store_pc").value;
    window.open(l_url, '''', ''fullscreen=no, scrollbars=1'');
    </script>' );
    Edited by: user11970612 on Jun 14, 2012 5:02 AM

    this is probably due to the Javascript code and not a "real link" to another page... I don't know if the null is due to the Javascript...
    But if you really really want to use javascript instead of a ... you can pass the location of the url with JSP (on your main page) as a parameter to the open window... (...) u can put instead of main.jsp <%= request.getServerName()+request.getRequestURI() %>
    the value <%= ... %> will return something like test.com/html/main.jsp
    Hope this helps.

  • How to Print text in two main windows

    For printing label have created two main windows on a page. calling function write_form In ABAP Program under do loop for two times. 
    but program prints only one window. why is it so? how can i print text on two windows.
    do 2 times.
      COUNT = COUNT + 1.
    loop at itab WHERE DEPTT LT 200.
        CALL FUNCTION 'WRITE_FORM'
          EXPORTING
            ELEMENT  = 'TEST'
            FUNCTION = 'SET'
            TYPE     = 'BODY'
          WINDOW   = 'MAIN'
          EXCEPTIONS
           ELEMENT   = 1
           FUNCTION  = 2
           TYPE      = 3
           UNOPENED  = 4
           UNSTARTED = 5
           WINDOW    = 6
           OTHERS    = 7.
      endloop.
    enddo.
    Please guide.

    Since the information is variable and coming out of the print program, I can assume you want to print many labels but two to a page. Also, any page numbering, etc will need to be updated. This is easily accomplished with SAPScript but a feature people rarely use I believe. Here are the simple steps:
    1) On the Windows Screen: Creat a main window for the size of the label, etc knowing that you will be putting multiple windows on a page. For example, if page size is 8.5 x 11, maybe your window size is 6 X 4 or something similar. You only need one main window defined.
    2) Now go to Page Windows Screen. Add a window MAIN and down at the bottom where it says Window Type put in MAIN. Next to this field is a little field about two characters long. In here put in '01'.
    3) Now Add another window MAIN and down at the bottom put in '02'.
    Hopefully this gives you the idea. I've done this with up to 30 small windows in order to print variable window for labels on label stock such as Avery 8167, etc. 
    Good Luck!
    Tim Stadler
    Menasha Corporation

  • How can i center a pop up window?

    hello,
    i am trying to get the new window that will open after
    clicking a link with an onClick beheavior to span the entire length
    of a monitor displaying a 1440 pixel resolution .
    when the user clicks the link & the new window opens, it
    pops up relative to where the previous browser window is located.
    the new window is 1440 pixels wide, however, it most likely opens
    with a portion cut off, rather than being fit to screen.
    does anyone know how i can possibly center the window, or any
    other way to control where it will appear when it opens?
    Here is the code I used.
    <a href="folio.html"
    onClick="window.open('folio.html','foliowindow','toolbar=no,location=no,directories=no,st atus=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=1440,height=760');retur n
    false;">
    link here</a>

    In the properties of your page, change the property 'Launch in New Window' to 'Display in separate window'.

Maybe you are looking for

  • Continuous play???

    This sounds really dumb, but I can't get iTunes to play continuously; it plays one song, then stops. I've tried all the settings, uninstalled it then reinstalled it, and upgraded to 7.5. It does this when just playing songs from the library as well a

  • XML Reports end with WARNING Status, Using Virtual Hostname by Veritas HA

    Dear Experts, We have upgraded our Application from 11.5.10.2 to R12, 12.1.3. Now in the Upgraded Application we are unable to open/view any of the XML based Concurrent Reports. All the XML Concurrent Reports are ending in Status WARNING. When we cli

  • 351 movmnt type doesnot refers the Batch managed items with respect to P.O

    Dear SAP Gurus, For Stock transport order, i am using the 351 and 101 movement type. The batch managed items are provided in the Purcahse order and the same batch is displayed while receiving the material -101 movement ytpe  with respect to Purchase

  • Activate function "Duplicate Line" in a UDO - SAP 8.8

    He everybody, I've created a basic UDO in SAP 8.8... How can I activate "Duplicate Line" function in this UDO, like exist in SAP B1 default forms?? It is possible?? Rgrds, Wagner

  • TOC Book Problem - RoboHelp 8 - WebHelp Pro

    Hello, I'm having a problem in a generated build of help to RoboServer 8.  TOC books are linking to the previous page of the toc book above that particular book and this rings true throughout the TOC.  I didn't add any links and just wanted to books