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

simple logic for module pool

Former Member
0 Likes
410

Hi GURUS

I hv a small prob.(new to module pool in ECC 6.0)

I hv already created one layout having LIFNR, NAME1, ORT01 fields..

and having the push buttons like INSERT, UPDATE & DISPLAY.

(without using int. table. to store value)

i ha provided logic in PAI for insert is that

case sy-ucomm.

when 'insert'.

insert lfa1.

like same for udate also.

after entering th euserdefined t-code , the layout is coming but it is not doing any operations.

<<text removed>>

Edited by: Matt on Jan 26, 2009 10:49 AM - don't demand quick help

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
386

Hi.

case sy-ucomm.
when 'INSERT'                   " Function codes should be upper case
insert lfa1.

3 REPLIES 3
Read only

Former Member
0 Likes
387

Hi.

case sy-ucomm.
when 'INSERT'                   " Function codes should be upper case
insert lfa1.

Read only

Former Member
0 Likes
386

Hi,

Below is the code snippet that might help you out.

WHEN 'INSERT'. u201Csy-ucomm/tcodd should be in capital

   MODIFY <dbtable> FROM TABLE <internal tbale>.
u201Dthis internal table should be of same structure as of db table and 
"screen fields names should be same db table field name

   COMMIT WORK.

    WHEN 'MODIFY'. u201Cor u201CUPDATE-----Must be in capitals else it wont work

  
u201CMOVE THE DATA FROM ITAB1 TO DB TABLE

         MOVE-CORRESPONDING <internal tbale > TO <db table>.
        UPDATE <dbtable>.

      COMMIT WORK.

Pooja

Read only

Former Member
0 Likes
386

Hi,

First Check whether u have declared ok_code in Screen Elements List of your Screen.

or

Case sy-ucomm.

When 'INSERT'.

endcase.

use caps. for fcodes. and once check whether the fcodes for buttons u have declared or right.

Provide some more info if your issue does not get solved.

Hope this is Helpful,

Regards,

Sandy.