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

Module Pool programing: triggering of PAI module

0 Likes
562

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.

2 REPLIES 2
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
511

Answer is no.

ON REQUEST

The module <mod> is only called if the user has entered something in the field

Read only

Former Member
0 Likes
511

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