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

help at commit

Former Member
0 Likes
461

hi

i need to update a table (ITAB) taking date from a standard table )STANDARD_ITAB

in my program

Loop at internal_standard_table

i need to fill in a field with = sy-uzeit (but at commit)

can you please advise can i simply do

internal_standard_table-field1 = sy-uzeit

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
433

Hi Newbie,

After all the statements are completed and once u r ready to commit, u once again modfiy each record and update the table. The Difference between assigning the user time and updating that record in the table (commit time) would be so less that it may not be recorded by uzeit.

So u can proceed with ur logic and for a small change keep updating (committing) only single record at a time to get the very latest update time for each record.

awrd points if helpful

Bhupal

3 REPLIES 3
Read only

Former Member
0 Likes
433

write ur all code in one subroutine.

for eX. FORM ABC.

Ur Code here.....

ENDFORM.

then call subroutine with following syntax.

PERFORM ABC ON COMMIT.

Reward points if useful........

Read only

0 Likes
433

on the selection screen there will be 2 check box

i) to update my table

ii) to test only (view result but do not update)

then there another 2 radio button

i) rb_first (update table specific to certain conditon)

i)rb_second (update table specific to certain conditon)

the structure of my program is as follow

if rb_first

perform select (common to both rb_first and second)

perform processing (where i am doing my Loop at internal_standard_table )

endif

if rb_second

perform select (common to both rb_first and second)

perform select for second radion button only)

perform processing (where i am doing my Loop at internal_standard_table )

endif

Note: user can choose either one of the radio button

Read only

Former Member
0 Likes
434

Hi Newbie,

After all the statements are completed and once u r ready to commit, u once again modfiy each record and update the table. The Difference between assigning the user time and updating that record in the table (commit time) would be so less that it may not be recorded by uzeit.

So u can proceed with ur logic and for a small change keep updating (committing) only single record at a time to get the very latest update time for each record.

awrd points if helpful

Bhupal