Restrict PNP Personnel Area Field to One Value on Selection Sreen
Hi,
I want to restrict users to enter only one value for pnpwerks (perwsonnel area) field on pnp standard report. How do I hide the push-button for displaying range?
Regards,
Lily
Hi Lily,
If you are using select-options as input field and want to restrict to one value use the below syntax.
Ex:
DATA spfli_wa TYPE spfli.
SELECT-OPTIONS s_carrid FOR spfli_wa-carrid NO-EXTENSION NO INTERVALS.
If your using Parameter
PARAMETERS:s_carrid like spfli_wa-carrid NO-EXTENSION.
<b>PLEASE REWARD IF USEFUL</b>
Regards,
sunil kairam.
Edited by: sunil kairam on Dec 19, 2007 4:33 PM
Similar Messages
-
How to make SAP Query additional field as one of the selection field ?
Hi experts,
I'm working on a AdHoc query. I added some Additional fields to the infoset. I put Abap code to populate this additional fields as output fields but I want to make these fields as selection fields also.
How can I accomplish this ?
I'd appreciate any answer or suggestion.
Thanks in advance.See Extended / Quick Search capability with attributes in the following SAP notes.
[482338 - Using Extended Search in ISA B2B, ver. 30|https://service.sap.com/sap/support/notes/482338]
[792556 - Quick search using several attributes|https://service.sap.com/sap/support/notes/792556]
[888528 - ISA R/3 4.0: Extended catalog search not consistent|https://service.sap.com/sap/support/notes/888258] -
Compare two fields of one table in selection.
Dear Experts,
I want to compare two fields of a table and make selection according to this.
Ex: simply i want to select the rows from table mard where mard-labst>mard-insme. Could you write me the code to make this selection.Yes, Thomas,
Its working:
Sample code:
data: begin of itab occurs 0,
matnr type matnr,
ernam type ernam,
end of itab.
select matnr ernam
into table itab
from mara where brgew > mara~ntgew.
loop at itab.
write: itab-matnr.
endloop.
Or,
Try with inner join once.
Its working: Sample code.
data: begin of itab occurs 0,
matnr type matnr,
ernam type ernam,
end of itab.
select p~matnr q~ernam
into table itab
from mara as p
inner join mara as q
on p~brgew > q~ntgew.
loop at itab.
write: itab-matnr.
endloop.
Thanks,
Naveen.I -
Update personnel area for the same position
Hi,
I have to update the personnel area for the same position. The personnel area has been updated in OM side.
What should be done to get the same value in Infotype 1 ?
I tried using lsmw . But, personnel area field is greyed out and Iam not able to change it .
Thanks in advance.Hi,
Please check if this [link|PA30(URGENT); is useful.
Regards,
Srini. -
Formatting Address Fields into one
Using Acrobat X PRO:
I have a multi-page document in which a user is prompted for the address in two different formats:
1) With the address split into 4 different values/fields:
Street Field, City Field, State Field, Zip Field
Example: "1234 Count Rd" (Next Line) "St Louis", "MO" "55555"
2) With the address all together:
Complete Address on one line with a maximum length of 40 Characters.
Example: 1234 Count Rd, St. Louis, MO 55555
I would like users to be able to Fill in the Street, City, State, and Zip fields, and no matter what the format of the following fields, have the data autopopulated.
This isn't a problem for example #1. However, with #2 if i place all fields close together, I have to guess on how far apart to space each field and still have it fit and format properly.
Is there any way to combine the values of 4 fields into one value (separated by commas)?
Making the address field 'auto-fit' may be necessary but it's ugly if there is extra space in the remaining fields.
PLEASE SEE THIS EXAMPLE document i have created for the purpose of this postAnd if the combined fields are longer than 40 characters?
With Acrobat 4 there was a sample form that one entered the data in fields like tile, first name, mi, last name, abd degrees and then created a full name from those individual fields and adjusted for missing data.
The doucment level script:
/ Concatenate 3 strings with separators where needed
function fillin(s1, s2, s3, sep) {
Purpose: concatenate up to 3 strings with an optional separator
inputs:
s1: required input string text or empty string
s2: required input string text or empty string
s3: required input string text or empty string
sep: optional separator sting
returns:
sResult concatenated string
// variable to determine how to concatenate the strings
var test = 0; // all strings null
var sResult; // re slut string to return
// force any number string to a character string for input variables
s1 = s1.toString();
s2 = s2.toString();
s3 = s3.toString();
if(sep.toString() == undefined) sep = ''; // if sep is undefined force to null
assign a binary value for each string present
so the computed value of the strings will indicate which strings are present
when converted to a binary value
if (s1 != "") test += 1; // string 1 present add binary value: 001
if (s2 != "") test += 2; // string 2 present add binary value: 010
if (s3 != "") test += 4; // string 3 present add binary value: 100
/* return appropriate string combination based on
calculated test value as a binary value
switch (test.toString(2)) {
case "0": // no non-empty strings passed - binary 0
sResult = "";
break;
case "1": // only string 1 present - binary 1
sResult = s1;
break;
case "10": // only string 2 present - binary 10
sResult = s2;
break;
case "11": // string 1 and 2 present - binary 10 + 1
sResult = s1 + sep + s2;
break;
case "100": // only string 3 present - binary 100
sResult = s3;
break;
case "101": // string 1 and 3 - binary 100 + 001
sResult = s1 + sep + s3;
break;
case "110": // string 2 and 3 - binary 100 + 010
sResult = s2 + sep + s3;
break;
case "111": // all 3 strings - binary 100 + 010 + 001
sResult = s1 + sep + s2 + sep + s3;
break;
default: // any missed combinations
sResult = "";
break;
return sResult;
And then one could use a custom calculation script for a full address field:
// Full business address including country
function doFullBusinessAddress() {
var ba = this.getField("business.address.full");
var bc = this.getField("business.address.citystatezip");
var bu = this.getField("business.address.country");
event.value = fillin(ba.value, bc.value, bu.value, ", ");
doFullBusinessAddress(); -
Functional Area field not getting populated in the AUFK table
Hi Friends,
The table AUFK is the table for Internal Order master data.
The issue which we are facing is:
In a particular Order type, the field 'Functional Area' is suppressed in the field status group for the order master data.
But the cost centers which are maintained in the order master has the functional area field populated with value.
In the table AUFK, the functional area field is populated for some internal orders and not populated for others. In all cases it should pick the functional area from the cost center which is maintained in the internal order.
Please guide us about what can be the possible reason(s) for populating the field in some cases while not populating in other cases.
Thanks a lot in advance for your help.
Regards,
ShilpiHi,
maintain the functional area in order master data to ensure 100% functional area is available in AUFK.
I can't tell you the reason why its sometimes appearing and sometimes not bur FUNC_AREA is not picked from responsible/requesting cost center (from master data).
If in customizing of internal order order types a "model-order" is assigned with maintained functional area, this func_area is taken if you create a new order for this ordertype.
Best regards, Christian -
Populate text field based on the lov selected value
Hi,
based on the value selected in lov, i want to populate another text field. Below is the code I have written
In PFR:
if(pageContext.isLovEvent())
String lovInputSourceId = pageContext.getParameter(SOURCE_PARAM);
if ("lovCategory".equals(lovInputSourceId))
java.util.Hashtable lovResults = pageContext.getLovResultsFromSession(lovInputSourceId);
if(lovResults!=null)
String value =(String)lovResults.get("lovCategory");
amobj.categorycode(value);
AMImpl code:
public void categorycode(String code) {
sundryCodeVOImpl vobj = getsundryCodeVO1();
vobj.setWhereClause( "lookup_code = "+"'"+code+"'");
vobj.reset();
vobj.executeQuery();
String desc = vobj.first().getAttribute("Description").toString();
String attr = vobj.first().getAttribute("Attribute1").toString();
testEOViewImpl vobj1 = gettestEOView1();
vobj1.getCurrentRow().setAttribute("CodeDescription",desc);
vobj1.getCurrentRow().setAttribute("PurchasingCategoryCd",attr);
vobj1.executeQuery();
With this code, the updated values for the attributes CodeDescription, PurchasingCategoryCd are getting inserted into the database table but they are now showing up in the text fields when a value is selected in lov.
Please tell me what is the mistake I'm doing.
Thanks
SunnyI'm using Lov Map to populate the lov field say field A. But I need to populate another field say field B based on the value selected in field A.
to give an example of my requirement. Consider a view object having attributes col1,col2,col3 and having following data.
col1--col2--col3
1-----a-------x
2-----b------y
3-----c------z
I 'll populate the lov of field A with values in col1. when user selects value 1 in field A. automatically field B should show value 'a'. If user selects value 2 in field A, field B should show value 'b' so on.
Thanks
Sunny -
Country Groupings to Personnel Areas
Can I assign different country groupings to personnel areas assigned to one company code?
Rgds,
Tapan S.Yes, that's exactly the point. This is SAP limitation.
Though I know it is not always the best solution. For example, when same company is present in several countries (like rep.offices) you cannot use full power of SAP if you don't use right molga. In such cases customers were forced to clone company codes and create artificial copies of mother company codes. If you use only SAP HR in your system that's acceptable, otherwise Finance will not accept this solution.
Cheers -
Shift planning per personnel areas??
hi,
my requirements is to implement shift planning per personnel area not organization unit!
i have created profile for object type IZ(personnel area) instead of O(organization unit.
the question is what is the relationship type and evaluation path??
Thanks in advance for your help,Hi,
There are plenty of entries that have to be maintained during Personnel Area maintenance. One of them is assignment to a country grouping. Probably this entry is missing for you.
The best practice when you create new personnel area is to copy it from existing one. So I suggest you to do the same - copy the one that you already have to the new ones. Then you will save a lot of time.
Cheers -
Subquery returned more than one value
Hi,
I have this statement which has been working fine - not I get a 'Subquery returned more than one value" error:
SELECT
'WAS3' AS 'Rec ID',
E.EecEEID AS 'Emp ID',
eepNameFirst AS 'First Name',
eepNameLast AS 'Last Name',
EecDateOfOriginalHire AS 'Service Date',
(SELECT DATEDIFF(YEAR, EecDateOfOriginalHire, getdate()) from empcomp EC WHERE EC.EecEEID = E.EECEEID) as 'Yrs of Serv'
FROM
EmpPers
JOIN EmpComp E
ON E.eecEEID = eepEEID
JOIN Company
ON eecCoID = cmpCoID
WHERE
EecDateOfTermination IS NOT NULL
AND EXISTS
(SELECT 1
FROM EmpComp e2
WHERE e2.EecEEID = E.EecEEID
--AND e2.eecEmplStatus <> 'A')-- changed to <> ...this WAS/is to filter out anyone that was termed then re-hired
--AND E.EecTermReason NOT IN ('I01','I02','I03','I14','I22','V05','V07','V09','V12','V22','V13', 'TRO')
AND E.eecDateOfTermination
IN (SELECT (EC.eecDateOfTermination)
FROM EMPCOMP EC
WHERE EC.EecEEID = E.EECEEID
AND EC.eecDateOfTermination IS NOT NULL
AND eC.eecDateOfTermination >= DATEADD(wk,DATEDIFF(wk,0,GETDATE()),0)
AND EC.eecDateOfTermination <=DATEADD(wk,DATEDIFF(wk,0,GETDATE()),6)
AND e.eecDateOfTermination >= DATEADD(wk,DATEDIFF(wk,0,GETDATE()),0)
AND E.eecDateOfTermination <= DATEADD(wk,DATEDIFF(wk,0,GETDATE()),6)))
--AND eC.eecDateOfTermination >= DATEADD(wk,DATEDIFF(wk,0,('12/30/2007')),0)
-- AND EC.eecDateOfTermination <=DATEADD(wk,DATEDIFF(wk,0,('12/30/2007')),6)
-- AND e.eecDateOfTermination >= DATEADD(wk,DATEDIFF(wk,0,('12/30/2007')),0)
-- AND E.eecDateOfTermination <= DATEADD(wk,DATEDIFF(wk,0,('12/30/2007')),6)
-- AND E.eecDateOfTermination IS NOT NULL ))
--added below per Paul Cottle to exclude employeess less than four years
AND E.eecdateoforiginalhire >=dateadd(year,-4, CURRENT_TIMESTAMP)
qeqwCheck this, if it works:
SELECT
'WAS3' AS 'Rec ID',
E.EecEEID AS 'Emp ID',
eepNameFirst AS 'First Name',
eepNameLast AS 'Last Name',
EecDateOfOriginalHire AS 'Service Date',
DATEDIFF(YEAR, EecDateOfOriginalHire, getdate()) as 'Yrs of Serv'
FROM EmpPers
JOIN EmpComp E ON E.eecEEID = eepEEID
JOIN Company ON eecCoID = cmpCoID
WHERE EecDateOfTermination IS NOT NULL
AND EXISTS
(SELECT 1
FROM EmpComp e2
WHERE e2.EecEEID = E.EecEEID
AND E.eecDateOfTermination
IN (SELECT (EC.eecDateOfTermination)
FROM EMPCOMP EC
WHERE EC.EecEEID = E.EECEEID
AND EC.eecDateOfTermination IS NOT NULL
AND eC.eecDateOfTermination >= DATEADD(wk,DATEDIFF(wk,0,GETDATE()),0)
AND EC.eecDateOfTermination <=DATEADD(wk,DATEDIFF(wk,0,GETDATE()),6)
AND e.eecDateOfTermination >= DATEADD(wk,DATEDIFF(wk,0,GETDATE()),0)
AND E.eecDateOfTermination <= DATEADD(wk,DATEDIFF(wk,0,GETDATE()),6)))
AND E.eecdateoforiginalhire >=dateadd(year,-4, CURRENT_TIMESTAMP)
If this post answers your query, please click "Mark As Answer" or "Vote as Helpful". -
Default personnel area in PNP reports
Hi,
I have a requirement to default personnel area in all standard PNP reports. I notice there is a parameter id for PNPWERK. I tried setting it in user's data via SU01, however it does not seems to work. Please adviceHi
Try to include the personal area field in the selection screen and default the value?
http://help.sap.com/saphelp_46c/helpdata/EN/c6/8a15381b80436ce10000009b38f8cf/content.htm
Regards
Chandrasekar -
Restrict Personnel area for executing personnel actions
Hello,
Guys I need your help on the following issue. Any help will be appreciated.
The project Which i am working on has 67 Personnel Areas (PA) and 24 personnel actions.
I need to create a role in such a way the the user will be accessing some 4-5 actions for 1 particular PA. Now I know this can be done in the authorization object P_ORGIN. But i can only give one value of PA to one particular role.
Now the long and tedious solution for me is to create 67 different roles. I need a simple and easy to maintain solution for this.
Again any help will be appreciated.
Thanks,
MangirishHi sikandar,
Thanks for your prompt reply.
I am already done with the infogroups using user groups. What the client now require is to restrict a user in executing personnel action for one particular personnel area.
I know this can be done through roles but there are 67 Personnel areas and 7 different levels of user (you do the math)
Is there a easier way out??
Thanks,
Mangirish -
Internal Order settlement to one value field in CO-PA (revenue and cost CE)
hi there,
we want to settle an internal order to one CO-PA Value field.
The problem is, that when on the internal orders are postings with CE type revenue and costs, in settlement it reduces the internal oder by the correct amount, but in CO-PA all values come with positive sign)...That would be fine if we would use several value fields, but we want to use only one value field for this settlement..
IO: Revenue: 10 Cost 5 ---> 5 --> thats the amount we want to transfer to CO-PA through settlement
in COPA: 15 (10 + 5)..
I treid to exclude the revenue CE from settlement, but this doesn't work (settlement rule incomplete)
Thank you for your help.
Regards,
MarkusHi,
The sign of a value field in CO-PA for the settlement of orders, projects is always determined depending on the cost element type of the cost element/account.
The logic is as follows for record type C:
sign in CO-PA for postings
cost element type debit credit
11 - +
others + -
The logic of settlement into CO-PA works like this:
1.) The first step is that all values are transferred from the sender as they were posted in the database on this side
On the sender side all debits have '+' sign and all credits have a '-' sign no matter what cost element type is used.
Usually costs are posted as debit with cost element type '1' and revenues as credits with cost element type '11'.
2.) The second step reverses the sign of all cost elements with type '11' (and exclusively those).
The intention is to have only positive values in CO-PA to be used in reporting. (There you can set up rules what needs to be added or subtracted).
Note 369378 explains the logic and provides a workaround.
regards
Waman -
How to restrict the user to enter only numeric values in a input field
How to restrict the user to enter only numeric values in a input field.
For example,
i have an input field in that i would like to enter
only numeric values. no special characters,alphabets .
reply ASAPHi Venuthurupalli,
As valery has said once you select the value to be of type integer,once you perform an action it will be validated and error message that non numeric characters are there will be shown. If you want to set additional constraints like max value, min value etc you can use simple types for it.
On the project structure on left hand side under local dictionary ->datatypes->simple types create a simple type of type integer
The attribute which you are binding to value property ;make its type as simple type which you made
Hope this helps you
Regards
Rohit -
HR restrictions required across personnel areas w/o structureal auths
The business has the need to restrict their HR users to a select population of users. Example, we need to be able to exclude the Executive population. The executive population is across multiple organizations (personnel areas) and we cannot use the employee subtgroup field to restrict on (04) for Executives because not we have some ISA's that we have coded US-ISAs so they are not reflected in the master data as (04). We have not implemented structural authorizations but I need to know if there is a means to restricting (PA20 - display of master data) on groups of associates without structural authorizations??
Hi,
From my clients implementations so far, I have seen two approaches to restrict access to executive's PA data in PA20:
1. Based on organizational key which can be restricted at role level via auth objects- P_ORGIN
2. Implementing custom exit/BADI in the PA20 program or implement customer specific auth object [P_NNNNN|http://help.sap.com/saphelp_470/helpdata/en/4e/74ba3bd14a6a6ae10000000a114084/content.htm] to additionally check authorization for a custom auth object while executing PA20 which restricts access for specific range of personnel numbers that belong to the executives.
In short, either organization key (i.e personnel area + cost center) or personnel number of executives should fall within a reserved number range which can be used to restrict the access to their PA data.
Thanks
Sandipan
Maybe you are looking for
-
i used to open many tabs in the same page and i move from one to other by mouse but since3 two days the tabs open in the same page normaly but i can't move from one to other when i clik with mouse on any tab it don't open/ do u have any solve for thi
-
Java.sql.SQLException: Error while trying to retrieve text for error ORA-24
Hi All, Am having serious problem with ORA-24327 and the behavior is very very unpredictable. I have couple of environment where the same error comes in different context. The recent one was surprising. I have describe bellow the environment configur
-
i have a block A of multiple records in which items are CC(number), MC(number), TOTAL. formula of TOTAL is MC+CC and it is set in property palette of TOTAL. in another block B i have a SAVE button with code "go_block('a'); commit;" if i update MC or
-
Can I keep the ipod icon in the itunes source list - so that I can click on it and see details of my ipod library etc? when the ipod isn't connected to my computer? I could do this with my ipod shuffle, but with my nano it disappears when I disconnec
-
Time capsule message "- already in use".
I purchased Time capsule yesterday and did an encrypted backup of my MacBook Pro (about 75Megs). Now Auto-Backup keeps providing the message: "The backup disk image "/Volumes/Data-1/My MacBook Pro.sparsebundle" is already in use". What does this me