Application Development 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: 

Tabstrip Problems

0 Kudos

Dear All,

I have used tabstrip with two taps.

First problem: I face a problem to set a madatory fields in a each tab.

second problem: After entering the data in first & second tabs, Once again i am going to first tab and modifying some values.

But it is not getting modified.

Kindly solve my problems...

Thanks & Regards,

Murugesh R

Edited by: Murugesh Kumar Ramasamy on Jan 4, 2010 11:00 AM

8 REPLIES 8

Former Member
0 Kudos

Hi ,

For first point , you need to make the field mandatory by going in Attributed of tabstrip.

Dont go in layout , you can change the field to mandatory from second tab in screen, Element list.

Second point : This you can debug and check. Why screen field value is not populating to the variable. You need to check this in PAI and PBO , both.

you might be transfering the value from field to a variable in PBO , you need to clear this variable and the pass the value from screen field. in PAI , just do the reverse.

Hope this helps you.

Former Member
0 Kudos

Hi,

If any required entries were there on screen, we will no perform any other other action with out giving data in those fields. So instead of giving fields as reqired entires change them as "Recommended" fields in screen field attributes. So that the fields will look like required entries ( Check mark will be there ) but does not perform any required entry action, for that we need to write required logic in our code. With this we can over come your first problem.

Second Question: Any screen value changes should reflect on screen untill unlessover writing of new values values with old values. So please check your code there might be some where the values may over written.

Regards,

Aswini.

0 Kudos

Gurus,

Thanks for your replies and i will check and reply

Regards,

Murugesh R

0 Kudos

Hi Murugesh,

Execute this Demo program DEMO_SEL_SCREEN_WITH_TABSTRIP. You may get some idea.

Regards,

Swarna Munukoti

Former Member
0 Kudos

Hi,

Chk the folowing Example code


SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
PARAMETERS: p1 TYPE c LENGTH 10 ,
            p2 TYPE c LENGTH 10 ,
            p3 TYPE c LENGTH 10 OBLIGATORY.
SELECTION-SCREEN END OF SCREEN 100.

SELECTION-SCREEN BEGIN OF SCREEN 200 AS SUBSCREEN.
PARAMETERS: q1 TYPE c LENGTH 10,
            q2 TYPE c LENGTH 10 OBLIGATORY,
            q3 TYPE c LENGTH 10.
SELECTION-SCREEN END OF SCREEN 200.

SELECTION-SCREEN: BEGIN OF TABBED BLOCK mytab FOR 10 LINES,
                  TAB (20) button1 USER-COMMAND push1,
                  TAB (20) button2 USER-COMMAND push2,
                  END OF BLOCK mytab.

INITIALIZATION.
  button1 = 'Selection Screen 1'.
  button2 = 'Selection Screen 2'.
  mytab-prog = sy-repid.
  mytab-dynnr = 100.
  mytab-activetab = 'PUSH1'.

AT SELECTION-SCREEN.
  CASE sy-dynnr.
    WHEN 1000.
      CASE sy-ucomm.
        WHEN 'PUSH1'.
          mytab-dynnr = 100.
        WHEN 'PUSH2'.
          mytab-dynnr = 200.
        WHEN OTHERS.
*        ...
      ENDCASE.
*      ...
  ENDCASE.

  START-OF-SELECTION.
    write : p1, p2 ,p3,
          / q1, q2, q3.

Regards,

Deeba

0 Kudos

Hi,

thanks for reply ...

I am using the tabstrip in Module Pool Program.... Give some examples.

Thanks and Regards,

Murugesh R

0 Kudos

Hi ,

1. to get the field as mandatory in Module pool...

goto layout -> double click on the i/p field that should be made mandatory.

a separate pop -up window appears.

Goto Attributes ->select the tab ' Program ' -> Input field has dropdown -> here select the entry 'required'

Activate the layout & screen.

In output the particular input field appears as Mandatory.

2. For the 2nd problem check that the name of the field maintained in the layout of screen

and in the program should match. Recheck the code

in module user command in PAI

module USER_COMMAND_0100 input.

CLEAR OK_CODE.

CASE SAVE_OK.

WHEN 'TAB1'.

clear W_INPUT.

........

ENDCASE.

Regards,

Deeba

0 Kudos

Dear All,

Thanks for your valuable replies..

Problem Solved...

Regards,

Murugesh R

Edited by: Murugesh Kumar Ramasamy on Jan 4, 2010 3:15 PM