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

About calling a program while inserting the fields

Former Member
0 Likes
616

hi friends,

Can you help to know how we can achieve to automatically calculate the field value and assign when all other fields were inserted...

Consider num1,num2,num3 are three fields

I am calculating the num1 and num2 values and putting to num3.

I have written a code in ABAP to calculate and the result is modified in DB.

But i need to calculate it automaticall this program want to run when the two fields(num1 and num2) are entered.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
599

Hi Mahesh,

You can do this like.

if not num1 and num2 is intial.

SUBMIT REPORT01

VIA SELECTION-SCREEN

USING SELECTION-SET 'VARIANT1'

USING SELECTION-SETS OF PROGRAM 'REPORT00'

AND RETURN.

endif.

Try this out... may trun into result for you.

Regards,

Jayant

4 REPLIES 4
Read only

Former Member
0 Likes
600

Hi Mahesh,

You can do this like.

if not num1 and num2 is intial.

SUBMIT REPORT01

VIA SELECTION-SCREEN

USING SELECTION-SET 'VARIANT1'

USING SELECTION-SETS OF PROGRAM 'REPORT00'

AND RETURN.

endif.

Try this out... may trun into result for you.

Regards,

Jayant

Read only

Former Member
0 Likes
599

Hello,

Try to do it with a field exit, or try to find a user exit or badi for the tcode. It can be also done doing a substitution if available.

Dont forget to reward.

Gabriel.

Read only

former_member873340
Active Participant
0 Likes
599

HI mahesh,

Can you be more specific. Are you talking about updating a database table while a input is given at selection screen.

If that is the case i dont think u can.

Regards

Gowri shankar

Read only

Former Member
0 Likes
599

thanksss