11-27-2011 9:44 AM
Hi All,
I am new to HR ABAP,
I have Requirement like update the Screen fields data EITXT(Time/Measurement Unit Text) in Q0014 how to do this can you suggest me.
Thanks in advance,
Rajesh Vadde.
11-27-2011 11:17 AM
When exactly do you need to update this value?
When creating or modifying a record whatever the user input is? When displaying a record already created?
if so, you can do it creating an implementation for the standard BADI definition HRPADINFTY00
The code would be placed either on the BEFORE_OUTPUT or in the AFTER_INPUT method depending on your requirements
method IF_EX_HRPAD00INFTY~AFTER_INPUT.
FIELD-SYMBOLS <fs> type Q0014.
assign ('(MP001400)Q0014') TO <FS>.
IF SY-SUBRC EQ 0.
<FS>-EITXT = 'Your value'. <=== Your custom value
ENDIF.
endmethod.
PS: Also, you have to bear in mind that there are several standard checks for this infotype involving this field against several SAP standard tables like T510, so maybe modifying this value you can get any error messages..
11-27-2011 3:12 PM