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

Function group MALH include LMALHARA

Former Member
0 Likes
1,249

Good morning,

we added a custom field in MARA. we deleted it but whe i use the history in MM01 a dump occurs in the autogenerated code in MARA because the custom filed ZBARCODE IS YET USED.

Why? where is generated this code?

WHEN 'MARA-ZBARCODE            '.
           IF FUTURE_F IS INITIAL.
             MARA-ZBARCODE                      = AUSGABE-F_OLD.
           ELSE.
             MARA-ZBARCODE                      = AUSGABE-F_NEW.
           ENDIF.

thanks.

1 ACCEPTED SOLUTION
Read only

virtuzant
Explorer
956

Hi Friend,

what did you do to resolve this issue. What we are thinking is to rename the field which we have changed and then activate it. once it is activated, we will change the field and reactive MARA table.

Let us know what you have done to resolve the issue.

Thanks, have a nice time.

Regards,

Vamsi

The current ABAP program "SAPLMG02" had to be terminated because it has
come across a statement that unfortunately cannot be executed.

The following syntax error occurred in program "SAPLMALH " in include "LMALHARA
 " in
line 2159:
"The data object "MARA" has no component called "ZZPDC_LTXT", but there"
" is a component called "ZZPDC_STXT"."
" "
" "

The current ABAP program "SAPLMG02" had to be terminated because it has
come across a statement that unfortunately cannot be executed.

The following syntax error occurred in program "SAPLMALH " in include "LMALHARA
 " in
line 2159:
"The data object "MARA" has no component called "ZZPDC_LTXT", but there"
" is a component called "ZZPDC_STXT"."
" "
" "

Active Calls/Events

No.   Ty.          Program                             Include
      Name

    7 FUNCTION     SAPLMG02                            LMG02F00
      MARA_HISTORY_OR_FUTURE
    6 FORM         SAPLMG02                            LMG02F00
      MARA_HISTORY_OR_FUTURE
    5 FORM         SAPLMG02                            LMG02F00
      LESEN_MARA
    4 FUNCTION     SAPLMG02                            LMG02U03
      READ_MAT_ANKER
    3 MODULE (PAI) SAPLMGMM                            LMGMMI12
      LESEN_MAT_ANKER
    2 FUNCTION     SAPLMGMM                            LMGMMU01
      MATERIAL_MAINTAIN_DIALOGUE
    1 MODULE (PAI) SAPMMG01                            MMG01I01
      START_DIALOG

3 REPLIES 3
Read only

virtuzant
Explorer
957

Hi Friend,

what did you do to resolve this issue. What we are thinking is to rename the field which we have changed and then activate it. once it is activated, we will change the field and reactive MARA table.

Let us know what you have done to resolve the issue.

Thanks, have a nice time.

Regards,

Vamsi

The current ABAP program "SAPLMG02" had to be terminated because it has
come across a statement that unfortunately cannot be executed.

The following syntax error occurred in program "SAPLMALH " in include "LMALHARA
 " in
line 2159:
"The data object "MARA" has no component called "ZZPDC_LTXT", but there"
" is a component called "ZZPDC_STXT"."
" "
" "

The current ABAP program "SAPLMG02" had to be terminated because it has
come across a statement that unfortunately cannot be executed.

The following syntax error occurred in program "SAPLMALH " in include "LMALHARA
 " in
line 2159:
"The data object "MARA" has no component called "ZZPDC_LTXT", but there"
" is a component called "ZZPDC_STXT"."
" "
" "

Active Calls/Events

No.   Ty.          Program                             Include
      Name

    7 FUNCTION     SAPLMG02                            LMG02F00
      MARA_HISTORY_OR_FUTURE
    6 FORM         SAPLMG02                            LMG02F00
      MARA_HISTORY_OR_FUTURE
    5 FORM         SAPLMG02                            LMG02F00
      LESEN_MARA
    4 FUNCTION     SAPLMG02                            LMG02U03
      READ_MAT_ANKER
    3 MODULE (PAI) SAPLMGMM                            LMGMMI12
      LESEN_MAT_ANKER
    2 FUNCTION     SAPLMGMM                            LMGMMU01
      MATERIAL_MAINTAIN_DIALOGUE
    1 MODULE (PAI) SAPMMG01                            MMG01I01
      START_DIALOG

Read only

Former Member
956

After reajusting youtr table through SE14, you have to regenerate all standrad prgm using your standard table (including your extension). This can be done using standrad program 'GENERATE' (se38) and putting name of your standard table (tested with MARA and MARC).

Read only

0 Likes
956

I had the same problem and the program 'GENERATE' was the solution. Thanks!