06-22-2007 6:07 AM
How to save data from a screen into a table?
How to diplay data in a screen such that it is in non-editable mode?
06-22-2007 6:14 AM
Hi,
When you are designing screen that is in Layout , You need to set the attributes of the field. Double click on the field , then a screen pop up on right side.
Check the property as 'OUTPUT' only. Then the field will be display only but not modifiable.
Regards,
Satya
06-22-2007 6:18 AM
hi,
use this code:
when 'SAVE'."fctcode
move lfa1 to itab."screen fields to internal table(here I am using trable control in thescreen)
append itab.
insert into lfa1 values itab."inserting values into table.
if sy-subrc = 0.
message i000(0) with 'inserted'.
else.
message e001(0) with 'not inserted'.
endif.
06-22-2007 6:51 AM
hi thanks for your answer.
Is there anyother way of saving data without using table controls.
06-22-2007 12:28 PM
If you have standard screen and you want to save your data then we can use BAPI or Batch input method to upload mass data. if you want to design your own screen to craete entries for a custom table we can use table maintainance if u want to store records in diffrent custom table using same screen you can use Statment INSERT or MODIFY.
Regards
Tanweer
06-25-2007 10:08 AM
here is the simple and best example for saving data from the screen to table using the Update Command ..with Pop-up ... see it with <b>screen shot</b>
<a href="http://">http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbab4335c111d1829f0000e829fbfe/content.htm</a>
reward points if it is usefull ...
Girish