ExtendScript example for Frame - changing tags by table column

In the excellent book Unstructured Framemaker 11, there is Chapter 25 on using Extendscript, the only place I have seen
a cogent, coherent walkthrough of the history behind ExtendScript for Frame (evolving form the FDK) and an example showing good
design principles. The example shows how, starting from the small to the large tasks, select a cell, filter it for a criteria, and highlight the
cell, make these functions, then wrap these in functions that select all the tables of a specific name, then go through a document, etc.
I would like to learn more about Extendscript, I'm going through the Scripting Guide, but the key is the tweak for finding a specific column,
changing the tag for the heading cell of the column to a specified format, then changing the remaining "normal" cells of the column to a specified format.
That is the trick, since the heading cell needs have the option to be a different format, since the tag_name would help identify the rest of cells in the
column.
I'll come up with the main parts of the program, but it's the getting the specified column and specifying the heading cell and then the remaining
cells is the tricky part.

OK, starting at the lowest level is getting the column selected, since we need to select the correct column
before selecting the first cell in the column to rename (a separate funciton?) and then the remaining cells
in the column (another function)? Once these two functions are done, the rest would be like the example in the
the Frame book, since then you would have a function select only the tables that have a certain name and then
all the files in the book.
#target framemaker
// !! first, click on table
var doc=app.ActiveDoc;
//Get the table containing the insertion point
var tbl=doc.SelectedTbl;
//Get the first cell in the first row
var cell=tbl.FirstRowInTbl.FirstCellInRow;
var colNum=3;
for (var i=1; i<colNum; i+=1){
    cell=cell.NextCellInRow;
while (cell.ObjectValid()){
    var pgf=cell.FirstPgf;
    alert (pgf.Name);
    alert(cell);
    cell=cell.CellBelowInCol;// Move down to next cell

Similar Messages

  • How to add a listener for frame change

    hello
    Im quite new to jmf, and im writing a code which uses the webcam, but im stuck at a point where i want a listener which is called whenever the frame changes in the visualcomponent. so basically im looking for a frame changed listener to be added to the visual component instead of using a loop or a timer or something.
    i just need a method to be called constantly along the stream coming from the webcam but which is consistent with the changing of the frames.
    i would really appreciate any kind of help.
    thank you

    i thought there would be a listener or something ready to do thisThere is. It's the Rendered interface, which has a callback everytime data is received. If you want to create a custom renderer that is triggered everytime data is available, you set a processor to use your renderer and when data is available, your process command will be called. Same as an event listener...but it's very advanced stuff to implement the renderer interface.
    for example if u want to record a video ull need to capture every frame as soon as it comesNo, the video doesn't come to you a frame at a time. The video is already encoded somehow when you get it, so it's coming in as a stream just like it'll be going out to the file... It's a stream of bytes, not a stream of images... You're not digitizing here, you're transcoding.

  • Give me an Example for On Change OF

    Hi experts ,
    Im Some Fields which are Frequently changed. if any of the fields values are changed. Then it has to Trigger the Output Type.
    Fields : Matnr ,kwmeng,werks,lgort.
    For this i written a logic like this :
    SELECT matnr  kwmeng  werks  lgort
             UP TO l_index ROWS                  '''l_index contains 2 rows"
             FROM vbap  INTO tp_vbap
             WHERE  vbeln = com_kbv1-vbeln.
      Here i want 2 incude the Logic On Change of conditional  Statement.
      Here it should compare wit com_kbv1-yymatnr, com_kbv1-kwmeng , com_kbv1-    yywerks & com_kbv1-lgort with tp_vbap-matnr, tp_vbap-kwmeng,
      tp_vbap-werks, tp_vbap-lgort.
      if it found any changes then it should give sy-subrc eq o.
      ENDSELECT.

    hi... this is an sample logic for on change....
    ON CHANGE OF WA_ITAB4-IONO.
            FORMAT COLOR col_TOTAL INTENSIFIED OFF.
            ULINE AT /1(119).
            WRITE: /
                    'SUB-TOTAL',
                    SUM_AMT1 UNDER WA_ITAB4-AMT1,
                    SUM_AMT2 UNDER WA_ITAB4-AMT2,
                    SUM_AMT3 UNDER WA_ITAB4-AMT3,
                    SUM_AMT4 UNDER WA_ITAB4-AMT4.
            ULINE AT /1(119).
          ENDON.

  • Dynamically changing the Advance table column Header.

    Dear All,
    I want to change dynamically the Advance table column header.
    I tried the below code and its working process request,not in process form request when button pressing.
    Please suggest me.
             OAAdvancedTableBean tableBean =
                               (OAAdvancedTableBean)webBean.findIndexedChildRecursive("advanceTableRN");
                           if (tableBean != null) {
                           System.out.println("tableBean");
                               OAColumnBean columnBean =
                                   (OAColumnBean)tableBean.findIndexedChildRecursive("column3");
                               if (columnBean != null) {
                                   System.out.println("columnBean");
                                   OASortableHeaderBean colHeaderBean =
                                       (OASortableHeaderBean)columnBean.getColumnHeader();
                                   if (colHeaderBean != null) {
                                       System.out.println("colHeaderBean");
                                       colHeaderBean.setText("Segment3");

    You can try 2 options:
    1. Try to call pageContext.forwardImmediatlytoCurrentPage();
    2. Try yo set a vo attribute to the columnbean text property and set the vo attribute programmatically. (I have not tried this but I think it should work)
    Cheers
    AJ

  • Plz help  for set focus in the table column

    hi
    I have aproblem like i want that when i click on submit button aftr filling tables column value if there is any error the error massage displaying after that click on masaage ok button get focus of my cursor on the same column where i was not fill any value .
    i am giving a piece of code also with this also
    thanks in advance
    else if(!checkResources())//check if all resource brackets are set
    JOptionPane.showMessageDialog(this, "Resource Brackets are not correct or complete." , "Error", JOptionPane.OK_OPTION);
                   //resourceTable.requestFocus(true);
              return;
    private boolean checkResources()
    try
                   float number = -999999999.0F;
              float[] lowerRange = new float[ resourceModel.getRowCount()];
              float[] upperRange = new float[ resourceModel.getRowCount()];
              allResource.setVisible(false);
              overlapRes.setVisible(false);
              for( int i =0; i< resourceModel.getRowCount(); i++)
                   if(((Boolean)resourceModel.getValueAt(i,4)).booleanValue())
                        lowerRange[i] = -999999999.0F;
                   else
                        lowerRange[i] = ((Float)resourceModel.getValueAt(i,2)).floatValue();
                   if(((Boolean)resourceModel.getValueAt(i,5)).booleanValue())
                        upperRange[i] = 999999999.0F;
                   else
                        upperRange[i] = ((Float)resourceModel.getValueAt(i,3)).floatValue();
              for(int i =0; i<lowerRange.length-1 ; i++)
              {     int temp =i;
                   for(int j= i+1; j<lowerRange.length; j++)
                   {     if(lowerRange[temp] > lowerRange[j])
                             temp = j;
                        else if(lowerRange[temp] == lowerRange[j])
                             if(upperRange[temp] > upperRange[j])
                                  temp = j;
                   if(temp != i)
                   {     float swapt = lowerRange[i];
                        lowerRange[i] =lowerRange[temp];
                        lowerRange[temp] = swapt;
                        swapt = upperRange;
                        upperRange[i] =upperRange[temp];
                        upperRange[temp] = swapt;
              for(int i=0; i<lowerRange.length; i++)
              {     if(lowerRange[i] != number )
                   {     if(lowerRange[i] < number)
                             overlapRes.setVisible(true);
                        else
                             allResource.setVisible(true);
                        return false;
                   number = upperRange[i];
    if(number != 999999999.0F)
              {     allResource.setVisible(true);
                   return false;
              return true;
    catch(Exception e)
    CAT.error("Error in checking wheather resource Bracket is complete or not",e);
    return false;
    this code belongs to action perform method....
    the function for chek rong value is ritten insisde checkresources() function
    plz help

    plz help ASAP

  • Need code example for dynamicly changing UI Propertey

    Hello,
    Can someone show me a simple code example that does the following:
    A view which contains a button and a label.
    Each press on the button changes the color (or other visible property) of the label.
    But note: Don't bind the property to the Context for that, I want to do it through the doModifyView method.

    hi Roy Cohen,
    I think u r not looking for the visibility property they have mentioned.
    I think u r looking for a procedure to change the way the element looks..is it..
    The problem is if u want any change to be visible when the button is pressed u can only change the length or the width.There is no option to change the semantic color or whatever.
    To change the size u can try this code
    IWDInputField in = (IWDInputField)view.getElement("<element name>");
    in.setWidth(some value which is set when the button is pressed);
    Is this wat u r looking for?
    Jus mention it if there is something  else.
    Regards
    Bharathwaj

  • Modifying alternate text for links / changing tags?

    I found this page:
    http://help.adobe.com/en_US/Acrobat/9.0/Professional/WS58a04a822e3e50102bd615109794195ff-7 ce8.w.html
    But I don't quite understand it.  I have links in my document that I need to be accessible.  The above-referenced page talks about modifying the tags tree.  Is that what I can see when I click on Show Order Panel in the TouchUp Reading Order window?
    If so, it just looks like a big scary mess to me.  There are so many tags I don't know where to start (this is a software manual so there are sometimes 20+ tags per page).  If that isn't what I'm supposed to be editing, what is?
    I would really appreciate it if someone could explain to me, in simple terms, exactly what to do.  When I go into the Tags section of the Show Order Panel the items marked <link> don't have any indication of what they are or where they go, so I don't know which link I am editing!
    Thanks in advance for any assistance!
    Jenn

    If you upgrade to iWeb '08 or '09, you'll get this panel in the Inspector's Link tab:

  • IDoc for  -Schedule Changing of Material- Table PCDPOS and / PCDHDR

    Hi Experts,
    i have an very big Problem. I have to find a way to transfer Change Master Data to a target system. I am not talking about ECMMAS. I need the Content of an future change in my target system.
    MATMAS only distributes the current Material Status. But not the future status, which is the on I needed. E.g. Use TA CC03 and enter a change master number and select one of the objects. Here you can see the Material Master how it looks "in future" and this is the view i need to send from my source to my target system. Has anybody an idea, how i can do this?
    Big Thanks in Advance
    Udo

    Hi Rahul,
    For that classification data fields
    there is no change log option checked in the data element level.
    or there is no associated changelog class.
    check in <b>SCDO</b> transaction for change log class.
    Regards
    vijay

  • Search for all words in a table column that any of the words start with a certain letter

    I have products table. Each row has a Description which may have a few words within it. I wanted to know if it's possible to search through it and find all descriptions that have match the search. But, I want it to consider it a match even if it's not the
    first word of the description, but rather the start of any word in the description.
    For example:
    Descriptions
    Nice Casual Gloves(This should show up, and although it's not in the very beginning of the description it's at the beginning of a new word.)
    Nice Dressy Gloves(This should show up, and although it's not in the very beginning of the description it's at the beginning of a new word.)
    Great Dresses (This should show up)
    Fancy Outerwear
    Glasses (This should show up)
    Shoes
    Sheer Stockings (This should not show up because although it has a "g" it's not in the beginning of a word.)
    Boots
    Galoshes (This should show up)
    I would want to search within this list Where Description like 'G%' but I don't want it to only get the descriptions that start with "g" at the beginning of the description, but rather any "g" at the beginning of any word. I do not want
    to get all descriptions that have a "g" somewhere in the word (then I could just do WHERE DESCRIPTION LIKE '%g%'), rather only if it somewhere within the description but at the beginning of any word.
    Thank you so much
    Debra has a question

    The most perfect solution would be to get a CLR routine to either (a) Do a regular expression match, (b) Run a split routine at CLR speeds then do a simple LIKE, or (c) both (a) and (b).  If your requirements grow to handle more and more complex searches,
    you may have to do it that way eventually.
    However, like the other answers, here's a way to do it reasonably well given your current requirements.  You may have to tweak the REPLACE logic if you have frequent OTHER forms of word delimiters.
    Method:  Pull data; add space before and after original text; replace all common word separators other than space with a space (so for example, "(These pretzels)", "He said 'These pretzels are making me thirsty" and so forth would
    be replaced with a space before "The"; then do a Patindex (you could do with just a LIKE also) on the search string prefaced with a space.  Here's an example, stealing from table sys.messages just for ease of demonstration.
    With SampleData as
    Select top 100 *
    , ' ' + Replace(Replace(Replace(Replace(text, '"', ' '), '''', ' '), '/', ' '), '(', ' ') + ' ' as TextPlus
    from sys.messages
    where language_id = 1033
    Select TextPlus
    , patindex('% The%', textplus)
    from SampleData
    where patindex('% The%', textplus) > 1
    Same logic, in the most concise format:
    Select top 100 Text
    from sys.messages
    where language_id = 1033
    and ' ' + Replace(Replace(Replace(Replace(text, '"', ' '), '''', ' '), '/', ' '), '(', ' ') + ' ' like '% the%'

  • How to write lead selection method for a  tree by nesting table column

    Hi,
    I have implemented a table with TreeByNestingTableColumn(To show the tree structure in the table).I am not able to get the selected row element in lead selection method.(I am able to get parent element.) .
    could anyone please tell me about this code?
    BR,
    Ashish

    Hi,
    Follow the below steps to the solution for your problem
    1. Create Action "LeadSelection" in View with parameter (name : 'seletedItem'
    and type : I<your node>Element
    2. Bind this action to Table property "onLeadSelec"
    3. In wdModify()
         IWDTable table = (IWDTable) view.getElement("Your table id");
         table.mappingOfOnLeadSelect().addSourceMapping("nodeElement", "selectedEle");
    4. In onActionLeadSelection()
         wdComponentAPI.getMessageManager().reportSuccess("Selected Item : "+selectedEle.get<Your Node Attribute>());
    Let me know if you need more clarification
    Thanks

  • How to save and retrive table column values added via view enhancement

    Hi,
    I want to enhance standard webdynpro component FITE_VC_REVIEW.
    I want to add new column to Fight Info Table and also to Hotel Info table.I can do UI changes via view enhancement .
    First Approach: I add new fields to Flight Info and Hotel Info structure.
    Create an additional Coolum in Flight Info and Hotel Info Table and Bind it to newly created field in structures.
    Question :
    What all changes I have to make to save and retrieve values from database table.
    Kindly guide with Steps
    Second Approach: I create a new table/structure for my requirement and bind table column to these fields.
    Question:
    What all changes I have to make to save and retrieve values from database table.
    Kindly guide with Steps
    And which approach will be good.
    Regards,
    Madhvika

    no ans yet

  • How to save and retrieve table column values added via view enhancement

    Hi,
    I want to enhance standard webdynpro component FITE_VC_REVIEW.
    I want to add new column to Fight Info Table and also to Hotel Info table.
    First Approach: I add new fields to Flight Info and Hotel Info structure.
    Create an additional Coolum in Flight Info and Hotel Info Table and Bind it to newly created field in structures.
    Question
    What all changes I have to make to save and retrieve values from database table.
    Kindly guide with Steps
    Second Approach: I create a new table/structure for my requirement and bind table column to these fields.
    Question:
    What all changes I have to make to save and retrieve values from database table.
    Kindly guide with Steps
    And which approach will be good.
    Regards,
    Madhvika
    Moderator message: please have a look in the dedicated "Web Dynpro ABAP" forum.
    Edited by: Thomas Zloch on Feb 16, 2011 3:02 PM

    no ans yet

  • Modify Table column data type

    Dear All,
    We have one user contains more than 100 tables(Production). I need to change some of table columns data types without affect data's.
    Please suggest me to do that.
    Thanks in advance,
    Moorthy.GS

    Dear Sybrand,
    Thanks for your reply.
    I tried below ways to modify the datatypes.
    1) Tried to modify datatype FLOAT to NUMBER while data is persists.
    2) Tried to take a export of that user and import the dump without data's and modify the datatype. After that, i tried to import the dump with rows=y option. But it failed due to constraint problems.
    Please advise...
    Cheers,
    Moorthy.GS

  • Frame 9 solution for table column + side head does not work in Frame 10 and 11

    In Frame 9 structured (DITA) we could force Frame to record the actual widths of table columns in the DITA XML.  Frame 9 would respect the widths when opening the file.  This was particularly useful for forcing tables to be wide -- to go across the column and the side head -- and for the columns to never resize. 
    In Frame 9 this was done by commenting out the line
    "writer use proportional widths;" 
    like this
    "/* writer use proportional widths; */"
    in the topic.rules.text" file located in
    "...\FrameMaker9\Structure\xml\DITA\app\DITA-Topic-FM"
    This no longer works in Frame10 and Frame 11.  Even though the same line is commented out in all the "NAME.rules.txt" files in all the subdirectories of
        "...\AdobeFrameMaker11\Structure\xml\DITA_1.2\app"
    and
        "...\AdobeFrameMaker11\Structure\xml\DITA\app"  
    and
        "...\AdobeFrameMaker10\Structure\xml\DITA_1.2\app"
    and
        "...\AdobeFrameMaker10\Structure\xml\DITA\app"  .
    Commenting out the line does force Frame 10 and 11 to record  the absolute column width (2.357" etc.) in the DITA XML.
    However, on Open,  Frame 10 and 11 force the table to fit in the column, not the column and sidehead. That is they behave as though they were still using proportional column widths.  It seems the original values (as inserted by Frame 10 and 11 before closing!) are recalculated on Open, thereby mimicking the default proportional width behavior.  
    For example, this on Save then Close from Frame 10 or 11
    <table frame = "topbot" colsep = "0" rowsep = "1">
    <tgroup cols = "4" colsep = "0" rowsep = "1" outputclass = "FormatB">
    <colspec colnum = "1" colname = "1" colwidth = "1.796in" colsep = "0"/>
    <colspec colnum = "2" colname = "2" colwidth = "1.852in" colsep = "0"/>
    <colspec colnum = "3" colname = "3" colwidth = "1.179in" colsep = "0"/>
    <colspec colnum = "4" colname = "4" colwidth = "2.152in" colsep = "0"/>
    goes to this on Open then Save: 
    <table frame = "topbot" colsep = "0" rowsep = "1">
    <tgroup cols = "4" colsep = "0" rowsep = "1" outputclass = "FormatB">
    <colspec colnum = "1" colname = "1" colwidth = "1.351in" colsep = "0"/>
    <colspec colnum = "2" colname = "2" colwidth = "1.393in" colsep = "0"/>
    <colspec colnum = "3" colname = "3" colwidth = "0.887in" colsep = "0"/>
    <colspec colnum = "4" colname = "4" colwidth = "1.618in" colsep = "0"/>
    Any help at all would be appreciated!  
    We have 8,000 to 10,000 pages to PDF in the next few days and about 33% of those pages are messed up tables!
    Message was edited by: borealforest

    Hi...
    Unfortunately, I don't have any insight into the default DITA table handling in FM10 or FM11 .. so can't give you the answer you're looking for. Since both FM10 and FM11 offer ExtendScript, you could write a script (or have one written) that processes all of your files to reset the table widths. Or, perhaps the best short term solution may be to reinstall FM9 to get the job done, then spend more time later to figure out a better solution.
    One alternative would be for you to use DITA-FMx, which supports the table/@pgwide attribute for controlling which tables span the page and which don't. Since your tables probably don't make use of this attribute, it won't help in the near term, but might make sense going forward.
    Cheers,
    Scott Prentice
    Leximation, Inc.
    www.leximation.com

  • Joining vbak to cdhdr table for document changes

    Hi Expert
    I am hanging for a week in this project please need some advice
    I want to join vbak table with cdhdr and select
    vbak.vkbur (plant) and want to show that vkbur in the internal table of it_cdhdr
    so as to select only those plant belong to vkbur so how can I join base on the below coding................
    REPORT ZCHGDOC
    NO STANDARD PAGE HEADING LINE-SIZE 120.
    WRITE: sy-title, 40 'Page', sy-pagno.
    ULINE.
    TABLES: CDHDR,
             CDPOS,
             t001w,
             "VKBUR,
             "VBELN,
             VBAK,
             VBAP.
    SELECTION-SCREEN BEGIN OF BLOCK DOCUMENT WITH FRAME TITLE TEXT-701.
    SELECTION-SCREEN END OF BLOCK DOCUMENT.
    SELECT-OPTIONS:
                     V1 FOR VBAK-VKBUR,
                     S_WERKS for T001W-werks,
                     objectid for  cdhdr-objectid,
                     udate for cdhdr-udate.
    PARAMETER: USERNAME LIKE CDHDR-USERNAME.
    DATA: BEGIN OF IT_VBAP OCCURS 0,
             OBJECTCLAS LIKE CDHDR-OBJECTCLAS,
             OBJECTID LIKE CDHDR-OBJECTID,
             VBELN LIKE VBAP-VBELN,
              END OF IT_VBAP.
    DATA: BEGIN OF IT_CDHDR OCCURS 0,
             OBJECTCLAS LIKE CDHDR-OBJECTCLAS,
             OBJECTID LIKE CDHDR-OBJECTID,
             CHANGENR LIKE CDHDR-CHANGENR,
             USERNAME LIKE CDHDR-USERNAME,
             UDATE LIKE CDHDR-UDATE,
             UTIME LIKE CDHDR-UTIME,
             FNAME LIKE CDPOS-FNAME,
             TABNAME LIKE CDPOS-TABNAME,
             TABKEY LIKE CDPOS-TABKEY,
             VALUE_NEW LIKE CDPOS-VALUE_NEW,
             VALUE_OLD LIKE CDPOS-VALUE_OLD,
    END OF IT_CDHDR.
    DATA: WA LIKE LINE OF IT_CDHDR.
    DATA: WA LIKE LINE OF IT_CDPOS.
    DATA: BEGIN OF IT_CDPOS OCCURS 0,
             OBJECTCLAS LIKE CDHDR-OBJECTCLAS,
             OBJECTID LIKE CDHDR-OBJECTID,
             CHANGENR LIKE CDHDR-CHANGENR,
             TABNAME LIKE CDPOS-TABNAME,
             TABKEY LIKE CDPOS-TABKEY,
             FNAME LIKE CDPOS-FNAME,
             VALUE_NEW LIKE CDPOS-VALUE_NEW,
             VALUE_OLD LIKE CDPOS-VALUE_OLD,
    END OF IT_CDPOS.
    Move-corresponding it_cdhdr to wa.
    Move-corresponding it_cdpos to wa.
    SELECT OBJECTCLAS
            OBJECTID
            CHANGENR
            USERNAME
            UDATE
            UTIME FROM CDHDR
            INTO CORRESPONDING FIELDS OF TABLE IT_CDHDR
    WHERE OBJECTCLAS = 'VERKBELEG' or
          objectclas = 'BETRIEB'
          ORDER BY UDATE.
    WHERE OBJECTCLAS = 'VERKBELEG'
    OR OBJECTCLAS = 'BETRIEB' ORDER BY UDATE.
    Filter data based upon Plant selection criteria.
    IF NOT S_WERKS[] IS INITIAL.
    DELETE IT_CDHDR WHERE NOT OBJECTID IN S_WERKS.
    ENDIF.
    IF IT_CDHDR[] IS NOT INITIAL.
       SELECT OBJECTCLAS
              OBJECTID
              CHANGENR
              VALUE_NEW
              VALUE_OLD
              FNAME
              TABNAME
              TABKEY
              FROM CDPOS
              INTO CORRESPONDING FIELDS OF TABLE IT_CDPOS
              FOR ALL ENTRIES IN IT_CDHDR
              WHERE
              OBJECTCLAS = IT_CDHDR-OBJECTCLAS
              AND OBJECTID = IT_CDHDR-OBJECTID
              AND CHANGENR = IT_CDHDR-CHANGENR.
              "or tabname = 'VBAP'.
       SORT IT_CDPOS BY OBJECTCLAS OBJECTID CHANGENR.
    ENDIF.
    Add tables CDPOS DATA TO CDHDR.
    DATA: INDEX TYPE i.
    LOOP AT IT_CDHDR.
       INDEX = SY-TABIX.
       READ TABLE IT_CDPOS WITH KEY OBJECTCLAS = IT_CDHDR-OBJECTCLAS
       OBJECTID = IT_CDHDR-OBJECTID
       CHANGENR = IT_CDHDR-CHANGENR BINARY SEARCH.
       IF SY-SUBRC = 0.
         IT_CDHDR-VALUE_NEW = IT_CDPOS-VALUE_NEW.
         IT_CDHDR-VALUE_OLD = IT_CDPOS-VALUE_OLD.
         MODIFY IT_CDHDR INDEX index TRANSPORTING value_new value_old.
       ENDIF.
       WRITE:/ SY-DATUM,SY-UZEIT,
              50 'DOCUMENT CHANGE REPORT',
             80 'Page', SY-PAGNO,
    "  WRITE: / SY-REPID
              50 'DETAIL REPORT BY PLANT '.
       SKIP.
       ULINE.
    *& T O P - O F - P A G E *
    WRITE:/ 'UDATE:' ,SY-DATUM.
    FORMAT COLOR 4 INTENSIFIED on.
    Write: /35                           ' DOCUMENT CHANGES REPORT '.
       WRITE: /5 'DOCUMENT-NO'.
    20 'TABNAME', 30 'TEXT_CASE', 50 'FNAME'.
       WRITE: /5 'DATE',  20 'FNAME', 45 'CHANGE-NO',65 'OLD-VALUE',80 'NEW-VALUE',95 'USER-NAME'.
       ULINE.
       LOOP AT IT_CDHDR INTO WA.
       on change of wa-objectid.
       Write: / wa-objectid UNDER'DOCUMENT-NO' ."color col_key.
       ENDON.
    ULINE.
         " CDPOS-tabname UNDER'TABNAME', CDPOS-TEXT_CASE UNDER'TEXT_CASE',CDPOS-fname UNDER'FNAME'. "color col_key ,
         write: / wa-udate dd/mm/yyyy under'DATE' NO-GAP,wa-fname under'FNAME' NO-GAP,wa-changenr under 'CHANGE-NO',
         wa-value_old under'OLD-VALUE' LEFT-JUSTIFIED NO-GAP,
         wa-value_new under'NEW-VALUE' LEFT-JUSTIFIED NO-GAP ,wa-username under'USER-NAME' NO-GAP.
    ENDON.
    Move-corresponding it_cdhdr to wa.
    *Write: / wa-objectid UNDER'DOCUMENT-NO' "color col_key.
    *" CDPOS-tabname UNDER'TABNAME', CDPOS-TEXT_CASE UNDER'TEXT_CASE',CDPOS-fname UNDER'FNAME'. "color col_key ,
    *write: / wa-udate dd/mm/yyyy under'DATE' NO-GAP,wa-utime under'TIME' NO-GAP,wa-changenr under 'CHANGE-NO',
    ltrim(wa-value_old) under'OLD-VALUE' NO-GAP,
    *wa-value_new under'NEW-VALUE' NO-GAP ,wa-username under'USER-NAME' NO-GAP.
       ENDLOOP.
    ENDLOOP.

    Hai everybody.
    I am new to this forum. i got a job in abap recently. The below is my requirement.I want solution for this one. Anybody plz help me.
    The change logs were captured in DBTABLOG for table ZWPRFRUND (in transaction ZWPG).
    The only report which is currently used to get the change logs is RSVTPROT
    Now my requirement is,
    we need to display the change logs in the form of ALV.
    We should divert the changes to CDHDR table instead of DBTABLOG, then we can use the RSSCD100 to display change logs.
    The Important items for the change LOG needed in case of changes to table in “ZWPG” are,DATE ,TIME,USER,FIRST NAME,FILED NAME,OLD VALUE,NEW VALUE
    The above fields need to be displayed in the grid. In the above list “FIELD NAME” denotes any field of the table in the transaction in “ZWPG”
    Thanks & Regards,
    Sujatha.T.

Maybe you are looking for

  • Return/Exchange

    I exchanged my Macbook Pro Retina for an iMac yesterday 02/14/2015 and not only did the iMac go on sale (per the website) they did not give me my student discount of $50.00. The young lady at the register said the coupon didn't work, but obviously it

  • How to back up itunes from disk one to disk two on drobo...

    I have my whole itunes library on external drobo first as I call the first disk in my drobo system. Nothing on my computer. Now I use superduper to make a daily backup from computer to drobo, but since my itunes folder on computer is empty, it does n

  • World of Warcraft: Mists of Pandaria Developer Chat Transcript

    Transcript for Chat: 'Live Chat: WoW Mists of Pandaria', Tue Sep 18 18:04:25 CDT 2012 Zarhym: Hello, all, and welcome to the World of Warcraft: Mists of Pandaria Developer Chat, presented by Best Buy! Blizzard community manager Crithto and I will be

  • Installing student/teacher edition of CS5

    Earier today, I tried to used the link www.adobe.com/go/edu-validate to obtain my serial number for my student CS5. The link was slow and did not seem to work, but now it works, but the computer says that it is an unsafe link. what should I do?

  • ERROR line 39, col 10, ending_line 39, ending_col 18, Found 'immediate', Ex

    Hi, Does anyone has an idea for this problem? exec immediate 'select * from sch.jb_'||TRIM(p_type) ||'my_vs where Z'||trim(p_type)||'no=:1' using p_my_id; ERROR line 39, col 10, ending_line 39, ending_col 18, Found 'immediate', Expecting: ; -or- := -