2009 Jan 15 5:51 AM
Dear Experts,
As i am new to this area, can any one suggest me how can i design a module screen and also the data entered in the screen should be saved in Ztable.
It would be of great help if any one provides material sort of thing.
Thanks in advance..
Dear Experts,
As i am new to this area, can any one suggest me how can i design a module screen and also the data entered in the screen should be saved in Ztable.
It would be of great help if any one provides material sort of thing.
Thanks in advance..
2009 Jan 15 12:55 PM
Hi harish,
I don't have any material for that.
But you can create a module pool screen simply
by going to se80, creating a program on the left hand side
you would get the object list.
Here you can righr click on the program name and go on
to create a screen.
Try to keep the screen no. for 4 digits.
As far as saving of the data is concerned you can do so
by saving your variable name of the fields you woudl place in
your screen.
Hope this helps.
2009 Jan 16 6:17 AM
Hi,
You can create a screen and add the necessary details as sumit has already mentioned.
Also in your program inside the module call you can use,
insert into ztbl values wa.
This will upload the values from wa to your ztbl.
You can also check out this link for further details.
http://sap.mis.cmich.edu/sap-abap/abap09/sld011.htm
Hope this helps.
Regards,
Deepthi.
2009 Jan 16 2:38 PM
Hello Harish,
here is the small code snippet at the screen 'Module user_command_0100 INPUT' that is in PAI(Process After Input section).
Custom Table:
TABLES: yemployee_info.Data Declaration Part:
DATA: gt_text LIKE STANDARD TABLE OF line.
DATA: gw_text LIKE yemployee_info-proj_desc.PAI Include:
IF ok_code = 'SAVE'. "Function Key in PF-STATUS section
CALL METHOD w_editor->get_text_as_stream IMPORTING text = gt_text.
READ TABLE gt_text INDEX 1 INTO gw_text.
yemployee_info-<field name> = gw_text.
*-- Save in the database table
MODIFY yemployee_info.
IF sy-subrc = 0.
MESSAGE s000(su) WITH 'Data successfully inserted'.
ELSE.
MESSAGE e000(su) WITH 'Error in Data Modification'.
ENDIF.Hope its good..
Regards,
Sayak