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

Docking container

Former Member
0 Likes
1,239

Can a docking container be made to be attached only on 2 sides of the screen....? I am always getting it attached on 3 sides of the main screen and only 1 side is movable (dragable).

Can a docking contained be made inside a subscreen? Even on writing the code inside the PBO of subscreen , I am always getting Dock container in the main screen.?

Your comments will be useful.

Regards,

Diwakar

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
913

Look at [SAP Container|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCIDOCK/BCCIDOCK.pdf]

You could detach the container and reattach it.

call method docking_container->float
  exporting
    do_float = do_float
  exceptions
    cntl_error = 1
    cntl_system_error = 2.
call method docking_container->dock_at
  exporting
    side = side
  exceptions
    cntl_error = 1
    cntl_system_error = 2.

or when creating the container in parameter side

create object docking_container
  exporting
    parent = parent
    dynnr = dynnr
    repid = repid
    side = side
    extension = extension
    style = style
    lifetime = lifetime
    metric = metric
    caption = caption
    no_autodef_progid_dynnr = no_autodef_progid_dynnr
  exceptions
    cntl_error = 1
    cntl_system_error = 2
    create_error = 3
    lifetime_error = 4
    lifetime_dynpro_dynpro_link = 5.

Regards

3 REPLIES 3
Read only

RaymondGiuseppi
Active Contributor
0 Likes
914

Look at [SAP Container|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCIDOCK/BCCIDOCK.pdf]

You could detach the container and reattach it.

call method docking_container->float
  exporting
    do_float = do_float
  exceptions
    cntl_error = 1
    cntl_system_error = 2.
call method docking_container->dock_at
  exporting
    side = side
  exceptions
    cntl_error = 1
    cntl_system_error = 2.

or when creating the container in parameter side

create object docking_container
  exporting
    parent = parent
    dynnr = dynnr
    repid = repid
    side = side
    extension = extension
    style = style
    lifetime = lifetime
    metric = metric
    caption = caption
    no_autodef_progid_dynnr = no_autodef_progid_dynnr
  exceptions
    cntl_error = 1
    cntl_system_error = 2
    create_error = 3
    lifetime_error = 4
    lifetime_dynpro_dynpro_link = 5.

Regards

Read only

0 Likes
913

Hi,

Thanks for your reply.

But, I am not able to get the Floating Docking container. On using the Float method after creating the container, the whole container and its contents disappear. Nothing comes on the screen as output.

In the document, it is written that FLOAT method is not yet active. Not sure, what is the case?

Read only

0 Likes
913

It seems that on your version (which one is it?) the container cannot float, so it is locked on a side. Two of the four corners are locked.and you can only move the two other corners only, only one side. It appears that the geometry is against you.

Else you could "float" the container and "dock_at" it on another side alternatively, to be able to change all the dimension. (But should be hard to program)

(e.g.: dock at upper or lower side and enlarge height, then dock at left or rigth side and enlarge width)

Regards