Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

MATERIAL_MAINTAIN_DARK

Former Member
0 Likes
996

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
940

hi Ricardo,

Pass it in this way

<b>tmakt_ueb-spras = 'E'</b>

<b>tmakt_ueb-spras = sy-langu</b>

7 REPLIES 7
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
940

EN is external format, you will want to pass "E" or sy-langu.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
941

hi Ricardo,

Pass it in this way

<b>tmakt_ueb-spras = 'E'</b>

<b>tmakt_ueb-spras = sy-langu</b>

Read only

0 Likes
940

I've tried both ways and any works ....

Read only

0 Likes
940

What is the text object and ID that you are passing?

Regards,

Rich Heilman

Read only

0 Likes
940
  • 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.

Read only

0 Likes
940

I'm not sure what you are asking for i hope the code helps you.

Thx in advance.

Read only

0 Likes
940

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.