<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ABAP Tutorials &#187; maintenance view</title>
	<atom:link href="http://www.abap-tutorials.com/tag/maintenance-view/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.abap-tutorials.com</link>
	<description>ABAP Tutorials, Guides, Training, Manuals</description>
	<lastBuildDate>Thu, 17 Nov 2011 07:43:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>ABAP Program for Table Maintenance in SAP</title>
		<link>http://www.abap-tutorials.com/2009/09/16/abap-program-for-table-maintenance-in-sap/</link>
		<comments>http://www.abap-tutorials.com/2009/09/16/abap-program-for-table-maintenance-in-sap/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 06:24:52 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[ABAP]]></category>
		<category><![CDATA[DDIC]]></category>
		<category><![CDATA[Function Modules]]></category>
		<category><![CDATA[Quick Reference]]></category>
		<category><![CDATA[Sample Code]]></category>
		<category><![CDATA[SAP]]></category>
		<category><![CDATA[Utility]]></category>
		<category><![CDATA[maintenance]]></category>
		<category><![CDATA[maintenance view]]></category>
		<category><![CDATA[table]]></category>
		<category><![CDATA[table maintenance]]></category>
		<category><![CDATA[view]]></category>
		<category><![CDATA[view maintenance]]></category>

		<guid isPermaLink="false">http://www.abap-tutorials.com/?p=963</guid>
		<description><![CDATA[It is a good sample of how to create dynamic table maintenance by utilized SAP function module &#8220;STC1_FULLSCREEN_TABLE_CONTROL&#8221;. You can use it to replace funtion of SM30/SM31 with additional benefit. 1. Because it is written in as customer program we can add additional feature, for example change history. 2. There is no need to create [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">It is a good sample of how to create dynamic table maintenance by utilized SAP function module &#8220;STC1_FULLSCREEN_TABLE_CONTROL&#8221;.</p>
<p style="text-align: justify;">You can use it to replace funtion of SM30/SM31 with additional benefit.<br />
1. Because it is written in as customer program we can add additional feature, for example change history.<br />
2. There is no need to create screen maintenance for all table because screen will automatically generated.</p>
<div style="width: 100%; float: left;"><img class="aligncenter size-full wp-image-965" title="Table View Maintenance Program" src="http://www.abap-tutorials.com/wp-content/uploads/2009/09/table_view_maintenance_program1.jpg" alt="Table View Maintenance Program" width="447" height="324" /></div>
<p style="text-align: justify;">But, remember, this is only a demonstration of how to use STC1_FULLSCREEN_TABLE_CONTROL. Use it carefully and only for customer table (Z*).</p>
<p style="text-align: justify;"><span id="more-963"></span></p>
<p style="text-align: justify;">You can also curtail the output by entering the conditions in &#8216;Filter Records&#8217; button press.</p>
<p style="text-align: center;">
<div style="width: 100%; float: left;"><img class="aligncenter size-full wp-image-966" title="Table View Maintenance Program" src="http://www.abap-tutorials.com/wp-content/uploads/2009/09/table_view_maintenance_program2.jpg" alt="Table View Maintenance Program" width="614" height="239" /></div>
<p style="text-align: justify;">
<p style="text-align: justify;">
<p style="text-align: justify;"><strong><span style="color:  #339966;">Program Code</span></strong></p>
<pre lang="ABAP">*&amp;---------------------------------------------------------------------*
*&amp; Report  ZTABLEMAINTAIN
*&amp;
*&amp;---------------------------------------------------------------------*
*&amp;
*&amp;
*&amp;---------------------------------------------------------------------*

REPORT ZTABLEMAINTAIN.

TYPE-POOLS: rsds.

DATA: is_x030l TYPE x030l,
it_dfies TYPE TABLE OF dfies,
is_dfies TYPE dfies,
it_fdiff TYPE TABLE OF field_dif,
is_fdiff TYPE field_dif.

DATA: w_selid TYPE rsdynsel-selid,
it_tables TYPE TABLE OF rsdstabs,
is_tables TYPE rsdstabs,
it_fields TYPE TABLE OF rsdsfields,
it_expr TYPE rsds_texpr,
it_ranges TYPE rsds_trange,
it_where TYPE rsds_twhere,
is_where TYPE rsds_where,
w_active TYPE i.

DATA: it_content TYPE REF TO data,
it_modif TYPE REF TO data,
it_fcat TYPE lvc_t_fcat.

DATA: w_okcode TYPE sy-ucomm.

FIELD-SYMBOLS:  TYPE STANDARD TABLE,
TYPE STANDARD TABLE.

* Macros
DEFINE table_error.
message e398(00) with 'Table' p_table &amp;1.
END-OF-DEFINITION.

DEFINE fixed_val.
is_fdiff-fieldname = is_dfies-fieldname.
is_fdiff-fixed_val = &amp;1.
is_fdiff-no_input = 'X'.
append is_fdiff to it_fdiff.
END-OF-DEFINITION.

* Selection screen
SELECTION-SCREEN: BEGIN OF BLOCK b01 WITH FRAME.
PARAMETERS: p_table TYPE tabname OBLIGATORY "table
MEMORY ID dtb
MATCHCODE OBJECT dd_dbtb_16.
SELECTION-SCREEN: BEGIN OF LINE,
PUSHBUTTON 33(20) selopt USER-COMMAND sel,
COMMENT 55(15) selcnt,
END OF LINE.
SELECTION-SCREEN: SKIP.
PARAMETERS: p_rows TYPE i. "rows
SELECTION-SCREEN: END OF BLOCK b01,
SKIP,
BEGIN OF BLOCK b02 WITH FRAME.
PARAMETERS: p_displ TYPE c AS CHECKBOX. "display
SELECTION-SCREEN: END OF BLOCK b02.

* Initialization
INITIALIZATION.
MOVE '@4G@ Filter records' TO selopt.

* PBO
AT SELECTION-SCREEN OUTPUT.
IF w_active IS INITIAL.
CLEAR: selcnt.
ELSE.
WRITE w_active TO selcnt LEFT-JUSTIFIED.
ENDIF.

* PAI
AT SELECTION-SCREEN.
IF p_table NE is_x030l-tabname.
CALL FUNCTION 'DDIF_NAMETAB_GET'
EXPORTING
tabname = p_table
IMPORTING
x030l_wa = is_x030l
TABLES
dfies_tab = it_dfies
EXCEPTIONS
OTHERS = 1.
IF is_x030l IS INITIAL.
table_error 'does not exist or is not active'.
ELSEIF is_x030l-tabtype NE 'T'.
table_error 'is not selectable'.
ELSEIF is_x030l-align NE 0.
table_error 'has alignment - cannot continue'.
ENDIF.

* Default values for system fields
REFRESH: it_fdiff.
is_fdiff-tabname = p_table.
LOOP AT it_dfies INTO is_dfies.
IF is_dfies-datatype = 'CLNT'.
fixed_val sy-mandt.
ELSEIF is_dfies-rollname = 'ERDAT'
OR is_dfies-rollname = 'ERSDA'
OR is_dfies-rollname = 'AEDAT'
OR is_dfies-rollname = 'LAEDA'.
fixed_val sy-datum.
ELSEIF is_dfies-rollname = 'ERTIM'
OR is_dfies-rollname = 'AETIM'.
fixed_val sy-uzeit.
ELSEIF is_dfies-rollname = 'ERNAM'
OR is_dfies-rollname = 'AENAM'.
fixed_val sy-uname.
ENDIF.
ENDLOOP.

* Prepare free selection on table
REFRESH it_tables.
is_tables-prim_tab = p_table.
APPEND is_tables TO it_tables.

CLEAR: w_selid.
ENDIF.

IF sy-ucomm = 'SEL'.
IF w_selid IS INITIAL.
* Init free selection dialog
CALL FUNCTION 'FREE_SELECTIONS_INIT'
EXPORTING
expressions = it_expr
IMPORTING
selection_id = w_selid
expressions = it_expr
TABLES
tables_tab = it_tables
EXCEPTIONS
OTHERS = 1.
ENDIF.

* Display free selection dialog
CALL FUNCTION 'FREE_SELECTIONS_DIALOG'
EXPORTING
selection_id = w_selid
title = 'Selection'
status = 1
as_window = 'X'
IMPORTING
expressions = it_expr
field_ranges = it_ranges
number_of_active_fields = w_active
TABLES
fields_tab = it_fields
EXCEPTIONS
OTHERS = 1.
ENDIF.

* Start of processing
START-OF-SELECTION.

PERFORM f_create_table USING p_table.

PERFORM f_select_table.

PERFORM f_display_table.

*---------------------------------------------------------------------*
* FORM f_create_table *
*---------------------------------------------------------------------*
FORM f_create_table USING in_tabname.

FIELD-SYMBOLS:  TYPE lvc_s_fcat.

CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = in_tabname
CHANGING
ct_fieldcat = it_fcat
EXCEPTIONS
OTHERS = 1.
IF sy-subrc = 0.
* Complete field catalog
LOOP AT it_fcat ASSIGNING .
-tabname = in_tabname.
ENDLOOP.
CALL FUNCTION 'LVC_FIELDCAT_COMPLETE'
CHANGING
ct_fieldcat = it_fcat
EXCEPTIONS
OTHERS = 1.
ELSE.
WRITE: 'Error building field catalog'.
STOP.
ENDIF.

* Create dynamic table for data
CALL METHOD cl_alv_table_create=&gt;create_dynamic_table
EXPORTING
it_fieldcatalog = it_fcat
IMPORTING
ep_table = it_content.
IF sy-subrc = 0.
ASSIGN it_content-&gt;* TO .
ELSE.
WRITE: 'Error creating internal table'.
STOP.
ENDIF.

* Create dynamic table for modif
CALL METHOD cl_alv_table_create=&gt;create_dynamic_table
EXPORTING
it_fieldcatalog = it_fcat
IMPORTING
ep_table = it_modif.
IF sy-subrc = 0.
ASSIGN it_modif-&gt;* TO .
ELSE.
WRITE: 'Error creating internal table'.
STOP.
ENDIF.

ENDFORM.

*---------------------------------------------------------------------*
* FORM f_select_table *
*---------------------------------------------------------------------*
FORM f_select_table.

IF w_active = 0.
SELECT * FROM (p_table)
INTO CORRESPONDING FIELDS OF TABLE
UP TO p_rows ROWS.
ELSE.
* Selection with parameters
CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_WHERE'
EXPORTING
field_ranges = it_ranges
IMPORTING
where_clauses = it_where.
READ TABLE it_where INTO is_where WITH KEY tablename = p_table.

SELECT * FROM (p_table)
INTO CORRESPONDING FIELDS OF TABLE
UP TO p_rows ROWS
WHERE (is_where-where_tab).
ENDIF.

IF sy-dbcnt = 0.
WRITE: 'No record selected'.
STOP.
ENDIF.
ENDFORM.

*---------------------------------------------------------------------*
* FORM f_display_table *
*---------------------------------------------------------------------*
FORM f_display_table.
DATA: l_answer TYPE c,
l_eflag TYPE c.

CLEAR: w_okcode.
REFRESH: .
* Display table contents
CALL FUNCTION 'STC1_FULLSCREEN_TABLE_CONTROL'
EXPORTING
header = p_table
tabname = p_table
display_only = p_displ
endless = 'X'
no_button = space
IMPORTING
okcode = w_okcode
TABLES
*nametab = it_dfies
table =
*fielddif = it_fdiff
modif_table =
EXCEPTIONS
OTHERS = 1.
IF sy-subrc = 0.
IF p_displ IS INITIAL AND w_okcode = 'SAVE'.
* Confirm update
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
titlebar = p_table
text_question = 'Do you want to update table ?'
default_button = '2'
display_cancel_button = ' '
IMPORTING
answer = l_answer
EXCEPTIONS
OTHERS = 1.
IF l_answer = '1'.
* Apply modifications
IF NOT [] IS INITIAL.
PERFORM f_add_system USING space.
MODIFY (p_table) FROM TABLE .
IF sy-subrc NE 0.
l_eflag = 'X'.
ENDIF.
ENDIF.
* Apply deletions
IF l_eflag IS INITIAL.
REFRESH: .
CALL FUNCTION 'STC1_GET_DATA'
TABLES
deleted_data =
EXCEPTIONS
OTHERS = 1.
IF NOT [] IS INITIAL.
DELETE (p_table) FROM TABLE .
IF sy-subrc NE 0.
ROLLBACK WORK.
l_eflag = 'X'.
ENDIF.
ENDIF.
ENDIF.
* Apply creations
IF l_eflag IS INITIAL.
REFRESH: .
CALL FUNCTION 'STC1_GET_DATA'
TABLES
new_data =
EXCEPTIONS
OTHERS = 1.
IF NOT [] IS INITIAL.
PERFORM f_add_system USING 'X'.
INSERT (p_table) FROM TABLE .
IF sy-subrc NE 0.
ROLLBACK WORK.
l_eflag = 'X'.
ENDIF.
ENDIF.
ENDIF.
IF l_eflag IS INITIAL.
COMMIT WORK.
MESSAGE s261(53).
ELSE.
MESSAGE s075(3i).
PERFORM f_select_table.
ENDIF.
ENDIF.
* Display table again
PERFORM f_display_table.
ENDIF.
ENDIF.

ENDFORM.

*---------------------------------------------------------------------*
* FORM f_add_system *
*---------------------------------------------------------------------*
FORM f_add_system USING new TYPE c.

FIELD-SYMBOLS:  TYPE ANY,
TYPE ANY.

LOOP AT it_fdiff INTO is_fdiff.
READ TABLE it_dfies INTO is_dfies
WITH KEY fieldname = is_fdiff-fieldname.
LOOP AT  ASSIGNING .
ASSIGN COMPONENT is_fdiff-fieldname OF STRUCTURE  TO .
IF is_dfies-datatype = 'CLNT'.
= sy-mandt.
ELSE.
CASE is_dfies-rollname.
WHEN 'AENAM'.
= sy-uname.
WHEN 'AEDAT' OR 'LAEDA'.
= sy-datum.
WHEN 'AETIM'.
= sy-uzeit.
WHEN OTHERS.
ENDCASE.
ENDIF.
ENDLOOP.
ENDLOOP.

ENDFORM.</pre>
<p><strong><span style="color: #339966;">Output</span></strong><br />
<strong> </strong></p>
<p><strong></p>
<div style="width: 100%; float: left;"><img class="aligncenter size-full wp-image-973" title="Table View Maintenance Program" src="http://www.abap-tutorials.com/wp-content/uploads/2009/09/table_view_maintenance_program3.jpg" alt="Table View Maintenance Program" width="614" height="445" /></div>
<p></strong></p>


<p>You might also be interested in these posts:<ol><li><a href='http://www.abap-tutorials.com/2009/07/27/embed-view-in-program/' rel='bookmark' title='Embed SAP View in an ABAP Program'>Embed SAP View in an ABAP Program</a></li>
<li><a href='http://www.abap-tutorials.com/2009/07/17/assign-a-t-code-to-maintenance-view/' rel='bookmark' title='Assign a T-code to Maintenance View in SAP'>Assign a T-code to Maintenance View in SAP</a></li>
<li><a href='http://www.abap-tutorials.com/2009/10/15/date-formatting-for-display-in-abap-program/' rel='bookmark' title='Date formatting for Display in ABAP Program'>Date formatting for Display in ABAP Program</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.abap-tutorials.com/2009/09/16/abap-program-for-table-maintenance-in-sap/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Embed SAP View in an ABAP Program</title>
		<link>http://www.abap-tutorials.com/2009/07/27/embed-view-in-program/</link>
		<comments>http://www.abap-tutorials.com/2009/07/27/embed-view-in-program/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 23:23:42 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[ABAP]]></category>
		<category><![CDATA[DDIC]]></category>
		<category><![CDATA[Function Modules]]></category>
		<category><![CDATA[Quick Reference]]></category>
		<category><![CDATA[Sample Code]]></category>
		<category><![CDATA[embed]]></category>
		<category><![CDATA[maintenance view]]></category>
		<category><![CDATA[SAP]]></category>
		<category><![CDATA[view]]></category>
		<category><![CDATA[views]]></category>

		<guid isPermaLink="false">http://naveenvishal.wordpress.com/?p=472</guid>
		<description><![CDATA[We can also embed View of a Table in a program. SAP have provided a set of standard function modules for achieving the goal and by passing the initial values required to do this, we can accomplish that. In this example, we will use the function module SE16N_INTERFACE to call the new standard table display.   [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">We can also embed View of a Table in a program. SAP have provided a set of standard function modules for achieving the goal and by passing the initial values required to do this, we can accomplish that.</p>
<p style="text-align:justify;">In this example, we will use the function module SE16N_INTERFACE to call the new standard table display.</p>
<p style="text-align:justify;"> </p>
<div class="mceTemp mceIEcenter" style="text-align:justify;">
<dl class="wp-caption aligncenter">
<dt class="wp-caption-dt"><img class="size-full wp-image-493" title="Embed View in Program" src="http://naveenvishal.files.wordpress.com/2009/07/view_in_program.jpg" alt="Embed View in Program" width="450" height="326" /></dt>
<dd class="wp-caption-dd">Embed View in Program</dd>
</dl>
</div>
<p style="text-align:justify;"> </p>
<p style="text-align:justify;"><span id="more-472"></span></p>
<p style="text-align:justify;"><strong>Program code:</strong></p>
<p style="text-align:justify;"><span style="color:#3366ff;">*&amp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*<br />
*&amp; Call the SE16n with the Selection from report                             *<br />
*&amp;                                                                                                                   *<br />
*&amp;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*</span></p>
<p style="text-align:justify;">REPORT  ztest_tmp.</p>
<p style="text-align:justify;">START-OF-SELECTION.</p>
<p style="text-align:justify;"><span style="color:#3366ff;">* data declaration for the FM<br />
<span style="color:#000000;">DATA: l_tab      TYPE se16n_tab,<br />
t_sel      TYPE se16n_or_t,<br />
la_sel     LIKE LINE OF t_sel,<br />
t_sel_tab  TYPE se16n_or_seltab_t,<br />
la_sel_tab LIKE LINE OF t_sel_tab.</span></span></p>
<p style="text-align:justify;"><span style="color:#3366ff;">* Table name<br />
<span style="color:#000000;">l_tab = &#8216;VBAK&#8217;.</span></span></p>
<p style="text-align:justify;"><span style="color:#3366ff;">* Selection for VBELN<br />
<span style="color:#000000;">la_sel_tab-field   = &#8216;VBELN&#8217;.<br />
la_sel_tab-sign    = &#8216;I&#8217;.<br />
la_sel_tab-option  = &#8216;BT&#8217;.<br />
la_sel_tab-low     = &#8217;0000001000&#8242;.<br />
la_sel_tab-high    = &#8217;0000002000 &#8216;.<br />
APPEND la_sel_tab TO t_sel_tab.</span></span></p>
<p style="text-align:justify;"><span style="color:#3366ff;">* Selection for ERDAT<br />
<span style="color:#000000;">la_sel_tab-field   = &#8216;ERDAT&#8217;.<br />
la_sel_tab-sign    = &#8216;I&#8217;.<br />
la_sel_tab-option  = &#8216;BT&#8217;.<br />
la_sel_tab-low     = &#8217;20081001&#8242;.<br />
la_sel_tab-high    = sy-datum.<br />
APPEND la_sel_tab TO t_sel_tab.</span></span></p>
<p style="text-align:justify;"><span style="color:#3366ff;">* Fill the main selection table<br />
<span style="color:#000000;">la_sel-pos = 1.<br />
la_sel-seltab = t_sel_tab.<br />
APPEND la_sel TO t_sel.</span></span></p>
<p style="text-align:justify;"><span style="color:#3366ff;">* Function module for the SE16N<br />
</span></p>
<p style="text-align:justify;">CALL FUNCTION &#8216;SE16N_INTERFACE&#8217;</p>
<p style="text-align:justify;">EXPORTING<br />
i_tab                  = l_tab<br />
i_clnt_dep             = &#8216;X&#8217;</p>
<p style="text-align:justify;">TABLES<br />
<span style="color:#3366ff;"> *     IT_OUTPUT_FIELDS       =</span><br />
it_or_selfields        = t_sel</p>
<p style="text-align:justify;">EXCEPTIONS<br />
no_values              = 1<br />
OTHERS                 = 2</p>
<p style="text-align:justify;">.</p>
<p style="text-align:justify;">IF sy-subrc &lt;&gt; 0.</p>
<p style="text-align:justify;">MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno</p>
<p style="text-align:justify;">WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.</p>
<p style="text-align:justify;">ENDIF.</p>
<p style="text-align:justify;"> </p>
<p style="text-align:justify;"> </p>


<p>You might also be interested in these posts:<ol><li><a href='http://www.abap-tutorials.com/2009/09/16/abap-program-for-table-maintenance-in-sap/' rel='bookmark' title='ABAP Program for Table Maintenance in SAP'>ABAP Program for Table Maintenance in SAP</a></li>
<li><a href='http://www.abap-tutorials.com/2009/07/17/assign-a-t-code-to-maintenance-view/' rel='bookmark' title='Assign a T-code to Maintenance View in SAP'>Assign a T-code to Maintenance View in SAP</a></li>
<li><a href='http://www.abap-tutorials.com/2009/07/27/sap-data-in-3-dimension/' rel='bookmark' title='ABAP Program to display SAP Data in 3-Dimension'>ABAP Program to display SAP Data in 3-Dimension</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.abap-tutorials.com/2009/07/27/embed-view-in-program/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Assign a T-code to Maintenance View in SAP</title>
		<link>http://www.abap-tutorials.com/2009/07/17/assign-a-t-code-to-maintenance-view/</link>
		<comments>http://www.abap-tutorials.com/2009/07/17/assign-a-t-code-to-maintenance-view/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 22:39:52 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[ABAP]]></category>
		<category><![CDATA[DDIC]]></category>
		<category><![CDATA[Quick Reference]]></category>
		<category><![CDATA[SAP]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[assign tcode]]></category>
		<category><![CDATA[maintenance view]]></category>
		<category><![CDATA[t-code]]></category>
		<category><![CDATA[t-codes]]></category>
		<category><![CDATA[tcodes]]></category>
		<category><![CDATA[view]]></category>

		<guid isPermaLink="false">http://naveenvishal.wordpress.com/?p=167</guid>
		<description><![CDATA[There are some cases where you want your application to call the Maintenance View (instead of creating Create/Changes/Delete i.e. CCD screens for the operation). In this case you have to assign a T-Code to the Maintenance View you created. (Note: User should have the authorization for SM30). Follow these steps for the assignment: 1) Go [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">There are some cases where you want your application to call the Maintenance View (instead of creating Create/Changes/Delete i.e. CCD screens for the operation).</p>
<p style="text-align:justify;">In this case you have to assign a T-Code to the Maintenance View you created. (Note: User should have the authorization for SM30).</p>
<p style="text-align:justify;"><span id="more-167"></span></p>
<p style="text-align:justify;">Follow these steps for the assignment:</p>
<p style="text-align:justify;">1) Go to transaction SE93 , give your own transaction code say ZTC_ZVDA_KNGRP, for maintaining your Z-Table.</p>
<p style="text-align:justify;">2) Click on create button and check the radio button Transaction with parameters (PARAMETER TRANSACTION) and click on the tick button.</p>
<p style="text-align:justify;">3) In the next screen enter default values:<br />
        transaction : SM30<br />
        check the check box skip initial screen</p>
<p style="text-align:justify;"><img class="aligncenter size-medium wp-image-168" title="Tcode Assignment" src="http://naveenvishal.files.wordpress.com/2009/07/tcode_assignment.jpg?w=300" alt="Tcode Assignment" width="300" height="202" /></p>
<p style="text-align:justify;">4) Scroll down you will find a table control for default values</p>
<p style="text-align:justify;">Name of the screen field | value</p>
<p style="text-align:justify;">VIEWNAME                      | your ztable name</p>
<p style="text-align:justify;">SHOW                                 | X</p>
<p style="text-align:justify;">Save your work.</p>
<p style="text-align:justify;">Thats it ! You can now call the Maintenance View from this T-Code.</p>
<p style="text-align:justify;"> </p>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:207px;width:1px;height:1px;text-align:justify;">transaction : SM30</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:207px;width:1px;height:1px;text-align:justify;">check the check box skip initial scree </div>


<p>You might also be interested in these posts:<ol><li><a href='http://www.abap-tutorials.com/2009/09/16/abap-program-for-table-maintenance-in-sap/' rel='bookmark' title='ABAP Program for Table Maintenance in SAP'>ABAP Program for Table Maintenance in SAP</a></li>
<li><a href='http://www.abap-tutorials.com/2009/07/16/assigncreate-authorization-group-for-a-table/' rel='bookmark' title='Assign/Create Authorization Group for a Table in SAP'>Assign/Create Authorization Group for a Table in SAP</a></li>
<li><a href='http://www.abap-tutorials.com/2009/07/27/embed-view-in-program/' rel='bookmark' title='Embed SAP View in an ABAP Program'>Embed SAP View in an ABAP Program</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.abap-tutorials.com/2009/07/17/assign-a-t-code-to-maintenance-view/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

