01-04-2006 10:04 PM
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
01-04-2006 10:23 PM
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.
01-04-2006 10:37 PM
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
01-05-2006 5:35 AM
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.