‎2008 May 05 10:52 AM
Dear All
i am new in Dialog Programing
The following error occured while using screen
Invalid field format (screen error)
The bellow is my program
PROGRAM ZEMPTEST NO STANDARD PAGE HEADING LINE-SIZE 200.
TABLES: ZEMPTEST.
DATA : ok_code TYPE sy-ucomm.
DATA :wa_NAME_MAST like ZEMPTEST OCCURS 0 WITH HEADER LINE.
Module user_command_0102 input.
If wa_NAME_MAST-ECODE is initial.
Leave to screen 102.
endif.
Case ok_code.
When 'SAVE'.
ZEMPTEST-ECODE = wa_NAME_MAST-ECODE.
ZEMPTEST-ENAME = wa_NAME_MAST-ENAME.
ZEMPTEST-EADD1 = wa_NAME_MAST-EADD1.
ZEMPTEST-EADD2 = wa_NAME_MAST-EADD2.
ZEMPTEST-EADD3 = wa_NAME_MAST-EADD3.
ZEMPTEST-EPHONE = wa_NAME_MAST-EPHONE.
ZEMPTEST-EDEPT = wa_NAME_MAST-EDEPT.
ZEMPTEST-EDES = wa_NAME_MAST-EDES.
ZEMPTEST-ESAL = wa_NAME_MAST-ESAL.
ZEMPTEST-EVLFROM = wa_NAME_MAST-EVLFROM.
update ZEMPTEST.
LEAVE TO SCREEN 102.
When others.
Endcase.
Endmodule.
Flow Logic
PROCESS BEFORE OUTPUT.
MODULE STATUS_0102.
*
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0102.
‎2008 May 05 11:25 AM
Hi,
After when 'save'.
You are mapping fields from work area to ztable.
there first you have to read from work area using loop at workarea.
then record is availabl;e in wa.
after you can use those mappings.
Modify this in your code.
‎2008 May 05 11:30 AM
hi jeevitha
Thanks for your reply
I can run in this program first entered emp no after i enter emp no the ERRor will come
Invalid field format (screen error)
how to rectify
Thanks and regards
Suresh
‎2008 May 05 11:48 AM
Hi,
employee number means ecode in your program.
Check fomat of field in ztable and in work area is same or not.
Is it primary key in your table.
Check once domain of those two.