on 01-28-2005 2:24 PM
Hi All of u,
I have issue in update rule, when i'm using code with subrotines getting error, we can't use subroutine with perform and form statements.
i would appriciate, anybody give reply.
continuation :
Yuo can do the INCLUDE ... PERFORM en both of them
Obviusly is better, use a function group or a class y you are calling java procs.-
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What do you want to do ???
To validate data in the update rule?
You can do it of two ways, field by field or in the star routine.-
the difference is, in the start routine you can add or delete data ( complete row ), from infoSource, and in de Field routine you can only change de information of this field in particular.-
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Ravi,
for maintenance and reusability reason
I would prefer to use Function Modules.
Kind regards
Michael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I do not think you can write subroutines like what you are trying to do in an update rule.
You could try putting all your code in an include and put the include in update rule. This might work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravi,
what you can do is, in the global part of your routine, put a statement like
INCLUDE Z_INCLUDE.
In this Z_INCLUDE, you can have lots of forms to be called in each routine of your update rules ( but navigation by clicking on the perform statement is not available for this). Another option is to call a fm or a method. But for the method I think you will have to do almost the same as for the subroutines.
One another option I can think of is doing a
PERFORM routine IN PROGRAM zabap IF FOUND.
As for a fm you need to pass all necessary parameters.
regards
Siggi
User | Count |
---|---|
76 | |
10 | |
9 | |
9 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.