on 10-26-2007 5:59 AM
Hi All,
I need to validate a field INITS of 0002 infotype. Can you please tell me how to do that...
Thanks in advance,
Kranthi
Hi,
Use Enhancement PBAS0001.
user exits -EXIT_SAPFP50M_001
EXIT_SAPFP50M_002.
Regards,
Manoj.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
i understood the code what you have written but how can i get(hold) the data of the particular field entered in 0002 infotype. ( for ex. var1 = P0002-INITS. in the code. But during runtime, value in P0002-inits is not populationg in var1 bcoz there is no such field in the importing or changing parameters in the exit.
So kindly please tell me how to hold the value entered in the infotype in the exit.
It's urgent.
Thanx in advance,
Kranthi
Hi,
I would like to clarify the below to you.
For validating the field Pa0002-inits,
Check the component EXIT_SAPFP50M_002 of the exit PBAS0001.
Here you will have a Z include. Double click on it and system will ask for creation of the include if it is not created yet.
In the include as i initially said,
Code the below.
IF sy-tcode = 'PA30'.
CASE innnn-infty.
Check if infotype is 0002.
WHEN '0002'.
*Get the Screen realtime data
CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
EXPORTING
prelp = innnn
IMPORTING
pnnnn = lw_0002.
if lw_0002-inits is initial. " Do your validation here
message e999(message class) with 'Validatio nmessage'.
endif.
endcase.
Hope this helps you.
Regards,
Subbu.
User | Count |
---|---|
101 | |
12 | |
11 | |
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.