cancel
Showing results for 
Search instead for 
Did you mean: 

Forcing P0007-ZTERF = u00910u0092 from transaction PA40

Former Member
0 Kudos

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) doesn’t 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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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!

anncottens
Explorer
0 Kudos

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' ?

Answers (5)

Answers (5)

Former Member
0 Kudos

Problem solved, thanks to Ann and Moti!

Bye!

Stefano

Former Member
0 Kudos

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

Former Member
0 Kudos

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?

Former Member
0 Kudos

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

anncottens
Explorer
0 Kudos

feature TMSTA f.i. :

000010 D MOLGA

000020 12 D PERSG

000030 12 1 &TMSTA=9,

000040 12 * &TMSTA=0,