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 program on user command save

Former Member
0 Likes
504

Hi SDN's

I have a screen on which the screen field names are mentioned with ZTABLE-FIELD1, ZTABLE-FIELD2, .... and so on.

now once user enters the mandatory fields and required fields, i click on save, they shd be appending a new record in ZTABLE

My confusion is screen field names are ZTABLE-FIELD1.

so how do i handle this to append a new record in the ZTABLE.

Should i move all the data to a work area and then append the table from workarea.

Regards

Pratyusha

1 ACCEPTED SOLUTION
Read only

gopi_narendra
Active Contributor
0 Likes
481

Declara a work area like this


data : wa_ztable type ztable.
"now in  the user command of SAVE
  move-corresponding ztable to wa_ztable.
  modify ztable from wa_ztable.
  if sy-subrc = 0.
    message S000(ZTEST). " Suceessfully ZTABLE updated.
  endif.

Hope this is what you are looking for?

Regards

Gopi

Regards

Gopi

3 REPLIES 3
Read only

gopi_narendra
Active Contributor
0 Likes
482

Declara a work area like this


data : wa_ztable type ztable.
"now in  the user command of SAVE
  move-corresponding ztable to wa_ztable.
  modify ztable from wa_ztable.
  if sy-subrc = 0.
    message S000(ZTEST). " Suceessfully ZTABLE updated.
  endif.

Hope this is what you are looking for?

Regards

Gopi

Regards

Gopi

Read only

0 Likes
481

Ok let me try and see.

Read only

0 Likes
481

Thanks Gopi, it worked