Application Development and Automation 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: 
Read only

Process function with HR_MAINTAIN_MASTERDATA

Former Member
0 Likes
399

Hi all,

I want to use the FM HR_MAINTAIN_MASTERDATA for infotype 0764. In this infotype I must push a genarate button. Is this possible with the proposed values table? I already tried 'BDC_OKCODE' and 'FCODE' for the fieldname, but it doesn't work.

Thanks,

Richard

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
334

Hi Richard,

this is how i had used for my requirement

  select single stext
  into w_oname
  from T591S
  where sprsl = sy-langu
  and   infty = '0219'
  and   subty = w_otype.
  I_PROPOSED_VALUES-FNAME = 'P0219-ONAME'.
  I_PROPOSED_VALUES-FVAL = w_oname.
  APPEND I_PROPOSED_VALUES.


  CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'
      EXPORTING
           PERNR              = '00000000'
           MASSN              = C_ACTION_HIRE
           ACTIO              = 'INS'
           TCLAS              = 'A'
           BEGDA              = W_START_DATE_D
           ENDDA              = W_END_DATE_D
*         OBJPS              =
*         SEQNR              =
*           sprps              = 'X'
*         SUBTY              =
           WERKS              = W_WERKS
           PERSG              = WA_DATA-EMPLOYMENT_TYPE
           PERSK              = WA_DATA-EMPLOYMENT_DETAILS
           PLANS              = W_OBJID
           DIALOG_MODE        = '1'
           LUW_MODE           = '1'
           NO_EXISTENCE_CHECK = 'X'
           NO_ENQUEUE         = 'X'
      IMPORTING
*         return             =
           RETURN1            = W_BAPIRETURN1
*         hr_return          =
       TABLES
            PROPOSED_VALUES    = I_PROPOSED_VALUES
            MODIFIED_KEYS      = I_MODIFIED_KEYS.
  .

Regards,

Satish

1 REPLY 1
Read only

Former Member
0 Likes
335

Hi Richard,

this is how i had used for my requirement

  select single stext
  into w_oname
  from T591S
  where sprsl = sy-langu
  and   infty = '0219'
  and   subty = w_otype.
  I_PROPOSED_VALUES-FNAME = 'P0219-ONAME'.
  I_PROPOSED_VALUES-FVAL = w_oname.
  APPEND I_PROPOSED_VALUES.


  CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'
      EXPORTING
           PERNR              = '00000000'
           MASSN              = C_ACTION_HIRE
           ACTIO              = 'INS'
           TCLAS              = 'A'
           BEGDA              = W_START_DATE_D
           ENDDA              = W_END_DATE_D
*         OBJPS              =
*         SEQNR              =
*           sprps              = 'X'
*         SUBTY              =
           WERKS              = W_WERKS
           PERSG              = WA_DATA-EMPLOYMENT_TYPE
           PERSK              = WA_DATA-EMPLOYMENT_DETAILS
           PLANS              = W_OBJID
           DIALOG_MODE        = '1'
           LUW_MODE           = '1'
           NO_EXISTENCE_CHECK = 'X'
           NO_ENQUEUE         = 'X'
      IMPORTING
*         return             =
           RETURN1            = W_BAPIRETURN1
*         hr_return          =
       TABLES
            PROPOSED_VALUES    = I_PROPOSED_VALUES
            MODIFIED_KEYS      = I_MODIFIED_KEYS.
  .

Regards,

Satish