2007 Feb 21 1:27 AM
Hi,
I am trying to Default IT0002 PersonalID number to 999999999 using the BADI HRPAD00INFTY method IF_EX_HRPAD00INFTY~BEFORE_OUTPUT.
DATA: I0002 LIKE P0002.
CLASS CL_HR_PNNNN_TYPE_CAST DEFINITION LOAD.
CASE INNNN-INFTY.
WHEN '0002'.
CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
EXPORTING
PRELP = INNNN
IMPORTING
PNNNN = I0002.
MOVE '999999999' TO I0002-PERID.
CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PNNNN_TO_PRELP
EXPORTING
PNNNN = I0002
IMPORTING
PRELP = INNNN.
ENDCASE.
But when i executed this ,it is not getting Defaulted . I implemented the same code in UserExit PBAS0001 and able to get it . Can Anybody help me why this doesnt work in the BADI
Thanks & Regards,
Subhash.
2007 May 04 4:35 PM
Subhash,
BADI still cannot return a changed record back to the screen. User exits can but not BADI's.
Check the exporting or returning parameters of the method that you implemented. Does it have any?
Kshitij
2007 Feb 21 3:57 AM
HI,
Try and debug the place where you are trying to get the active implementtion of the BADI and see if you are able to get your implementation as the active implementation if this is not the case make your implementation as the active.
Regards,
Sesh
2007 Feb 21 4:47 AM
Thank u Sesh for Replying .
The Implementation and the method both are Active and when i put a break point in my code , i am able to get into there . But i still dont know why it doesn't work .
Regards,
Subhash.
2007 May 04 4:35 PM
Subhash,
BADI still cannot return a changed record back to the screen. User exits can but not BADI's.
Check the exporting or returning parameters of the method that you implemented. Does it have any?
Kshitij
2007 May 04 5:02 PM
Kshitij , thanks for Replying.
I checked the exporting parameters and as u said , it doesnt return anything .
So do i need to add the parameter INNNN as exporting to the Standard Interface ?
As far as i know , standard Interface shouldn't be changed from Upgradation point of view.
Is their any other solution ?
With Regards,
Subhash N .
2007 May 04 5:20 PM
Yes, like Kshitij mentioned, this is known limitation of the BAdI.. is this reqt for a select few or across the board? you might as well think of making the p0002-perid field, display only or even hide it using v_t588M.
~Suresh
2010 Feb 18 2:36 PM
This BAdI has no exporting parms. It is only for providing check/validations and sending a message back.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |