BDC Recording cannot input description for Qualfication or Qualification Group.if you press "F1" in description area, you will not get information about it's field or element data.
Example:
CALL TRANSACTION 'OOQA' USING bdcdata MODE ld_mode UPDATE 'S'
MESSAGES INTO t_messtab. COMMIT WORK.
SELECT single plvar otype objid begda endda
FROM hrp1000
INTO corresponding fields of lx_hrp1000
WHERE stext = t_data_upl-stext.
lt_ptxt1002-tline = t_data_upl-desc.
APPEND lt_ptxt1002.
Tips: To input Qualification Description you may using function module "RH_OBJECT_DESCRIPTION_WRITE".
Example:
CALL TRANSACTION 'OOQA' USING bdcdata MODE ld_mode UPDATE 'S'
MESSAGES INTO t_messtab. COMMIT WORK.
SELECT single plvar otype objid begda endda
FROM hrp1000
INTO corresponding fields of lx_hrp1000
WHERE stext = t_data_upl-stext.
lt_ptxt1002-tline = t_data_upl-desc.
APPEND lt_ptxt1002.
CALL FUNCTION 'RH_OBJECT_DESCRIPTION_WRITE'
EXPORTING
langu = 'E'
plvar = lx_hrp1000-plvar
otype = lx_hrp1000-otype
objid = lx_hrp1000-objid
begda = lx_hrp1000-begda
endda = lx_hrp1000-endda
subty = '0001'
duty = ' '
vtask = 'D'
TABLES
ptxt1002 = lt_ptxt1002
EXCEPTIONS
object_not_found = 1
description_required = 2
no_authority = 3
error_during_insert = 4
invalid_date = 5
undefined = 6
OTHERS = 7.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
23.27 | 0
komentar