an hour ago
Hello BI fans,
we use FM RSDMD_API_DELETE in a custom webdynpro to delete a single value of an infoobject. Of course the value is not used in any info provider (no transaction data).
The RC is always 0, but the value is not deleted.
CALL FUNCTION 'RSDMD_API_DELETE'
EXPORTING
i_iobjnm = ‘HH_XX’
i_t_data = lt_attr_neu
i_flg_delete_all = rs_c_true
i_flg_delete_texts = rs_c_false.
LT_ATTR_NEU[1] (in the debugger)
RECORD_NO 1
IOBJNM HH_XX
VALUE value
A) If HH_XX is a compounded infoobject the VALUE field is concatenated (1st compound field, 2nd compound field, value).
-> RC is always 0, but nothing is deleted
B) If HH_XX is a non compounded infoobject the VALUE field is only the value.
-> RC is always 0, but nothing is deleted.
I have also tried with COMMIT WORK after CALL FUNCTION and RC=0, but it makes no difference.
And the worst thing: when I pass a non-existent value to the FM the RC is 0 too! Crazy!
Unfortunately the FM has no exceptions and the documentation doesn’t explain the meaning of the export parameters.
The 4 export parameters in the debugger of the FM RSDMD_API_DELETE (before ENDFUNCTION):
L_RESULT 6
L_T_SIDVAL_USED [0x2(12)]Initial Standard Table
E_COUNT_USE 0
L_T_PROTOCO [0x13(654)]Initial Standard Table
The included FM RSDMD_DEL_MASTER_DATA explains the export parameter e_result in his documentation (these should be constants):
RSDMD_C_ALL_DELETED 0
RSDMD_C_PARTS_DELETED 1
RSDMD_C_BG_STARTED 2
RSDMD_C_NONE_DELETED 4
RSDMD_C_NONE_DELETEABLE
RSDMD_C_ERROR 5
But what means the return value 6?
If I don't pass the paramter i_flg_delete_texts L_RESULT=0, but nothin has been deleted.
Does anyone have experience using this FM? I don’t find a note according this problem.
The release is SAP BW/4HANA 2023, DW4CORE 4000006
Thanks and best wishes, Britta
Request clarification before answering.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.