Skip to Content
avatar image
Former Member

How to declare & Use Array in ITS Template

Hi,

I am transporting one internal table to ITS .

I need to show all values of internal table using array .

<b>Can anybody let me know how to declare and use array in ITS Programming ?</b>

Help will be appreciated.

Thanks,

SS

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Apr 16, 2007 at 01:05 PM

    Hi,

    Is there any idea for that ?

    Thanks,

    SS

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 16, 2007 at 02:35 PM

    Hi

    Which SRM version are you using ? What is your business requirement ?

    
    *---------------------------------------------------------------------------------------------*
    *--- Using Internal Table - Arrays option in ITS / HTML Programming
    *---------------------------------------------------------------------------------------------*
    
    *-------------------------------------------------------------------------------------------*
    `repeat with j from TC_1000.firstvisible to TC_1000.lastvisible`
      `if ((T_SCREEN_ACCLIST-ACC_NO[j].value != "0") && (T_SCREEN_ACCLIST-ACC_NO[j].value != ""))`
            
           `TR()`
           `TD(nowrap="X",align="right")` 
           <a href="JavaScript: document.`bbpformname`.SEL_ACC_NO.value='`T_SCREEN_ACCLIST-ACC_NO[j].value`';SetOkCode('ACCDET','`bbpformname`','','');" onmouseover="status=' ';return true;"  onmouseout="status=' ';" 
           alt="`BBP_TEXT_GLOBAL-DETAIL.label``CreateSeperator()``T_SCREEN_ACCLIST-ACC_NO[j].value`" title="`BBP_TEXT_GLOBAL-DETAIL.label``CreateSeperator()``T_SCREEN_ACCLIST-ACC_NO[j].value`">
           `T_SCREEN_ACCLIST-ACC_NO[j].value`</a>               
    
           `TD(align="right", nowrap="X")`
    
           `if (GV_DIST_IND == "")`
             `if (T_SCREEN_ACCLIST-DISTR_PERC[j].disabled)` 
                <span `if(~accessibility == "1")` tabindex="0" `end`> `T_SCREEN_ACCLIST-DISTR_PERC[j].value` </span>
                 <input type=hidden name="`T_SCREEN_ACCLIST-DISTR_PERC[j].name`" value="`T_SCREEN_ACCLIST-DISTR_PERC[j].value`">
             `else`
                <input type=text name="`T_SCREEN_ACCLIST-DISTR_PERC[j].name`" value="`T_SCREEN_ACCLIST-DISTR_PERC[j].value`" maxlength="6" size="6">
             `end`
           `end`
    
    *---------------------------------------------------------------------------------------------*
    *--- Using Drop-down option in ITS / HTML Programming
    *---------------------------------------------------------------------------------------------*
              <select id="`#DEST.value`" name="`GV_DIST_IND.name`" size=0  OnChange="change_selection(this.options[this.selectedIndex].value)">
                `repeat with i from 1 to DBOXV.dim` 
                  `if (GV_DIST_IND == DBOXV<i>)`
                    <option value="`DBOXV<i>`" selected>  `DBOX<i>`
                  `else` 
                    <option value="`DBOXV<i>`"> `DBOX<i>`  
                  `end`
    
    *-----------------------------------------------------------------------*

    Some other links to refer as well ->

    Tutorial: Implementing Web Applications using ITS Programminghttp://help.sap.com/saphelp_nw2004s/helpdata/en/59/08d752ccd611d3963400a0c94260a5/frameset.htm

    http://help.sap.com/saphelp_nw2004s/helpdata/en/95/93fe1e71a2e44691b1f041e67f71aa/frameset.htm>

    Do let me know.

    Regards

    - Atul

    Add comment
    10|10000 characters needed characters exceeded