Text editor not getting cleared

hi experts,
i am doing a module pool to create a gate pass and i when i press create it will go to the next screen .in that screen i have created a texteditor for entering the purpose . if i enter the purpose and if i dont save and click back it goes to the previous screen and then if i again click create the text i entered in the texteditor still is retained. how can i clear that?. will be thankful if some one could help.below is the code i have used in PBO.
IF G_EDITOR IS INITIAL.
    CREATE OBJECT g_editor_container
        EXPORTING
            container_name = 'TEXTEDITOR1'
        EXCEPTIONS
            cntl_error = 1
            cntl_system_error = 2
            create_error = 3
            lifetime_error = 4
            lifetime_dynpro_dynpro_link = 5.
    CREATE OBJECT g_editor
      EXPORTING
         parent = g_editor_container
         wordwrap_mode = cl_gui_textedit=>wordwrap_at_fixed_position
         wordwrap_to_linebreak_mode = cl_gui_textedit=>true
      EXCEPTIONS
          others = 1.
endif.
with thanks in advance,
syed
Edited by: SYED_ibbu on Nov 30, 2010 5:08 AM

thanks again gautam,
i tried with clear g_editor .still no luck.i am posting the whole code for a better picture.
"in PBO
g_repid = sy-repid.
  IF G_EDITOR IS INITIAL.
    CALL METHOD cl_gui_cfw=>flush
      EXCEPTIONS
        CNTL_SYSTEM_ERROR = 1
        CNTL_ERROR        = 2.
    CLEAR G_EDITOR_CONTAINER.CLEAR G_EDITOR.
    CREATE OBJECT g_editor_container
        EXPORTING
            container_name = 'TEXTEDITOR1'
        EXCEPTIONS
            cntl_error = 1
            cntl_system_error = 2
            create_error = 3
            lifetime_error = 4
            lifetime_dynpro_dynpro_link = 5.
    IF sy-subrc NE 0.
    ENDIF.
    CREATE OBJECT g_editor
      EXPORTING
         parent = g_editor_container
         wordwrap_mode = cl_gui_textedit=>wordwrap_at_fixed_position
         wordwrap_to_linebreak_mode = cl_gui_textedit=>true
      EXCEPTIONS
          others = 1.
    IF sy-subrc NE 0.
      CALL FUNCTION 'POPUP_TO_INFORM'
        EXPORTING
          titel = g_repid
          txt2  = space
          txt1  = text-001.
    ENDIF.
    IF ( L_FUNC = C_DISPLAY OR L_FUNC = C_CHANGE ).
      REFRESH G_MYTABLE.CLEAR W_MYTABLELINE.
      SELECT SINGLE PURPOSE PURPOSE1 PURPOSE2 PURPOSE3 INTO (TEXT,TEXT1,TEXT2,TEXT3) FROM ZGATE_PASS_CFL WHERE PASS_NO = ZST_GP_CFL-PASS_NO.
      W_MYTABLELINE-LINE = TEXT. APPEND W_MYTABLELINE TO G_MYTABLE.
      W_MYTABLELINE-LINE = TEXT1. APPEND W_MYTABLELINE TO G_MYTABLE.
      W_MYTABLELINE-LINE = TEXT2. APPEND W_MYTABLELINE TO G_MYTABLE.
      W_MYTABLELINE-LINE = TEXT3. APPEND W_MYTABLELINE TO G_MYTABLE.
      CALL METHOD g_editor->SET_text_as_r3table
        EXPORTING
          table  = g_mytable
        EXCEPTIONS
          OTHERS = 1.
      IF sy-subrc NE 0.
        CALL FUNCTION 'POPUP_TO_INFORM'
          EXPORTING
            titel = g_repid
            txt2  = space
            txt1  = text-003.
      ENDIF.
    ENDIF.
  ENDIF.
  IF L_FUNC = C_DISPLAY OR C_APPROVE2 IS NOT INITIAL.
    CALL METHOD g_editor->set_focus
      EXPORTING
        control = g_editor.
    call method G_editor->SET_READONLY_MODE( '1' ).
  ELSEIF L_FUNC = C_CHANGE AND C_APPROVE2 IS INITIAL.
    CALL METHOD g_editor->set_focus
      EXPORTING
        control = g_editor.
    call method G_editor->SET_READONLY_MODE( '0' ).
  ENDIF.
