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

Dialog Programing

Former Member
0 Likes
441

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.

3 REPLIES 3
Read only

Former Member
0 Likes
419

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.

Read only

0 Likes
419

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

Read only

0 Likes
419

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.