Modify borders in tables
How do I modify borders in tables? It doesn't show up in the properties manager. I have version CS4 for Mac.
wilmabrown2000 wrote:
How do I modify borders in tables? It doesn't show up in the properties manager. I have version CS4 for Mac.
Use css:
Give your table a class:
<table class="myTableBorder" cellspacing="0" cellpadding="0">
Css selector (insert into your linked css stylesheet or into the <head></head> section of your pages code:
.myTableBorder {
border: 1px solid #ccc;
or apply it to the table <td> cell
.myTableCellBorder {
border: 2px solid red;
<td class="myTableCellBorder">
if you decided to put the css selector in the <head></head> section of your pages code then use <style> </style> tags wrapped around the selector
Similar Messages
-
Regarding the modify of internal table
do 40 times varying lga from p0008-lga01 next p0008-lga02
varying bet from p0008-bet01 next p0008-bet02.
*data: bet01 type p decimals 2.
if lga is initial.
exit.
endif.
INDEX = SY-INDEX.
amt1 = bet .
*bet01 = 20 / 100.
bet = ( bet * 50 ) / 100 .
CONCATENATE ch INDEX INTO BETXX.
assign betxx to <F2>.
assign (betxx) to <F1>.
<F2> = bet.
<u>modify p0008 index INDEX transporting F1</u>
write:/ <F2>.
enddo.
*endif.
ENDCASE.
endform.
can sombody tell me how to modify the p0008 table at the place vr im having the bet01 bet02 and so on fields.
vn im using this modify statement im getting an error as
Unable to interpret "INDEX". Possible causes of error: IncorrectHi Madhvi,
When you are posting a thread, please make sure others do not find it difficult to understand. Please don't use abbreviations like "vr" and "vn".
If you need prompt responses, please ensure you describe your requirements in
a proper manner.
You are getting error because of using wrong syntax. the correct syntax is -
MODIFY <itab> FROM <wa> [INDEX <idx>] [TRANSPORTING <f1> <f 2> ... ].
The work area <wa> specified in the FROM addition replaces the existing line in <itab>. The work area must be convertible into the line type of the internal table.
If you use the INDEX option, the contents of the work area overwrites the contents of the line with index <idx>. If the operation is successful, SY-SUBRC is set to 0. If the internal table contains fewer lines than <idx>, no line is changed and SY-SUBRC is set to 4.
Without the INDEX addition, you can only use the above statement within a LOOP. In this case, you change the current loop line <idx> is implicitly set to SY-TABIX.
When you change lines in sorted tables, remember that you must not change the contents of key fields, and that a runtime error occurs if you try to replace the contents of a key field with another value. However, you can assign the same value.
The TRANSPORTING addition allows you to specify the fields that you want to change explicitly in a list.
Regards
Indrajit. -
"CX_SY_OPEN_SQL_DB" ERROR when modifying a custom table
Dear friends,
I get this runtime error "DBIF_RSQL_SQL_ERROR"
"CX_SY_OPEN_SQL_DB" excpetion raised while am trying to modify a custome table . says deadlock detected while waiting for resourcebelow is the code snippet please suggest solution on how to avoid the error. thanks for the help in advance.
kathy
*Get all packspec levels
lt_levels = iv_packspec_content-levels.
loop at lt_levels into ls_levels.
if ls_levels-hutyp is not initial.
ls_zpackspec-guid = ls_levels-guid.
ls_zpackspec-aennr = ls_levels-aennr.
ls_zpackspec-total_quan = ls_levels-total_quan.
ls_zpackspec-level_type = ls_levels-level_type.
ls_zpackspec-/cfscmx/nest_fc = ls_levels-/cfscmx/nest_fc.
ls_zpackspec-maxstack = ls_levels-maxstack.
ls_zpackspec-unit_tw = ls_levels-unit_tw.
ls_zpackspec-g_weight = ls_levels-g_weight.
ls_zpackspec-unit_tv = ls_levels-unit_tv.
ls_zpackspec-g_volume = ls_levels-g_volume.
ls_zpackspec-trgqty = ls_levels-trgqty.
ls_zpackspec-flg_minimum_ps = ls_levels-flg_minimum_ps.
ls_zpackspec-creadat = sy-datum.
ls_zpackspec-matid = iv_packspec_content-content-matid.
ls_zpackspec-hu_create = ls_levels-hu_create.
ls_zpackspec-unit_gw = ls_levels-unit_gw.
ls_zpackspec-g_capa = ls_levels-g_capa.
ls_zpackspec-unit_gv = ls_levels-unit_gv.
ls_zpackspec-hutyp = ls_levels-hutyp.
ls_zpackspec-block = ls_levels-block.
ls_zpackspec-length = ls_levels-length.
ls_zpackspec-width = ls_levels-width.
ls_zpackspec-height = ls_levels-height.
ls_zpackspec-unit_lwh = ls_levels-unit_lwh.
ls_zpackspec-nest_ftr = ls_levels-nest_ftr.
if not ls_elementgroup is initial.
sort ls_elementgroup by guid.
read table ls_elementgroup assigning <ps_el_group>
with key guid = ls_levels-elementgroup
binary search.
if <ps_el_group> is assigned.
ls_elemgroup = <ps_el_group>-elements.
endif.
sort ls_elemgroup by hurelevant.
read table ls_elemgroup assigning <ps_elem>
with key hurelevant = 1
binary search.
if sy-subrc eq 0.
ls_zpackspec-hurelevant = <ps_elem>-hurelevant.
endif.
endif.
append ls_zpackspec to lt_zpackspec.
clear ls_zpackspec.
endif.
endloop.
**Update Packspec data for each level in the table ZPACKSPEC.*
*if not lt_zpackspec is initial.*
*modify zpackspec from table lt_zpackspec.*
*ev_zpackspec = lt_zpackspec.*
*endif.*Kathy - do you have duplicate entries for the same key fields in the internal table you are using for the update?
Rob -
Modify fields of table EKPV and table EKET in ME21n/ME22n
Hi Everyone,
I have a problem that I think you resolved in past thread. I implemented the note 303453 because I need to modify values of table EKPV (fields LEDAT and PLIFZ) and values in table EKET (field EINDT), but I can not modify this fields, I put any value into this fields and SAP always change this value for other value. I dont know what more to do.
Please, could you tell me what have you done? I'm sending to you my code, I hope you can help me with this. In the next example I'm trying to change the fields to date '10.10.2010' as an example, but SAP always replace them with the date of today.
Program LV50NF01
form ZZ_SHIPPING_DATA_DETERMINE.
fekpv-ledat = '20101010'.
fekpv-plifz = '10'.
endform.
User-Exit EXIT_SAPMM06E_013
DATA: F2(50) VALUE '(SAPLMEPO)ETT[]'.
DATA: I_WA_XEKET TYPE BEKET.
FIELD-SYMBOLS: <FS12> TYPE TABLE,
<FS22> TYPE ANY.
ASSIGN (F2) TO <FS12>.
LOOP AT <FS12> INTO I_WA_XEKET.
I_WA_XEKET-EINDT = '20101010'.
I_WA_XEKET-SLFDT = '20101010'.
MODIFY <FS12> FROM I_WA_XEKET.
ENDLOOP.
Regards
Carlos C.I've tried in the user-exit EXIT_SAPMM06E_013, as my example said, but I dont have any result.
Please, anyone else can help me.
Regards
Carlos C. -
What are the methods to modify SAP standard tables?
hi
what are the methods to modify SAP standard tables?.APPEND structures AND CUSTOMIZING INCLUDES.
these are the two methods.. but customizing includes we, as a developers do not use.
generally we use .APPEND structures to modify standard tables.
note that we need an access key to modify atandard tables.
we can create an apend structure and add that structure to the standard table at the end.
note that .append structures should only be added only at the end.
that is the reason we use .append structures to modify standard tables.as we should not include a field in the middle and disturb the original order of the standard table fields as it may effect many objects depending on the standard table.
but Some standard tables for which there is a LONG datatype field can never be modified.
the reason is the LONG datatype field should always be there at the end and also .APPEND strutures should always be there at the end. there will be a conflict. so, some standard tables can not be appended. -
Borders Around Tables in Pages
What is a very easy way to put borders around tables in pages (but without the control etc. type commands), but have no gridelines around the individual cells?
I'm not sure what you mean by "control etc. type commands", but here's something to try.
1) Select your table
2) In the table inspector, under *Cell Borders*, click on the icon that looks like a +. This selects all of the interior borders.
3) Still under *Cell Borders*, click on the line type popup, and choose "None."
If you want new tables to always look like this in this document, select the table again, and choose *Format > Advanced > Define Default Table Style*. -
Changing cell borders in tables in Buzzword
I am considering using Buzzword with my clients but I need to import documents with tables. The tables in my Word documents (containing case headings in legal cases) do not have borders. When I import them into buzzword, all of the cells have black borders. Unacceptable. Is there a feature where you can set the borders on tables? If not Adobe very much needs to include it. Thanks.
Hello,
Although the borders appear upon the initial import, you should be able to remove them. Put the insertion point anywhere in the table, select the Tables tab, and then choose the None option from the the Gridlines Color control:
Hope this helps!
Michelle -
hi ,
can we use modify command in database table .(not update command)
if yes means how to use it . give syntax ..
i want to modify the database table based on internal table i.e
how to do this .
Regards,
kumarHello Kumar,
Always use MODIFY command rather than using INSERT or UPDATE.
When u r using MODIFY command and u can able to update a record and insert a record inside the table.
MODIFY - Change a database table
Variants:
1. MODIFY dbtab. or
MODIFY *dbtab. or
MODIFY (dbtabname) ... ..
2. MODIFY dbtab FROM TABLE itab. or
MODIFY (dbtabname) FROM TABLE itab.
3. MODIFY dbtab VERSION vers. or
MODIFY *dbtab VERSION vers.
Effect
Inserts new lines or updates existing lines in a database table (s. relational database). If a line with the specified primary key already exists, an UPDATE is executed. Otherwise, an INSERT is performed. You can specify the name of the database table either in the program itself in the form MODIFY dbtab ... or at runtime as the contents of the field dbtabname in the form MODIFY (dbtabname) ... . In both cases, the database table must be defined in the ABAP Dictionary. Normally, records are inserted or updated only in the current client. Data can only be inserted or updated using a view, if the view refers to a single table and was created in the ABAP Dictionary with the maintenance status "No restriction".
MODIFY belongs to the Open SQL command set.
When the statement has been executed, the system field SY-DBCNT contains the number of edited lines.
The return code is set as follows:
SY-SUBRC = 0:
All lines were successfully inserted or updated.
SY-SUBRC = 4:
One or more lines could not be inserted or updated.
Notes
You cannot modify a line if there is already a line in the table with identical key field values in a UNIQUE index.
Automatic definition of INSERT and UPDATE is expensive. You should therefore use MODIFY only if you cannot define the INSERT and UPDATE cases yourself in the program.
Since the MODIFY statement does not perform authority checks, you have to program them yourself.
Adding or changing lines with the MODIFY command is only completed after a database commit (see LUW) has been performed. Before the database commit has been performed, any database changes can be reversed with a database rollback (see Programming transactions).
Synchronization of simultanous accesses by several users to the same set of data cannot be guaranteed exclusively with the lock mechanism of the database system. In several cases, you are recommended to use the SAP lock mechanism.
Variant 1
MODIFY dbtab. or
MODIFY *dbtab. or
MODIFY (dbtabname) ... .
Additions:
1. ... FROM wa
2. ... CLIENT SPECIFIED
See Short forms not allowed and * work areas not allowed.
Effect
Inserts a new line or updates an existing line in a database table. If you specify the name of the database table yourself, the primary key for identifying the line to be inserted or updated and the relevant values are taken from the table work area dbtab or *dbtab (see TABLES). If you specify the name of the database table directly, the program must contain a corresponding TABLES statement. If the name of the database table is not determined until runtime, you need to use the addition ... FROM wa.
Example
Insert or change data of the customer Robinson in the current client:
TABLES SCUSTOM.
SCUSTOM-ID = '12400177'.
SCUSTOM-NAME = 'Robinson'.
SCUSTOM-POSTCODE = '69542'.
SCUSTOM-CITY = 'Heidelberg'.
SCUSTOM-CUSTTYPE = 'P'.
SCUSTOM-DISCOUNT = '003'.
SCUSTOM-TELEPHONE = '06201/44889'.
MODIFY SCUSTOM.
Addition 1
... FROM wa
Effect
The values for the line to be inserted or updated are not taken from the table work area dbtab, but from the explicitly specified work area wa. When doing this, the data is read from left to right according to the structure of the table work area dbtab (see TABLES). Since the structure of wa is not taken into account, the work area wa must be at least as wide (see DATA) as the table work area dbtab and the alignment of the work area wa must correspond to the alignment of the table work area. Otherwise, a runtime error occurs.
Note
If a work area is not explicitly specified, the values for the line to be inserted or updated are also taken from the table work area dbtab if the statement is in a FORM or FUNCTION where the table work area is stored in a formal parameter or local variable of the same name.
Addition 2
... CLIENT SPECIFIED
Effect
Switches off automatic client handling. This allows you to edit data across all clients even when dealing with client-specific tables. The client field is treated like a normal table field that can be programmed to accept values in the table work area dbtab or *dbtab where the line to be edited occurs.
The addition CLIENT SPECIFIED must be specified immediately after the name of the database table.
Variant 2
MODIFY dbtab FROM TABLE itab.or MODIFY (dbtabname) FROM TABLE itab.
Addition:
... CLIENT SPECIFIED
Effect
Mass modify: Inserts new lines or updates existing lines of a database table. The primary keys for identifying the lines to be inserted or updated and the relevant values are taken from the internal table itab. The lines of the internal table itab must satisfy the same conditions as the work area wa in addition 1 to variant 1.
Note
If the internal table itab is empty, SY-SUBRC and SY-DBCNT are set to 0.
Addition
... CLIENT SPECIFIED
Effect
As for variant 1.
Variant 3
MODIFY dbtab VERSION vers. or MODIFY *dbtab VERSION vers.
This variant is not allowed in an ABAP Objects context. See VERSION addition not allowed.
Note
This variant is obsolete.
Effect
Inserts a new line or updates an existing line in a database table, the name of which is taken from the field vers at runtime. If no line exists with the specified primary key, an INSERT is executed. Otherwise, an UPDATE is performed. The database table must be defined in the ABAP/4 Dictionary and its name must conform to the naming conventions for R/2 ATAB tables. These stipulate that the name must begin with 'T' and may contain up to four further characters. The field vers must contain the table name without the leading 'T'. Only lines in the current client are inserted or updated. The line to be inserted is taken from the statically specified table work area dbtab or *dbtab.
SY-SUBRC is set to 0 if the line is successfully inserted or updated. SY-SUBRC <> 0 is not possible since any other result causes a runtime error.
Additional help
Inserting or Changing Table Records
If useful reward.
Vasanth -
How to update view without modifying the base table ?
Hi Experts , I need help in two qurstions
1. How to update a view without modifying the base table ?
2. How to write a file unix operating system in pl/sql ? is there any built in procedure is there ?
Thank youHi,
I'm not sure what you're asking in either question. It would help if you gave a specific example of what you want to do.
SowmyRaj wrote:
Hi Experts , I need help in two qurstions
1. How to update a view without modifying the base table ?You can't.
Views don't contain any data; they just query base tables.
You can change the definition of a view (CREATE OR REPLACE VIEW ...) so that it appears that the base table(s) have changed; that won't change the base tables.
2. How to write a file unix operating system in pl/sql ? is there any built in procedure is there ?The package utl_file has routines for working with files. -
How to modify the standard table
plzzzzz answer my qestion.
how to modify the standard table?
in my knowedge we have the accese key is it correct or worngHi
<b>The system asks for access key only of two reasons:</b>
1) You may be having problem of access rights. You would have to contact basis peopl.
2) You may try to name an object not complying with the rules. You may have to check with the same.
the process of getting access key is
<b>the steps to get access key</b>
you can also try via transaction OSS1
In your Inbox, click on 'Registration', then on 'Register Objects', then you will have to choose your installation and give details about your object.
The details you can get by going to your object and clicking on 'Change' - the pop-up screen which asks you for the access key gives you all the details you need to fill in on OSS1 to get your key.
<b>or</b>
U can get Access key from www.service.sap.com
After getting into the site,select quicklinks, then click s to goto SSCR, in
that select registration,
after giving the proper details, u can get the access key
<b>or</b>
on sap support portal (sapnet)
--> key & request
---> register SSCR key
---> registration
---> register developper
and then choose your rigth installation number
you can get the access key in this way
<b>reward if usefull</b> -
Hi,
Please let me know how to modify the partition table of the disk on to which root is mounted. I want to extend the root space, by modifying the partition table.
Is there any other way of extending the root disk space?
Thanks in Advance
- Sarat.Take backup, re-partition, newfs, restore (you are talking about simple root, no mirroring/veritas, right?)
-
Modify dynamic internal table from dynamic work area using index...
ASSIGN w_text TO <fs>.
ASSIGN w_temp TO <fs1>.
lint_tab_iw49[] = <tab>.
lint_tab_iw49_t[] = <tab>.
DELETE ADJACENT DUPLICATES FROM lint_tab_iw49 COMPARING aufnr.
LOOP AT lint_tab_iw49 INTO lws_tab_iw49.
READ TABLE lint_object_tab1 INTO lws_object_tab1
WITH KEY aufnr = lws_tab_iw49-aufnr.
IF sy-subrc EQ 0.
Collect operations in rows of an internal table.
w_idx = 1.
WHILE w_idx < 51.
w_nn = w_idx.
CONCATENATE 'lws_object_tab1-ZZOPERN' w_nn INTO w_xx.
ASSIGN (w_xx) TO <fs>.
CONCATENATE w_text <fs> INTO w_text SEPARATED BY ','.
w_idx = w_idx + 1.
ENDWHILE.
Split operations into an internal table to get operations in rows.
SPLIT w_text AT ',' INTO TABLE lint_vornr.
DELETE lint_vornr WHERE vornr = ' '.
DESCRIBE TABLE lint_vornr LINES w_lines.
Collect costs in rows of an internal table
CLEAR: w_idx, w_nn, w_xx, w_text.
w_idx = 1.
WHILE w_idx < 51.
w_nn = w_idx.
CONCATENATE 'lws_object_tab1-ZZCOST' w_nn INTO w_xx.
ASSIGN (w_xx) TO <fs>.
<fs1> = <fs>.
CONCATENATE w_text <fs1> INTO w_text SEPARATED BY ','.
w_idx = w_idx + 1.
ENDWHILE.
Split costs into an internal table to get costs in rows.
SPLIT w_text AT ',' INTO TABLE lint_escost.
DELETE lint_escost WHERE cost = ' '.
DESCRIBE TABLE lint_escost LINES w_lines_cost.
Append lines of lint_escost from 1 to w_lines to lint_escost1.
Collect currencies in rows of an internal table
CLEAR: w_idx, w_nn, w_xx, w_text.
w_idx = 1.
WHILE w_idx < 51.
w_nn = w_idx.
CONCATENATE 'lws_object_tab1-ZZCURR' w_nn INTO w_xx.
ASSIGN (w_xx) TO <fs>.
<fs1> = <fs>.
CONCATENATE w_text <fs1> INTO w_text SEPARATED BY ','.
w_idx = w_idx + 1.
ENDWHILE.
Split costs into an internal table to get costs in rows.
SPLIT w_text AT ',' INTO TABLE lint_curr.
DELETE lint_curr WHERE curr = ' '.
DESCRIBE TABLE lint_curr LINES w_lines_curr.
Append lines of lint_curr from 1 to w_lines to lint_curr1.
ENDIF.
PERFORM update_object_tab_for_iw49n.
ENDLOOP.
ENDIF.
ENDFORM. " modify_object_tab
*& Form update_object_tab_for_IW49N
text
--> p1 text
<-- p2 text
FORM update_object_tab_for_iw49n .
DATA: lws_temp TYPE string VALUE 'where aufnr = lws_tab_iw49-aufnr',
lw_index TYPE sy-index.
READ TABLE <tab> TRANSPORTING NO FIELDS WITH KEY ('AUFNR') =
lws_tab_iw49-aufnr.
IF sy-subrc EQ 0.
lw_index = sy-tabix.
LOOP AT <tab> INTO <wa1> FROM lw_index.
IF <wa1>-aufnr NE lws_tab_iw49-aufnr.
EXIT.
ELSE.
CLEAR lw_index.
lw_index = sy-tabix.
lw_index = 1.
WHILE lw_index LE w_lines.
READ TABLE lint_escost INTO lws_escost INDEX lw_index.
IF sy-subrc EQ 0.
lw_index = lw_index + 1.
<wa1>-zzcost1 = lws_escost-cost.
ENDIF.
READ TABLE lint_curr1 INTO lws_curr INDEX lw_index.
IF sy-subrc EQ 0.
<wa1>-zzcurr1 = lws_curr-curr.
ENDIF.
MODIFY <tab> FROM <wa1> "TRANSPORTING ('ZZCOST1') ('ZZCURR1')
INDEX sy-tabix.
IF sy-subrc EQ 0.
ENDIF.
lw_index = lw_index + 1.
ENDWHILE.
ENDIF.
ENDLOOP.
ENDIF.
ENDFORM. " update_object
Hi,
With referene to the code snippet above I want to modify <tab> from <wa1> on specific indices or with specific where condition.
Is it achievable... How?
Many thanks in advance.
Thanks & Regards,
ShreyaYou might have to split the code in to two parts to keep the formatting intact.
-
How to modify changes of table control data in PAI
I have a table control where the columns are brought by dict fields.I am able to bring data into table control through an itab.
Now what i want is whenever user edits data in table control and clicks on save button the corresponding changes should be made in database.
For this according to my understanding we need to (in PAI) modify the changes in itab from the table control and then in SY-UCOMM of SAVE button we need to update in database table using itab.
For this , I am not able to write code for modifying the changes in itab from table control. Here is my code below.Please tell me how to do this.
PROCESS BEFORE OUTPUT.
MODULE FILL_DATA.
LOOP AT ITAB INTO ZEMPLOYEE_MASTER WITH CONTROL EMPTABLE CURSOR
EMPTABLE-CURRENT_LINE.
ENDLOOP.
MODULE STATUS_0001.
PROCESS AFTER INPUT.
LOOP AT ITAB.
MODULE MODIFY_ITAB.
ENDLOOP.
MODULE USER_COMMAND_0001.
REPORT ZDATA_FORM1.
TABLES: ZEMPLOYEE_MASTER.
CONTROLS EMPTABLE TYPE TABLEVIEW USING SCREEN 0001.
data: begin of itab occurs 0,
emp_no like zemployee_master-emp_no,
name like zemployee_master-name,
city like zemployee_master-city,
end of itab,
rowno TYPE I VALUE 1.
*& Module STATUS_0001 OUTPUT
* text
MODULE STATUS_0001 OUTPUT.
* SET PF-STATUS 'xxxxxxxx'.
* SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_0001 OUTPUT
*& Module USER_COMMAND_0001 INPUT
* text
MODULE USER_COMMAND_0001 INPUT.
MESSAGE 'Inside INPUT' TYPE 'I'.
CASE SY-UCOMM.
WHEN 'SAVE'.
UPDATE zemployee_master.
WHEN 'EXIT'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE. " USER_COMMAND_0001 INPUT
*& Module fill_data OUTPUT
* text
MODULE fill_data OUTPUT.
select emp_no name city from zemployee_master into TABLE itab ORDER BY emp_no.
Describe table itab lines EMPTABLE-LINES.
ENDMODULE. " fill_data OUTPUT
*& Module modify_itab INPUT
* text
MODULE modify_itab INPUT.
* MODIFY itab from zemployee_master index
* MESSAGE 'Inside modify_itab' TYPE 'I'.
ENDMODULE. " modify_itab INPUTHi
In the following module of your code
MODULE modify_itab INPUT.
MODIFY itab from zemployee_master index tc-current_line " Where TC is the name of the Table control on the Screen
ENDMODULE.
Table control data gets refreshed on *enter*
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/2165e990-0201-0010-5cbb-b5c2ad436140
Cheerz
Ramchander Rao.K -
Regarding the modifying an internal table
hi,
i am having an internal table,i have to modify one field and the remaining fields should remain same in the internal table while displaying the internal table.
can any body send the solution for this issue.
thanks in advancehi,
you can see the following logic regarding modify statement with in loop or without loop.
DATA : BEGIN OF itab OCCURS 0,
no(10) TYPE n,
name(10) TYPE c,
city(20) TYPE c,
END OF itab.
itab-no = 001.
itab-name = 'vijay'.
itab-city = 'dharmavaram'.
APPEND itab.
itab-no = 002.
itab-name = 'krishna'.
itab-city = 'dharmavaram'.
APPEND itab.
itab-no = 003.
itab-name = 'vijay'.
itab-city = 'dharmavaram'.
APPEND itab.
itab-name = 'ram1'.
MODIFY itab INDEX 3 TRANSPORTING name.
LOOP AT itab.
IF sy-tabix = 2.
itab-no = '0012'.
itab-name = 'krishna.v'.
MODIFY itab INDEX 2 TRANSPORTING no name.
CLEAR itab.
ENDIF.
ENDLOOP.
LOOP AT itab.
WRITE :/ itab-no,itab-name,itab-city.
ENDLOOP.
Hope this example will be usage for you.
Reward with points if it is useful.
Regards,
Vijay -
How to modify data in table control
hi
i have created table control where i have displayed data into table control
logic used
screen 200
PROCESS BEFORE OUTPUT.
MODULE SELECT_RECORD.
*&SPWIZARD: PBO FLOW LOGIC FOR TABLECONTROL 'TBC_200'
MODULE TBC_200_CHANGE_TC_ATTR.
*&SPWIZARD: MODULE TBC_200_CHANGE_COL_ATTR.
LOOP AT IT_MARA
INTO WA_MARA
WITH CONTROL TBC_200
CURSOR TBC_200-CURRENT_LINE.
MODULE TBC_200_GET_LINES.
*&SPWIZARD: MODULE TBC_200_CHANGE_FIELD_ATTR
ENDLOOP.
MODULE STATUS_0200.
PROCESS AFTER INPUT.
*&SPWIZARD: PAI FLOW LOGIC FOR TABLECONTROL 'TBC_200'
LOOP AT IT_MARA.
CHAIN.
FIELD WA_MARA-MATNR.
FIELD WA_MARA-ERSDA.
FIELD WA_MARA-ERNAM.
MODULE TBC_200_MODIFY ON CHAIN-REQUEST.
ENDCHAIN.
FIELD WA_MARA-MARK
MODULE TBC_200_MARK ON REQUEST.
ENDLOOP.
MODULE TBC_200_USER_COMMAND.
*&SPWIZARD: MODULE TBC_200_CHANGE_TC_ATTR.
*&SPWIZARD: MODULE TBC_200_CHANGE_COL_ATTR.
module -
MODULE SELECT_RECORD.
MODULE SELECT_RECORD OUTPUT.
SELECT MATNR ERSDA ERNAM
FROM MARA
INTO CORRESPONDING FIELDS OF TABLE it_mara.
ENDMODULE. " SELECT_RECORD OUTPUT
and
another thing
i have made field MARA-ERSDA. and FIELD WA_MARA-ERNAM editable by
input possible using layout
so
now those 2 fields contents are editable
i want to know how to edit and save the data
some body guide.
and i want to put the lock so that i can update
can tell how to implement lock.
Thanks
Edited by: viju bangalore on Jan 27, 2011 10:40 AMHi Viju,
In PAI do something like this
LOOP AT itab.
MODULE mod_table_control.
ENDLOOP.
MODULE user_command_0100.
at module mod_table_control put this
MODULE mod_table_control INPUT.
MODIFY itab FROM demo_conn INDEX flights-current_line.
if sy-subrc ne 0.
insert itab.
endif.
ENDMODULE.
for saving you can create at custom gui status with a save button, and at MODULE user_command_0100 save the data.
Maybe you are looking for
-
Time issue with iphone 5c?
after upgrading to 7.0.3 our 5c quits keeping time when the autolock is used when unlocked time starts but is behind. Anyone else seen this or have suggestions.?
-
Help dynamically generating RTF table of contents
I inserted a TOC in word (Insert -> References -> Index & Tables -> TOC) into my template. I then set the TITLE field to level 1 and the EPI_COLUMN4 field to level 2 and then did a Update TOC -> Entire table: <?TITLE?> <!-- set as level 1 --> <?for-e
-
Marking a table as readonly conditionally
Hi, I have a region with 2 fields. Out of which one is a select list and one text box. This is an MRU. The requirement is when the data review is done, the region should be freezed. So I should show the region with fields as uneditable. I have seen s
-
Sound stops while song or video continues
Lately, I've been getting a lot of sound gaps while playing songs or videos on my iTunes on my iMac. I can see the bar moving, or if it is a video, the video keeps moving. And in a couple of seconds, the sound is back. How do I debug this problem?
-
I have moved my file from my old computer. Now that I am trying to play songs and movies iTunes says the original file could not be found. How do I reverse this problem?