" in PAI
IF MENGE_FL IS NOT INITIAL AND ( L_FUNC = C_CREATE OR L_FUNC = C_CHANGE ).
    CALL METHOD g_editor->get_text_as_r3table
      IMPORTING
        table  = g_mytable
      EXCEPTIONS
        OTHERS = 1.
    IF sy-subrc NE 0.
      CALL FUNCTION 'POPUP_TO_INFORM'
        EXPORTING
          titel = g_repid
          txt2  = space
          txt1  = text-003.
    ENDIF.
    LOOP AT G_MYTABLE INTO W_MYTABLELINE.
      IF SY-TABIX = 1.
        TEXT = W_MYTABLELINE-LINE.
      ELSEIF SY-TABIX = 2.
        TEXT1 = W_MYTABLELINE-LINE.
      ELSEIF SY-TABIX = 3.
        TEXT2 = W_MYTABLELINE-LINE.
      ELSEIF SY-TABIX = 4.
        TEXT3 = W_MYTABLELINE-LINE.
      ENDIF.
    ENDLOOP.
*      READ TABLE G_MYTABLE INTO W_MYTABLELINE INDEX 1.
*      TEXT = W_MYTABLELINE-LINE.
    CALL METHOD cl_gui_cfw=>flush
      EXCEPTIONS
        OTHERS = 1.
    IF sy-subrc NE 0.
      CALL FUNCTION 'POPUP_TO_INFORM'
        EXPORTING
          titel = g_repid
          txt2  = space
          txt1  = text-002.
    ENDIF.
CLEAR g_ok_code.
with thanks in advance,
syed

