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

lso programming

Former Member
0 Likes
399

Hi there,

i'd like to make an "easy" abap program for booking an EC object to a participant

I've tried 2 methods :

1 - CL_LSO_BO_PARTICIPATION_UTIL->BOOK_PARTICIPANT

2 - l_o_curri->if_lso_bookable~book_participants

Unfortunatly none of these 2 are working, maybe because of misfill of the parameters...

Should i give full list of cursus, or not ?

The easier for me, would be just to give the EC Object. But i've tried both!

  IF p_otype = cl_lso_const=>otype_curri.
    CALL FUNCTION 'LSO_CUR_TRAININGSEQUENCE_GET'
      EXPORTING
        im_plvar       = cl_lso_const=>plvar
        im_otype       = p_otype
        im_objid       = p_objid
      TABLES
        ex_trainings   = lit_train
      EXCEPTIONS
        not_found      = 1
        internal_error = 2
        OTHERS         = 3.

    LOOP AT lit_train INTO lwa_train.

      APPEND INITIAL LINE TO lit_data ASSIGNING <lwa_data> .

      <lwa_data>-learnertype = cl_lso_const=>otype_pernr .
      <lwa_data>-learnerid = p_pernr.
      <lwa_data>-ev_otype =  lwa_train-eotyp .
      <lwa_data>-ev_objid =  lwa_train-eveid .
*      <lwa_data>-ev_otype =  lwa_train-elem_type .
*      <lwa_data>-ev_objid =  lwa_train-elem_id .
      <lwa_data>-places = 1.
      <lwa_data>-participant_instance = l_o_lso_usr .

    ENDLOOP.
  ENDIF.

ANY HELP WOULD BE GRATEFULL!

SK

Edited by: Stephan Kaminski on Oct 26, 2011 1:52 PM

1 REPLY 1
Read only

Former Member
0 Likes
289

Nobody can help ?