SAP OSS Notes

500873 SAP OSS Note - FB50: Performance with many templates








SAP OSS Note 500873 version 0001 contains details of a know issue related to FB50: Performance with many templates. This includes any associated symptoms and instructions on how to fix it, see below for full details. Also check out the comments section to view/add related contributions, questions or screen shots, based on real life experience of this oss note and problem.

...For more information about the SAP support system known as OSS please check out the SAP OSS NOTES SECTION, whih includes how to download & implement them onto your SAP system using transaction code SNOTE.

Note 500873 Details:






When does this problem occur

In Transaction FB50, FB60 or FB70 function "Tree on" is activated in order to choose screen variants, account assignment templates or held documents. If many (more than 1000) templates exist, the start of the transaction takes long (some seconds).


Description of problem

Enjoy


Cause of the problem and Pre-requisites

This problem is caused by a program error.


Solution instructions

Implement the attached advance correction.

Note 500873 Correction instructions:



NOTE: Only source text changes are displayed here

*$*$----------------------------------------------------------------$*$*
*$ CORRECTION INSTRUCTIONS 0120061532 0000374604 $*
*$--------------------------------------------------------------------$*
*$ VALID FOR : $*
*$ Software Component SAP_APPL SAP Application $*
*$ Release 46A To SAPKH46A34 $*
*$ Release 46B To SAPKH46B39 $*
*$ Release 46C To SAPKH46C30 $*
*$*$----------------------------------------------------------------$*$*
*&---------------------------------------------------------------------*
*& Object REPS LGSTCF09
*& Object header FUGR GSTC
*&---------------------------------------------------------------------*
*& FORM COPY_TREEV_INTO_TREE
*&---------------------------------------------------------------------*
...
DATA: l_node1 TYPE t_node_line,
l_node2 TYPE t_node_line,
*>>>> START OF INSERTION <<<<
l_last_node TYPE t_node_line, "Note 500873
*>>>> END OF INSERTION <<<<<<
...
IF l_node2-gs_pdown IS INITIAL."Parent has no children?
l_node2-gs_pdown = l_node1-node_key. "Parents pdown to me
l_node2-expander = 'X'. "Parent has children
MODIFY TABLE gt_node FROM l_node2
TRANSPORTING gs_pdown expander.
ELSE.
*>>>> START OF DELETION <<<<<
READ TABLE gt_node INTO l_node2 "Find last current child
WITH TABLE KEY number = l_node2-number
node_key = l_node2-gs_pdown.
*>>>> END OF DELETION <<<<<<<
*>>>> START OF INSERTION <<<<
* Reuse last inserted child
IF l_last_node-gs_pup = l_node1-gs_pup AND "Note 500873
l_last_node-number = l_node1-number. "Note 500873
READ TABLE gt_node INTO l_node2 "...
WITH TABLE KEY number = l_last_node-number "...
node_key = l_last_node-node_key. "...
ELSE. "Note 500873
READ TABLE gt_node INTO l_node2 "Find last current child
WITH TABLE KEY number = l_node2-number
node_key = l_node2-gs_pdown.
ENDIF. "Note 500873
*>>>> END OF INSERTION <<<<<<
...
ENDCASE.
* Insert node into global node table
INSERT l_node1 INTO TABLE gt_node.
check_invalid_tree>.
*>>>> START OF INSERTION <<<<
l_last_node = l_node1. "Note 500873
*>>>> END OF INSERTION <<<<<<
...
*&---------------------------------------------------------------------*
*&---------------------------------------------------------------------*
*& Object REPS LGSTCTOP
*& Object header FUGR GSTC
*&---------------------------------------------------------------------*
*& FUNCTION-POOL GSTC
*&---------------------------------------------------------------------*
...
* Table holding tree with pointers and item table for TREEV mode
DATA: gt_node TYPE HASHED TABLE OF t_node_line "Tree with pointers
WITH UNIQUE KEY number node_key,
*>>>> START OF DELETION <<<<<
gt_item TYPE HASHED TABLE OF t_item_line "Items if called in
*>>>> END OF DELETION <<<<<<<
*>>>> START OF INSERTION <<<<
gt_item TYPE SORTED TABLE OF t_item_line "Note 500873
*>>>> END OF INSERTION <<<<<<
...
*&---------------------------------------------------------------------*

Effected Objects:


(REPS) - LGSTCF09
(REPS) - LGSTCTOP

Solution instructions


Please import the corrections attached to this OSS note into your SAP system using SNOTE.

You can also view the full details of this OSS note and download it to your SAP system ready for implementation using transaction code SNOTE. Once it has been downloaded you can read the full details, check out any installation instructions including manual changes and see if there are any pre-requisites.

You can also check if a new version of note 500873 has been released as well as see if the note is valid for your current SAP system landscape.

Check if SAP OSS note 500873 has already been downloaded and is valid


To check if this note has already been download, what status it has and if it is valid for your system first execute t-code SNOTE and click on the SAP Note Browser icon
Icon used to execute SAP Note Browser report within SNOTE

From here you can just enter the note number 500873 and press execute. If the note already exists it's details will be displayed. See here for full step by step instructions on how to check if an SAP note has been downloaded and is valid for your system.



If note 500873 does not exist on your system you will receive the message "Unable to find SAP Note that meets specified criteria"
Icon used to execute SAP Note Browser report within SNOTE

If this is the case you will need to download the note to you SAP system also using transaction SNOTE. For further details see Download note using SNOTE. Even if it does exist you may still want to check if you have downloaded the latest version of the note.

Alternatively you can find full details of this note on the SAP service market place(SNumber / Service market place login will be required)