Friday 27 May 2016

SNOTE 0002269215: After an upgrade a UI element is not visible any more

SAP server up-gradation brings with it many issue. One such issue was faced recently when server was upgraded from ECC6 EHP5 to ECC6 EHP7.

One of the WD application was having charts and graphs in display. After up-gradation, everything works but chart were not coming. After a lot of struggle, issue was raised to SAP. SAP comes up with a SNOTE. SNOTE number is 0002269215.

According to this note, height of the container UI element (which was eventually containing the charts/graphs) comes as 100% by default when we use that container. This height was supposed to be changed to a fixed size eg. 300px, 400px in new version.

Once done, graphs/charts were coming as earlier.
 
Happy Learning :)

Thursday 12 May 2016

Dump while exporting the ALV data into local file


Recently I confronted to one issue in ALV. ALV was being implemented through Oops and data was being displayed. Everything was perfect but when user tried to export the ALV data to local file, it was going into below dump.
This dump was coming into a standard report and the export function is also the standard one. So actually there was no point of its not working. I started debugging and the issue came out to be in our code only.
Actually we have created field catalog based on one data dictionary structure. And final internal table to be displayed was based on one locally defined structure. Now this locally defined structure was having every field of dictionary structure except one. And this was causing error.
When control was going into program SAPLKKBL it was doing a case-end case on field catalog and in each case, it will look for that field in final internal table and will try to assign a field symbol. Now because one particular field was there in field catalog but not in final internal table, it was going into the case but when it tries searching for that field in internal table it was not finding anything and field symbol remain unassigned. And this dump was coming.
Now this is beautiful. One small issue in Z code was causing dump from standard code. Strange.
Happy learning :)