‎2006 Jun 16 10:16 AM
Hi all,
can anyone help me with this bapi?
It doesn't works.
I call the FM in this way?
CALL FUNCTION 'BAPI_DELETE_ATTENDANCE'
EXPORTING
plvar = '01'
attendeeid = '01000003'
attendeetype = 'P'
eventid = '00000030' "the course
eventtypeid = '00000079' "the edition
* ATTENDANCE_COUNT =
ATTENDANCE_PRIORITY = '50'
* ATTENDANCE_BOOKDATE =
* SEQUENCE_NUMBER =
CANCELLATION_REASON = '0001'
IMPORTING
RETURN = return.
Are the parameters correct?
thanks
enzo
‎2006 Jun 16 10:21 AM
Did you write 'commit work' after this code?
Regards,
Subhasish
‎2006 Jun 16 10:21 AM
Did you write 'commit work' after this code?
Regards,
Subhasish
‎2006 Jun 16 10:24 AM
HI,
i tried the test function from se37 and it doesn't work.
After i think to a commit work problem, so i write a simple report with the commit work, but it doesn't work yet.
thanks,
enzo
‎2006 Jun 16 10:29 AM
‎2006 Jun 16 10:39 AM
‎2006 Jun 16 10:25 AM
Hi,
Please check out length of the values passed
in sync with FM parameters.
Regards
Amole
‎2006 Jun 16 10:29 AM
‎2006 Jun 16 10:32 AM
Hi Enzo,
Read the return table after the call to the FM.
It will let you know what is the error.
Regards,
ravi
‎2006 Jun 16 10:54 AM
Hi Enzo,
Pass the ATTENDANCE_BOOKDATE parameter. Give this parameter as the date in which he registered for the event.
You can check the result in pv7i transaction.
Regards,
Wenceslaus.
‎2006 Jun 16 11:14 AM
Hi all,
I pass also the ATTENDANCE_BOOKDATE parameter but nothing.
and the return parameter is empty.
‎2006 Jun 16 11:18 AM
Hi Enzo,
These are the parameters that I use...
<b>BAPI_DELETE_ATTENDANCE</b>
Input
PLVAR 01
ATTENDEEID USERNAME
ATTENDEETYPE US
EVENTID 50070006
ATTENDANCE_COUNT 1
ATTENDANCE_PRIORITY 51
ATTENDANCE_BOOKDATE 06/09/2006
Check whether you are passing the right parameters:
You can get the ATTENDEETYPE by executing this piece of code...
DATA $pernr LIKE p1000-otype.
DATA $user TYPE otype.
DATA party TYPE otype. "Attendee
DATA parid TYPE realo. "Attendee Type
DATA i_parid LIKE ess_emp-employeenumber.
DATA priority LIKE p1001-priox. "Priority
PERFORM re77s0(mstt77s0) USING 'SEMIN' 'INPRI' priority i_subrc.
IF i_subrc NE 0.
priority = 50.
ENDIF.
PERFORM re77s0(mstt77s0) USING 'OTYPE' 'PERNR' $pernr i_subrc.
IF i_subrc NE 0.
$user = 'US'.
ENDIF.
PERFORM re77s0(mstt77s0) USING 'OTYPE' 'USER' $user i_subrc.
IF i_subrc NE 0.
$pernr = 'P'.
ENDIF.
CALL FUNCTION 'HR_GETEMPLOYEEDATA_FROMUSER'
EXPORTING
username = sy-uname
IMPORTING
employeenumber = i_parid
EXCEPTIONS
user_not_found = 1
countrygrouping_not_found = 2
infty_not_found = 3
OTHERS = 4.
IF sy-subrc NE 0.
party = $user.
parid = sy-uname.
ELSE.
parid = i_parid.
party = $pernr.
ENDIF.
Ps: Reward helpful posts.
Regards,
Wenceslaus.