Condition Text Editor

Is it possible to check for blanks or nulls in the Condition Text editor?
I do not want to send messages to a receiver if certain field are blank.
Any help appreciated.

hi Michael,
you can use EX (for exists)
reference & description - <b>Available Operators</b> section on:
http://help.sap.com/saphelp_nw04/helpdata/en/67/49767669963545a071a190b77a9a23/content.htm
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Similar Messages

  • How can i give conditions in smartform text editor

    Hi all,
    i want to display something based on some condition using text element in smartforms , how can i do it.
    in SAP Scripts normally we give conditions in text element using command line(/:)
    but it wont work in smartforms , how can i give the same in smartforms ?
    please help me soon.
    thank you.

    Hi,
    You can use the Conditions tab for the corresponding text.
    ex: in the text-editor consider you are displaying a name field based on a variable
    <b>
    ws_name
    ws_variable</b>
    In the text give the field to be displayed
    &ws_name&
    In the conditions tab give
    ws_variable = 'X'
    This will print the value from ws_name only when ws_Variable = 'X'.
    Regards,
    Tushar

  • How to create a text editor, the one like header text in PO

    Dear Ones,
    My requirement is that I want to create a text editor for storing terms and condition plant wise.
    The editor should be the one like header text in PO. It can take end number of lines.
    I created the text object ('TERMS') in table ttxob and text for it in table ttxot.
    Also created text id ('L000' and 'L001') in table ttxid and text for it in table ttxit.
    Now using FM read_text, save_text and edit_text, I have written a program but it does not save the data.
    When I run the program initially it displays me blank, then I enter some data into it. Again when I come back it displays the data and also saves the edition. But if I close my session the data is gone.
    It means it is not actually saving the data in database. My code is as below:
    *& Report ZAK_TEXT_EDITOR
    REPORT zak_text_editor.
    DATA : head TYPE STANDARD TABLE OF thead WITH HEADER LINE,
           line TYPE STANDARD TABLE OF tline WITH HEADER LINE.
    DATA : tdname TYPE thead-tdname.
    SELECTION-SCREEN : BEGIN OF BLOCK blk WITH FRAME TITLE text-001.
    SELECTION-SCREEN : SKIP 1.
    PARAMETERS       : id TYPE thead-tdid OBLIGATORY
                               MATCHCODE OBJECT zak_textid.
    SELECTION-SCREEN : SKIP 1.
    SELECTION-SCREEN : END OF BLOCK blk.
    START-OF-SELECTION.
      CONCATENATE 'TERMS' id INTO tdname.
      head-tdobject   = 'TERMS'.
      head-tdname     = tdname.
      head-tdid       = id.
      head-tdspras    = sy-langu.
      head-tdlinesize = 132.
      APPEND head.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
          client                        = sy-mandt
          id                            = id
          language                      = sy-langu
          name                          = tdname
          object                        = 'TERMS'
        ARCHIVE_HANDLE                = 0
        LOCAL_CAT                     = ' '
      IMPORTING
        HEADER                        =
        TABLES
          lines                         = 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.
        CALL FUNCTION 'SAVE_TEXT'
          EXPORTING
            client                = sy-mandt
            header                = head
          INSERT                = ' '
          SAVEMODE_DIRECT       = ' '
          OWNER_SPECIFIED       = ' '
          LOCAL_CAT             = ' '
        IMPORTING
          FUNCTION              =
          NEWHEADER             =
          TABLES
            lines                 = 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.
      ENDIF.
      CALL FUNCTION 'EDIT_TEXT'
        EXPORTING
        DISPLAY             = ' '
        EDITOR_TITLE        = ' '
          header              = head
        PAGE                = ' '
        WINDOW              = ' '
          save                = 'X'
        LINE_EDITOR         = ' '
        CONTROL             = ' '
        PROGRAM             = ' '
        LOCAL_CAT           = ' '
      IMPORTING
        FUNCTION            =
        NEWHEADER           =
        RESULT              =
        TABLES
          lines               = line
       EXCEPTIONS
         id                  = 1
         language            = 2
         linesize            = 3
         name                = 4
         object              = 5
         textformat          = 6
         communication       = 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.

    CONSTANTS:
      line_length TYPE i VALUE 254.
    DATA: ok_code LIKE sy-ucomm.
    DATA:
    Create reference to the custom container
      custom_container TYPE REF TO cl_gui_custom_container,
    Create reference to the TextEdit control
      editor TYPE REF TO cl_gui_textedit,
      repid LIKE sy-repid.
    START-OF-SELECTION.
      SET SCREEN '100'.
          MODULE USER_COMMAND_0100 INPUT                                *
    MODULE user_command_0100 INPUT.
    CASE ok_code.
        WHEN 'EXIT'.
          LEAVE TO SCREEN 0.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Module  STATUS_0100  OUTPUT
    MODULE status_0100 OUTPUT.
    The TextEdit control should only be initialized the first time the
    PBO module executes
      IF editor IS INITIAL.
        repid = sy-repid.
      Create obejct for custom container
        CREATE OBJECT custom_container
          EXPORTING
            container_name              = 'MYCONTAINER1'
          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 'I' NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      Create obejct for the TextEditor control
        CREATE OBJECT editor
          EXPORTING
             wordwrap_mode          =
                    cl_gui_textedit=>wordwrap_at_fixed_position
             wordwrap_position      = line_length
             wordwrap_to_linebreak_mode = cl_gui_textedit=>true
            parent                  = custom_container
          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 'I' NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      ENDIF.
    ENDMODULE.                 " STATUS_0100  OUTPUT

  • TCS2 Inline graphics hidden by conditional text cause unwanted carriage returns

    I have some FrameMaker documents where there are some small icons in the text.  Their anchored frames are set to be "at insertion point" in FrameMaker. They work fine normally, but when the icons are hidden by conditional text, they cause unwanted carriage returns in the RoboHelp output. The text is split into different paragraphs in the middle of the sentence.
    For example, this is the FrameMaker input:
    And this is the RoboHelp (WebHelp) output:
    I notice that if I manually edit a topic in the RoboHelp editor, I can manually apply a conditional tag to an inline graphic without causing a line break.
    So, I'm wondering if there's a way to avoid this when using linked FrameMaker documents.
    Thanks,
       Philip.

    Your logs are generated automatically by your system as it runs - there is nothing further that you need to do. They are ordinary text files, so you can display them on a terminal using any of the usual tools - cat, less, grep, etc.

  • Text editor control to be made non-editable

    Hello Experts,
    Need a small help from you people.
    I need to make a text editor control  non-editable,i n a sub-screen; depending upon the value of a field on the main screen. Can you please let me know of the easiest way out with this?
    Thanks in advance,
    Kumud.

    HI,
    You can write a code in PAI of main screen. there by using loop at screen you can make that field editable or disabled.
    Code sample:
    loop at screen.
    ****condition for value check
    if screen-name = 'TEXT_EDIT_NAME'
    screen-output = 1.
    screen-input = 0.
    modify screen.
    endif.
    endloop.
    Hope this will help you.

  • Editing PS Actions in text editor

    Hi everyone,
    A while back I created an Action in PSCS6. One of the steps in the action resized the document using the Image Size command window. I wanted to change the value from 800 pixels (height with constrain proportions) to 400 pixels. I first saved the Action using the Save Actions command using a different name and then opened it in Notepad text editor. I located the entry and changed the '8' to a '4' and saved my work. Then  I relaunched PS and tried to import the new action using the Load Actions command.
    Instead of the action loading into the Actions panel, I got an error message:
    Could not load the actions because the file is not compatible with this version of Photoshop.
    anyone know why changing one character would render the file useless?

    The action palette is a full fledged action editor is a simple drag  and drop to dupe your action then all you need do is edit the step you want to change then rename the Action copy.
    Crafting Actions Package UPDATED Aug 10, 2014 Added Conditional Action steps to Action Palette Tips.
    Contains
    Action Actions Palette Tips.txt
    Action Creation Guidelines.txt
    Action Dealing with Image Size.txt
    Action Enhanced via Scripted Photoshop Functions.txt
    CraftedActions.atn Sample Action set includes an example Watermarking action
    Sample Actions.txt Photoshop CraftedActions set saved as a text file.
    More then a dozen Scripts for use in actions
    Example
    Download

  • Creating content in InDesign or an external text editor

    Hi,
    I'm starting another technical manual project in InDesign. The manual will be about 500-600 A5 pages, mixing text, technical illustrations and screenshots. I'm the only author, and will have proofreader working on PDF copies.
    I'm not sure if I should create my content right in InDesign, or using an external text editor. The point with both solutions are:
    - InDesign
    Pro: What you write is what you see. You always know how long is a section, and can immediately balance the mix between text and illustrations (both having the same relevance in this manual).
    Con: There is no way to keep the overall structure under control; you can have an overview on chapter sequence with the Book, but that'a all - no finer level is allowed. And you cannot work on the iPad or another computer, without having InDesign installed.
    - External text editor
    Pro: Scrivener and Nisus Writer - to name two of the options - can always show a fine-detailed outline, where you can easily rearrange small sections and check the balance between parts. You can continue editing when at your clients. With Scrivener, you can synch text-only markdown files via Dropbox, and continue editing on an iPad when at the client.
    Con: The final layout has to be done in InDesign, so you have to be careful when to import the finished first draft. Balance between small sections cannot be checked until you work on the final layout. Illustrations have to be added only when working at the layout. Tables will be a rough approximation.
    What would you do? I would like to work on the external text editor, since my previous experience with a long manual in InDesign was a bit like working blind. But I hate the idea of not being immediately in control of all the elements of my work.
    Cheers,
    Paolo

    Halfway in the making of the manual, I can say that creating content in InDesign (CS6) is not feasible. The program is extremely slow and unrealiable. The spinning beachball takes most of the working time, and crashes are extremely frequent.
    My book is not very complex. A single flow of text, with the simplest layout, and a few inline illustrations. A spare amount of cross-references, a few conditions. The book is made of less of ten chapters, with the longest no longer than 150 A5 pages.
    As it is, I would consider InDesign a final layout app only. Writing and proofreading has to be done on a rough copy (assuming the proofreading do agree to work on a preliminary copy, and not the final work). InDesign should come into play when it is time to prepare the layout for printing.
    I hope to read of someone more successful than me. Going back to FrameMaker and Windows is not my dream (plus, producing PDF files with FrameMaker on Windows has been a nightmare for me). Unfortunately, lucky technical writers using InDesign are very jealous, and don't seem to want to release their experience on the web.
    Paolo

  • Book and File Conditional Text Tags Don't Match

    In Framemaker 10 (TCS 3, Windows 7 64-bit), when I click on a document in a the book (& View>Show/Hide Conditional Text), an extra conditional text tag shows up that doesn't exist in the document Show/Hide Conditional Text.
    For example:
    In the book, My Book.book, I select Chapter1.fm (but don't open it).
    Then I open the Show/Hide Conditional Text panel (View>Show/Hide Conditional Text)
    I see these two condition tags, Hide Text and HideText. I use Hide Text but not HideText.Apparently, at some point I changed the name of the condition tag.
    Then I open Chapter1.fm.
    When I open the Show/Hide Conditional Text panel, HideText isn't there.
    What I want to do is to delete HideText (the one I don't use), but I can't find ourt how to do it. any ideas out there?
    One more bit of information that might help figure out what's going on:
    I select Chapter1.fm in the book.
    Then I select Show as per condition in the Show/hide Conditional Text panel.
    Select HideText in the Hide field.
    Click the left arrow (<--) to move HideText to the Show field.
    Click Apply.
    I get this error message in the Book Error Log:
    Cannot show the following tags because they do not exist in this document
    So, can anyone tell me how to get rid of HideText from the book files?
    Thanks!
    John N.

    John, some troubleshooting questions:
    1. did all of the file(s) originate from FM10 or were any from previous versions? Did you import previous version content? Slight naming differences between FM versions is an insidious problem that many of us here can relate to ... If any of the files were from previous versions, I would start with testing FM10 original content itself, to see what naming convention FM10 starts with.
    2. if you want to dive into the innards of your problem files, you might use the venerable MIFBrowser, a freebie from
    http://www.wideman-one.com/gw/tech/framemaker/mifbrowse.htm
    Although it hasn't been updated in a loooooong time, it should still work perfectly with FM10 MIF files.  It's just a viewer, not an editor, but it will help you get a handle on both the conditional tags in-situ, in comparison to the tag as defined in the condition catalog section.
    MIF is a bit daunting if you've never looked at it, but with MIFBrowse the various sections of content are more easily viewable.
    3. With copies of your FM files safely backed up you could then edit the conditions in the.MIF files in a text editor (or by using FM itself, although this takes some special care to ensure that the file remains as text. I personally fine text editors (e.g. NotepadPlus or EmEditor) easier to use because viewing line numbers helps when trying to sync between what you see in the MIFBrowse display vs. actually edit the content.
    4. It's also possible to save the .book file as .mif to then examine/edit the conditional tag catalog with a text editor. You could copy the "missing" conditional definition from one of the chapters into the .book file.
    Sheila

  • Text Editor -options

    Hi,
    I have been using text editor control.
    In this when we click load file button...an open prompt window appears..
    there we will be finding Files of type... dropdown..containing values like text(.txt) file and All file types..
    Is there any way to restrict this dropdown to single value..i mean to .txt file..should only be viewed omitting
    All files option in dropdown..
    i am using CL_GUI_TEXTEDIT..control...
    Is there any option to do it...
    Please Help me out.
    Thanks & Regards,
    Sandy.

    Hi Sandy,
    I don't think there is any method for this. As the dialog box opened is depending on your OS.
    But, you can cross check the uploaded file for  " .txt " using CP (contains pattern) function of string.
      DATA: xl type string.
      xl = '*.txt'.
      IF not P_FILE CP xl.  "P_FILE is name of file you will get.
    "Error"
    ENDIF.
    Sachin

  • Options - Text Editor - C/C++ missing intellisense entry. Intellisense not working

    Options -> Text Editor -> C/C++ missing intellisense entry.  Intellisense not working.    Solutions to turn options for the editor off and on are not working.  The intellisense entry is present for other languages,
    such as C#, but not C/C++.
    By not working, I mean the intellisense right click menu items are grayed out, and intellisense files are not produced.

    Hi JerroldBrody,
    Thank you for posting in MSDN forum.
    >>I mean the intellisense right click menu items are grayed out, and intellisense files are not produced.
    Based on your issue, could you please share me a screen shot about the intellisense right click menu items are grayed out?
    Generally, I know that it is default that we can enable the intellisense for C/C++ by going to the TOOLS->Options -> Text Editor -> C/C++ ->Advanced-> IntelliSense like the following screen shot.
    So please try to check if you set Disable Intellisense property as False in the VS IDE.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • The text editor in release 2

    We have portal release 2 running on HP-UX.
    In release 2 there is a new text editor for publishing text. Its used for simple text and text item types.
    How is this feature implemented? Is the source code available?
    Feedback appreciated.

    Hi,
    It is called Rich Text editing. A search on google with the keywords rich text edit
    will give you links to quite a few sites, where the source is available. It uses
    a combination of DHTML and JavaScript.
    We have portal release 2 running on HP-UX.
    In release 2 there is a new text editor for publishing text. Its used for simple text and text item types.
    How is this feature implemented? Is the source code available?
    Feedback appreciated.

  • Rich text editor (apex 4.0)

    using blue gray theme and a page with a rich text editor. Expanding the rich text options displays the text body p below the text area that persists even if you close the rich text options. Anybody know how to get rid of that behavior?

    I think your mixing 2 technologies.
    At 1 side you have xml in combination with xsl (style sheets used in BI Publisher and FOP) to generate your pdf. And at the other side you have HTML...
    XML and HTML are 2 entirely different technologies which you can not mix this simple. I investigated the same problem as you had, and in the end I ended up using jasperreports instead of FOP.
    Maybe BI Publisher has some html regions which you could insert into your word document but I doubt it cause more people have asked the same question on this board...
    So my advice: use jasperreports (also it is free for commercial usage)
    Success
    Br,
    Nico

  • Text editor in Score module agonizingly clunky!  Fix?

    When creating scores from midi regions, the text editor drives me nuts when adding lyrics: The word/character positioning is different between text edit/create mode and what appears on the screen after editing, and different again between that and what appears in print preview mode or actual print-out. This is absolutely crazy-making when trying to line words/syllables up with their corresponding notations!
    Also the cut & paste functions don't work as in any other text editor I've seen.
    Also-also I can't get it to accept a new default font and size.
    Suggestions? Dr. Kevorkian's phone number?
    Thanks!

    Hi,
    it looks like you have some problem with RFC. It stopped on the following line:
    * Communication error in RFC-Call
    message x628(ke) with 'RFC_ERROR' subrc msg_text.
    Ask your basis guy to check it. The job on application server tried to connect to the central instance and it failed. The job run on central instance does not need to make any RFC call. Hence there is no problem in this case.
    Regards

  • Rich Text Editor Options

    I am working on a project that needs a Rich-Text Editor with
    ability to insert tables, images, and more complex editing features
    such as what FCKEditor provides but ideally that was built with
    Flex in mind. Is there such an editor available? I have seen a few
    options but nothing that really matched the functionality of
    FCKEditor for example.
    Thanks

    Hello,
    I was looking for flex version of the FCK Editor,
    unfortantly, I could not find a fully complete solution, but I
    found the following which might help you:
    1.
    http://flashtexteditor.com/flexdemo/full/
    2.
    http://drumbeatinsight.com/examples/htmlcomponent/editor/HTMLWithRTE.html
    L.L.

  • Text Editor using cl_gui_textedit

    Hi,
    I need a text editor box on selection screen in display mode. and I'm using cl_gui_textedit class to get it.. but for some reason its not working.
    Here is the code below -
    report YLTEST1
           no standard page heading line-size 255.
    DATA: g_text_editor             TYPE REF TO cl_gui_textedit,
          g_text_container          TYPE REF TO cl_gui_custom_container,
          g_gen_text_editor         TYPE REF TO cl_gui_textedit,
          g_gen_text_container      TYPE REF TO cl_gui_custom_container.
      DATA: WORDWRAP_POSITION LIKE CL_GUI_TEXTEDIT=>M_WORDWRAP_POSITION.
      data: g_gen_txt_container       TYPE scrfname VALUE  'GENERAL_TEXT_FOR_REPS'.
      DATA: TEXT_TAB      TYPE STANDARD TABLE OF LINE.
    parameters: p_check.
    at selection-screen output.
    Create sales Text container
      WORDWRAP_POSITION = 100.
      IF G_GEN_TEXT_CONTAINER IS INITIAL.
            CREATE OBJECT:
                 G_GEN_TEXT_CONTAINER EXPORTING CONTAINER_NAME = G_GEN_TXT_CONTAINER,
                 G_GEN_TEXT_EDITOR    EXPORTING PARENT = G_GEN_TEXT_CONTAINER
                 WORDWRAP_MODE =  CL_GUI_TEXTEDIT=>WORDWRAP_AT_FIXED_POSITION
                 WORDWRAP_POSITION = WORDWRAP_POSITION
                 WORDWRAP_TO_LINEBREAK_MODE = CL_GUI_TEXTEDIT=>TRUE.
      ENDIF.
      IF not G_GEN_TEXT_CONTAINER IS INITIAL.
    Set container options
      CALL METHOD: G_GEN_TEXT_EDITOR->SET_TOOLBAR_MODE
                                  EXPORTING TOOLBAR_MODE   = 0,
                   G_GEN_TEXT_EDITOR->SET_READONLY_MODE
                                  EXPORTING READONLY_MODE  = 1,
                   G_GEN_TEXT_EDITOR->SET_STATUSBAR_MODE
                                  EXPORTING STATUSBAR_MODE = 0,
                   G_GEN_TEXT_EDITOR->SET_AUTOINDENT_MODE
                                  EXPORTING AUTO_INDENT    = 1.
    Pass the text to the sales text container
      CALL METHOD G_GEN_TEXT_EDITOR->SET_TEXT_AS_STREAM
        EXPORTING
          TEXT = TEXT_TAB.
      endif.

    Try this way:
    DATA: lo_dock TYPE REF TO cl_gui_docking_container.
    DATA: lo_text_editor TYPE REF TO cl_gui_textedit.
    DATA: lt_tab TYPE STANDARD TABLE OF char80.
    DATA: la_tab LIKE LINE OF lt_tab.
    DATA: w_carrid TYPE sflight-carrid.
    ** Selection Screen
    SELECTION-SCREEN: BEGIN OF BLOCK blk1 WITH FRAME TITLE aaa.
    SELECT-OPTIONS: s_carrid FOR w_carrid.
    SELECTION-SCREEN: END   OF BLOCK blk1.
    INITIALIZATION.
    * Docking container
      CHECK lo_dock IS INITIAL.
      CREATE OBJECT lo_dock
        EXPORTING
          repid     = sy-cprog
          dynnr     = sy-dynnr
          ratio     = 80
          side      = cl_gui_docking_container=>dock_at_bottom
          name      = 'DOCK_CONT'.
      IF sy-subrc <> 0.
        MESSAGE 'Error in the Docking control' TYPE 'S'.
      ENDIF.
    * Text Editor
      CREATE OBJECT lo_text_editor
        EXPORTING
          parent                 = lo_dock
        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.
    * Set text
      la_tab = 'This is test'.
      APPEND la_tab TO lt_tab.
      CALL METHOD lo_text_editor->set_text_as_r3table
        EXPORTING
          table           = lt_tab
        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.
    Regards,
    Naimesh Patel

Maybe you are looking for