‎2007 Oct 24 8:04 AM
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
‎2007 Oct 24 8:36 AM
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
‎2007 Oct 24 8:36 AM
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
‎2007 Oct 24 8:39 AM
‎2007 Oct 24 8:46 AM