SAP for Higher Education and Research Discussions
Spark conversations about student engagement, research optimization, and administrative efficiency using SAP in higher education and research. Join in!
cancel
Showing results for 
Search instead for 
Did you mean: 

DELETE MASS PROGRESS RESULTS

Former Member
0 Kudos

Hi experts,

I'm having a really weird issue. I'm trying to use the function HRIQ_PT_PROGRESS_DELETE_MASS to delete massively all the progressions results of my ST's. We have done a little program that uses this function like this


    call function 'HRIQ_PT_PROGRESS_DELETE_MASS'
      exporting
        it_st_objid                   = it_carga
        iv_begda                      = '19000101'
        iv_endda                      = '99991231'
     exceptions
       inconsistent_parameters       = 1
       error_delete                  = 2
       others     

The Weird issue is that when i called doesn't delete anything, but whe i used from the se37 boldit works fine! bold. Can Someone please have any ideas why?

I did a liltle debug and the standard calls the following function:


call function 'RH_READ_INFTY_NNNN'
      exporting
           authority             = authority
           with_stru_auth        = with_stru_auth
           infty                 = infty
           istat                 = istat
           extend                = extend
           subty                 = subty
           begda                 = begda
           endda                 = endda
           condition             = condition
           inftb                 = inftb
           sort                  = sort
      tables
           innnn                 = innnn
           objects               = objects
      exceptions
           nothing_found         = 1
           wrong_condition       = 2
           infotyp_not_supported = 3
           wrong_parameters      = 0
           others                = 5.

The result is that the objects table is emtpy, but when i run it from the se37 is boldnotbold empty.

I hope someone can help me.

Regards,

Cesar Felce

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Cesar,

I think you are not appending St object ids in Table type variable 'it_carga'. You can refer to program "RHIQ_STUDENT_DATA_GROUP_DELETE' .

Prabhat Singh

View solution in original post

6 REPLIES 6

Former Member
0 Kudos

Cesar,

I think you are not appending St object ids in Table type variable 'it_carga'. You can refer to program "RHIQ_STUDENT_DATA_GROUP_DELETE' .

Prabhat Singh

0 Kudos

Hi Prabhat,

I did my debug and i do append the table, i have allready checked with another abap this situation and he was really surprised.

What does this function HRIQ_STUDENT_DATA_GROUP_DELETE do??, i did my search and I couldn't founded. The functions that are on my sistem are:

HRPIQ00DELETION_TOOLS

HRIQ_STUDENT_DELETE_LOG_APPEND

HRIQ_STUDENT_DELETE_LOG_CREATE

HRIQ_STUDENT_DELETE_LOG_DISP

HRIQ_STUDENT_DELETE_LOG_SAVE

HRIQ_STUDENT_MASS_DELETE

HRPIQ00RELATPERSON

HRIQ_STUDENT_RELPERS_DELETE

HRPIQ00STUDENT_EXCH_DB

HRIQ_STUDENT_EXCHIN_DELETE_DB

HRIQ_STUDENT_EXCHOUT_DELETE_DB

HRPIQ00STUDENT_REGIST_DIAL

HRIQ_STUDENT_REG_DELETE_DIAL

HRPIQ00STUDENT_REGIST_SAVE

HRIQ_STUDENT_ADMIS_DELETE_DB

HRIQ_STUDENT_DEREG_DELETE_DB

HRIQ_STUDENT_REG_DELETE_DB

The fact is that the function is working but only on the se37!

thanks,

Cesar Felce

0 Kudos

Cesar,

'RHIQ_STUDENT_DATA_GROUP_DELETE' is a program. It is not a function module. You can copy this program and create your own program to delete student data.

Prabhat Singh

0 Kudos

Hi Prabhat,

I tried the standar app, i created a variant with the data i need, but it doesn't delete de progress data, i´m going to do a debug to try to find out what is happening.

What another thing can i do?

Thanks,

Cesar

0 Kudos

Cesar,

Standard program is not going to work because there is a "exit" statement. That's the reason I said to copy that program.

Prabhat Singh

0 Kudos

Thanks Prabhat,

That was a very helpfull app! I'm going to analyze that program that i just copied. This one definetly erase the progression results, but what another thing is erasing?... I'm really nervous to use it because this app could delete another data that it shouldn't be deleting.

The data group that i checked was the program progression and program type progression.

The thing that this app uses the same function that i was ussing. Why does the function work in this app and in mine doesn't? That's the question!

This not really resolve my issue but, definetly is very helpfull, because i have to analyze this app.

Thanks again,

Cesar Felce