Checking personnel numers in ranges
Hi All,
I wrinting an HR program using LDB 'PNP'.
I am giving range of pernr in select ranges options in selection screen.
Now i want to check these persons are retiree or not before get pernr event used.
Example:
If i am giving person numbers 1000 to 1005.
I need to check the values between 1000 to 1005 person numers whether these are retiree or not.
How can i do achieve this.
Thanks
Hello ,
I am doing like this
Infotypes: 0000 "will be filled automatically at GET PERNR event
0001 mode n... "will stay empty, you have to fill it manually, so not data trasnport at GET PERNR
START-OF-SELECTION.
select pernr from pa0001 into table it_pa0001 where pernr in pnppernr.
Now i want to reject triggereing get pernr event if w_pa0001-persg is NE 'R'.
How can aciheve this.
*****************************++
GET PERNR.
read table p0001 where stat2 = '2' and BEGDA ... ENDAA..
if sy-subrc = 0.
REJECT. "retiree so don't process him/her
else.
"active so fetch rest of the data
select * from pa0001 ....
endif.
Similar Messages
-
Copy, delete, check personnel subarea and Number ranges
Hi All,
I am creating a new personnel subarea using copy the personnel subarea in enterprise structure definition.
(Copy, delete, check personnel subarea)
While doing this I am getting prompt about number ranges over writing issue.
It seems that number ranges in production system may get affected due to this transport.
So I am planning to note all the available number ranges in production system before transport and reset similar as earlier after the transport directly in production
OR
set number ranges in development similar in production then to transport to production.
Please comment on the above approach.
I am planning to check on the following number ranges only
Tcodes u2013OONR ( for OM) and PA04 (for PA)
Can you suggest in case if any other number ranges to be taken care?
Regards
ThomasHello,
Do you have another option for the copy : Copy (without reference) ? -
How to configure Alpha Numeric No range for the Material Type
Dear Expert,
i kindly request for expert help on alpha numeric no range for the Material Type.
business is looking for material no like 910442208571D. at present we have no range like 9000000000000 to 9999999999999
how i can configure in the system??
pl. help me on this
Thanks a lot
H shahHi,
System will not bring alphanumeric number of materials automatically during MM01.
Check use exit MGA00002 - Material Master (Industry): Number Assignment.
Also check 2 Function Modules:
EXIT_SAPLMG02_001 - Customer Exit: Internal Material Number Assignment
EXIT_SAPLMG02_002 - Customer Exit: External Material Number Assignment.
Regards,
Biju K -
Numeric no range allows aphabates
Hi,
I am working on Roll out project. we are using same matrial types used by oher plant.
they have grouped together all material types in one group & gave no range as 00000001 to 999999 (external)
bt while creating material it is allowing alphabates in between like '1234abcd' bt it is not allowing alphabates at the starting like abc123(not allowing)
how it is allowing alphabates in numeric no range & why not allowing alphabates at start ? is there any specific settings behind this?Kunal Gosavi wrote:
> hi ,
>
> I have already checked in the material type external no assignment w/o check tick is not there.
>
> still it is allowing alphabates in no range not in start bt in between.
with this setting, I get error message M3318
Number & not defined for material type &
Every material type has a speific number range for external number
assignment. The material number you have entered does not lie within
the number range for this material type.
&WHAT_TO_DO&
Choose a material number that lies within the number range of your
material type.
Execute SNUM transaction
enter MATERIALNR as object and execute
then click the overview button and you will get a list with material types along with their intenal and external number.
You said that all material types have now just one number range.
If this is so, then you should see just one in the list (certainly with a different number range as you posted, because what you posted cannot be there as the to number is smaller than the start number - I mean the lenght, your from number has 8 digits your to number only 6)
But maybe it is different. and you your material type is listed more than once
Edited by: Jürgen L. on Dec 10, 2010 3:25 PM -
Alfa Numeric Number range creation
hai SD experts .can any body help me in this issue your help will be rewarded...
i am using 4.7 i know number range creation but i want to create ALFA NUMERIC NUMBER RANGE AND ASSIGN IT TO MY SALES ORDER can any body help me in this issue with detailed steps pls
advance thanks
rag samhi
Pls try with the following ,Hope it will help u out
Number Ranges can be maintained Internally by the system, however it can be maintained externally also if you customize it accordingly.
In Standard SAP the Transaction code for Maintaiing Number ranges externally is VN01.
Defining - The same can be reached through in IMG as : Sales & Distribution>Sales>Sales Document Header-->Define Number Ranges for Sales Documents.
Here you provide the system a specific Number range as follows:
Number range Key Start Number range End Number Range+Current Number
For Example: If you want to propose the following Number Range
*1 9000076000 9000076999 0
The Current Number field will be kept zero as you are proposing new number range and no sales documents have been created on it , Obviously..
*1 is a Unique Two digit Alphanumeric Key, while proposing your key, you should ensure that it should not be there in the system as existing.
If you propose a key that is there in the system or if the Number Range (Start and End Series) is there in the system already, the system will throw a message that Interval already already exists. So choose a key that is unique, and which is not there in the system.
Here , by making this , you are assigning a Key to a Number Range Series.
All the symbols can be used along with numbers from 0 to 9 and Alphabets from A to Z and in any order. For example: !1, ^A, BB,Z*,M2.........
Assigning - In Assigning, you assign the particular Sales Document to the Number Range you have already proposed as above.
The Assigning Part is done as follows:
The Two digit Alpha Numeric Key is maintained or Assigned to the respective Sales Document type in V0V8.
This can also be reached in IMG by:
Sales & Distribution>Sales>Sales Document Header-->Define Sales Document Types
Locate the particular Sales Doc Type, and double click on it to display it configuration. Here you put the Two Digit Number key in the Field- "Number range External Assignment" -
Alpha numeric no. range for PERNR (Employee no.)
HI,
Any option for adding alpha numeric no. range for PERNR (Employee no.)
RXBetter you can use Numeric only....
see the sap help
External intervals can only contain either letters or numbers, as sorting can differ between platforms (Code page):
Allowed: 000001 to 999999
AAAAAA to ZZZZZZ
Not allowed: AAAAAA to 999999 -
Alpha Numeric number Ranges for Sales order Acording to sales office wise.
Hi Experts,
I have a Issue for genrating sales order numbers With Alpha Numeric Number Ranges for sales office wise Internaly . How can we get this is there any Userexits or badi for this . If Any one Come across this issue plz guide me.
The Alpha characters should not change that will be sales office region code. only the Numeric numbers should change .
Ex; Abc-123000 to Abc-200000
Regards,
Ravi.This alpha-numeric format is not possible directly with SNRO settings.
You need to opt for external number range, and in the exit of your respective transaction you need to takecare of this number generation explicitly by programming.
http://www.sap-img.com/sap-sd/number-ranges-in-sales-order.htm
any more inputs from experts are welcome..
Hi,
1. goto include MV45AFZZ and to user exit Save_document This form is called before COMMITand double click on FORM USEREXIT_SAVE_DOCUMENT.
2.it will show the program MV45AF0B_BELEG_SICHERN from were this user exit is called, selcet the program and click on Display.
3. you can use the enhancement point enhancement-point beleg_sichern_01 spots es_sapmv45a. just below the PERFORM USEREXIT_SAVE_DOCUMENT to call the badi method on_costing_component.
regards.
santhosh reddy
Message was edited by:
Santhosh Reddy
Message was edited by:
Santhosh Reddy -
Range check for numeric values in varchar2 type column
SQL oracle 10g windows XP
I have a table which has column of type varchar2 e.g
create table osa_gms_mailbox(reg_address varchar2(60),bin_address varchar2(60));
let us insert some sample rows:
insert into osa_gms_mailbox values ('8000','8000');
insert into osa_gms_mailbox values ('9000','9000');
insert into osa_gms_mailbox values ('[email protected]','[email protected]');
If i try to run the query :
select reg_address from (
select reg_address from osa_gms_mailbox
MINUS
select reg_address from osa_gms_mailbox where
regexp_like(reg_address,'^[a-z]+|[A-Z]+$')) temp
where to_number(temp.reg_address) between 1000 and 10000;
or
select reg_address from (
select reg_address from osa_gms_mailbox
MINUS
select reg_address from osa_gms_mailbox where
regexp_like(reg_address,'^[a-z]+|[A-Z]+$'))
where to_number(reg_address) between 1000 and 10000;
it gives ORA-01722: invalid number .
how can i get the numeric comparision done for varchar2 field and exclude the rows which have atleast one alphabet (a-z,A-Z)
ThanksHi
Please check this sample , it may useful to you
/*Creating a Table*/
Create Table CHECKVARCHAR( CheckValue Varchar2(20) );
/* Inserting values in to the column with numbers and Strings */
Insert into CHECKVARCHAR Values ( 1000 );
Insert into CHECKVARCHAR values ( 2000 );
Insert into CHCEKVARCHAR values ( 10000 );
Insert into CHECKVARCHAR values ( 'Abc' );
Insert into CHECKVARCHAR values ( 'zyx' );
/*Here is the Query to avoid Invalid Number */
Select * from
( Select CheckValue
from Checkvarchar
where Ascii( Substr( CheckValue,1,1 ) ) not between 65 and 122 )
where CheckValue between 1000 and 10000; -
Hi Folks,
Can somebody suggest me if we want to use alphnumeric number ranges Ex:A09XY234 for student masterdata what are the problems we have to face inSAP.
VaraDear Vara,
I assume you mean the studentnumber and not the object ID's?
In SAP SLM there is a standard switch which you can use to choose a numeric student number or alphanumberic. Beside that you have a Badi which gives you more flexibility:
Requirements
You need to implement the business add-in for assignment and checking of student numbers in the following cases:
You want to use numeric student numbers which must comply with special rules and have a check digit, for instance.
You want to use alphanumeric student numbers.
IMG: SLCM --> Master data in SLCM --> Student Numbers and Object ID's --> BAdI: Student Number Assignment
Because the student number is an attribute (abbrevation) of the object (1000) ST you will likely will not face problems in SAP SLM with an alphanumeric student number.
Rob -
How to check non-numeric value in a field
Hi all,
I have a field 'MVALUE'. HOw can I check if I have a non-numeric value in my field. Let us say if I have a value '<25' in this field. How can I check if the value in this field is non-numeric. The field MVALUE is of CHAR datatype.
Please help. Waiting.........Might have to add a space in the string...
if not mvalue co ' 0123456789'.
* error
endif.
if you allow decimals and commas...
if not mvalue co ' .,0123456789'.
* error
endif. -
Built-in functions to check for numeric or string
Hi,
Is there any built-in functions in java for checking if the value is numeric or is a string ?
tks & rdgsHi,
I have a string og such value "1 testing" that i will be using stringtokenzier to get the individual parts but i do not want to return "1" but only "testing" so i'll need to check whether if the parts can be converted to numeric if so , then i don't return else return the value
tks & rdgs -
Check distance (within a range) moved in y-axis?
In my example below is there a way the code can check how far the numbers have moved in the y-axis so that eventually I can have a button that checks to see if the user has moved the numbers to a defined distance in the y-axis (within a range)?
http://twistedpancreas.com/edge/misc/mouseDown.zip
Thanks in advance.Hi,
You should not put any statements between If and else condition , they should go together .
if(x.position().top > -2277 )
sym.getComposition().getStage().getSymbol('lab_items').getSymbol('numbers').$('labMarks') .animate({'top':'-=50px' }, 300, 'linear', scrollCont);
sym.getComposition().getStage().getSymbol('lab_items').$('btnCheck').bind('click touchstart',function(e){
e.preventDefault();
$(this).unbind('click touchstart');
sym.getComposition().getStage().getSymbol('lab_items').$("feedbackText").html("incorrect" );
else
console.log("stop");
sym.getComposition().getStage().getSymbol('lab_items').$('btn').unbind(' mousedown touchstart');
sym.getComposition().getStage().getSymbol('lab_items').$('btnCheck').bind('click touchstart',function(e){
e.preventDefault();
$(this).unbind('click touchstart');
sym.getComposition().getStage().getSymbol('lab_items').$("feedbackText").html("incorrect" );
So please do not write any If conditions between the above If and else .
Thanks
Saurav -
Alpha Numeric Number range in billing
Dear friends,
We have a requirement related to number range determination in billing doument and the requirment is as below -
a. Number Range need to determine as alpha numeric
b. No External number ranges to use and always determine as internal
c. The codification for the number range is as below -
1S59000001 - Codification for number range
For your information, in our scenario billing is generated automatically through batch run.
Than
Best Regards,
GouthamHi,
You cant maintain the INTERNAL NUMBER RANGE with Alphanumericals.
For this you have to use the USER EXIT
Try this user exit
USEREXIT_NUMBER_RANGE (Module pool SAPLV60A, program RV60AFZZ
regards,
santosh -
Check..numeric and charcter fields.
Hi,
iam checking the conditions for numeric and character.if the output is numeric then it can shift to right justify,else if it is charcter left justify.but the following code is not checking for charcter fields.
data:p_input type c.
data: pout type string.
data: htype like DD01V-DATATYPE.
if htype = 'CHAR'.
shift htype LEFT DELETING LEADING space.
else.
CALL FUNCTION 'NUMERIC_CHECK'
EXPORTING
STRING_IN = P_INPUT
IMPORTING
STRING_OUT = POUT
HTYPE = HTYPE.
SHIFT htype RIGHT DELETING TRAILING space.
endif.
plz help me..
thankshi,
try sth like that:
parameters p_input(50).
DATA: pout TYPE string.
DATA: htype LIKE dd01v-datatype.
CALL FUNCTION 'NUMERIC_CHECK'
EXPORTING
string_in = p_input
IMPORTING
string_out = pout
htype = htype.
IF htype = 'CHAR'.
SHIFT pout LEFT DELETING LEADING space.
ELSE.
SHIFT pout RIGHT DELETING TRAILING space.
ENDIF.
Andreas -
HI all,
I am facing a problem when enter more than 11 digit in the numeric field. On exit the field, the value change to some other
number.
Also noticed , this behaviour is pdf reader dependent as version 8 and version9 behave differently for the numeric fields.
Pls suggest if there is any solution for this.
regards,
JNThis may be an effect of the IEEE 754 standard used in XFA forms.
If the numbers have more than 16 digits the are rounded automatically (more details can be found in the XML Forms Architecture (XFA)
Specification and FormCalc User Reference.
Another reason may be a pattern you set for the numeric field or a script you use for calculation.
Maybe you are looking for
-
How to view PDF files strored in a BLOB column
Hi all, I want to display a PDF file, stored in a BLOB column, in a form or through a JavaBean. But the problem is more complicated then that. I do not want to retrieve the PDF file in the application server that show it through a browser. Actually,
-
Sync problems with EPSON beamer
I have problems to connect my new EPSON Beamer (EMP-TW700, HD-ready) via HDMI cable to the Apple TV (160GB). There seems to be a sync problem. The beamer works fine with my MacBook Pro via DVI-Port. What to do ?
-
"how do i synchronize between two outputs"
Hi I'm using a bapi data service "po_bapi_getlist" which have two outputs :header and raws. When I'm connecting each output to table view, the output information is not synchronized, when i put the cursor on the line's header - "po nam" the cursor is
-
My phone keeps asking for a password to get into voicemail. I've tried my phone #, my last four digits, and the key passwords I use. NONE WORK. I cannot set a NEW password without knowing my OLD one? HELP?
-
How do I fix this bookmarks display glitch?
I'm using Acrobat 9 Pro (9.5.5) on a Mac (10.9.4) and the bookmarks in all of my PDFs have a glitch that makes them unusable. The content is still there, but there is an inordinate amount of space between each marker. Examples of this can be seen on