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

Is this the behaviour that happes in Function Module ?

0 Likes
460

Hi ...

I need to perform a validation check before a record inserted / updated into my own table.

It was done through a maintenance view.

What I am doing is to code a function ( under Screens - access through SE80 )

process after input.

... codes

--> i put my function here.

... codes

module set_update_flag on chain-request.

I am just wondering what happen over here.

In the function I developed, will SAP call this function 1 record at a time OR all the records that changed in the table in batch ?

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
414

hello D ,

yeah , SAP will execute ur functions.

one thing u need to remember while adding add.functionality in TMG screen , when u re-generate these screen , ur codes will be goes off..

sample codes looks like

 
Process after input. 

  loop at extract. 
    module liste_init_workarea. 
    chain. 
      field ytable-versnc *module versn.*--> ths is my validatin module for field versnc 
      module set_update_flag on chain-request. 
    endchain. 

Hi ...

I need to perform a validation check before a record inserted / updated into my own table.

It was done through a maintenance view.

What I am doing is to code a function ( under Screens - access through SE80 )

process after input.

... codes

--> i put my function here.

... codes

module set_update_flag on chain-request.

I am just wondering what happen over here.

In the function I developed, will SAP call this function 1 record at a time OR all the records that changed in the table in batch ?

Thanks.

1 REPLY 1
Read only

Former Member
0 Likes
415

hello D ,

yeah , SAP will execute ur functions.

one thing u need to remember while adding add.functionality in TMG screen , when u re-generate these screen , ur codes will be goes off..

sample codes looks like

 
Process after input. 

  loop at extract. 
    module liste_init_workarea. 
    chain. 
      field ytable-versnc *module versn.*--> ths is my validatin module for field versnc 
      module set_update_flag on chain-request. 
    endchain.