on 11-20-2007 2:05 PM
Hello SAP Gurus!
We have implemented Dynamic Actions that insert IT0007 automatically valorized by custom routines.
One of these routines valorizes the field ZTERF (time evaluation).
The problem is that in same cases we have to force the value of this field to '0' (No time evaluation) but in fact the module pool of IT0007 (MP000700) doesnt permit this because of the following instructions in include MP000720:
*begin of note 764364
* IF P0007-ZTERF IS INITIAL.
*"ALRK065930
IF P0007-ZTERF IS INITIAL AND SY-TCODE NE 'PA42'.
*end of note 764364
PERFORM RE549D USING 'TMSTA' '3' P0007-ZTERF 549BRC. "ALRK065930
IF 549BRC EQ 0. "ALRK065930
PERFORM RE555V USING P0007-ZTERF. "ALRK065930
ENDIF. "ALRK065930
ENDIF. "ALRK065930
So the question is the following: is there a note (like the implemented note 764364) that will permit me to bypass this control when I use transaction PA40? Or there is another way to force the value 0 in field ZTERF from PA40?
Thank you very much, bye!
Stefano
I have to assign a value to field ZTERF that can be '1', '9' or '0'.
This value is returned by a custom form in the Dynamic Action like this one:
F VAL_ZTERF(ZHR_MD_IT0007_DIN)
W P0007-ZTERF=RP50D-FIELD1
and it depends from the specific "time evaluation" of the employee Org.Unit, so I don't think I can use TMSTA, or better... I don't understand how!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
IF P0007-ZTERF IS INITIAL AND SY-TCODE NE 'PA42'.
*end of note 764364
PERFORM RE549D USING 'TMSTA' '3' P0007-ZTERF 549BRC. "ALRK065930
IF 549BRC EQ 0. "ALRK065930
PERFORM RE555V USING P0007-ZTERF. "ALRK065930
ENDIF.
this is only executed when zterf is initial ('0' ?). Give TMSTA default value '0' ?
Problem solved, thanks to Ann and Moti!
Bye!
Stefano
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, it seems to work modifying feature TMSTA, thanks!
Now... I'm not an expert about features, how can I understand where feature TMSTA is used? I'm quite a newbie and I don't want to create problems...
Message was edited by:
Stefano Milani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you mean I have to return '0' in every case, so when ZTERF is initial it always returns '0'?
Is feature TMSTA used for other purpouses other than this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stefano.
I don't know if i understood you correctly.
if you want to change the field ZTERF why don't you use feature TMSTA?
and set the default value to what ever you need according to your demands.
hope this is useful
if not, try to explain the problem more.
moti
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
feature TMSTA f.i. :
000010 D MOLGA
000020 12 D PERSG
000030 12 1 &TMSTA=9,
000040 12 * &TMSTA=0,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.