Color a specfic text view in a table dynamically

Hi ,
I have got a SFLIGHT table display , According to the Flight Number I want to change the color of textView in that table .
How should I do ?
I have followed teh following steps :
Created a Attribute colorCode of Type WDUI_TEXTVIEW_SEM_COL .
Then i have set the value of Marked whenvere i get flight no 0017 .
But this is working for the coplete column f flight number .
I want different colors for different flight numbers .
Thanks And Regards
Anuradha Rao

Hi
creat the attribute as baskar mentioned and bind it to the table coloum's cell design property .
below code will help youto get the color for cell based on condition .
method WDDOINIT .
* Coding for colouring the cell
LOOP AT lt_scarr INTO wa_scarr .                                        "WHERE currcode = cky .
    IF wa_scarr-currcode = cky .                                            " condition checking
      wa_scarr-cell_design = cl_wd_table_column=>e_cell_design-negative.   " Redcolor
      wa_scarr-img  = '~Icon/GreenLed'.
     ELSE.
      wa_scarr-cell_design = 02.
      wa_scarr-cell_design = cl_wd_table_column=>e_cell_design-positive. "Green color
    ENDIF.
        MODIFY lt_scarr FROM wa_scarr TRANSPORTING   cell_design.
  ENDLOOP.
endmethod .
Regards
chinnaiya P

