‎2009 Jan 26 9:43 AM
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
‎2009 Jan 26 9:48 AM
Hi.
case sy-ucomm.
when 'INSERT' " Function codes should be upper case
insert lfa1.
‎2009 Jan 26 9:48 AM
Hi.
case sy-ucomm.
when 'INSERT' " Function codes should be upper case
insert lfa1.
‎2009 Jan 30 7:24 AM
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
‎2009 Feb 02 7:59 AM
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.