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.


Tuesday, August 2, 2016

Thursday, July 21, 2016

MS Word as Editor in SAP

Hello there,
Sometimes we do need MS word in SAP text editor for easy writing and to use other MS word functionalities also. It's a client dependent properties, so no need to transport this settings. Also once needed you can switch it on and off from the T code I18N.
I will show you screenshots how to do that.

Go to T code I18N:

Open the I18N Menu :

Select MS word as Editor:
 Tick all the check box.


 Press Yes in all occurrences.



Wednesday, July 13, 2016

GETWA_NOT_ASSIGNED error while scheduling ALV in background

Issue :
In ALV sap report you have used color to show in output column. You have passed color code to field catalog to "emphasize" filed of your internal table. Now when you run this report in foreground, everything works fine. But when you schedule it in background , your job got failed with error "GETWA_NOT_ASSIGNED".


Cause : the possible cause is in while calling  'REUSE_ALV_GRID_DISPLAY' in the exporting parameter is_layout you might have passed field coltab_fieldname 'COLOR' and the same has not been enhanced in your output table. 

Solution : Declare a additional field "color type lvc_t_scol" into your output internal table which you are passing in 'REUSE_ALV_GRID_DISPLAY' will solve the issue.