cancel
Showing results for 
Search instead for 
Did you mean: 

Problem using FM 'RH_READ_INFTY'

Former Member
0 Kudos

Hi,

I have a problem when i try to use 'RH_READ_INFTY' with some infotypes, as 1035. I'm doing this as follows:

lt_it1035 LIKE hrp1035 OCCURS 0 WITH HEADER LINE

CALL FUNCTION 'RH_READ_INFTY'

       EXPORTING

         plvar                = '01'

         otype                = 'E'

         objid                = lv_objid

         infty                = '1035'

         istat                = '1'

         begda                = lv_begda

         endda                = lv_endda

       TABLES

         innnn                = lt_it1035

       EXCEPTIONS

         all_infty_with_subty = 1

         nothing_found        = 2

         no_objects           = 3

         wrong_condition      = 4

         wrong_parameters     = 5

         OTHERS               = 6.

The FM is reading a record from HRP1035, but data is not in its corresponding field:

MANDTC3042
PLVARC201
OTYPEC2E
OBJIDN800100433
SUBTYC41035
ISTATC1                                                                               
BEGDAD8   1  20
ENDDAD810090620
VARYFC10100906
SEQNRN3                                                                               
INFTYC4   0
OTJIDC100020140804
AEDTMD8FSANCH33
UNAMEC12       00000
REASNC200
HISTOC10
ITXNRN8###ఠHRD-
NDAYSP32=002-

Starting subty field, it's filling register fields with incorrect data or blanks. It's very strange, i have used this FM many times, but this never happened to me. Could you please help me?

Thanks in advance,

Jose

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member201275
Active Contributor
0 Kudos

Hi Jose,

Just wanted to find out did my answer work?

Regards,

Glen

Former Member
0 Kudos

Hi,

Can you please try IT1035 type standard table of HRP1035.

Thanks,

Ketul

Former Member
0 Kudos

Hi,

Thanks for your reply, but this solution doesn't fix my problem

former_member201275
Active Contributor
0 Kudos

This will work:

data: lt_it1035 type table of p1035.

kmoore007
Active Contributor
0 Kudos

Check if the data is also corrupt in the HRP1035 table using SE16.

Former Member
0 Kudos

Hi,

Data is correctly registered in table. I have used this FM with same parameters but changing the infotype and it works ok, it's very strange.

benamor_bentebba
Participant
0 Kudos

Hi,

try to replace it by:

  DATA: it_it1035 LIKE P1035 OCCURS 0 WITH HEADER LINE.

  DATA: HROBJECT LIKE HROBJECT OCCURS 0 WITH HEADER LINE.

  CALL FUNCTION 'RH_READ_INFTY'
EXPORTING
*         AUTHORITY            = 'DISP'
*         WITH_STRU_AUTH       = 'X'
INFTY               
= '1035'
ISTAT               
= '1'
*         EXTEND               = 'X'
*         SUBTY                = ' '
BEGDA               
= lv-begda
ENDDA               
= lv-endda
*         CONDITION            = '00000'
*         INFTB                = '1'
*         SORT                 = 'X'
*         VIA_T777D            = ' '
TABLES
INNNN               
= it_it1035
OBJECTS             
= HROBJECT
EXCEPTIONS
ALL_INFTY_WITH_SUBTY
= 1
NOTHING_FOUND       
= 2
NO_OBJECTS          
= 3
WRONG_CONDITION     
= 4
OTHERS               = 5.


A+

Former Member
0 Kudos

Hi Benamor!

Same result with this change, FM doesn't work properly