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: 

function module

Former Member
0 Kudos

Hi experts,

can anyone explain types of update function modules

thanks in advance

rajesh

6 REPLIES 6

Former Member
0 Kudos

HI,

Creating Update Function Modules

To create a function module, you first need to start the Function Builder. Choose Tools ® ABAP Workbench, Function Builder. For more information about creating function modules, refer to the ABAP Workbench Tools documentation.

To be able to call a function module in an update work process, you must flag it in the Function Builder. When you create the function module, set the Process Type attribute to one of the following values:

Update with immediate start

Set this option for high priority ("V1") functions that run in a shared (SAP LUW). These functions can be restarted by the update task in case of errors.

Update w. imm. start, no restart

Set this option for high priority ("V1") functions that run in a shared (SAP LUW). These functions may not be restarted by the update task.

Update with delayed start

Set this option for low priority ("V2") functions that run in their own update transactions. These functions can be restarted by the update task in case of errors.

To display the attributes screen in the Function Builder, choose Goto ® Administration.

Defining the Interface

Function modules that run in the update task have a limited interface:

Result parameters or exceptions are not allowed since update-task function modules cannot report on their results.

You must specify input parameters and tables with reference fields or reference structures defined in the ABAP Dictionary.

REWARD IF HELPFUL

VIVEKANAND

Former Member
0 Kudos

Hi,

Update Fm is of two types V1 and V2

V1 will return the control to the prog after execution but V2 will not.

Reward if useful

Thanks,

Gaurav

former_member404244
Active Contributor
0 Kudos

Hi,

Have a look at the below thread..

http://help.sap.com/saphelp_nw04s/helpdata/en/e5/de86f335cd11d3acb00000e83539c3/content.htm

Reward points if you find useful.

Regards,

Nagaraj

Former Member
0 Kudos

Update Function Modules Locate the document in its SAP Library structure

To create a function module, you first need to start the Function Builder. Choose Tools ® ABAP Workbench, Function Builder. For more information about creating function modules, refer to the ABAP Workbench Tools documentation.

To be able to call a function module in an update work process, you must flag it in the Function Builder. When you create the function module, set the Process Type attribute to one of the following values:

  • Update with immediate start

Set this option for high priority ("V1") functions that run in a shared (SAP LUW). These functions can be restarted by the update task in case of errors.

  • Update w. imm. start, no restart

Set this option for high priority ("V1") functions that run in a shared (SAP LUW). These functions may not be restarted by the update task.

  • Update with delayed start

Set this option for low priority ("V2") functions that run in their own update transactions. These functions can be restarted by the update task in case of errors.

To display the attributes screen in the Function Builder, choose Goto ® Administration.

Defining the Interface

Function modules that run in the update task have a limited interface:

  • Result parameters or exceptions are not allowed since update-task function modules cannot report on their results.

  • You must specify input parameters and tables with reference fields or reference structures defined in the ABAP Dictionary.

regards,

srinivas

raymond_giuseppi
Active Contributor
0 Kudos

These Function module are executer in update-task after COMMIT WORK in main luw.

Under update module

- Start immed (V1) used to update database with lock

- Immediate start, no restart (V1) but no re-treatment in case of error

- Start delayed (V2) update statistical data with no lock and not critical update

- V1 FM are executed

- If KO

- - Locks are released and database changes rollbacked

- If OK

- - Locks are released and database changes commited

- - V2 FM are executed

- - If KO

- - - database update from V2 only is rollbacked

Look at documentation <a href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCSTUP/BCCSTUP_PT.pdf">Updates in the R/3 System (BC-CST-UP)</a>

Regards

Former Member
0 Kudos

Hi rajesh,

Creating Update Function Modules

To be able to call a function module in an update work process, you must flag it in the Function Builder. When you create the function module, set the Process Type attribute to one of the following values:

Update with immediate start

Set this option for high priority ("V1") functions that run in a shared (SAP LUW). These functions can be restarted by the update task in case of errors.

Update w. imm. start, no restart

Set this option for high priority ("V1") functions that run in a shared (SAP LUW). These functions may not be restarted by the update task.

Update with delayed start

Set this option for low priority ("V2") functions that run in their own update transactions. These functions can be restarted by the update task in case of errors.

To display the attributes screen in the Function Builder, choose Goto ® Administration.

Regards,

Kumar.