cancel
Showing results for 
Search instead for 
Did you mean: 

Change default subtype when creating grievances (infotype 0102)

Former Member
0 Kudos

Hi Experts,

I want to change the default subtype when creating grievances (infotype 0102). I create some Z subtypes for this infotype. In the standard system, it automatically gives subtype 1 when I create new grievance. I wanna change the default subtype with the new Z subtype. Does anyone know how to change this?

Thank you for your respond.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Thank you for your respond.

Is there any configuration for this?

former_member209703
Active Contributor
0 Kudos

You need to create your own project in CMOD, then assign the enhacement PBAS0001 and program the exit EXIT_SAPFP50M_001

It is a very simple development issue, you can tell your Abaper to do that.

The code would be place in ZXPADU01


CASE innnn-infty.
 WHEN '0102'.
     INNNN-SUBTY = 'Z1'. <== Your custom subtype
ENDCASE.

former_member209703
Active Contributor
0 Kudos

Hi

By default, subtype field is not mandatory in this infotype, so if the user does not enter any value in the subtype field, the default value is set to 1. (This is defined at code level)


*---------------------------------------------------------------------*
*       MODULE P0102 OUTPUT.                                          *
*---------------------------------------------------------------------*
*       Action done before display of the infotype records.           *
*---------------------------------------------------------------------*
MODULE P0102 OUTPUT.
........
    IF PSYST-IOPER EQ INSERT AND PSYST-FIRST EQ YES AND
       P0102-SUBTY EQ SPACE.
      P0102-SUBTY = '1'.
    ENDIF.
..........
ENDMODULE.

So, if you really need to show a Z subtype by default when creating a record, you definetly need to use the ZXPADU01 User-Exit and assign your Z subtype

Best Regards