Skip to Content
author's profile photo Former Member
Former Member

Table control on ITS need to design

Hi,

Can anybody let me know how to create Table Control on ITS Template ?

I need to create one Table control in ITS template in internet service .

With this i also need to transfer OK code in SAPGUI .

I have created Table contol in SAP gui and want to display on ITS Template .

I have internal table which i want to show on ITS .

any help will be appreciated .

Thanks,

SS

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Mar 23, 2007 at 11:45 AM

    Hi,

    ITS template for table control looks like that:

    On the top of the page you load main services like wpintegration.html or any JavaScript files.

    I have table control with name TC_PERSONAREA and sctucture GS_PERSONAREA.

    You must add a loop statement for all values in table.

    <!-- Start: Responsible persons (template 9000) -->
    <html>
    <head>
    `include (~service="bbpglobal", ~name="WpIntegration.html" )`
    <script language="JavaScript" src="`mimeURL(~service="bbpglobal", ~language="", ~name="script/bbpscript.js")`">
    </script>
    `include (~service="bbpglobal", ~name="bbpfunctions.html")` 
    <title>`~windowtitle`</title>
      `Stylesheet()`
      `ApplicationTitle()`
    
    `BBPGroupBegin()`
      `emptyLinesGroup = 0`
    
    <!--`TABLE(class="list", title=TC_PERSONAREA.title)` -->
    
      `TABLE(class="list", title=#PERSONAREA)`
        `TR(tableName=TC_PERSONAREA.title)`
        `if(GS_PERSONLIST-BNAME.dim == 0)`
          `TR()`
            `TD(active="")``#EMPTY_PERSON_AREA_9000`
        `else`
          `TR(class="heading")`
            `TD(content=#PERSONAREA_ASSIGN)`
            `TD(content=TC_PERSONAREA-column[1].title)`
            `TD(content=TC_PERSONAREA-column[2].title)`
    	
          `repeat with j from TC_PERSONAREA.firstvisible to TC_PERSONAREA.lastvisible`
            `if(GS_PERSONLIST-BNAME[j].value != "")`
    
              `TR()`
    
                `TD(align="center")`
                  <input type="hidden"   name="TC_PERSONAREA-rowselect[`j`]" VALUE=" ">
                  <!-- <input type="checkbox" name="TC_PERSONAREA-rowselect[`j`]" value="x" `if(TC_PERSONAREA-rowselect[j].selected)` checked `end`> -->
    		 <input type="radio" name="TC_PERSONAREA-rowselect" value="`j`" `if(TC_PERSONAREA-rowselect[j].selected)` checked `end`>
                  `if (GS_PERSONLIST-BNAME[j].value != "")`
                     `tooltip = GS_PERSONLIST-BNAME[j].value`
                  `else`
                     `tooltip = ""`
                  `end`                          
    
                  `if (GS_PERSONLIST-BNAME[j].value != "" && GS_PERSONLIST-BNAME[j].value != "")`
                    `TD(title=tooltip)`
    			 `GS_PERSONLIST-BNAME[j].value`
                  `else`
                    `TD(title=tooltip, active="")`
    			`GS_PERSONLIST-BNAME[j].value`
                  `end`
    
                `TD(active="")` `GS_PERSONLIST-F_NAME[j].value` 
    
            `else`
               `emptyLinesGroup = emptyLinesGroup + 1`
            `end`
          `end`      
        `end`
    
      `endTABLE()`
    
      `BBPVSpace()`
    
      <table cellspacing="0" cellpadding="0" border="0" width="100%">
        <tr>
          <td tabindex="0" align="left" nowrap>
            `if(GS_PERSONLIST-BNAME.dim == 0)`
              `BBPButtonBegin()`
              `BBPDisabledButton(RESP_PER_SAVE_BUTTON.label)`
    	`BBPButtonSpace()`
    	`BBPDisabledButton(RESP_PER_BACK_BUTTON.label)`
    	`BBPButtonEnd()`
    	`BBPVSpace()`
            `else`
              `BBPButtonBegin()`
              `BBPButton(RESP_PER_SAVE_BUTTON.okcode,RESP_PER_SAVE_BUTTON.label)`
    	`BBPButtonSpace()`
    	`BBPButton(RESP_PER_BACK_BUTTON.okcode,RESP_PER_BACK_BUTTON.label)`
    	`BBPButtonEnd()`
            `end`
          </td>
          `if((TC_PERSONAREA.firstvisible > 1 ) || (TC_PERSONAREA.lastvisible < TC_PERSONAREA.rowcount))`
            <td  tabindex="0" align="right" valign="middle">
              `BBPTCNavigation("TC_PERSONAREA", emptyLinesGroup)`
            </td>
          `end`
        </tr>
      </table>
    
    `BBPGroupEnd()`
    

    Regards,

    Marcin

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Marcin,

      Browsing through the internet, I found only ur post helpful for putting up Table Control in ITS HTML templates.

      My requirement is like :

      in a bar code scanner, I have to provide a Table in edit mode, where a set of bar codes gets captured in each line item for a particular material (multiple barcodes for each material comprising different data viz. batch name, quantity, shelf life, etc).

      while generating the template for the Table control screen, it gives a warning :

      Element type TC_MAKT not supported. Element TABLE, screen:

      ZDISCO_ITS_GRN_SCANNER 5006

      Message no. ITS_GENERATE_TEMPL106

      any inputs ??

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.