Similar Messages

  • So I have been creating a logo for my company and it came out great. The problem is, when I format it for PNG or when I want to use it on freshbooks or my webpage, the image becomes blurred and the text is not as clear. How do I fix this?

    So I have been creating a logo for my company and it came out great. The problem is, when I format it for PNG or when I want to use it on fresh books or my webpage, the image becomes blurred and the text is not as clear. How do I fix this? Is it because the text get shrunk?

    This is how it looks on adobe illustrator

  • Session Timeout Alert text is not getting displayed on web ui.

    Hello,
    In "Session Timeout Alert" pop up we are facing one issue. The pop up is getting displayed as per the value in rdisp/plugin_auto_logout parameter i.e. 1800. But the text is not getting displayed.
    I have implemented the SAP Note 1877120 also. Any inputs to resolve this issue.
    Thanks.

    Hi Sigrid,
    When we do pre activities related to OTR, need to save it in standard name space only ? could you guide me pls.
    in the below we have Alias and package are standard.
    1.) There are 4 texts which needs to be configured via SOTR_EDIT to get the translation according your languages implemented in your CRM.
    a.) Start doing it by opening transaction SOTR_EDIT.
    b.) Change to the language you would like to use.
    c.) As ALIAS enter first CRM_IC_CMP_FRAME/SESSION_PING_TITLE. Click on Create and confirm the following dialogues.
    d.) Enter CRM_IC_CMP_FRAME as package and the object type as WAPP.
    e.) Finally enter the translation according your language from the english version (length of text: 25):
    "Session Timeout Alert !"
    f.) Save you changes
    Repeat the steps a.) to f.) with the following aliases and options:
    Jimmi

  • Item text is not getting updated in Payment document generated through F110

    Hi all,
    After generating the payment document via Transaction Code u2013 F110, system is not updating the Text field in the payment document with the text that we have entered in the Invoice (MIRO or FI Invoice).
    While processing the document via transaction code u2013 F110, in the layout shown for the Invoices to be considered for payment (screen of u201CEdit Proposalu201D), text is not getting updated. When we pressed F1 at the Text field (Which is blank) we came to know that it is a u201CItem Textu201D with u201CTable u2013 REGUEu201D /  u201CField u2013 SGTXTu201D.
    In BSEG (SGTXT field) as well as BSIK (SGTXT field) we are getting the Invoice document with the text maintained in it via MIRO or FI invoice.
    But while processing the invoices through Tcode - F110, in the layout of Edit Proposal (Table - REGUE / Field - SGTXT) we are not getting the u201CText fieldu201D but getting the other data such as Doc. No.( Table - REGUE / Field - BELNR), Fiscal Year (Table - REGUE / Field - GJAHR) etc for processing the proposal which is getting shown in BSEG as well as BSIK.
    In case of manual payment (F-53) we can input the text manually hence that will get updated in payment document but this thing is not possible with F110.
    Can anybody guide me on getting the ItemText (Not Doc. Header text) in FI payment document after F110 execution?
    Regards,
    Shridhar

    Hi Suresh,
    Thanks for the prompt reply. We will be obliged if you guide us in that respect since F110 is a Std. SAP code.
    Have you refer OSS before arriving at the conclusion of developing ABAP program since the Item Text is a std. field of Std. Tcode - F110. Same should had been get updated while making the payment in reference to the Invoice which haves item text in it ?
    Regards
    Shridhar
    FICO

  • Open Item not getting Cleared automatically

    Dear Sir,
    For a GL "Cenvat Clearing" , we have ticked the option "open Item Management" in FS00 .
    Our business scenario is as below :
    After MIGO , we do excise posting using J1IEX and here in the posted Fi document the GL "Cenvat Clearing" gets Credited . Subsequently during the MIRO this GL i.e "Cenvat Claering" gets Debited .
    My problem is that when I see in FBL3n for this GL the relevant transaction still appear under the open Items . Pl guide me , as what is the reason for this entry not getting cleared automatically .
    Regards
    B Mittal
    Regar

    PO number cannot be taken as sort feild  hence the value is in blank always.
    You need to identify some value for this feild and as a process you need to tell your users to incorporate the same at the time of doing MIRO.
    Or other wise you can take out the assignment of sort key to this GL account, and as a process you can instruct your user to use reference feild and input a value. If you fell that this is a tedious process,
    the Identify another feild that is common for both debit and credit line items and try to post with a common valuie using, one ABAP program which will update this feild. Mind that this feild need to be in the OB74.
    reward if useful
    sarma

  • GR/IR Clearing a/c not getting cleared..

    Dear All,
    My GR/IR clearing account is not getting cleared automatically after Invoice posting..is it the standard behavior or anything
    missing?
    For example- GR/IR Clearing a/c is 13110100,when GRN is done it is getting credited and once invoice is posted it gets
                          debited so it should show cleared when we run FS10N / FBL3N
    please let me know whether it is needed to clear manually?
    Naren

    Hi
    F.13 is for executing the setting configured under Financial Accounting -> General Ledger Account -> Business Transactions ->Open item clearing - > Prepare Automatic clearing. In this place, the GL account needs to be updated with the relevant criteria like, what are the fields to be matched for clearing like Reference field, assignment, etc.
    After that, if F.13 is executed for this GL account then it will clear based on the criteria specified above.
    Hope it clarifies
    Regards
    Lakshmanan Krishnan

  • HT4623 My texts have stopped getting through to one of my contacts. I can phone him and I can receive his calls and messages. I am the only one of his contacts whose  texts are not getting through. We have both restarted our iphones but the problem contin

    My texts have stoipped getting through to one of my contacts. I can phone him and I can receive his calls and messages. I am the only one of his contacts whose  texts are not getting through. We have both restarted our iphones but the problem continues.

    Have you talked to your carrier (or your friend to his)?  Could be an issue at their end.

  • Vendor Account not getting Cleared.

    Dear All,
    First of all thanks everyone for your support till date.
    I have an issue. When I am trying to clear a vendor account from F-44 its not getting cleared. Its showing a negative balance of Cash discount and is not getting adjusted with any account.
    However when I am processing the open item for the same vendor in FBL1N. The total is 0.
    Can any one suggest how to go ahead and clear this account.
    Thanks & regards
    Om Prakash gupta

    Dear All,
    Any updates on this issue as it has become a serious problem here. There ia an objection from Auditor.
    Kindly Suggest.
    Regards
    OM

  • UWL items not getting cleared after performing action

    Hello
    We are on EP 7.0.
    We are experiencing a strange behaviorin UWL.
    When end users receive workitems in their inbox and they take the appropriate actions, the workitems still stay in the inbox. Normally they should no longer appear.
    I have tried the refresh in the UWL iview but no luck.
    It seems to work in DEV and other landscape. It does no work in Production. The software installation of UWL are the same across all landscapes.
    Is there any other setting that is required. In SAP GUI this is not an issue.
    Any feedback or tips would be helpful. thanks.
    Regards,
    Sunil

    Hi,
    As far as I can remember, this is a known limitation of UWL.
    Please, check this thread : UWL work item not getting cleared
    I am unsure whether you use the correct button the refresh the UWL (it is well hidden!), check the slide 6 in this document :
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/20f4843e-314f-2a10-2a88-8c4afa20dda6&overridelayout=true
    Best regards,
    Guillaume

  • SD Reversal not getting Cleared

    Hi Experts,
    When an invoice is getting posted in SD and subsequently when such invoice is cancelled, the line item is not getting cleared. In FBL5n it is showing both the line items as open for all these cases. Please advice
    Thanks in Advance

    Hi,
    VF11 only cancell the invoice and post the reversal document in FI.
    First you clear the original document and reversal document manually in FI
    use T code F-32 or automatically in F.13
    It is related to OB74 setting for this Cusotmer' Recon Acc
    please Check the OSS notes 1259505 and Note 400000

  • SOCO requiremnts not getting cleared.

    Hello Freinds,
    I am working on SRM 5.0 classic scenario( with support pack 11). The requiremnts are not getting cleared although follow on docs are created for them ( PO). This is happening for only goods shopping carts and not for the limit.
    Any inputs on this will be highly appriciated.
    Regards
    SRM USER

    Hi Muthu ,
    I have check the code , But i sisnt see any difference , Infact we didn done any change recently . It was working fine beofre support pack and still working fine in another system aftter support pack .this Badi code is same in the both systems .
    you can also have look into this code.zsrm_sourcing is a custom table where we are maintaing document type and account assignment catogory for catalog items.
    Thank you .
    Get details of shopping cart.
      CALL FUNCTION 'BBP_PD_SC_ITEM_GETDETAIL'
        EXPORTING
          i_guid    = item_bbp_guid
        IMPORTING
          E_ITEM    = ls_item
          ET_ATTACH = lt_attach
        TABLES
          E_ACCOUNT = lt_account
          E_PARTNER = lt_partner.
    If lt_attach got any records sourcing needs to be done.
    SET SOURCING parameter to 'X'.
      IF lt_attach[] IS NOT INITIAL.
        SOURCING = 'X'.
        EXIT.
      ENDIF.
    If lt_partner doenst contain a fixed vendor, sourcing
    needs to be carried out.
      READ TABLE lt_partner TRANSPORTING NO FIELDS
           WITH KEY partner_fct = c_vendor.  " Fixed vendor
      IF NOT sy-subrc IS INITIAL.
        SOURCING = 'X'.
        EXIT.
      ELSE.
    If there is a fixed vendor, but item is not assigned to
    account assignment category, EXPENSE or INTERNAL ORDER .
    Sourcing needs to be carried out for this case.
    Load table with sourcing rules
        SELECT * FROM zsrm_sourcing
             INTO TABLE lt_sourcing.
        CLEAR SOURCING.
        LOOP AT lt_account ASSIGNING <fs_account>.
          READ TABLE lt_sourcing TRANSPORTING NO FIELDS
             WITH KEY acc_cat = <fs_account>-acc_cat
                      skip_sourcing = c_x.
          IF sy-subrc IS NOT INITIAL.
            SOURCING = 'X'.
            EXIT.
          ENDIF.
        ENDLOOP.
      ENDIF.

  • Not getting cleared with internal working of JSF

    Hi All,
    I have started with basics of JSF and created some simple apps using netBeans.
    However I am not getting cleared with the exact internal working of JSF i.e. how the things are implemented in JSF libraries: jsf-api and jsf-impl.
    Please advice or share some links on this.
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi,
    While creating JSP custom tags, we start from scratch by first creating tag handler class then .tld file for that and finally deploying both these files.
    I am looking for a similar approach for making our own JSF component.
    I don't want to put jsf-impl API into lib directory. Is it possible to make a simple component using jstl standard libraries ?
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • DUMMY_BW (0FI_GL_04) delta queue not getting cleared

    Hi,
    We're using minute based extraction approach for 0FI_GL_04 and thereby have two delta queues for the 0FI_GL_4 extractor in the SAP ERP ECC system: One for the ‘DUMMY_BW’ and the other for the 'real' BI system. The delta queue for DUMMY_BW is not getting cleared automatically in production system and it keeps on adding more records in the queue which is in turn consuming memory in ARFCSDATA. Any thoughts on this would be really helpful.
    Regards,
    Karthik

    Hi Gurus,
    Please help me on how can I check that on what fields 0FI_GL_20 is pulling delta.
    I tried to find the MSG Type to check in BD52 for relevant field list, in ROOSGEN table. the entry for MSG type is blank there.
    Any help on this is appreciated.
    Thanks,
    Sourabh Deo

  • WCS:- WLC Alarm not getting cleared automatically on WCS

    ALarm TAB:-
    ==========
    Severity: Message:
    Critical ------------------------------Port 2 is down on Controller.
    This Alarm is not getting cleared automatically, Where as the alarms generated for AP's are getting cleared, I would like to know is this the default behaviour or we need to look into some thing here. To clear this i need to manually delete the alarm.
    Any help would be greatly appriciated.

    Alarms are automatically cleared after 7 days. Clear the alarms manually if you want to clear the alarms before 7 days. For more information refer http://www.cisco.com/en/US/products/ps6305/products_qanda_item09186a00807a60f0.shtml#qa11.

  • JSF: Error Message are not getting cleared

    Hi,
    I am facing some problem with error messages in JSF.
    Here is what I am doing
    1. User submits a form, server validates and sends back the error to the client error message added to Faces Context.
    2. User checks the messages, changes the input and submits. assuming everything is correct now.
    3. On server, it validates and writes data to response for download using the following code.
    FacesContext faces = FacesContext.getCurrentInstance();
        HttpServletResponse response = (HttpServletResponse)faces.getExternalContext().getResponse();
        DownloadResponse.sendDownload( response, is, fileName );
        faces.responseComplete();
      }4. It shows the download popup to download the file. The problem here is that error message are not getting cleared off. User can still see the error message on the screen.
    It seems I am missing something in JSF req-response life cycle. Anyone please point out the mistake.

    SudhirMongia wrote:
    4. It shows the download popup to download the file. The problem here is that error message are not getting cleared off. User can still see the error message on the screen. Wrong. The problem is that the view is not rerendered, which makes sense because you are not sending view content to the browser but your file.
    Your real question probably is: how do I cause a file download and still rerender the view afterwards to show the results? To that I myself do not have the answer unfortunately, but I have seen that question come by a few times already, so doing some searches in these forums may yield you an answer.

Maybe you are looking for