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

Update in Dialogue programming

Former Member
0 Likes
602

Hi Experts,

My question is how to update the fields in ztable.

I am creating a dailogue program to add entries to the z table. I am having more than 16 fields in that ztable. Please let me know with example on how to update all the fields in the ztable when i ciick on the update button in the dialogue screen.

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
572

Hi Boopathy,

In the Screen painter place a button with function code UPD.

In the PAI declare a MODULE USER_COMMAND_1000.

In the program write the following code.

data tab like standard table of zord.

case sy-ucomm.

when 'UPD'.

update zord from table tab.

endcase.

Regards,

Charumathi.B

4 REPLIES 4
Read only

Former Member
0 Likes
572

Hi,

You can do it in the At user command module in PAI of the screen.Ok Code can be used for this purpose.

case ok_code.

when 'UPDATE'

-


endcase

Hope this will help

Regards

Shibin

Edited by: Shibin on Mar 6, 2008 11:57 AM

Read only

Former Member
0 Likes
573

Hi Boopathy,

In the Screen painter place a button with function code UPD.

In the PAI declare a MODULE USER_COMMAND_1000.

In the program write the following code.

data tab like standard table of zord.

case sy-ucomm.

when 'UPD'.

update zord from table tab.

endcase.

Regards,

Charumathi.B

Read only

0 Likes
572

Hi Experts,

Thanks for your reply..

Problem got solved. and more over i need some help on the same.

How do we clear the fields when we click the insert or update buttoon in the dialogue program.

Thanks for answers

Read only

0 Likes
572

Hi Boopathy,

Simply use the clear or refresh statements after the update command.

data tab like standard table of zord.

case sy-ucomm.

when 'UPD'.

update zord from table tab.

refresh tab.

endcase.

Regards,

Charumathi.B