on 09-16-2014 3:57 PM
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:
MANDT | C | 3 | 042 |
PLVAR | C | 2 | 01 |
OTYPE | C | 2 | E |
OBJID | N | 8 | 00100433 |
SUBTY | C | 4 | 1035 |
ISTAT | C | 1 | |
BEGDA | D | 8 | 1 20 |
ENDDA | D | 8 | 10090620 |
VARYF | C | 10 | 100906 |
SEQNR | N | 3 | |
INFTY | C | 4 | 0 |
OTJID | C | 10 | 0020140804 |
AEDTM | D | 8 | FSANCH33 |
UNAME | C | 12 | 00000 |
REASN | C | 2 | 00 |
HISTO | C | 1 | 0 |
ITXNR | N | 8 | ###ఠHRD- |
NDAYS | P | 3 | 2=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
Hi Jose,
Just wanted to find out did my answer work?
Regards,
Glen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Can you please try IT1035 type standard table of HRP1035.
Thanks,
Ketul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check if the data is also corrupt in the HRP1035 table using SE16.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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+
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
7 | |
7 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.