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

Two ALV with two tabstrips

Former Member
0 Likes
1,894

Hi all,

I need to implement two alv's in two tabstrips into a dynpro. Can anyone tell me how to do it? If you can include the flow logic i will appreciate it! Otherwise a manual that describe how to do it step by step.

Thanks in advance,

Farero.

1 ACCEPTED SOLUTION
Read only

former_member235395
Contributor
0 Likes
1,678

Hi Victor, for  to achieve your requiriment follow next steps:

Create a tabstrip control using wizard(Create it with 2 tab):

     This step will create 2 tabs with 2 dynpros(Wizard Propose 101 and 102):

Uncomment PBO for each dynpro

Create status for each dynpro

Create a Custom Control for each dynpro

Try with this code:

DATA: g_container2 TYPE scrfname VALUE 'BCALV_GRID_DEMO_0100_CONT2',

          grid1 TYPE REF TO cl_gui_alv_grid,

          g_custom_container TYPE REF TO cl_gui_custom_container.

   DATA: gt_outtab TYPE TABLE OF sflight.

   SELECT * FROM sflight INTO CORRESPONDING FIELDS OF TABLE gt_outtab.

   IF g_custom_container IS INITIAL.

     CREATE OBJECT g_custom_container

       EXPORTING

         container_name = g_container2.

     CREATE OBJECT grid1

       EXPORTING

         i_parent = g_custom_container.

     CALL METHOD grid1->set_table_for_first_display

       EXPORTING

         i_structure_name = 'SFLIGHT'

       CHANGING

         it_outtab        = gt_outtab.

   ENDIF.

Regards,

Hi all,

I need to implement two alv's in two tabstrips into a dynpro. Can anyone tell me how to do it? If you can include the flow logic i will appreciate it! Otherwise a manual that describe how to do it step by step.

Thanks in advance,

Farero.

8 REPLIES 8
Read only

Former Member
0 Likes
1,678

This message was moderated.

Read only

former_member209120
Active Contributor
0 Likes
1,678

Hi Victor Cornelio

Create Screen and create tabstrips and write screen program in PBO & PBI.

For more assistance see this link http://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=38772

Please search in SCN before post..

Read only

former_member188827
Active Contributor
0 Likes
1,678

This message was moderated.

Read only

0 Likes
1,678

Hi developer, all!

I have a little problem. In your post, shows the following sentence:

How can I do that?? Do I have to create dynpros (9100 and 9200) and drag the Custom Container into them?? or I must create a dynpro with a subscreen, if so, how can I name this dynpro?. Could you explain me the best way as you can please. I don't have clear this part. I'd appreciate if you could explain me how can I do this part of my issue.

Thanks in advance!

Read only

nishantbansal91
Active Contributor
0 Likes
1,678

Hi Victor,
Refer the Link provided by Ramesh T,

it seems that document it is only made for you. I also read that document its really good and fulfill your requirement also.

Thanks.

Nishant Bansal.

Read only

former_member235395
Contributor
0 Likes
1,679

Hi Victor, for  to achieve your requiriment follow next steps:

Create a tabstrip control using wizard(Create it with 2 tab):

     This step will create 2 tabs with 2 dynpros(Wizard Propose 101 and 102):

Uncomment PBO for each dynpro

Create status for each dynpro

Create a Custom Control for each dynpro

Try with this code:

DATA: g_container2 TYPE scrfname VALUE 'BCALV_GRID_DEMO_0100_CONT2',

          grid1 TYPE REF TO cl_gui_alv_grid,

          g_custom_container TYPE REF TO cl_gui_custom_container.

   DATA: gt_outtab TYPE TABLE OF sflight.

   SELECT * FROM sflight INTO CORRESPONDING FIELDS OF TABLE gt_outtab.

   IF g_custom_container IS INITIAL.

     CREATE OBJECT g_custom_container

       EXPORTING

         container_name = g_container2.

     CREATE OBJECT grid1

       EXPORTING

         i_parent = g_custom_container.

     CALL METHOD grid1->set_table_for_first_display

       EXPORTING

         i_structure_name = 'SFLIGHT'

       CHANGING

         it_outtab        = gt_outtab.

   ENDIF.

Regards,

Read only

0 Likes
1,678

HI David,

I have one query regarding Custom container???

Can we create the custom container in the tabstrip.??

because yesterday i was trying to create the container but its didn't allow me two create the container in the Tabstrip.

Regards.

Nishant Bansal.

Read only

Former Member
0 Likes
1,678

Thanks everyone, I could solve my issue!