Tabstrip Validation
Hi All,
I have a tabstrip with 3 tabs as a selection screen. I have a block above the tabstrip with 1 field, my requirement is to throw error to user if checkbox in block 2 (which is sel-scrn for 1st tab of the tabstrip) is ticked and the field in block 1 is initial. I have tried many options but none is working can anyone plz suggest how to handle this kind of validation?
Thanks in Advance!!!
Hi seema
define your check box with USER-COMMAND ucomm.
after the definition of the user parameter insert this code:
AT SELECTION-SCREEN OUTPUT.
perform: NAME_PERFORM.
at the check of the checkbox the event ucomm will trigger and the perform will call.
in the perform you can insert the code for raise the user message.
Best regard.
Marco
Similar Messages
-
Tabstrip on selection screen and validations
Hi,
I need to validate the selection screen data which is entered in tab strips.
I need help in writing the validation for the data as below:
If the MATERIAL (on tab1) is blank then the fields on tab2 are mandatory.
AND if the MATERIAL (on tab1) is blank then the fields on tab2 are NOT mandatory.
The code is as follows
REPORT ztest123.
TABLES kna1.
TABLES : sscrfields, vbap.
DATA gv_activetab(6) TYPE c .
SELECTION-SCREEN BEGIN OF SCREEN 001 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS p_matnr TYPE mara-matnr.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN END OF SCREEN 001.
SELECTION-SCREEN BEGIN OF SCREEN 002 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
SELECT-OPTIONS: so_kunnr FOR kna1-kunnr NO INTERVALS NO-EXTENSION.
SELECT-OPTIONS: so_datum FOR vbap-erdat NO-EXTENSION." DEFAULT sy-datum.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN END OF SCREEN 002.
SELECTION-SCREEN BEGIN OF TABBED BLOCK tabb1 FOR 5 LINES.
SELECTION-SCREEN TAB (15) tabs1 USER-COMMAND ucomm1 DEFAULT SCREEN 001.
SELECTION-SCREEN TAB (15) tabs2 USER-COMMAND ucomm2.
SELECTION-SCREEN END OF BLOCK tabb1.
AT SELECTION-SCREEN .
CASE sscrfields-ucomm.
WHEN 'UCOMM1'.
tabb1-prog = sy-repid.
tabb1-dynnr = 001.
tabb1-activetab = 'TABS1'.
gv_activetab = 'TABS1' .
WHEN 'UCOMM2'.
tabb1-prog = sy-repid.
tabb1-dynnr = 002.
tabb1-activetab = 'TABS2'.
gv_activetab = 'TABS2'.
ENDCASE.
START-OF-SELECTION.
CASE gv_activetab.
WHEN 'TABS1'.
WRITE: 'Material ' .
WHEN 'TABS2'.
WRITE: 'Plant '.
ENDCASE.you have to do 2 things
1) set fields mandatory
IF p_matnr IS INITIAL.
LOOP AT SCREEN.
IF screen-name EQ 'SO_KUNNR-LOW'.
screen-required = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
2) ensure the program is not run without a value, because the point 1 will be done only if user goes through tabstrip 2
AT SELECTION-SCREEN .
IF sscrfields-ucomm EQ 'ONLI'.
IF p_matnr IS INITIAL.
IF so_kunnr-low IS INITIAL.
sscrfields-ucomm = 'UCOMM2'.
ENDIF.
ENDIF.
ENDIF.
CASE sscrfields-ucomm.
WHEN 'UCOMM1'. -
AIST0002-User Exit - Validation of user defined field
I have implemented the enhancement aist0002. I added a user defined field in a user defined subcreen and added it to the leasing tabstrip. I would like to validate this field against a another field in sap's leasing subscreen. In the pai of the user defined subsrceen the field of the other subscreen does not get filled. Is there a way to access the field of the other subscreen on the leasing tabstrip from the pai module of the user defined subscreen?
Thank you
TomThank you for your response but I am not sure where the import occurs?
This is the pai of the user subscreen 9000 for AS01.
form edit_input .
data: itab type lfza.
if anlu-zzempfk is not initial.
select * from lfza into itab
where empfk = anlu-zzempfk and
lifnr = anla-leafi.
endselect.
if sy-subrc <> 0.
set cursor field 'ANLU-ZZEMPFK'.
message e007(zvalid).
endif.
endif.
endform.
Function exit EXIT_SAPLAIST_002 include zxaisu03
looks like this:
anlu = i_anlu.
anla = i_anla.
Data gets moved to anlu or anla if it was already built. They are empty when it is a create transaction(as01).
Function exit exit_saplaist_003. include zxaisu04
looks like this:
e_anlu = anlu.
After the subscreen is processed it exports the data to global variable.
The problem is the pai module for the user subscreen 9000, the field anla-leafi is not filled. This field is located in sap's subsceen 1403. It has data in the screen field. My assumption is that it would be accessible as global data that could be used by my user defined subscreen once I began the validation in the pai of subscreen 9000.
Could you provide more insight on how I would access the field from the other subscreen? -
"Leave tab" event for tabs in TabStrip UI
Hi
I want to check that some input fields are valid and force users do not change Tab in TabStrip (until enter valid values for required fields) but I do not know is it possible this in Webdynpro? Does anybody know which is this event and may I use it in my WD Application?
In TabStrip there is action for OnSelect event but this is event when user enters in Tab. I need event when user exits the tab.In BSP the tabStrip has a value "selection" which if you read the tabStrip to see the tab they selected you can store that value.
Then check if the fields are filled in if so then pass the stored value back to the "selection" parameter and if not give the name of the tab they were currently on back to the "selection" parameter. -
Best way of implementing a tabstrip
Hi
I am currently changing the layout of a tabstrip to have a single view per tab where previously there was only one. I have also been advised that it is better to have empty view by default for all non active views and use plug navigation to show the view when the appropriate tab is activated.
I would welcome any comments on tabstrips especially in the area of checking for mandatory fields as this will have a huge bearing obviously.
Cheers
IanI think it depends Ian. If your tabs will contain views which are wholly different, that is no room for reuse, then I would agree with using seperate views per tab; in fact, I have done the same thing many times. Yes, using plugs to navigate the views is how you swap them out.
As far as checking for mandatory fields, it depends on how you'd like to govern that. I typically route all my messenging up the food chain to a controller which takes warnings, errors, and success messages etc and broadcasts them. If you have a message area in your parent view (the one containing the tab and view containers) those messages will be displayed regardless of the view you are on. This is a nice way to do your validation checks for all the views in one single place. You can control the navigation from the view by making your plugs contingent upon your validations.
If you don't like the controller method, you can always put a generic chunk of code in an assistance class and do the same thing. -
Hi ALL,
I am using tabstrip to do the work.
the flow of call is like this.
1,define the tabstrip, and subscreen for the tabstrip. and some other needed. we assume that the screen of tabstrip is 0100.
any direct click on tabstrip can be performed correctly.
2,after user click one button on the menu, call something like this: perform run_check.
3,in run_check, updated the tabstrip-activetab, and update the content of subscreen, and also called the refresh of subscreen.
4,the update of subscreen content is successful. but the tabstrip didn't.
5, only after all the operation finished, back to screen 0100, the tabstrip update can be visible.
didn't there any operation like the refresh to tabstrip???
Thank you!
Best Regards,
Sean
Edited by: Sean Zhang on Dec 3, 2009 3:10 AMHi Clemens,
Thank you!
I have checked it, the tabstrip-ACTIVETAB do changed.
but if do the leave to screen 0100, the tabstrip is valid. (I mean the leave to 0100 can make the screen 0100 is visible, but I can not do this, because there are some other code to do after the tabstrip is activated)
so for this kind of way I do like this:
call screen 0100. then in the pbo of 0100 leave to screen 0.( this can back to the code and go on the following code)
but this way doesnot work.
Thanks,
Best Regards,
Sean
Edited by: Sean Zhang on Dec 3, 2009 3:50 AM -
Get the selected or active tab on a tabstrip to show different content
Hi All,
I have two tabs (TAB1 and TAB2) on a tabstrip. And on each of these tabs I have a table. Both tables are binded to the same context node.
The property selectedTab of the Tabstrip is binded to an attribute "TAB" of a context node "TABSTRIP".
I defined a supply function on this context node "TABSTRIP" in order to show the TAB1 by the first building up the view.
METHOD supply_tabstrip .
* local structure for the activ TAB
DATA: stru_tabstrip TYPE if_componentcontroller=>element_tabstrip.
CLEAR stru_tabstrip.
* set the default-value
* --> This is valid untill the user choose another Tab
MOVE 'TAB1' TO stru_tabstrip-tab.
* bind the filled structure to the context
node->bind_structure(
new_item = stru_tabstrip
set_initial_elements = abap_true ).
ENDMETHOD.
I also definded a supply function on the context node of the table (which is mentioned above) to fill it with content.
Now i need to define a query to fill the table with two different content and for this I need to know which tab is selected by the user. How can i find which tab is selected or which tab is active?
Thank you for any help
Best regards
HalehHi,
I have a context attrinbute SELECTED to which the SelectedTab property of tabstrip is bound.
Implement action onSelect for Tabstrip - Use this code snippet -
***Variables
DATA:
lv_select_tab type string. "Selected tab value
***Structure and internal table for the Events and messages
DATA:
lt_events type WDR_EVENT_PARAMETER_LIST,
ls_events type WDR_EVENT_PARAMETER.
***Field symbols
field-symbols: <fs_value> type any. "Attribute value in events table
***Move the event table to lt_events
lt_events = wdevent->parameters.
*"Set to 'TAB' in lt_events
read table lt_events into ls_events with key name = wd_assist->GC_TAB. "TAB
if sy-subrc eq 0.
assign ls_events-value->* to <fs_value>.
if sy-subrc eq 0.
lv_select_tab = <fs_value>.
endif. "IF sy-subrc eq 0.
endif. "IF sy-subrc eq 0.
***Set the selected tab value
CALL METHOD WD_CONTEXT->SET_ATTRIBUTE
EXPORTING
VALUE = lv_select_tab
NAME = wd_assist->GC_SELECT_TAB. "Set the selected tab Id "SELECTED
**Call additional data if tab selected
if lv_select_tab eq 'TAB1'.
*/Have your code here......
else
endif.
Regards,
Lekha. -
Hi Experts,
I am using the tabstrip in my BSP application.
The requirement is that if the user navigate through the tabs then validation should be captured according.
I am handling the event using the following code
DATA:
event TYPE REF TO cl_htmlb_event,
tabstrip_event TYPE REF TO cl_htmlb_event_tabstrip.
event = cl_htmlb_manager=>get_event( request ).
if event->name eq 'tabStrip' and event->id eq 'myTabStrip1'.
tabstrip_event ?= event.
selection = tabstrip_event->selection.
endif.
if selection = 1.
statement1
elseif selection = 2.
statement2
endif.
Problems is
when we navigate the date being refreshed of previous.
Please give some tips.
Regards,
KuldeepThere is no other option apart of what Raja D suggested..
DATA: GT_TIHTTPNVP TYPE TIHTTPNVP.
REFRESH GT_TIHTTPNVP.
CALL METHOD REQUEST->GET_FORM_FIELDS
CHANGING
FIELDS = GT_TIHTTPNVP.
<i>* Reward each useful answer</i>
Raja T -
Tabstrip changes after issue error message in PS
hello
I am using an exit FUNCTION EXIT_SAPLCNAU_004 and inside that include I have an error validation for Network activity for project systems. When i issue the error message that validates the fields in the tab, the tab changes making the current tab that user was on not active anymore.
Is there a way to make it stay on the current tab when I issue an error message ? Thanks!Hi,
Try using the Property ACTIVETAB of the Tabstrip Control.
Just before your Error Message, set the Active Tab as the Tab you are Looking.
For Eg:
tabstrip-activetab = 'TAB1'. -
HI All,
My dialog OO contains 3 tabstrips.
I have validations checking for the fields at the subscreen of each tabstrips (in PBO).
When validation fails, i coded the following:
message e000(zz) with 'Error
I am expecting the error msg to display at the status bar. But now it is showing a pop up screen with an Exit button. When Exit, I am back to SAP Easy Access (main screen)
Please comment how I can launch an error msg at the status bar. ThanksHi Rich,
Thanks for pointing it out. I mistakenly put the checking on PBO, for now i have already put back to PAI.
However im facing another problem. That's, in my tabstrips(display mode) my part of checking(PAI) will be triggered whenever i click a button on main screen. May i know how could i just make the checking available when my tab is in CHANGE mode?
Your comment is highly appreciated.
Thanks in advance. -
View data in client B from client A in the same SID without a valid logon?
Hi Folks
We are planning on upgrading our 4.6C system to ERP 6.0, and are initialy considering having two clients in the same sandbox SID. One would be for the developers to perform code remediation checks (client A), and one would contain a copy of production data for performing testing of functionality over live data (client B).
Would it be possible to view data in client B from client A in the same system without a valid logon to client B or RFC connection to client B from client A? For example via the use on an ABAP program to SQL the database?
I know one can use transactions like SM30/SM31 to view, compare, and adjust data between clients, but this requires an RFC connection and valid logon to the target client.
Regards
Kevin.Hi Kevin.
>
Kevin McLatchie wrote:
> Would it be possible to view data in client B from client A in the same system without a valid logon to client B or RFC connection to client B from client A? For example via the use on an ABAP program to
Short answer: yes.
If someone has the right to write and execute ABAP reports on the system he is able to access the data of all clients. So I don't think that this setup is advisable. Don't mix development and production data in one system.
Best regards,
Jan -
DEVOLUÇÃO DE EXPORTAÇÃO - CFOP 3201 - GRC VALIDA DADOS DI.
Boa tarde a todos!
Estamos em um projeto de NFE XML 2.00 e nos deparamos com o seguinte erro:
Ao emitirmos um NF-e de devolução da mercadoria que se encontrava no Porto (devolução de exportação - CFOP 3201), a validação do monitor GRC informa que é necessário constar os dados de importação, apesar deste processo não se tratar de importação. Os seguintes logs de validação são gerados:
Erro de validação: campo Código do fabricante estrangeiro no sistema. Campo é obrigatório e não pode ficar em branco. (campo IT_NFE_ADI-CFABRICANTE, ID campo I028)
Erro de validação: campo Nº da adição. Campo é obrigatório e não pode ficar em branco. (campo IT_NFE_ADI-NADICAO, ID campo I026)
Erro de validação: campo Nº sequencial do artigo na adição. Campo é obrigatório e não pode ficar em branco. (campo IT_NFE_ADI-NSEQADIC, ID campo I027)
Erro de validação: campo . Campo é obrigatório e não pode ficar em branco. (campo IT_NFE_IMP-CEXPORTADOR, ID campo I024)
Erro de validação: campo . Campo é obrigatório e não pode ficar em branco. (campo IT_NFE_IMP-DDESEMB, ID campo I023)
Erro de validação: campo . Campo é obrigatório e não pode ficar em branco. (campo IT_NFE_IMP-DDI, ID campo I020)
Erro de validação: campo . Campo é obrigatório e não pode ficar em branco. (campo IT_NFE_IMP-NDI, ID campo I019)
Erro de validação: campo . Campo é obrigatório e não pode ficar em branco. (campo IT_NFE_IMP-UFDESEMB, ID campo I022)
Erro de validação: campo . Campo é obrigatório e não pode ficar em branco. (campo IT_NFE_IMP-XLOCDESEMB, ID campo I021)
Estamos no SAPK-10015INSLLNFE e as seguintes notas relacionadas a validação estão aplicadas:
1493980 Validation for field xJust in cancel and skipping messages
1499921 Problem with validation after implementing SP15
1500046 Upgrade validation rule for field ID for version 2.00
1500742 Adjust validation for field NADICAO and NSEQADIC layout 2.00
1502217 Extend validation rules for , layout 2
1504379 Adjust validation for field X_CLISTSERV
1511291 Update allowed values for field E1_CPAIS for validation
1511577 Update validation rules for field VUNCOM_V20
1520861 Update validation rules for OIL_CPRODANP and OIL_UFCONS
Não encontrei nenhuma nota SAP recente para o componente SLL-NFE que seja relacionada a este problema.
Desde já agradeço pela ajuda.
Sds / Renato Penido.Boa tarde, Fernando,
Obrigado pela pronta resposta.
Debugamos a BADI e descobrimos que os dados de importação estão sendo gravado "em branco", gerando o erro de validação no GRC, tal qual dito por você.
Aprimoramos a lógica da BADI para que a tag de importação não seja preenchida indevidamente para as notas de devolução do porto e as notas foram aprovadas.
Muito obrigado,
Renato Penido. -
how do i open a web page with VeriSign Class 3 Extended Validation SSL SGC SS CA ?
Hi
I am not suprised no one answered your questions, there are simply to many of them. Can I suggest you read the faq on 'how to get help quickly at - http://forums.adobe.com/thread/470404.
Especially the section Don't which says -
DON'T
Don't post a series of questions in a single post. Splitting them into separate threads increases your chances of a quick answer.
PZ
www.pziecina.com -
When i login it says my apple id is valid but its not an icloud id
when I try to login i get a message telling me my apple id is valid but its not an icloud id .I dont have any apple mobile priducts so i have no idea what to do.Any advice would be greatly appreciated.
You are getting this message because you are trying to create an iCloud account on a PC by signing with your Apple ID. You can only sign into an existing account on a PC. You first have to create iCloud account on an iOS device (iPhone, iPad or iPod Touch) running iOS 5 or higher, or on a Mac running OS X Lion (10.7.5) or higher. After creating your account on one of these devices you will then be able to sign into the account using this ID on your PC.
-
Dear Support Team,
Every time i tried to logon Icloud its gives me wrong user name or password and at the end it show me error " This Apple ID is valid but is not an ICloud Account" then how can i use one account for same Apple ID and ICloud?
ThanksIt is not possible to create a new iCloud account using a Windows machine. You must create the account using a Mac (10.7.5 or more) or an IOS device (iPhone etc). Once that is done you can sign into and use the account on your Windows machine.
Maybe you are looking for
-
Domestic Sales Order with reference to Export Inquiry
Hi All, I have a different type of requirement. Document Types: IN10-Export Inquiry IN20-Domestic inquiry OR10-Export Order OR20-Domestic Order The Inquiry(IN10) is created for Export Customer, Later they have some problems with export Customer then
-
diff erence between list and grid display. difference between occurs 0 and occurs 10
-
Trouble re-installing newest edition. Must clean up corrupted operational files.
I've been enjoying the new iTunes, but tonight some 3d party paudio program I installed may have corrupted part of it's operational system. Anyone reading this should make sure to never install the music equalization software called "Hear". I could
-
What are the new guitar effects?
can't find what they are? and are ther more software instruments and loops in the new version?
-
How to open all the pages of a file PDF in Photoshop?
Hi, How to open all the pages of a file PDF in Photoshop? Or I need to know the amount of Pages in PDF. Example: >Set MyPhotoshop = CreateObject("Photoshop.PDFOpenOptions") Set MyOpenPref = CreateObject("Photoshop.PDFOpenOptions") sFileName = "C:\Tem