Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_DELETE_ATTENDANCE

Former Member
0 Likes
1,133

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,069

Did you write 'commit work' after this code?

Regards,

Subhasish

10 REPLIES 10
Read only

Former Member
0 Likes
1,070

Did you write 'commit work' after this code?

Regards,

Subhasish

Read only

0 Likes
1,069

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

Read only

0 Likes
1,069

check

attendeeid = '01000003'

it's length is 45 char..

Read only

0 Likes
1,069

I tried, but nothing.

It dosn't work.

Read only

Former Member
0 Likes
1,069

Hi,

Please check out length of the values passed

in sync with FM parameters.

Regards

Amole

Read only

0 Likes
1,069

Hi Amole, I checked it, they are ok.

Read only

Former Member
0 Likes
1,069

Hi Enzo,

Read the return table after the call to the FM.

It will let you know what is the error.

Regards,

ravi

Read only

Former Member
0 Likes
1,069

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.

Read only

0 Likes
1,069

Hi all,

I pass also the ATTENDANCE_BOOKDATE parameter but nothing.

and the return parameter is empty.

Read only

0 Likes
1,069

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.