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

About lsmw description error

WLZ
Advisor
Advisor
0 Likes
697

Dear,

I met a lsmw description error.

Some information are follows:

Object Attributes: object:0020, method:0000, program name:RMDATIND, program type:Direct Input.

for structure BMMH7, function spec said, "Basic data texts will be set in structure BMMH7. There will be as many lines of type u201C8u201D as source field TEXTE_CMD_XX (with XX = FR or EN) populated, so 2 at a maximum."

In Conversion Rules, the codes are following:

BMMH7-TDID = 'GRUN'.

  • Target Field: BMMH7-TDSPRAS Language key

IF sy-langu = 'F'.

bmmh7-tdspras = 'F'.

ELSEIF sy-langu = 'E'.

bmmh7-tdspras = 'E'.

ENDIF.

BMMH7-TDFORMAT = '*'.

  • Target Field: BMMH7-TDLINE Text Line

IF sy-langu = 'F'.

bmmh7-tdline = zmaterial-texte_cmd_fr.

ELSEIF sy-langu = 'E'.

bmmh7-tdline = zmaterial-texte_cmd_en.

ENDIF.

  • Target Field: BMMH7-TDSPRASISO Language according to ISO 639

IF sy-langu = 'F'.

bmmh7-tdsprasiso = 'FR'.

ELSEIF sy-langu = 'E'.

bmmh7-tdsprasiso = 'EN'.

ENDIF.

But after I 'Start Direct Input Program', error message display 'Several descriptions exist for language EN'. I log on system with english.

Could you please tell me what is the error?

Dear,

I met a lsmw description error.

Some information are follows:

Object Attributes: object:0020, method:0000, program name:RMDATIND, program type:Direct Input.

for structure BMMH7, function spec said, "Basic data texts will be set in structure BMMH7. There will be as many lines of type u201C8u201D as source field TEXTE_CMD_XX (with XX = FR or EN) populated, so 2 at a maximum."

In Conversion Rules, the codes are following:

BMMH7-TDID = 'GRUN'.

  • Target Field: BMMH7-TDSPRAS Language key

IF sy-langu = 'F'.

bmmh7-tdspras = 'F'.

ELSEIF sy-langu = 'E'.

bmmh7-tdspras = 'E'.

ENDIF.

BMMH7-TDFORMAT = '*'.

  • Target Field: BMMH7-TDLINE Text Line

IF sy-langu = 'F'.

bmmh7-tdline = zmaterial-texte_cmd_fr.

ELSEIF sy-langu = 'E'.

bmmh7-tdline = zmaterial-texte_cmd_en.

ENDIF.

  • Target Field: BMMH7-TDSPRASISO Language according to ISO 639

IF sy-langu = 'F'.

bmmh7-tdsprasiso = 'FR'.

ELSEIF sy-langu = 'E'.

bmmh7-tdsprasiso = 'EN'.

ENDIF.

But after I 'Start Direct Input Program', error message display 'Several descriptions exist for language EN'. I log on system with english.

Could you please tell me what is the error?

1 REPLY 1
Read only

WLZ
Advisor
Advisor
0 Likes
512

I asked function consultant, the error reason is:

BHMM1 is the same as logon language, but BHMM5 must be another language information.