‎2010 Nov 15 1:13 PM
Hi All,
In SAP standard program,there is a PAI module to be executed on change request. If the field value changes on screen then only that module gets triggered.
I am trying to execute that module even value of th efield is not changed. Is it possible?
CHAIN.
Ist das eingegebene Material oder Charge vorhanden ?
FIELD:
VBAP-PSTYV,
VBAP-WERKS,
VBAP-CHARG,
VBAP-LGORT,
VBAP-KDMAT,
VBAP-MATNR,
VBAPD-MATNR_G,
RV45A-MABNR,
VBKD-WMINR,
IS2ERP Media enhancement
vbap-idcodetype, "ISBN-Nr.
vbap-ismidentcode, "ISBN-Nr.
RV45A-CCODE,
VBAP-MATWA
MODULE VBAP-MATNR_PRUEFEN ON CHAIN-REQUEST.
ENDCHAIN.
Is there any way to execute above module even if not a single field value is not changed?
Thans in advance.
‎2010 Nov 15 1:18 PM
Answer is no.
ON REQUEST
The module <mod> is only called if the user has entered something in the field
‎2010 Nov 15 1:24 PM
What you can do is working with a global field g_switch. That you set in the module 'set_switch_on',
CHAIN.
FIELD:
VBAP-PSTYV,
VBAP-WERKS,
...
MODULE set_switch_on ON CHAIN-REQUEST.
ENDCHAIN.
if g_switch NE 'X'.
MODULE VBAP-MATNR_PRUEFEN.
endif.
Don't forget to put this global field g_switch off afterwards.
Edited by: Tom Verstocken on Nov 15, 2010 2:24 PM