‎2006 Jun 27 7:17 PM
Hi there,
I'm executing "MATERIAL_MAINTAIN_DARK" and I get the error "TD 600" ("Text &1 ID &2 language &3 not found"), i'm filling up right the variable "tmakt_ueb-spras = 'EN'", any idea
‎2006 Jun 27 7:24 PM
hi Ricardo,
Pass it in this way
<b>tmakt_ueb-spras = 'E'</b>
<b>tmakt_ueb-spras = sy-langu</b>
‎2006 Jun 27 7:23 PM
‎2006 Jun 27 7:24 PM
hi Ricardo,
Pass it in this way
<b>tmakt_ueb-spras = 'E'</b>
<b>tmakt_ueb-spras = sy-langu</b>
‎2006 Jun 27 7:31 PM
‎2006 Jun 27 7:33 PM
‎2006 Jun 27 7:35 PM
Constantes
tmara_ueb-mandt = sy-mandt.
tmara_ueb-tcode = 'MM01'.
tmara_ueb-tranc = 1.
tmakt_ueb-tranc = 1.
tmakt_ueb-mandt = sy-mandt.
tmakt_ueb-spras = 'P'.
tmarm_ueb-mandt = sy-mandt.
tmarm_ueb-tranc = 1.
tmarc_ueb-mandt = sy-mandt.
tmarc_ueb-tranc = 1.
tmbew_ueb-mandt = sy-mandt.
tmbew_ueb-tranc = 1.
tmvke_ueb-mandt = sy-mandt.
tmvke_ueb-tranc = 1.
Tratamento de Materiais a Integrar
LOOP AT ti_tbl_int_mat INTO wa_linha_int_mat.
MOVE-CORRESPONDING wa_linha_int_mat TO tmara_ueb.
MOVE-CORRESPONDING wa_linha_int_mat TO tmakt_ueb.
TRANSLATE wa_linha_int_mat-maktx TO UPPER CASE.
tmakt_ueb-maktg = wa_linha_int_mat-maktx.
MOVE-CORRESPONDING wa_linha_int_mat TO tmarm_ueb.
MOVE-CORRESPONDING wa_linha_int_mat TO tmarc_ueb.
MOVE-CORRESPONDING wa_linha_int_mat TO tmbew_ueb.
MOVE-CORRESPONDING wa_linha_int_mat TO tmvke_ueb.
Cria Dados Standard do Material
CALL FUNCTION 'MATERIAL_MAINTAIN_DARK'
EXPORTING
flag_muss_pruefen = 'X'
sperrmodus = 'E'
max_errors = 0
p_kz_no_warn = 'N'
kz_prf = 'S'
kz_verw = 'X'
kz_aend = 'X'
kz_dispo = 'X'
kz_test = ' '
no_database_update = ' '
call_mode = ' '
call_mode2 = ' '
user = sy-uname
suppress_array_read = ' '
flg_mass = ' '
TABLES
amara_ueb = tmara_ueb
amakt_ueb = tmakt_ueb
amarm_ueb = tmarm_ueb
amarc_ueb = tmarc_ueb
ambew_ueb = tmbew_ueb
amvke_ueb = tmvke_ueb
amerrdat = tamerrdat
EXCEPTIONS
kstatus_empty = 1
tkstatus_empty = 2
t130m_error = 3
internal_error = 4
too_many_errors = 5
update_error = 6
error_message = 8
OTHERS = 7.
*TMERRDAT-TRANC = INIT_TRANC.
TMERRDAT-MATNR = HEADDATA-MATERIAL.
TMERRDAT-MSGTY = MESSAGE_ERROR.
tamerrdat-msgid = sy-msgid.
tamerrdat-msgno = sy-msgno.
tamerrdat-msgv1 = sy-msgv1.
tamerrdat-msgv2 = sy-msgv2.
tamerrdat-msgv3 = sy-msgv3.
tamerrdat-msgv4 = sy-msgv4.
‎2006 Jun 27 7:52 PM
I'm not sure what you are asking for i hope the code helps you.
Thx in advance.
‎2006 Jun 27 9:18 PM
Let us look at this part of the code.
LOOP AT ti_tbl_int_mat INTO wa_linha_int_mat.
MOVE-CORRESPONDING wa_linha_int_mat TO tmara_ueb.
MOVE-CORRESPONDING wa_linha_int_mat TO tmakt_ueb.
TRANSLATE wa_linha_int_mat-maktx TO UPPER CASE.
tmakt_ueb-maktg = wa_linha_int_mat-maktx.
MOVE-CORRESPONDING wa_linha_int_mat TO tmarm_ueb.
MOVE-CORRESPONDING wa_linha_int_mat TO tmarc_ueb.
MOVE-CORRESPONDING wa_linha_int_mat TO tmbew_ueb.
MOVE-CORRESPONDING wa_linha_int_mat TO tmvke_ueb.
CALL FUNCTION......
Here you are doing the move-corresponding, but I don't see any appends. All <b>txxxx_ueb</b> are passed to TABLES parameters of the function module, so they are internal tables, so where are the appends?
Next, do you have a language key field in 'wa_linha_int_mat'? If so, your initial value of 'P' will be overwritten by the value in this 'wa_linha_int_mat' work area. Probably that is what is causing it.