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: 

check

Former Member
0 Kudos

Hi Every one,

i am modifying VA01/ VA02 screen, In that screen i have added a new button(telephone icon). when a item line and the button are selected, the following check should be performed..

- check whether the material group field is set for call monitoring on a bespoke configuration table(zx_pt_matkl).

how it can be carried out, can somebody provide me with a code.

Many thanks

Kesi rahul

3 REPLIES 3

Former Member
0 Kudos

Are you looking for something like this? I don't know what is availble to you at this user exit, but I am assuming that you don't have material group with you at this point. If you have, just replace the code where I get the material group.


SELECT SINGLE matkl FROM mara
                    INTO v_matkl
                   WHERE matnr = xvbap-matnr.
SELECT SINGLE call FROM zx_pt_matkl
                   INTO v_call_monitoring
                  WHERE matkl = v_matkl.
IF v_cal_monitoring = <somevalue>.
....do something
ELSE.
... do something else.
ENDIF.

0 Kudos

hello,

I have to just check the material group (field ivbap-matkl) in that selected item line is set for some xyz function on config.table zx_pt_matkl.

Regards,

kesi

0 Kudos

So you want to do as follows


SELECT SINGLE somefield INTO somevariable
                        FROM zx_pt_matkl
                       WHERE matkl = ivbap-matkl.

IF somevariable = 'XYZ'.

*-- do something, I cannot tell what you want to do

ELSE.

*-- do something else

ENDIF.