We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

Re: [sap-abap] Call subscreen of selection screen on validation error

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Posted by Mike Hammond
on Aug 1 at 6:47 PM
Hi Terry,

Thanks so much for the tip; I'm giving it a try right now. Any chance you could tell me where you did your export and how you defined s_tabb1?

thanks again,
mike

---------------Original Message---------------
From: TerryB
Sent: Monday, August 01, 2011 5:02 PM
Subject: Call subscreen of selection screen on validation error

Mike,
I have never done exactly what you are trying to do, but here's an example of a tabbed selection screen where I manipulated the currently-displayed tab:

SELECTION-SCREEN BEGIN OF TABBED BLOCK tabb1 FOR 10 LINES.
SELECTION-SCREEN TAB (11) tabs1 USER-COMMAND tabs1
DEFAULT SCREEN 1010.
*SELECTION-SCREEN TAB (11) tabs2 USER-COMMAND tabs2
* DEFAULT SCREEN 1020. "R3DK907880
SELECTION-SCREEN TAB (11) tabs3 USER-COMMAND tabs3
DEFAULT SCREEN 1030.
SELECTION-SCREEN TAB (12) tabs4 USER-COMMAND tabs4
DEFAULT SCREEN 1040.
SELECTION-SCREEN END OF BLOCK tabb1.

AT SELECTION-SCREEN OUTPUT.
* Note: The selection screen loses track of which tab it was on upon
* returning from a called transaction. This import/export mess is to
* help it remember.
IMPORT s_tabb1 FROM MEMORY.
IF NOT s_tabb1 IS INITIAL.
tabb1 = s_tabb1.
ENDIF.

I did this a very long time ago, so the exact details are bit murky, but it appears from this code that assigning a tab name (not the screen number) to the tabbed block name serves to make that tab the currently-displayed tab.

Hope that helps,
Terry

__.____._
Copyright © 2011 Toolbox.com and message author.

Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
Mark as helpful
View this online
  
Popular White Papers

In the Spotlight
Toolbox.com Marketplace: Take online training courses in SAP and other specialized areas of business and IT.
_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language