on 10-19-2007 5:06 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
12 | |
10 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.