Skip to Content
author's profile photo Former Member
Former Member

Gender Radio button Validation in Info type 0021

Dear Experts,

I want to set radio button in info type 0021 based on subtype.

for eg : If the Sub type is 11 – Father then the Gender should be Male and if the Sub type is 12 – Mother, then the Gender should be Female.

Thanks and Regards,

Shardul Tendulkar

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Aug 25, 2016 at 02:57 AM

    Hello Shardul:

    Maybe you can try this way:

    Tcode: CMOD --> Create new project(Z*) --> Assignments enhancements:PBAS0001

    --> EXIT_SAPFP50M_001 --> ZXPADU01,

    Add below code:

    IF INNNN-INFTY = '0021'.

    IF INNNN-SUBTY = '11'.

    INNNN-DATA1+18(1) = '1'.

    ELSEIF INNNN-SUBTY = '12'.

    INNNN-DATA1+18(1) = '2'.

    ENDIF.

    ENDIF.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 19, 2016 at 03:39 PM

    Check this thread

    Default gender based on subtype in infotype 0021 | SCN

    you've got to implement a BADI Z* in reference to HRPAD00INFTY, then implement a class in order to implement if method in HRPAD00INFTY, these are:

    BEFORE_OUTPUT

    AFTER_INPUT

    IN_UPDATE

    Google "HRPAD00INFTY implementation", you should find some help to do it.

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Take as example BEFORE_OUTPUT method

      There are some parameters:

      TCLAS

      IPSYST

      I001P

      I503

      INNNN

      IPREF

      In INNNN parameter you should be able to check the infotype you are running.

      With a CASE new_innnn-infty you can then focus on the Infotype 0021 with WHEN '0021'


      Then you could implement your logic there to check the field SUBTY content and to force field FASEX when applicable.


      In method AFTER_INPUT you have NEW_INNN and OLD_INNN.


      Let me know.

      Thanks.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.