Selection validations
hi guru's,
in my selection screen one parameter(companycode) and two select options (vkorg, vtweg ) are there.
i want to validate this fields such as ' once we select company code it should have to give vkorg data if we press f4 for vkorg related to our selected company code.
same for vtweg . it should check relatd vtweg's in company code as well as vkorg.
plz...
send me the code and explaination .
thanks in advance.
Hi,
check the below code.
change your code accordingly..
tables: t001k.
For Identification Number
DATA: BEGIN OF it_bwkey OCCURS 0,
bwkey LIKE t001k-bwkey,
END OF it_bwkey.
data: v_bukrs(4).
For Run date
DATA: BEGIN OF it_bukrs OCCURS 0,
bukrs LIKE t001k-bukrs,
END OF it_bukrs.
DATA it_ret LIKE ddshretval OCCURS 0 WITH HEADER LINE.
SELECTION-SCREEN: BEGIN OF BLOCK main WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP.
PARAMETERS: p_bukrs(4) TYPE c.
SELECT-OPTIONS s_bwkey FOR t001k-bwkey NO INTERVALS.
SELECTION-SCREEN END OF BLOCK main.
Validation Section
INITIALIZATION.
SELECT DISTINCT bukrs FROM t001k INTO TABLE it_bukrs.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_bukrs.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'BUKRS'
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'P_BUKRS'
value_org = 'S'
TABLES
value_tab = it_bukrs
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_bwkey-low.
TABLES: t130r.
DATA: BEGIN OF dynpfields OCCURS 0. "Hilfsstruktur zum auslesen des
INCLUDE STRUCTURE dynpread. "Feldwertes vom Dynpro bei >F4<
DATA: END OF dynpfields.
DATA : sy_repid LIKE sy-repid,
sy_dynnr LIKE sy-dynnr.
CLEAR dynpfields.
REFRESH dynpfields.
dynpfields-fieldname = 'P_BUKRS'.
APPEND dynpfields.
Lesen des akt. Wertes von Dynpro
sy_repid = sy-repid.
sy_dynnr = sy-dynnr.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = sy_repid
dynumb = sy_dynnr
TABLES
dynpfields = dynpfields
EXCEPTIONS
OTHERS = 01.
IF sy-subrc = 0.
READ TABLE dynpfields WITH KEY fieldname = 'P_BUKRS'.
IF sy-subrc = 0.
v_bukrs = dynpfields-fieldvalue.
ENDIF.
ENDIF.
SELECT bwkey FROM t001k
INTO TABLE it_bwkey
WHERE bukrs = v_bukrs.
DELETE ADJACENT DUPLICATES FROM it_bwkey.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'BWKEY'
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'S_BWKEY'
value_org = 'S'
TABLES
value_tab = it_bwkey
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Similar Messages
-
How to select valid lines in a secondary list in a interactive report
hi
how to select valid lines in a secondary list in a interactive reporthi,
do this one
at line-selection.
if sy-lsind = some list no.
GET CURSOR FIELD FIELDNAME VALUE FIELDVALUE.
IF FIELDNAME = 'TVBAK-VBELN'.
do some thing
Regards
ASHOK KUMAR -
i have downloaded whats app/brave temple run but using netsafe card. well now it shows 1.98$ is pending , though m trying with new netsafe card to pay it is showing error saying Pls select valid method for payment. i used same method as i did earlier
I have recently started having this problem in PSE8. The Adobe workaround
did work, but I don't fancy having to re register each time I use it.
What I have discovered is that it's nothing to do with the image metadata as it occurs before any image is opened.
It SEEMS to only occur if you use file/open with to open an image in the editor - IE start PSE with that command.
If you close elements down, and start it using programs/PSE/Elements (or your desktop shortcut) - the panorama feature magically works.
Each time I've opened the editor 'automatically' using image/open with, it seems to create the problem.
Hope this helps -
RCU-6092:Component Selection validation failed
hi am in step 5 installing rcu (custom variable) am having this error
RCU-6092:Component Selection validation failed. Please refer to log at C:\oracle\Middleware\rcuHome\rcu\log\logdir.2013-11-08_09-09\rcu.log for details.
Value of Custom Variable Work Repository Type: (D) Development (Default) or (E) Execution is greater than maximum length of 1 characters. Value should be between 0 and 1 characters.I think you should check the following blogs for your requirement :
http://yonaweb.be/webcenter_11g_ps3_tutorial_introduction_content_integration
http://technology.amis.nl/2011/01/22/configuring-webcenter-11g-r1-ps3-with-remote-ucm-content-server/
Hope these links help .
Thanks,
Srinath -
Validity does not lie in selected validity window.
Hello All,
We have some Z condition created in SAP CRM. We are maintaining the price list for ZLPT condition in General Condition Maintenance.
But if we put today's date or any past date in Validity from then record is getting saved. but if i entered future date in valid from then its giving error Validity does not lie in selected validity window.
The price for that some records is going to change after 2 months, so we want to maintain it now in GCM.
Thanks in Advance.
UjwalActual Documentation (Development Guide E41452-06):
These Oracle Flashback Technology features are unavailable for a multitenant container database (CDB):
- For Oracle Database 12c Release 1 (12.1.0.1), Flashback Data Archive (FDA) is not supported in a CDB.
- For Oracle Database 12c Release 1 (12.1.0.2), this restriction is removed.
- Flashback Transaction Query is not supported in a CDB.
- Flashback Transaction Backout is not supported in a CDB
Guess CDB always ment Multitenant Database and not the CDB$ROOT (maybe someone from Oracle can clarify). -
Select option for selection valid and invalid data.
Hi All,
Any one pleas help in validating following case :-
In the selection screen there is a select option for equipment number like EQUI-EQUNR
if any user will give wrong equipment no. It will generate an error message from the range of equipment no.
and put it to an internal table it error.
and if any value in between the select option(equipment no) is correct then that value I need to proceed for some other logic.
Iu2019d appreciate if some one help me in generation code for the above case or logic.
ThanksHi,
Use FM 'RS_REFRESH_FROM_SELECTOPTIONS'
DATA: RSPAR TYPE STANDARD TABLE OF RSPARAMS.
REFRESH RSPAR.
CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
EXPORTING
CURR_REPORT = 'prog name'
IMPORTING
SP =
TABLES
SELECTION_TABLE = RSPAR
EXCEPTIONS
NOT_FOUND = 1
NO_REPORT = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
MESSAGE I000.
ENDIF.
In table parameter you ll get the all entries entered .
Check out the values with respective tables.If value is not correct tk it into internal table
else proceed ahead. You can Remove incorrect entries this way.
regards,
ajit. -
Hello,
I'm trying to learn Spry, but I'm really confused right now.
I've got one page with several validation areas (textbox, textarea,
select) that works beautifully, and another one I'm working on now
that I can't get to work. I copied the code from one page to the
other and used different names, and sometimes the error message
shows on the new page, but the submit button allows the page to
continue no matter what.
Here's the working code:
(from one .cfm file)
<script src="includes/SpryValidationTextField.js"
type="text/javascript"></script>
<link href="css/SpryValidationTextField.css"
type="text/css" rel="stylesheet" />
<script src="includes/SpryValidationSelect.js"
type="text/javascript"></script>
<link href="css/SpryValidationSelect.css" type="text/css"
rel="stylesheet" />
<script src="includes/SpryValidationTextarea.js"
type="text/javascript"></script>
<link href="css/SpryValidationTextarea.css"
rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript"
src="includes/SpryCollapsiblePanel.js"></script>
<link href="SpryAssets/SpryCollapsiblePanel.css"
rel="stylesheet" type="text/css" />
<cfif ...
<cfoutput>
<form action="pro_ad_new.cfm?action=1" method="post"
name="pro_new">
#new_pro_fields()#
</form>
</cfoutput>
...</cfif>
(inside add_new_submission function in another file)
<td class="wdModData" style="text-align:center;
border-right-width:0; vertical-align:middle;">
<span id="ValidSel1">
<select name="abbr_index" size="1"
style="width:175px;background-color:lemonchiffon">
<option value="-1">Select a Command</option>
<cfloop index="i" from="1" to="#session.command.num#">
<cfset abbr = session.command.info
.abbreviation>
<cfoutput>
<cfif arguments.abbr_index EQ i>
<option value="#i#" selected>#abbr#</option>
<cfelse>
<option value="#i#">#abbr#</option>
</cfif>
</cfoutput>
</cfloop>
</select>
<span class="selectInvalidMsg">Command is
required.</span>
</span>
<script type="text/javascript">
var ValidSel1 = new
Spry.Widget.ValidationSelect("ValidSel1",{invalidValue:"-1",
validateOn:["change"]});
</script>
</td>
<td class="wdModData" style="text-align:center;
border-left-width:0; border-right-width:0;
vertical-align:middle;">
<span id="ValidFY">
<select name="fy" size="1"
style="background-color:lemonchiffon">
<option value="-1">Fiscal Year</option>
<cfoutput query="getyears">
<cfif arguments.fy EQ getyears.year>
<option value="#getyears.year#"
selected>#getyears.year#</option>
<cfelse>
<option
value="#getyears.year#">#getyears.year#</option>
</cfif>
</cfoutput>
</select>
<span class="selectInvalidMsg"><br />Fiscal Year
is required.</span>
</span>
<script type="text/javascript">
var ValidFY = new
Spry.Widget.ValidationSelect("ValidFY",{invalidValue:"-1",
validateOn:["change"]});
</script>
</td>
<td class="wdModData" style="text-align:center;
border-left-width:0; border-right-width:0;
vertical-align:middle;">
<span id="seq_text">
<cfoutput>
<span class="wdModData"
style="text-align:center;border-left-width:0;vertical-align:middle;">
<input type="text" style="background-color:lemonchiffon;"
onchange="this.style.backgroundColor='azure';" name="seq" size="10"
maxlength="7" class="formField" value="#arguments.seq#" />
</span>
</cfoutput>
<span class="textfieldRequiredMsg">
<br />Number is required.
</span>
<span class="textfieldInvalidFormatMsg">
<br />Numbers or Letters only.
</span>
</span>
<script type="text/javascript">
var TextfieldWidgetObject = new
Spry.Widget.ValidationTextField("seq_text", "custom",
{pattern:"yyyy", isRequired:true, hint:""});
</script>
Here's the NON working code:
(from one file)
<script src="includes/SpryValidationTextField.js"
type="text/javascript"></script>
<link href="css/SpryValidationTextField.css"
type="text/css" rel="stylesheet" />
<script src="includes/SpryValidationSelect.js"
type="text/javascript"></script>
<link href="css/SpryValidationSelect.css" type="text/css"
rel="stylesheet" />
<script src="includes/SpryValidationTextarea.js"
type="text/javascript"></script>
<link href="css/SpryValidationTextarea.css"
rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript"
src="includes/SpryCollapsiblePanel.js"></script>
<link href="SpryAssets/SpryCollapsiblePanel.css"
rel="stylesheet" type="text/css" />
<cfif ...
<cfoutput>
<form
action="pro_ad_sub.cfm?protocol=#url.protocol#&action=1"
method="post">
#add_new_submission("#pro.status#")#
</form>
</cfoutput>
...</cfif>
(inside add_new_submission function in another file)
<td>
Month
<span id="ValidSel2">
<select name="month" size="1"
style="background-color:lemonchiffon"
onchange="this.style.backgroundColor='azure';">
<option value="-1">Month</option>
<cfset i = "0">
<cfoutput query="getMonths">
<cfset i = #val(i)# + 1>
<cfif arguments.receipt_month EQ val(i)>
<option value="#val(i)#"
selected>#getMonths.month#</option>
<cfelse>
<option
value="#val(i)#">#getMonths.month#</option>
</cfif>
</cfoutput>
</select>
<span class="selectInvalidMsg"><br />Month is
required.</span>
</span>
<script type="text/javascript">
var ValidSel2 = new
Spry.Widget.ValidationSelect("ValidSel2",{invalidValue:"-1",
validateOn:["change"]});
</script>
</td>
<td class="wdModData">
Day
<span id="ValidSel3">
<select name="day" size="1"
style="background-color:lemonchiffon"
onchange="this.style.backgroundColor='azure';">
<option value="-1">Day</option>
<cfoutput query="getDays">
<cfif arguments.receipt_day EQ getDays.day>
<option value="#getDays.day#"
selected>#getDays.day#</option>
<cfelse>
<option
value="#getDays.day#">#getDays.day#</option>
</cfif>
</cfoutput>
</select>
<span class="selectInvalidMsg"><br />Day is
required.</span>
</span>
<script type="text/javascript">
var ValidSel3 = new
Spry.Widget.ValidationSelect("ValidSel3",{invalidValue:"-1",
validateOn:["change"]});
</script>
</td>
<td class="wdModData">
Year
<span id="ValidSel">
<select name="year" size="1"
style="background-color:lemonchiffon"
onchange="this.style.backgroundColor='azure';">
<option value="-1">Year</option>
<cfoutput query="getYears">
<cfif arguments.receipt_year EQ getYears.year>
<option value="#getYears.year#"
selected>#getYears.year#</option>
<cfelse>
<option
value="#getYears.year#">#getYears.year#</option>
</cfif>
</cfoutput>
</select>
<span class="selectInvalidMsg"><br />Fiscal Year
is required.</span>
</span>
<script type="text/javascript">
var ValidSel = new
Spry.Widget.ValidationSelect("ValidSel",{invalidValue:"-1",
validateOn:["change"]});
</script>
</td>
(end NON working code)
So what have I messed up? I just can't see the code anymore.
Thanks everyone,
TeresaHi Diana,
Thanks for your tip, I will try it.
I tried to come back to read this earlier this week, but the
support pages wouldn't load, so I kept trying things. The only way
I have to debug any of this is the log file and using (right click
view source), and there you can see the flow of how the code is
sent to the browser. I was seeing that the spry code was coming
later in the page than I thought it should, so I kept moving it
around to see what would happen.
The thing that finally worked was adding this new code:
<!-- needed for validation of required fields in
add_new_submission -->
<span id="spryselect1">
<span class="selectRequiredMsg">
This is a required field.
</span>
</span>
before this existing code:
<!-- addition form -->
<cfoutput>
<form
action="pro_ad_sub.cfm?protocol=#url.protocol#&action=1"
method="post">
#add_new_submission("#pro.status#")#
</form>
</cfoutput>
I don't understand why I have to do this here, but not in the
upper (working) code in my previous post. I really really don't get
it. When that new snippet is before the function call, the spry in
the function works, but you never see output from that new code.
When you remove that new snippet, the spry in the function doesn't
work.
Totally confused!?!
teresa -
Hi everyone
If you go to
http://www.dwyse.com/hiddenSpry/menu.html
and check the source you will see there is some code that checks
the value of the drop down menu.
The fields show and are required depending on the selection.
My problem is only the first 2 options work and the second
option will only work if you have selected the first one prior to
selection the second one.
I have tried putting the function into a switch statement but
have failed
could someone please help me out
Cheers'
JamieIts broken
The web site you are accessing has experienced an unexpected error.
Please contact the website administrator.
Error Occurred While Processing Request
Variable EMAIL is undefined.
The error occurred in C:\Webroot\Crabweb1a\Technology\DesignSystems\RDC2009\confirmParticipant.cfm: line 131
129 : formfields="fullname, email, County, phone1, phone2, phone3, title, address1, address2, comments, citySTZip, golf, allergies, vegetarian, extension, payment">
130 :
131 : <CFMAIL FROM="#Email#" -
Hi all,
I am writing the select on MCON data base view . I am adding the profit center field in selection screen , I have to add the profitcenter (MARC-PRCTR) in that select , but the MCON doesn't have the prctr field.
I am writing like the code below.
SELECT * FROM mcon INTO TABLE it_mcon
WHERE werks = p_werks
AND matnr IN s_matnr
AND mtart IN mtart
AND abcin NE space
AND lvorm = space.
in above i have to add the PRCTR field also .
regards.
AjayHello Ajay-
Below is a simple example similar to your requirement.
tables:mcon,marc.
types:begin of i_test,
matnr type matnr,
mtart type mtart,
prctr type prctr,
end of i_test.
data:t_test type TABLE OF i_test,
w_test type i_test.
select a~matnr
a~mtart
b~prctr into table t_test from mcon as a inner join
marc as b on amatnr eq bmatnr.
loop at t_test into w_test.
write :/ w_test.
endloop.
Cheers,
~Srini... -
How to provide validation for a particular field of screen
Hi Experts,
For my project, I have created a screen. In the screen, we have one field. For this field we have provided F4 help. When the user clicks on the F4 list of values is displayed.
I have to provide following condition for this field.
User should only select values from this F4 list only. If the user tries to enter any data which is not contained in the list, system should throw message that 'Invalid data. Select valid values".
Can you please let me know how I can do so?
The relevant portion of code is
CASE save_ok_code.
WHEN 'EXIT'.
LEAVE PROGRAM.
WHEN 'BACK'.
PERFORM exit.
WHEN 'CANCEL'.
LEAVE PROGRAM.
WHEN 'SAVE'.
CALL FUNCTION 'MESSAGES_INITIALIZE'.
PERFORM check_batch CHANGING fl_error.
IF fl_error IS INITIAL.
PERFORM save.
IF sy-subrc EQ 0.
CLEAR gv_deleted.
PERFORM update_alv_grid_display.
***for message display
CALL FUNCTION 'MESSAGES_SHOW'.
ENDIF.
ELSE.
CALL FUNCTION 'MESSAGE_STORE'
EXPORTING
arbgb = 'ZEX_MYPROJECT'
msgty = 'S'
txtnr = '053'
msgv1 = text-008
EXCEPTIONS
OTHERS = 3.
CHECK sy-subrc = 0.
CALL FUNCTION 'MESSAGES_SHOW'.
ENDIF.
WHEN OTHERS.
CALL METHOD cl_gui_cfw=>dispatch.
I am totally new for ABAP. So, please help me out.
Thanks
SmithHi,
Try this.
Create an internal table and populated it with the values present in the F4 help of the field. Then in AT SELECTION-SCREEN event check the value of the field with the values in the internal table and display the appropriate message.
Sharin. -
Reports-- to validate the field values in a selection screen
How to validate a Particular field ..... in the selection screen ...!
that is how to determine the values of the field in the selction screen .....Hi,
Check the code below:
<b>at selection-screen</b>.
SELECT SINGLE * FROM MSEG WHERE
MBLNR = IMBLNR.
IF SY-SUBRC <> 0.
MESSAGE E016(PG) WITH 'Please select valid Material Document Number'.
ENDIF.
I used it in my program.
Hope this helps.
Reward if helpful.
Regards,
Sipra -
How to Validate the Domain for a given email id. Is a valid or invalid
Hello Frndz,
I am trying to validate the domain of a given email as a valid or invalid using the below SQL Block. But the values are hard coded into it.
Please suggest me some way to validate the email id Domain dynamically, so that it can be identify that the domain exsists or not.
Please help me. Thanks in advance.
DECLARE
l_domain_pos VARCHAR2(50);
l_at_pos VARCHAR2(50);
BEGIN
FOR DOMAIN_CHCK IN (SELECT * FROM s_cnct_test WHERE PROCESSED ='N')
LOOP
BEGIN
l_at_pos :=substr(DOMAIN_CHCK.email_addr,instr(DOMAIN_CHCK.email_addr,'@'));
l_domain_pos := SUBSTR(l_at_pos,INSTR(substr(DOMAIN_CHCK.EMAIL_ADDR,instr(DOMAIN_CHCK.EMAIL_ADDR,'@')),'.'));
IF ((l_domain_pos ='.com') OR(l_domain_pos ='.net')OR (l_domain_pos ='.nic.in') OR(l_domain_pos ='.co.in')) THEN
UPDATE S_CNCT_TEST SET
DOMAIN_STATUS ='Y',
PROCESSED = 'Y',
NEW_COMMENT = 'VALID DOMAIN'
WHERE ROW_ID = DOMAIN_CHCK.ROW_ID;
ELSE
UPDATE S_CNCT_TEST SET
DOMAIN_STATUS ='X',
PROCESSED = 'N',
NEW_COMMENT = 'NOT A VALID DOMAIN'
WHERE ROW_ID = DOMAIN_CHCK.ROW_ID;
END IF;
COMMIT;
END;
END LOOP;
END;Hi,
Try something like this
SQL> create table s_cnct_test(id not null primary key
,email_addr, domain_status,processed, new_comment)
as
select 1, '[email protected]', 'Z1', 'N', 'D1**************************' from dual union all
select 2, '[email protected]', 'Z2', 'N', 'D2***************************' from dual union all
select 3, '[email protected]', 'Z3', 'N', 'D3*************************' from dual
Table created.
SQL> create table valid_domain(domain varchar2(64) not null
,constraint valid_domain_pk primary key (domain))
Table created.
SQL> insert into valid_domain(domain)
values ('.com')
1 row created.
SQL> insert into valid_domain(domain)
values ('.net')
1 row created.
SQL> insert into valid_domain(domain)
values ('.nic.in')
1 row created.
SQL> insert into valid_domain(domain)
values ('.co.in')
1 row created.
SQL> commit
Commit complete.
SQL> create function domain(pi_email_addr in s_cnct_test.email_addr%type)
return varchar2
deterministic
as
begin
return substr(substr(pi_email_addr, instr(pi_email_addr, '@'))
,instr(substr(pi_email_addr, instr(pi_email_addr, '@')), '.'));
end domain;
Function created.
SQL> update s_cnct_test s
set domain_status =
nvl((select 'Y'
from valid_domain
where domain = domain(s.email_addr)), 'X')
, processed = nvl((select 'Y'
from valid_domain
where domain = domain(s.email_addr)), 'N')
, new_comment = nvl((select 'VALID DOMAIN'
from valid_domain
where domain = domain(s.email_addr)), 'NOT A VALID DOMAIN')
where processed = 'N'
3 rows updated.
SQL> commit
Commit complete.
SQL> select *from s_cnct_test
ID EMAIL_ADDR DO P NEW_COMMENT
1 [email protected] X N NOT A VALID DOMAIN
2 [email protected] Y Y VALID DOMAIN
3 [email protected] Y Y VALID DOMAIN
3 rows selected.Regards
Peter -
How to can we do selection-screen modification for LDB?
Hi All,
I have custom field in my selection-screen of LDB PNP.
Can you people please let me know how can I put the selection-screen modificaiton For ex:
i have created
parameters a as checbox.
select-options: p_btrtl for p0001-btrtl no-intervals.
now If the check box is selected then p_btrtl we can enter values or esle If check box is not selected then p_btrtl will be grayed out, ( I.e. SCREEN-INPUT = 0)
This is simple from ABAP without LDB. But with LDB can we achieve?????????????
Satish
Edited by: Satish Vasireddy on Jun 23, 2010 4:05 PMyou can use the following logic for the additional selection validation. I have done by using PNP LDB. Ex : I have done for one of the field in IT0377.
SELECT-OPTIONS: s_bplan FOR p0377-bplan.
*& Form check_selection_0377
This subroutine is used to check the selection screen
FORM check_selection_0377.
LOOP AT p0377 WHERE pltyp IN s_bplan
AND levl1 IN s_lti
AND begda LE pn-endda
AND endda GE pn-begda.
CALL FUNCTION 'HR_CHECK_AUTHORITY_INFTY'
EXPORTING
tclas = 'A'
pernr = pernr-pernr
infty = p0377-infty
subty = p0377-subty
begda = pn-begda
endda = pn-endda
level = 'R'
EXCEPTIONS
no_authorization = 1
internal_error = 2
OTHERS = 3.
IF NOT sy-subrc IS INITIAL.
DELETE p0377.
ENDIF.
ENDLOOP.
selection not found and no value selected
IF sy-subrc NE 0.
READ TABLE s_bplan.
IF sy-subrc EQ 0.
REJECT.
ENDIF.
READ TABLE s_lti.
IF sy-subrc EQ 0.
REJECT.
ENDIF.
ENDIF.
ENDFORM. " check_selection_0377
Regards,
Preetham -
Hi,
Can anyone help me how to write a validation on date to check if inserting the iten is a date and when not a error message should appear??Hi,
ekas wrote:
Hi,
Can anyone help me how to write a validation on date to check if inserting the iten is a date and when not a error message should appear??Sorry, it's unclear what you're asking.
What front end are you using? Most tools have a way to specify DATE fields, where you give the expected format, and the front end gives an error if the input isn't valid.
In pure SQL, you can use TO_DATE; it will raise an error if you pass it an invalid string.
If you need some way of detecting whether the string is invalid without raising an Oracle error, see this thread:
Re: how to select valid dates only -
Hi All
I have created a validation, but I didn't got the transport request no.
Please let me know how to transfer the transport the validation or how to create the transport reqest for my validation.
Best regards
MadhaviHi
Keep the cursor on validation you created (Not on step ,validation may have number of steps ex:-step 001 ,step 002 etc..) and from the menu select Validation-> Transport. Select all the check boxes and execute.Then it will prompt for new Request creation.
After creating the Request go to SE09 to move the same to Quality server.Once it is moved to Quality Run the program RGUGBR00 to generate the ABAP Code for validation in Quality.The same need to be done in Production also.
Also i can say you , we can generate a transport request no. for the validation only but not for step.
So the same transport number will be valid for all the steps in the validation.
Hence we cant create a transport request no. for a step.
Regards
Venkat
Edited by: Venkat Dara on Dec 3, 2008 5:39 PM
Maybe you are looking for
-
Files in red, not syncing with their location
Haven't used my soundtrack in a while, but now have discovered the audio files are in red. I've located the actual files in my Loops folder and can play from there, but not in Soundtrack Media manager or timeline. How can I sync the files back up?
-
6.0.2 Beachballing
Updated to 6.0.2 last night and now Safari is beachballing after about 30 seconds on certain sites specifically bbc news, tgdaily, appleinsider. If I navigate around something simple, say Google News, then it's fine. Have emptied the cache to no ava
-
Hello Everybody: I am a beginner here. I was trying to create a user named turner, password as tur. I had following code. SQL> connect scott/tiger; Connected. SQL> CREATE USER turner IDENTIFIED BY tur; CREATE USER turner IDENTIFIED BY tur *ERROR at l
-
Sending email in work flow to the persons overdue
Hi, After every activity in workflow an email is being sent to the person who has created it. But now I want an email to be sent to the persons who are overdue with that particular activity. Please suggest me the answers. Thanks & Regards Message was
-
Annoying alphabetisation of Music on E50
Hi everyone - new to these boards. Can somebody tell me why, after I have transferred an album of music to my E50, it very annoyingly decides to put the songs in alphabetical order? this means that albums have all the tracks in the wrong order - esp