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

small requirement

Former Member
0 Likes
655

Hi,

I want the output some like this.

When i execute the program i shud get out put '1'.

When i click the back button and again execute i shud get the output as '2'.

Again when i click back button and execute i shud get the output as '3'.

And so on...

How to do it?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
631

simply take one field and such that u take ztable and add that ztable field by once for every execution and ud date the field value with update statement.

do u required code please reply me.

Hi,

I want the output some like this.

When i execute the program i shud get out put '1'.

When i click the back button and again execute i shud get the output as '2'.

Again when i click back button and execute i shud get the output as '3'.

And so on...

How to do it?

3 REPLIES 3
Read only

Former Member
0 Likes
631

Hi!

You have to store these values in an own customer Z-table.

Define your table in SE11 transaction.

You can't save these values into the memory, because they lost, when you go back.

Regards

Tamá

Read only

Former Member
0 Likes
632

simply take one field and such that u take ztable and add that ztable field by once for every execution and ud date the field value with update statement.

do u required code please reply me.

Read only

former_member480923
Active Contributor
0 Likes
631

Hi,

REPORT ztest_count .


PARAMETERS: p_i TYPE i DEFAULT '1'  NO-DISPLAY,
            p_x TYPE c.

AT SELECTION-SCREEN OUTPUT.

  p_i = p_i + 1.

START-OF-SELECTION.

  WRITE: p_i.

Thanks

Anirban M.