Friday, August 5, 2016

SYNTAX_ERROR error in sap code "SAPLMALH "

Hi ,
While executing SAP standard Transaction either from MM side or SD side , sometimes you receive dump with SYNTAX_ERROR in SAP Standard code where the sub program can be  lmalhara, lmalharc, lmalhard, lmalhbew, lmalhvke etc ( it will start with LMALH***, where *** will the last 3 character from standard SAP tables. Then error
The data object "MARA" does not have a component called "XXXXXXXX"" .

The reason behind it because sometime we do enhance SAP standard table with custom field. And later we delete that field from that table. Once you add any field , system updated those LMALHXXX programs with the new field details. Now when you delete the field that time you need to re generate those LMALHXXX programs.
To do this , go to SE38, give program name "GENERATE" , and give the table name where you are getting the error , like for above example you can give input MARA to that program.
Once program executed, LMALHXXX got updated and the deleted field will be removed from that program.


No comments: