09-19-2009 5:25 PM
Hello all, I need your help with something.
For severals module bookings, I have to insert usage in infotype 1725 (Academic Work Usage) for the student, and in infotype 1724 (Academic Work Usage) for studies object, as in the booking process those infotypes were not updated (due to an error in inserting the context data in the HRIQ_STUDENT_BOOKING FM).
I am using the FM HRIQ_AW_INSERT_USAGE with the folowing parameters:
IV_PLVAR=01
IV_STUDENT=STID
IS_ACWORK-AWOTYPE=SM
IS_ACWORK-AWOBJID=SMID
IS_ACWORK-AWBEGDATE=SESSION BEGDA
IS_ACWORK-AWENDDATE=SESSION ENDDA
IS_ACWORK-AWSTATUS=01
IS_ACWORK-BOOKDATE=18.09.2009
IS_ACWORK-ACAD_SESSION=ACAD SESSION
IS_ACWORK-ACAD_YEAR=ACAD YEAR
IS_ACWORK-CPATTEMP=3,00000
IS_ACWORK-CPUNIT=CRH
IT_PROGRAMTYPE=MS
IT_PROGRAM=SCID
IV_AWID=MODREGID for the current booking
IV_MODE=C
But when I run it, nothing is updated!!
Does anyone can tell me if I am missing something?
Or maybe there is a better way to do what I need that you can reccomend...
Many thanks in advance.
Diego
09-21-2009 1:19 PM
Diego,
Use IV_MODE = 'INS'. This function module is expecting commit work.
Prabhat Singh
09-21-2009 1:19 PM
Diego,
Use IV_MODE = 'INS'. This function module is expecting commit work.
Prabhat Singh
09-21-2009 2:01 PM
Hello Prabhat, thanks for your answer. You are right, the IV_MODE expects the INS parameter. But in spite I ran the FM with INS, I still don't get any result. Do you think I have to run after this FM another one to commit th changes?? Any other idea?
Thanks,
Diego
09-21-2009 2:11 PM
Diego,
Yes, as i said in my first reply this Function module is expecting commit work. It is just putting the data in buffer. Call BAPI_TRANSACTION_COMMIT to commit the transaction.
Thanks,
Prabhat Singh
09-28-2009 11:21 PM