Application Development 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: 

Disable variant button

former_member190501
Active Contributor
0 Kudos

Dear all,

I'm calling Prog B from prog A using Submit and passing 2 selection values and disabling those 2 fields in prog B.If user select any of the variant from progB then the variant values overwritten the imported values .

Is there any way to disable Variants button in program B if it is calling from prog A ?

Hope I'm clear with my question.

thanks in advance.

regards,

raju

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Try to add in program B

parameter p_calling_from a.

and

this code:

include rsdbc1xx.

...

...

at selection-screen output.

if p_calling_from a = 'X'.

append 'GET' to current_scr-excl. "get variant

append 'VSHO' to current_scr-excl. "display variant

append 'VDEL' to current_scr-excl. "delete variant

append 'SPOS' to current_scr-excl. "save a variant

endif.

1 REPLY 1

Former Member
0 Kudos

Try to add in program B

parameter p_calling_from a.

and

this code:

include rsdbc1xx.

...

...

at selection-screen output.

if p_calling_from a = 'X'.

append 'GET' to current_scr-excl. "get variant

append 'VSHO' to current_scr-excl. "display variant

append 'VDEL' to current_scr-excl. "delete variant

append 'SPOS' to current_scr-excl. "save a variant

endif.