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

Dynamic Action to read HRP1028 during Hiring Action

Hi Guru,

We have a requirement like this:

- Each Org unit is attached to a Work Address and the same is stored in Infotype 1028.

- Whenever hiring action takes place the dynamic action should read the Infotype 1028 for the Org unit to which the employee is assigned and fetch the Work address details.

- These details should be stored in Infotype 0006 under Work Address subtype.

Request your help as this is a very urgent requirement for us.

Regards

Abhay

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jul 27, 2012 at 10:55 PM

    Hi Abhay,

    In the Dynamic action you will need to do a form routine and will need abap development.

    I have given an example below.

    A point to consider: The field in the return structure (RP50D-FIELD1) for the dynamic action form has a limit of 20 char.

    So you have a couple of options to accomplish what you need:

    • Enhance the structure RP50D to add the fields that you need to its customer include. ( you can have it exactly like infotype 0006 fields or you can make them generic fields with length that you need eg. FIELD2 lenght 40char, field3 lenght 40 char etc.)
    • Or For each field of infotype 1028 that you want to return there may have to be multiple routines to return (e.g. : form get_state, form get_country, form GET_STREET. etc)

    Example:

    0001

    06 10 **DEFAULT address for hire0001

    06 20 P P0000-MASSN='HR'0001

    06 30 I INS,0006,<your subtype>,,(P0000-BEGDA),(P0000-ENDDA)0001

    06 40 F GET_ADDR_STATE(ZHPADYN)0001

    06 50 W P0006-STATE=RP50D-FIELD1

    ou will have to create a ABAP program (Subroutine pool) with the name ZHPADYN and it should have subroutine GET_ADDR_STATE.


    PROGRAM zhpadyn.

    TABLES : rp50d.


    FORM GET_ADDR_STATE

    ** Read infotype 1028 based on P0001-Begda and P0001--ORGEG to get the state and assign to rp50d-field1

    ENDFORM.

    Hope this helps.

    - Puneet

    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.