cancel
Showing results for 
Search instead for 
Did you mean: 

IT 077 Issue.

Former Member
0 Kudos

Hi Guys,

I am trying to update It 0077 through hr_maintain_masterdata.

After doing a bdc recording.

The fields for the checkboxes which define Race are

IT_ITAB-MARK(01)

IT_ITAB-MARK(02)

IT_ITAB-MARK(03)

etc.

But when i pass this field data through hr_maintain_masterdata the field does not get populated as 'X'.

How can we check the Race checkbox when we use hr_maintain_masterdata.

Thanks,

Rohit

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Try passing the value to field RAC01 for structure P0077.

Use a similar routine for populating the proposed value structure for p0077..

FORM proposed_values

TABLES proposed_values STRUCTURE pprop

USING fpa0001 STRUCTURE pa0001.

DATA: pnnnn_1 LIKE prelp OCCURS 0 WITH HEADER LINE,

it_hrobjs LIKE hrobjsdata OCCURS 0 WITH HEADER LINE,

it_prot LIKE hrale_err OCCURS 0 WITH HEADER LINE.

MOVE-CORRESPONDING fpa0001 TO p0001.

p0001-infty = c_it0001 .

MOVE p0001 TO pnnnn_1.

it_hrobjs-plvar = c_01.

it_hrobjs-otype = c_p.

it_hrobjs-objid = pa0001-pernr.

it_hrobjs-infty = c_it0001 .

it_hrobjs-begda = pa0001-begda.

it_hrobjs-endda = pa0001-endda.

it_hrobjs-segnum = 1.

it_hrobjs-sdata = pnnnn_1.

APPEND it_hrobjs.

CALL FUNCTION 'RH_FILL_PA_PB_PRF'

EXPORTING

infty = it_hrobjs-infty

bapi_mode = c_x

TABLES

t_hrobjsdata = it_hrobjs

t_protocol = it_prot

proposed_values = proposed_values

EXCEPTIONS

object_not_to_insert = 1

tabname_not_found = 2

OTHERS = 3.

IF sy-subrc <> 0.

ENDIF.

ENDFORM.

Reward if this was helpful.

Regards