on 10-19-2011 8:02 AM
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.
Hi,
Thank you for your respond.
Is there any configuration for this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
104 | |
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.