Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

creating a module pool screen and upload the data entered,

Former Member
0 Likes
611

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..

3 REPLIES 3
Read only

Former Member
0 Likes
576

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.

Read only

Former Member
0 Likes
576

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.

Read only

RoySayak
Active Participant
0 Likes
576

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