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

SAP program for IMG type display.

Former Member
0 Likes
940

hi experts,

i need to implement my display like that of SPRO(implementation guide).

pls give a sap built-in program.

thanks in advance.

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
785

Hi,

You can try executing this


DATA:id TYPE  ttree-id,
     msg TYPE hier_mess,
     uparam TYPE TABLE OF streeprop,
     wuparam TYPE streeprop,
     hier TYPE TABLE OF hier_iface.

CALL FUNCTION 'S_CUS_IMG_GET_REFERENCE_IMG_ID'
     IMPORTING
          reference_img_id = id.

wuparam-name = 'CONTROL_ENABLED'.
wuparam-value = 'X'.
APPEND wuparam TO uparam.
wuparam-name = 'APPLICATION'.
wuparam-value = 'CU'.
APPEND wuparam TO uparam.
wuparam-name = 'PROJECT'.
wuparam-value = ' '.
APPEND wuparam TO uparam.
wuparam-name = DYNPRO_TITLE'.
wuparam-value = 'Project/View '.
APPEND wuparam TO uparam.

CALL FUNCTION 'STREE_EXTERNAL_DISPLAY'
  EXPORTING
    structure_id                = id
   language                    = sy-langu
   display_structure           = 'X'
   no_commit_work              = 'X'
   use_remote_connection       = ' '
   rfc_destination             = 'NONE'
   position_on_node            = ' '
*   position_on_nodes           = ' '
   id_for_use_as_filter        = ' '
 IMPORTING
   message                     = msg
*   TOGGLE                      =
 TABLES
   user_parameters             = uparam
   position_hierarchy          = hier

5 REPLIES 5
Read only

Former Member
0 Likes
785

Hi,

Well, this is a very simple tree so I would have a look to SIMPLE_TREE* or BCALVTREE programs...

Kr,

Manu.

Read only

0 Likes
785

hi manu,

thanks but i needed exact spro like structure giving sap program.do u knw more of them.

regards,

charu

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
786

Hi,

You can try executing this


DATA:id TYPE  ttree-id,
     msg TYPE hier_mess,
     uparam TYPE TABLE OF streeprop,
     wuparam TYPE streeprop,
     hier TYPE TABLE OF hier_iface.

CALL FUNCTION 'S_CUS_IMG_GET_REFERENCE_IMG_ID'
     IMPORTING
          reference_img_id = id.

wuparam-name = 'CONTROL_ENABLED'.
wuparam-value = 'X'.
APPEND wuparam TO uparam.
wuparam-name = 'APPLICATION'.
wuparam-value = 'CU'.
APPEND wuparam TO uparam.
wuparam-name = 'PROJECT'.
wuparam-value = ' '.
APPEND wuparam TO uparam.
wuparam-name = DYNPRO_TITLE'.
wuparam-value = 'Project/View '.
APPEND wuparam TO uparam.

CALL FUNCTION 'STREE_EXTERNAL_DISPLAY'
  EXPORTING
    structure_id                = id
   language                    = sy-langu
   display_structure           = 'X'
   no_commit_work              = 'X'
   use_remote_connection       = ' '
   rfc_destination             = 'NONE'
   position_on_node            = ' '
*   position_on_nodes           = ' '
   id_for_use_as_filter        = ' '
 IMPORTING
   message                     = msg
*   TOGGLE                      =
 TABLES
   user_parameters             = uparam
   position_hierarchy          = hier

Read only

0 Likes
785

hi all,

thanks a lot to all of u.

Read only

Former Member
0 Likes
785

Hi Kesavadas,

As i have also the same scenorio, so could you please let me know, How i can customize the program you have posted above, i dont want all the option in that i want to modify as per my requirement.

Thanks

IK