Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Setting a defualt subtype value in PA30 initial screen for an Infotype

0 Kudos

Hi,

I have three subtypes in one of my infotype. In PA30, when user selects the infotype and click on enter, i need one of the subtype should be defaulted in the subtype field. Then user will proceed with the next steps.

Please let me know this can be handled in subtype configuration or it needs to be handle via user exits.

Thanks

Stanley

1 REPLY 1

antoine_foucault
Active Contributor
0 Kudos

As far as I know it will also only work for insertion but not for any other options (problem being at the first exit point the record is already selected by the system so there is no real control over selection). And your control will only be possible after the insert action has been triggered.

So if this is fine, you could try with:

  IF PNNNN-SUBTY EQ SPACE.
    MOVE YourSubtype TO PNNNN-SUBTY.
  ENDIF.

You can do it in the PBO of HRPADINFTY BADi (a bit tricky) or XPAD exit (easier).

It's possible to control the kind of operation being performed by assessing PSYST-INIT (X) variable together with PSYST-IOPER (INS).

Keep in mind that this can also affect other more regular maintenance operation over your infotype.

Best,

Antoine