‎2007 Jul 06 12:12 PM
How Do Everyone,
I am adding some code to the user exit EXIT_SAPFP50M_002. This calls the
module ZXPADU02 which is activated for PAI when the HR screen PA30
has been amended. The problem I am having is that I need to refer to
one of the screen fields Q0088-QWKDA which is based on the structure
Q0088. When I run debugger and put a breakpoint in ZXPADU02 I cannot
reference the field Q0088-QWKDA as it does not exist.
Can anyone tell me what I need to do in order to access this field??
Many thanks
Andy
‎2007 Jul 06 12:34 PM
Hi Andy,
Please use the below code .
data: i0088 type p0088,
i_q0088 type q0088.
data: message like pgb_messge.
CASE innnn-infty.
********************For Infotype 0088**************************************
WHEN '0088'.
CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
EXPORTING
prelp = innnn
IMPORTING
pnnnn = i0088.
After importing the i0088 use the below function module
call function 'HR_GB_P0088_QUALIFYING_WEEK'
exporting
p_0088 = i0088
importing
VALIDATION_OK =
message = message
changing
q_0088 = i_q0088
exceptions
message_created = 1
constant_value_not_found = 2
others = 3
.
ENDCASE.
Now you check in debugging mode for the field Q0088-QWKDA.
Message was edited by:
Velangini Showry Maria Kumar Bandanadham
Message was edited by:
Velangini Showry Maria Kumar Bandanadham
‎2007 Jul 06 12:46 PM
Cheers mate for replying,
I have entered the code and ran the debugger but all the fields in the structure
i_q0088 are all empty i.e. set to '00000000'
Any ideas??