cancel
Showing results for 
Search instead for 
Did you mean: 

how to save data to ztable

Former Member
0 Kudos

any body to solve my problem,

i have 4i/o fields fname, lname ,stdate enddate in my dialog prog if i click button(save ) the data has to get stored how could it possible , how code looks like in smple manner

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

use modify command.

ztable-field1 = value.

ztable-field2 = value.

ztable-field3 = value.

ztable-field4 = value.

modify ztable.

Former Member
0 Kudos

is it structure necessary for these updating data to database table

Former Member
0 Kudos

it is not mandatory to have structure

you can fill individula data to table

let me take example :

you have two fields in screen

field1

field2.

while entering the data in screen ,field1 and field2 has value

ztable-field1 = field1.

ztable-field2 = field2.

modify ztable.

Thanks

Seshu

Former Member
0 Kudos

thanku , a small clarification , my ztable contails 4 fields just by simply writing ztable-field1 = field1 .

modify ztable just by sying it only will update in to table ??? if i need to take print / send it to email how coemit possible reward points will exits plz help me dude

Former Member
0 Kudos

Hi

If you write just

ztable -field = FIELD1.

modify Ztable.

will update the Ztable without any problem.

What you wants to take print or send mail?

can you be more clear..

Reward points for useful Answers

Regards

Anji

Former Member
0 Kudos

i need to take both print & email by clicking print & email buttons plz help me dude

Former Member
0 Kudos

Hi

Declare a structure XTAB with 4 fields fname, lname ,stdate enddate .

In PAI of that screen write the code like

case OK_code.

when 'SAVE'.

clear ok_code.

ztable-f1 = Xtab-f1.

ztable-f2 = Xtab-f2.

ztable-f3 = Xtab-f3.

ztable-f4 = Xtab-f4.

modify Ztable.

Reward points for useful Answers

Regards

Anji

endcase.

Former Member
0 Kudos

these is with structur with internal table / only structure , with creating structure is it not possible to insert dat in ztable