Similar Messages

  • Change the font color of a text field in a table by key-combination

    I want to change the font color of a text field in a table (single cell only) on pressing a key combination. Does anybody know how to do this.
    I have a lot of data in a table. During an evaluation of the data in a meeting I want to change the color of the text depending on the result of the meeting. (for example: High risk = CTRL+R makes the text red).
    I know how to change the color using a button, but I do not want to add a button after each cell. For this reason I would like to do it on a key combination that alway refers to the active cell.
    Many thanks for your help in advance.
    Marcel

    Hi,
    I don't think you can use the ctrl key like that as those shortcuts will be intercepted by Reader (ctrl-R toggles the ruler display on / off).  You also might have trouble updating the color while you still have focus on it.  You can use the shift key in a similar way, so if you only have lower case characters in the text fields then you can do something like;
    if (xfa.event.shift)
        switch (xfa.event.change)
            case "R":
                this.fontColor = "255,0,0";
                break;
            case "O":
                this.fontColor = "255,102,0";
                break;
            case "G":
                this.fontColor = "0,255,0";
                break;
        xfa.event.change = ""; // ignore character
    If you need uppercase characters maybe you can have one button to set "review mode" and test that on the if (xfa.event.shift) line.  But again it wont take effect until you have tabbed out of the field.
    Regards
    Bruce

  • Dynamically assigning query/view to a table

    Hi All,
    i want to assign a view to a table dynamically in WAD as per certain condition, can any 1 tell me how to do this?
    thanks in advance
    Godhuli

    Just a thought
    Instead of assigning query dynamically is it possible that you will have tables with different queries as dataprovider and at run time you can show only the required table and other tables you can hide.
    Unfortunately my WAD is not working so I am just giving a pseudo code.Please don't blame me for syntax errors.Please Paste this code between <\BODY> and
    <\HTML>.
    You can write a script like this
    <script>
    var obj;
    var tablobj;
    obj = findobject("option_1");
    HideTables();
    if (obj.value == 1)
       tablobj = findobject("TABLE_1");
       tablobj.style.display = "show";
    if (obj.value == 2)
       tablobj = find_object("TABLE_2");
       tablobj.style.display = "show";
    function findobject(objname)
    var all = document.all;
    for( var i=0;i<all.length;i++ ){
    if (all<i>.name==objname)//we have found object
    return all<i>;
    return null;
    function HideTables()
    var all = document.getElementsByTagName("table");
    for( var i=0;i<all.length;i++ )
    all<i>.style.display = "hidden";
    <\script>
    Regs
    Gopi.
    Message was edited by: Gopi

  • How to set text and background color of current row in a adf table?

    Hi,
    In jdev 11.1.2.3,
    How to set text fond and background color of current row in a adf table?
    I tried to set Background color in table property, but that is not what i want.
    Thanks.

    Hi,
    We almost had the same requirement, but we just needed to color a specific column.
    Here goes the solution to that, you might do the same for your row highlighting
    Changes are required in jsff and one method to be added in backing bean
    1. JSFF :
    <af:column headerText="Amount"
                     id="c4" width="100"
                     inlineStyle="#{backingBeanScope.BackingBean.cellColor}">2. Backing Bean
    //searchResultTableVO is Table's VO
    public String getCellColor() {
          FacesContext ctx = FacesContext.getCurrentInstance();
          ExpressionFactory ef = ctx.getApplication().getExpressionFactory();
          ValueExpression ve = ef.createValueExpression(ctx.getELContext(), "#{row}", FacesCtrlHierNodeBinding.class);
          FacesCtrlHierNodeBinding node = (FacesCtrlHierNodeBinding)ve.getValue(ctx.getELContext());
          Row row = node.getRow();
        if(row.equals(searchResultTableVO.getCurrentRow())){
    //You can add your inline style for font-style too
          return "background-color:Red;";
             return null;
      }Hope this is helpful :)
    Regards,
    Neha..

  • Need to apply table fill color based on text content

    Totally new to Indesign-scripting – but really need a solution to this:
    I have a table
    I want to fill the table cell with a different color based on text content.
    If cell contents the text "Apple" fill color of cell should be color swatch "Red"
    If cell contents the text "Banana" fill color of cell should be color swatch "Yellow"
    Any help most appriciated!

    Hi Franke,
    Try the below code, may it will helpful:
    var myDoc = app.activeDocument
    //var myCell = app.activeDocument.textFrames.everyItem().tables.everyItem().cells.everyItem().getElement s()
    app.findTextPreferences = app.changeTextPreferences = null
    app.findTextPreferences.findWhat = "Apple"
    var myFound = myDoc.findText()
    for(i=0; i<myFound.length; i++)
        if(myFound[i].parent.constructor.name == "Cell")
        myFound[i].parent.fillColor = "aaa"
    If the above code helps you, then please give Helpful or Correct Answers.
    Because for the last 3 months only I started my Indesign Scripting Career.
    With the help of Forum legends I can able to reply for simple questions.
    Thanks all...
    Regards
    BEGINNER

  • Hbj text view color

    Hi Gurus ,
    I need to set up the color of the the text in my hbj text view to blue
    <hbj:textView
                   id="Text_ZIP"
                   encode = "FALSE"
                   text="<font color = 'blue'><%=poltitle<i>%></font>"
                   design ="EMPHASIZED"
                   />
    I get the blue color as intended , however , I want the vale of poltitle<i> to be printed rather that poltitle<i>,
    say poltitle<i> = xyz , I want xyz to be displayed in blue color , however poltitle is displaye din blue color ,
    kindly suggest , what shall I do to achieve the result

    Hi,
    One option is not to use the htmlb tags. Just do it with straight HTML.
    Or you might be able to set the text property in the body of the HTMLB tag. E.g.
    <hbj:textView
    id="Text_ZIP"
    encode = "FALSE"
    text=""
    design ="EMPHASIZED"
    >
    //just example not sure of the exact syntax
    this.setText = "<font color = 'blue'>" + poltitle + "</font>";
    </hbj:textView>
    Hope this helps.
    BRgds,
    Simon

  • How can i  change the column label text in a alv table display

    how can i change the column label text in a alv table display??
    A similar kinda of question was posted previuosly where the requirement was the label text was needed and following below code was given as solution :
    <i>*  declare column, settings, header object
    DATA: lr_column TYPE REF TO cl_salv_wd_column.
    DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
    DATA: lr_column_header type ref to CL_SALV_WD_COLUMN_HEADER.
    get column by specifying column name.
    lr_column = lr_column_settings->get_column( 'COLUMN_NAME1' ).
    set Header Text as null
    lr_column_header = lr_column->get_header( ).
    lr_column_header->set_text( ' ' ).</i>
    My specific requirement is i have an input field on the screen and i want reflect that value as the column label for one of the column in the alv table. I have used he above code with slight modification in the MODIFYVIEW method of the view since it is a process after input. The component gets activated without any errors but while run time i get an error stating
    <i>"The following error text was processed in the system CDV : Access via 'NULL' object reference not possible."</i>
    i have checked in debugging and the error occured at the statement :
    <i>lr_column = lr_column_settings->get_column( 'CURRENT_YEAR' ).</i>Please can you provide me an alternative for my requirement or correct me if i have done it wrong.
    Thanks,
    Suri

    I found it myself how to do it. The error says that it is not able to find the reference object i.e  it is asking us to refer to the table. The following piece of code will solve this problem. Have to implement this in WDDOMODIFYVIEW method of the view. This thing works comrades enjoy...
      DATA : lr_cmp_usage TYPE REF TO if_wd_component_usage,
             lr_if_controller  TYPE REF TO iwci_salv_wd_table,
             lr_cmdl   TYPE REF TO cl_salv_wd_config_table,
             lr_col    TYPE REF TO cl_salv_wd_column.
      DATA : node_year  TYPE REF TO if_wd_context_node,
             elem_year  TYPE REF TO if_wd_context_element,
             stru_year  TYPE if_alv_layout=>element_importing,
             item_year  LIKE stru_year-i_current_year,
             lf_string    TYPE char(x),
      DATA: lr_column TYPE REF TO cl_salv_wd_column.
      DATA: lr_column_header TYPE REF TO cl_salv_wd_column_header.
      DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
    Get the entered value from the input field of the screen
    node_year  = wd_context->get_child_node( name = 'IMPORTING_NODE' ).
    elem_year  = node_year->get_element( ).
      elem_year->get_attribute(
       EXPORTING
        name = 'IMPORT_NODE-PARAMETER'
       IMPORTING
        value = L_IMPORT_PARAM ).
      WRITE L_IMPORT_PARAM TO lf_string.
    Get the reference of the table
      lr_cmp_usage  =  wd_this->wd_cpuse_alv( ).
      IF lr_cmp_usage->has_active_component( ) IS INITIAL.
        lr_cmp_usage->create_component( ).
      ENDIF.
      lr_if_controller  = wd_this->wd_cpifc_alv( ).
      lr_column_settings = lr_if_controller->get_model( ).
    get column by specifying column name.
      IF lr_column_settings IS BOUND.
        lr_column = lr_column_settings->get_column( 'COLUMN_NAME').
    set Header Text as null
        lr_column_header = lr_column->get_header( ).
        lr_column_header->set_text( lf_string ).
    endif.

  • How can i change the color of the text on a button in Roll Over or Click state (Cs5.5)

    Hello,
    Here is the problematic:
    1° How can i change the color of the text on a button in Roll Over or Click state (Cs5.5)
    - I've many button in a doc im creating
    - the color of the buttons is white with black stoke & black text
    - in roll over state i want them to inverse the color coding (the text white & bottom black)
    - currently the text becomes invisible as black on black cant be seen (ive stroked it white but that looks ugly)
    - i would just like to know if there is a function made for this?
    My other questions:
    2° Ive a presentation on which Ive created buttons which tigger pop-up animations
    - i have 5 buttons which trigger animations
    - the viewer can chose to Click on any of the buttons randomly
    - the problem is once the animation is open how can it be close... either:
    a) by it self after "40" seconds
    b) when ther viewer clicks another button
    3° Ive created buttons linking pages..
    - "go to page xxx"
    - when i do a preview and click on the buttons the links dont take me to the right pages
    - is that normal? (maybe in preview its suppose to be like that)
    4° I would like to intergrate YouTube videos in the presentation so they play inside the docment.. when i tried.. it said the 'link isnt a flash video'
    - what should i do?
    5° Once i export it into Swf. how how can i visualize it? or put it online?
    Thank you for your time.

    stlbbl4u wrote:
    Hello,
    Here is the problematic:
    1° How can i change the color of the text on a button in Roll Over or Click state (Cs5.5)
    - I've many button in a doc im creating
    - the color of the buttons is white with black stoke & black text
    - in roll over state i want them to inverse the color coding (the text white & bottom black)
    - currently the text becomes invisible as black on black cant be seen (ive stroked it white but that looks ugly)
    - i would just like to know if there is a function made for this?
    You should setup Object Styles - these can also include Paragarph Styles that can be triggered when the Style is selected.
    http://help.adobe.com/en_US/indesign/cs/using/WS5CEDB81A-0011-4dc9-9DE8-AC7AD4C80076a.html
    My other questions:
    2° Ive a presentation on which Ive created buttons which tigger pop-up animations
    - i have 5 buttons which trigger animations
    - the viewer can chose to Click on any of the buttons randomly
    - the problem is once the animation is open how can it be close... either:
    a) by it self after "40" seconds
    b) when ther viewer clicks another button
    I'm not sure what you mean - I don't do files with Animations
    3° Ive created buttons linking pages..- "go to page xxx"
    - when i do a preview and click on the buttons the links dont take me to the right pages
    - is that normal? (maybe in preview its suppose to be like that)
    Does it work properly when you export it to the finished file?
    4° I would like to intergrate YouTube videos in the presentation so they play inside the docment.. when i tried.. it said the 'link isnt a flash video'- what should i do?
    InDesign won't link directly to youtube videos. I think your best bet would be to use Downloader to download the video and embed them directly in Indesign.
    5° Once i export it into Swf. how how can i visualize it? or put it online? 
    Thank you for your time.
    You can look up how to embed a SWF file into your HTML - but it depends what you mean by "online" there's a dozen ways to get a file "online".

  • Ability to query on all columns from a view with multiple tables

    I have view with 4 tables. view has about 50 columns.
    hypothetically, I want to build a form to give the user an ability to query on any of those 50 columns. user can search on one or more fields.
    what is the best way to write the query to retrieve the results without performance impact.
    please let me know if the question is not clear.

    If you want to permit them to query any of 10 fields with no restrictions, you could create 10 separate single-column indexes. The optimizer would have to try to pick the best of these indexes if you specified multiple search criteria. But since you have a view which presumably means that you've got multiple other indexes involved for the underlying join conditions, you'd probably want/need to combine the column lists of the indexes you're adding for searches with the indexes you've created for joins, which requires looking at the text of the view and figuring out the best way to optimize the 10 single-column searches. Of course, it is possible that the optimizer could chose to do something like a b-tree to bitmap conversion on multiple indexes which could allow it to use multiple independent indexes for your queries, but that's generally not ideal performance-wise.
    All this is a fancy way of saying that there probably isn't a cut and dried answer to your question. You need to figure out the queries you're trying to optimize (say, the 10 single-condition queries) and you need to figure out what set of indexes on the various underlying tables provides the best performance weighing those benefits against the cost on other side of maintenance during DML. Which is going to depend on the text of the view, the underlying tables, the existing indexes, etc.
    Justin

  • How Do I Display HTML Formatted Text From A Data Table In Crystal Reports?

    I'm creating reports in Crystal XI.  The information being displayed in the reports comes from data tables where the text is formatted in HTML.
    I've worked with Crystal Reports enough to know that HTML text pulled from a data table doesn't appear in Crystal the same way it does in a web browser.  Crystal Reports ignores all the tags (...unless I'm missing something...) and just displays the text.
    Someone far more Crystal savy than I (...who I don't have access to...) came up with a Formula Field workaround that tricks Crystal Reports into displaying some basic HTML tags.  Here's that workaround:
    <!--
    stringVar TableName := ;
    TableName := Replace (TableName, "<ul>","<br> <br>");
    TableName := Replace (TableName, "<li>", "<br>   &bull; ");
    TableName := Replace (TableName, "</li>", "");
    TableName := Replace (TableName, "</ul>","<br> <br>");
    TableName := Replace (TableName, "<a", "<u><font color='blue'");
    TableName := Replace (TableName, "</a>", "</font></u>");
    TableName
    -->
    QUESTION - Does any similar workaround exist so I can display an HTML Table in Crystal Reports?  If not, is there any way to display HTML formatted text from a data table in Crystal Reports as it would appear in a web browser?

    Hi Steven,
    To display html text in Crystal Reports follows these steps.
    1. Right click on the field and select Paragraph tab.
    2. Under 'Text Interpretation' select 'HTML Text' and click OK.
    I have tried using the way,but it never works.So reply me if there is any way to solve the issue

  • How to set the Background Color of a Text Field in a Tabular Report.

    Hello,
    I tried to set the Background Color of a Text Field in a Tabular Report.
    But I was not able to change this colur.
    In the report attributes --> column attributes
    I tried already:
    1. Column Formating -- >CSS Style (bgcolor: red)
    2. Tabular Form Element --> Element Attributes (bgcolor: red)
    but nothing worked.
    Can anybody help me?
    I Use Oracle Apex 2.2.1 on 10gR2
    thank you in advance.
    Oliver

    in "Report Attributes" select the column to move to the "Column Attributes" page. In the "Element Attributes" field under the "Tabular Form Element" region enter
    style="background-color:red;"
    I will also check if there is a way to do this via the template and post here again
    edit:
    in your template definition, above the template, enter the following:
    < STYLE TYPE="text/css" >
    .class INPUT {background-color:red;}
    < /STYLE >
    (remove the spaces after the < and before the >)
    change "class" to the class that the template is calling
    (I'm using theme 9, the table has: class="t9GCCReportsStyle1" so I would enter t9GCCReportsStyle1)
    A side-effect of using this second version is that ALL input types will have a red background color--checkboxes, input boxes, etc.
    Message was edited by:
    TheJosh

  • Mm01 purchase text view

    Hello Friends,
    I want to upload material master through mm01 but while recording purchase text view is not getting recorded in bdc.
    Kindly suggest how to handle purchase text in such case.
    Rgds,
    Sunny

    You can use BAPI_MATERIAL_SAVEDATA for creating the PO text .
    Here is the sample code
    TABLES : MARC,MARA.
    TYPE-POOLS : TRUXS.
    DATA : BEGIN OF ITAB OCCURS 0,
           MATNR(18),
    *       MTART(4),
           TEXT(10000)," TYPE STRING,
           END OF ITAB.
    DATA : ITEMP TYPE TRUXS_T_TEXT_DATA.
    DATA : TEXT(132).
    data : HEADDATA             LIKE BAPIMATHEAD,
           PLANTDATA            LIKE BAPI_MARC,
           PLANTDATAX           LIKE BAPI_MARCX ,
           MATERIALLONGTEXT     LIKE BAPI_MLTX  OCCURS 0 WITH HEADER LINE.
    DATA: RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE,
          RETURN1 LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE,
          RETURNMESSAGES LIKE BAPI_MATRETURN2 OCCURS 0 WITH HEADER LINE.
    DATA : ITEXT(132) OCCURS 0 WITH HEADER LINE.
    DATA : LEN TYPE I,
           POS TYPE I,
           TIM TYPE I,
           LENGTH TYPE I,
           FILENAME TYPE STRING.
    DATA : TABIX LIKE SY-TABIX,
           LEN1  TYPE I,
           TOTAL TYPE I,
           TEXT1(132),
           LINES TYPE I.
    PARAMETERS : P_FNAME LIKE RLGRAP-FILENAME.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FNAME.
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
       PROGRAM_NAME        = SYST-CPROG
       DYNPRO_NUMBER       = SYST-DYNNR
    *   FIELD_NAME          = ' '
    IMPORTING
       FILE_NAME           = P_FNAME.
    START-OF-SELECTION.
    *CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
    *  EXPORTING
    **   I_FIELD_SEPERATOR          =
    **   I_LINE_HEADER              =
    *    I_TAB_RAW_DATA             = ITEMP
    *    I_FILENAME                 = P_FNAME
    *  TABLES
    *    I_TAB_CONVERTED_DATA       = ITAB
    * EXCEPTIONS
    *   CONVERSION_FAILED          = 1
    *   OTHERS                     = 2
    *IF SY-SUBRC <> 0.
    ** MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    **         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *ENDIF.
    FILENAME = P_FNAME.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      = FILENAME
    *   FILETYPE                      = 'ASC'
       HAS_FIELD_SEPARATOR           = 'X'
      TABLES
        DATA_TAB                      = ITAB
    EXCEPTIONS
       FILE_OPEN_ERROR               = 1
       FILE_READ_ERROR               = 2
       NO_BATCH                      = 3
       GUI_REFUSE_FILETRANSFER       = 4
       INVALID_TYPE                  = 5
       NO_AUTHORITY                  = 6
       UNKNOWN_ERROR                 = 7
       BAD_DATA_FORMAT               = 8
       HEADER_NOT_ALLOWED            = 9
       SEPARATOR_NOT_ALLOWED         = 10
       HEADER_TOO_LONG               = 11
       UNKNOWN_DP_ERROR              = 12
       ACCESS_DENIED                 = 13
       DP_OUT_OF_MEMORY              = 14
       DISK_FULL                     = 15
       DP_TIMEOUT                    = 16
       OTHERS                        = 17
    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 ITAB.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            INPUT         = ITAB-MATNR
         IMPORTING
           OUTPUT        =  ITAB-MATNR.
        SPLIT ITAB-TEXT AT SPACE INTO TABLE ITEXT.
         SELECT SINGLE MTART INTO MARA-MTART FROM MARA WHERE MATNR = ITAB-MATNR.
         HEADDATA-MATERIAL = ITAB-MATNR.
         HEADDATA-IND_SECTOR = 'M'.                              "IMM-MBRSH.
         HEADDATA-MATL_TYPE = MARA-MTART.
         HEADDATA-PURCHASE_VIEW  = 'X'.
      DESCRIBE TABLE ITEXT LINES LINES.
      LOOP AT ITEXT.
      TABIX = SY-TABIX + 1.
      CONCATENATE TEXT ITEXT INTO TEXT SEPARATED BY SPACE.
      LEN = STRLEN( TEXT ).
    *  IF LEN GT 100.
      IF TABIX LE LINES .
          READ TABLE ITEXT INDEX TABIX.
          LEN1 = STRLEN( ITEXT ).
          TOTAL = LEN1 + LEN.
          IF TOTAL GT 132.
              MATERIALLONGTEXT-APPLOBJECT =  'MATERIAL'.
              MATERIALLONGTEXT-TEXT_NAME = ITAB-MATNR.
              MATERIALLONGTEXT-TEXT_ID  = 'BEST'.
              MATERIALLONGTEXT-LANGU  = SY-LANGU.
              MATERIALLONGTEXT-TEXT_LINE = TEXT.
              APPEND MATERIALLONGTEXT.
              CLEAR : MATERIALLONGTEXT,TEXT.
          ENDIF.
      ELSE.
              MATERIALLONGTEXT-APPLOBJECT =  'MATERIAL'.
              MATERIALLONGTEXT-TEXT_NAME = ITAB-MATNR.
              MATERIALLONGTEXT-TEXT_ID  = 'BEST'.
              MATERIALLONGTEXT-LANGU  = SY-LANGU.
              MATERIALLONGTEXT-TEXT_LINE = TEXT.
              APPEND MATERIALLONGTEXT.
              CLEAR : MATERIALLONGTEXT,TEXT.
      ENDIF.
    *  ENDIF.
    *  AT LAST.
    *  IF LEN LE 100.
    *  MATERIALLONGTEXT-APPLOBJECT =  'MATERIAL'.
    *  MATERIALLONGTEXT-TEXT_NAME = ITAB-MATNR.
    *  MATERIALLONGTEXT-TEXT_ID  = 'BEST'.
    *  MATERIALLONGTEXT-LANGU  = SY-LANGU.
    *  MATERIALLONGTEXT-TEXT_LINE = TEXT.
    *  APPEND MATERIALLONGTEXT.
    *  CLEAR : MATERIALLONGTEXT,TEXT.
    *  ENDIF.
    *  ENDAT.
      ENDLOOP.
    *  AT END OF MATNR.
          CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
            EXPORTING
             HEADDATA                   = HEADDATA
           IMPORTING
             RETURN                     = RETURN
           TABLES
             MATERIALLONGTEXT           = MATERIALLONGTEXT
             RETURNMESSAGES             = RETURNMESSAGES.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
           EXPORTING
             WAIT          = 'X'.
          move-corresponding return to return1.
          APPEND RETURN1.
          CLEAR RETURN1.
          CLEAR :HEADDATA ,
                 RETURNMESSAGES,
                 RETURNMESSAGES[],
                 MATERIALLONGTEXT,
                 MATERIALLONGTEXT[].
    *  ENDAT.
      CLEAR ITAB.
    ENDLOOP.
    LOOP AT RETURN1.
    WRITE :/ RETURN1-MESSAGE.
    ENDLOOP.
    Change the code as per your need and you can create that by create_text fm also but wont forget to use commit_text after using create_text

  • Mm02 - Sales text view update?

    Hi Friends,
    I am working on the material master change (i.e MM02 transaction) and I need to upload Material master u2013sales text view and purchase order text view and all other additional data views.
    I have updated one material in recording mode (i.e through SHDB transaction).
    I am unable to find the sales text field name. But I find BDC_SUBSCR in my recording.
    Pls find the below recording log.
    SAPLMGMM     4040     X                                                                               
    BDC_OKCODE               =BU
                BDC_SUBSCR               SAPLMGMM                                 2010TABFRA1
                BDC_SUBSCR               SAPLMGD1                                1004SUB1
                MAKT-MAKTX               test material desc XXX
                BDC_SUBSCR               SAPLMGD1                                2121SUB2
    Pls let me know how to update sales text view and po text view in MM02 transaction.
    Thanks in advance.
    Regards
    raghu

    You have to use FM SAVE_TEXT to upload sales text and purchase order test.
    You can't record a BDC for custom controls like text editor.
    MOVE V_MATNR TO tname-tdname.
    MOVE 'MARA' TO TNAME-TDOBJECT.
    MOVE 'SL1 TO TNAME-TDID.
    MOVE SY-LANGU TO TNAME-TDSPRAS.
    APPEND TNAME
    TXTLINES-TDFORMAT = '*'.
    TXTLINES-TDLINE = 'This is your purchase order text'.
    APPEND TXTLINES.
    CLEAR TXTLINES.
    CALL FUNCTION 'SAVE_TEXT'
    EXPORTING
    CLIENT = SY-MANDT
    HEADER = TNAME
    INSERT = 'X'
    SAVEMODE_DIRECT = 'X'
    *OWNER_SPECIFIED = ' '
    *LOCAL_CAT = ' '
    IMPORTING
    *FUNCTION =
    NEWHEADER = TNAME
    TABLES
    LINES = TXTLINES
    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.

  • How to capture purchase order text view in mm01

    Hello All,
    Im doing recording for one material type in BDC but im not able to capture purchase order text view while creating material.
    Its not getting recorded only pls guide bcoz i have to enter purchase and sales text for new materials.
    Regards,
    Sunny

    Hi Sunny,
    I have a different sugesstion. Never use BDC if u have BAPI available for the same functionality.
    use this BAPI BAPI_MATERIAL_SAVEDATA for material creation. Even u can create the po texts here. Check the parameters MATERIALLONGTEXT and EXTENSIONIN. in FM documentation. It is pretty clear.
    Different long texts (basic data texts, purchase order texts, internal comments, sales texts, material memos) can be created for a material. This requires the fields APPLOBJECT, TEXT_NAME, TEXT_ID, and LANGU or LANGU_ISO in table parameter MATERIALLONGTEXT to contain entries. Depending on the content of field TEXT_ID, the field TEXT_NAME must have the following structure:
    The material number is transferred first. If it has fewer than 18 characters, the remaining characters must be filled with blanks. If it is a material memo (LTXT), the plant key must also be transferred from character 19 onwards; in the case of a sales text (0001), this must be the sales organization and distribution channel. The combinations allowed for the four different fields are indicated in the following table:
    APPLOBJECT TEXT_NAME  TEXT_ID    LANGU
    MATERIAL Matl no. (18 char.)  BEST, GRUN, or IVER  Language
    MDTXT Matl no. (18 char.)  LTXT    Language
    Plant
    MVKE Matl no. (18 char.)  0001    Language
    Sales organization and
    distribution channel
    Thanks,
    Vinod.

  • Uneven color between background text frame and underlying frame fill

    Hi. I'm using InDesign CS3 on Windows XP.
    On my document, the main heading is in a frame with a fill of 'None'. The heading text has a bevel and emboss. The text frame sits on a background A4 frame which is filled with a Pantone spot colour.
    When I print the cover page, the color filling the text frame is slightly different from the background Pantone color, even though the text frame has no color fill.
    When I checked the document before printing in View>Overprint Preview, it appeared to be fine. The PDF also looked fine. In both situations, I could not discern a color difference but it is there in the printed document.
    To provide a color behind the text which matches the fill color of the frame occupying the whole page, what should I do? My gut feel is to select the background frame and the text frame and check the knockout box on the effects panel or something like that.
    I hope I have explained sufficiently clearly the problem I am experiencing.
    Look forward to hearing your suggestions.
    Thanks
    Frank

    http://indesignsecrets.com/eliminating-ydb-yucky-discolored-box-syndrome.php

Maybe you are looking for

  • Installed Itunes 11.0 on Windows 7 64-bit / Itunes store crashes app completely

    Hello      I Installed Itunes 11.0 on Windows 7 64-bit and I can download podcasts and it will sync, but after downloading app updates and clicking done, Itunes crashes immediately when it tries to access the itunes store. If I try to access the Itun

  • Text Elements in WAD

    In WAD report output, I need to display only 2 variables data(values) selected by the users! I know we need to use INFORMATION web item, but how can I restrict it to display only 2 variables data out of 16?

  • Error in Uploading doc in KM Portal.

    Hello All, My Desire to Upload some 9 PPT's in Portal in the required position that is KM Content - - >root  >  documents  >  Knowledge_Re...  >  Repositories  >  Order To Cash  >  Others  >  Training theare i have created One folder and uploaded 9 d

  • Conditions with scales

    Dear Gurus why do we need scales( value / qyt) when we have both quantity and fixed amount in calculation type in a condition

  • Application Manager Doesn't Work

    Hello, I recently purchased the student version of Creative Cloud and every time I clicked to download a product, a "Retrying" message kept appearing and telling me to check connectivity and firewall settings, etc. even though my firewall was turned