on 09-30-2007 1:26 PM
Hello all,
I'm updating attributes using the func mod RSDMD_WRITE_ATTRIBUTES_TEXTS . It was running ok all this while but suddenly we started getting dumps. I cheked the dump and it dumps in the func mod bal_log_create. I'm not sure what to do to avoid this.
Has any of you experienced this?.
Please reply
Regards,
Rahul
Hi Rahul,
Implement the below to avoid the dump.
Note : P_pack is the parameter. Test it by passing 1000 or 2000 to that.
PARAMETERS: p_pack TYPE i .
DATA: l_t_attr TYPE TABLE OF rsd_s_iobjnm,
l_s_attr TYPE rsd_s_iobjnm,
e_v_tabclass(1) TYPE c VALUE 'M',
e_t_idocmsg TYPE TABLE OF bdidocstat,
e_subrc LIKE sy-subrc,
l_t_riobjnm TYPE RANGE OF rsd_iobjnm,
l_s_riobjnm LIKE LINE OF l_t_riobjnm,
l_v_count TYPE i,
l_v_to TYPE i,
l_v_from TYPE i,
l_t_control_split TYPE TABLE OF /bic/pzaa_contr.
l_s_attr-iobjnm = 'ZAA_PLINF'.
APPEND l_s_attr TO l_t_attr.
SORT gt_control BY /bic/zaa_contr.
DELETE ADJACENT DUPLICATES FROM gt_control COMPARING /bic/zaa_contr.
DESCRIBE TABLE gt_control LINES l_v_count.
WHILE l_v_to LT l_v_count.
REFRESH l_t_control_split.
l_v_from = l_v_to + 1.
l_v_to = l_v_to + p_pack.
IF l_v_to > l_v_count.
l_v_to = l_v_count.
ENDIF.
APPEND LINES OF gt_control
FROM l_v_from TO l_v_to TO l_t_control_split.
IF NOT l_t_control_split[] IS INITIAL.
CALL FUNCTION 'RSDMD_WRITE_ATTRIBUTES_TEXTS'
EXPORTING
i_iobjnm = 'ZAA_CONTR'
i_tabclass = e_v_tabclass
i_t_attr = l_t_attr
IMPORTING
e_t_idocstate = e_t_idocmsg
e_subrc = e_subrc
TABLES
i_t_table = l_t_control_split[]
EXCEPTIONS
attribute_name_error = 1
iobj_not_found = 2
generate_program_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDIF.
ENDWHILE.
Regards,
Siva.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi rahul...this problem might occur when you are trying to update many combinations at one go... I guess this is what you are doing! One way to get around this problem is to send the combinations by splitting it into certain packets before you send it to the RSDMD FM...try to update it in a loop...it will work!
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
4 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.