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: 

code help

Former Member
0 Kudos

Hi All!

Can anybody just explain me the functionality ,my table is ZTVV6T and what will happen if i substitute the table name in the below code.

FORM KNVV_CHANGE_UPDATE.

  • Example: update additional table ZZZZ in a USER-function

  • The user-functions should be called 'IN UPDATE TASK'.

  • CALL FUNCTION 'UPDATE_TABLE_ZZZZ' IN UPDATE TASK

  • EXPORTING TABLE_ZZZZ = ZZZZ.

ENDFORM.

regards

Praneeth

1 ACCEPTED SOLUTION

FredericGirod
Active Contributor
0 Kudos

Hi,

SAP will call the modification of your table in background mode.

Rgd

Frédéric

3 REPLIES 3

Former Member
0 Kudos

Hello,

CALL FUNCTION update_function IN UPDATE TASK

[EXPORTING p1 = a1 p2 = a2 ...]

[TABLES t1 = itab1 t2 = itab2 ...].

Extras:

1. ... EXPORTING p1 = a1 p2 = a2 ...

2. ... TABLES t1 = itab1 t2 = itab2 ...

Effect

This statement registers the update function module specified in update_function. update_function must be a character-type field, which during execution of the statement contains the name of an update function module in uppercase letters.

An update function module is a function module, for which in the Function Builder the property update module is marked. The registration of an update function module is an essential part of the update task.

The function module is not executed immediately, but is scheduled for execution in a special work process (update work process). For this purpose, the name of the function module including the passed actual parameters is stored as a log record in the database table VBLOG. If the statement is executed during the update task, the addition IN UPDATE TASK is ignored.

The actual execution is triggered by the statement COMMIT WORK. The formal parameters of the function module receive the values of the actual parameters from table VBLOG. A function module that is registered several times will also be excuted several times with the respective parameter values.

Addition 1

... EXPORTING p1 = a1 p2 = a2 ...

Addition 2

... TABLES t1 = itab1 t2 = itab2 ...

Effect

The additions EXPORTING and TABLES have the same syntax and meaning as in the parameter_list of the general function module call, except that for EXPORTING, you can specify only actual parameters with a flat data type.

Hope this is quite clear.

Regards,

Shekhar Kulkarni

FredericGirod
Active Contributor
0 Kudos

Hi,

SAP will call the modification of your table in background mode.

Rgd

Frédéric

former_member188685
Active Contributor
0 Kudos

That function module will update your ZTable in background.

Regards

vijay