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

How to design dynamic action for 0021 info type for sub type default radio buttons

Dear Experts,

Please help me to design dynamic action for 0021 info type.

My client requirement is , when we save info type 21 with family member details sub types - Ex: Father or mother or spouse , their gender should be defaulted accordingly.

I have attached screen shot for reference.

Thanks,

Ch Ramkumar

0021.png (62.1 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Aug 21, 2016 at 05:41 AM

    Hi Ramkumar,

    I don't think there is some standard way to default gender based on relationships in IT0021. We can get it done by writing user exit.

    Let's wait for experts suggestion.

    Regards,

    Naren

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 22, 2016 at 02:06 AM

    It is possible to default one/more fields, based on - 1/more fields of -

    (1)current data already available or saved for the employee(i.e., in other infotype records, e.g., IT 0, 1, etc),

    or/and

    (2)data entered so far in the current screen

    If you base it on data (2), you need to press enter after entering this set of data, to get the default value/s, else just press enter.

    See sample dynamic action lines below:

    0002 06 2 P T001P-MOLGA='37' (Only my country group)

    0002 06 5 P P000-MASSN='Z1' (Only hiring)

    0002 06 8 P P0002-ANREX = '1' (Checking if is Sr.)

    0002 06 11 W P0002-GESCH='1' (Fill the gender with male option).

    Here in P check you can include 'OR' conditions for a check as in the case of form of address using /X for the first field or first set of fields.

    Notes:

    a. In T588Z variable part you need to use a field's technical name and where applicable, as in Form of Address or Gender, the key value and not its descriptive text e.g., Dr, Mr, Mrs, Ms, Sir etc (Many users opt to see text in their SAP screen options; most consultants opt to see both key value and text);

    b. In T588Z, you can not default a field which is in a Q* structure.

    b. If you use PBO module for option (1) in include LXPADU01 for Customer Enhancement PBAS0001 / function EXIT_SAPFP50M_001 (which you can display in txn SE37), when you gt the initial entry screen, the default is already in the screen without pressing enter).

    c. PAB module in include LXPADU02 for Customer Enhancement PBAS0002 / function EXIT_SAPFP50M_002 is for validating data you have entered so far and when you press Save (record) key or Enter

    d. Usually the includes LXPADU01/02 are copied as ZXPADU01/02 in most implementations.

    e. You can find a number of hits on this topic on SCN or when you google.

    f. In T588Z, to calculate a default value (e.g., start date of current month or pay period), Dynamic actions variable part can not provide directly to do the calculations; you need to call a subroutine in a program. For complex 'P' checks also, I recommend using this technique and return a value in a field e.g., FLAG1 in structure RP50D. This structure is the SAP standard for communication between the subroutine and T588Z. A 'P' check can then check this field to determine if an action like default, insert, etc is applicable; or the return itself may be the default for a field. See example below

    0002 06 2 P T001P-MOLGA='37' (Only my country group)

    0002 06 5 P P000-MASSN='Z1' (Only hiring)

    0002 06 8 F CHECK_ADDRESS(ZHR_ROUTINES)

    0002 06 11 P RP50D-FLAG1<>''

    0002 06 14 W P0002-GESCH=RP50D-FLAG1

    See help info enclosed.


    Add a comment
    10|10000 characters needed characters exceeded

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.