Skip to Content
0
Former Member
Aug 08, 2005 at 02:40 AM

problem using SAPWL_STATREC_GET_ENTRY_ID

94 Views

Hello ,

i am using FM SAPWL_STATREC_GET_ENTRY_ID, as

CLEAR wa_v2_record.

MOVE-CORRESPONDING <all_stats>-record TO wa_v2_record.

CALL FUNCTION 'SAPWL_STATREC_GET_ENTRY_ID'

EXPORTING

v2_record = wa_v2_record

IMPORTING

entry_id = entry_id

converted_report_name = program.

save_record = <all_stats>-record.

IF <all_stats>-record-okey <> space.

READ TABLE key_texte WITH KEY okey = <all_stats>-record-okey

INTO wa_key_texte.

IF sy-subrc <> 0.

wa_key_texte-okey = <all_stats>-record-okey.

wa_key_texte-ikey = <all_stats>-record-ikey.

INSERT wa_key_texte INTO TABLE key_texte.

ENDIF.

ENDIF.

The problem now i am facing is that it is giving me value RFC of program, but it is RSABAPPROG(found in debugging),

The cause of this is that v2_record is checked in this FM.

it checks whether it is initial or not, it is not initial and even then this condition fails.

hope you got it

regards