Deriving Effective Date on Assignment Form
Hi All,
On the Assignment form, in the People Group KFF, we have defined a value set, which will render values based
on the effective date of the record. Could you please tell me how I can derive the effective_date from the Assignment form.
I do not want to use sysdate, because the user can date track to a different date other than the sysdate.
Any help?
Regards,
Prathima.
Hi
I think you want to get the Assignment Effective Start Date ,I have a question on the requirement lets take an example, if the Assignment record is starting from 01-Jan-2011 and ending 31-Jan-2011 and again starting from 01-Feb-2011 and continuing till end of time. So if user date track to 25-Jan-2011 so in this case you want effective_start_date as 01-Jan-2011 or 01-Feb-2011.
If you always want Latest Effective Start Date (01-Feb-2011 in the example ) then you can use the below query -
Select effective_start_date from per_all_assignments_f
where effective_end_date ='31-DEC-412'
primary_flag='Y'
HTH
Gaurav
Similar Messages
-
How to control "To" Effective Date of Element Entry Screen in Assignment.
hi,
How do I Control the "To" Effective Date which is defaulted to 13th Apr 2007 in the Element Entry Screen of Assignment .When the screen is date tracked to
01-APR-2007 and running payroll for the Month of April 2007.
Navigation
People--->Enter---->Assignment---->Element Entry
RamIn addition to what Tim Mentioned it can also be depends on what date you attached this element to the employee
you might have attached this element on 13th Apr 2007 to this particular assignment
Regards
Ramesh Kumar S -
BEE errors out Assignment number 4816 is invalid at the effective date
I ran a batch of 3000 employees and for all the employees i am getting the error as assignment number ....is invalid at the effective date for all the assignment.
Then i took one assignment number = 4816 and tried still its the same . when running the BEE for the assignment number = 4816.
I am getting the error "Assignment number 4816 is invalid at the effective date"
when i checked this assignment it is active i wonder why this assignment and the others are miss behaving as far as BEE is concerned.
can some one tell me what i should do so that my Batch Element Entry(BEE) gets validated....?
Please note the element is non-recurring.
The batch defined is as follows---
Under Batch control section the following is done:-
Action If Entry Exists- "Create New Entry" (please note i have also tried with "Reject Entry" it doesn't work with that also)
Reject Rollback If Results Exist
The batch status = Error
All your contribution are highly appreciated!Thanks so much for the resolution. Is there any way , we can change the effective date to actual effective date/ end dat of the month rather than defaulting to begging of the month?
-
Issue in update of PA & PD data using same form scenario
Hi All,
We're in the process of implementing HCM PF. As per the requirement the form should be able to change PA, PSA, EG, ESG and Job of a position on PD & PA(of corresponding pernr) side. The process is started as a PA form (selection by pernr).
I'm able to change the PA, PSA, EG, ESG of the position attribute but whenever I change the Job it gets updated on the PD side but not the PA side (it still holds the previous job prior to effective date).
In my form scenario I have one PA & one PD service.
Any help will be appreciated and rewarded in resolving this issue.
Thanks,
Mani.
Edited by: mramamoorthy on Mar 14, 2011 7:01 PMHi,
Please check ur ISR Scenario,:
Goto-> Process Form Scenario for Personnel Admin. Infotypes (Service SAP_PA):
Define Operations:
0001->M change
Define Assignment of Fields:
Field Name Number Infotype Subtype Screen Structure Field Name Data Index
Job 1 0001 1 HCMT_BSP_PA_XX_R0001 Job 1
and do Synchronizing Form Fields.
Then Do->Check Consistency of Form Scenarios in IMG activity.
If you get green light then all configuration are correctly update.
Otherwise problem in configuration side.
Thanks -
Hi,
we have a process using the HR_SIT_SS workflow. We use this workflow to make new entries. Some of the fields in the new entries are pre-populated, using queries based on the session date.
Is there a way to change the session date in the HR_SIT_SS workflow? I've searched the entire internet, but found no way to do this...
CornéFirstly, we need to baseline terms. Datetracked entities in HRMS are ones that record history: Person, Assignment etc. It is not correct to say 'all of HR is DateTracked', in fact, the majority of entities are not Datetracked.
SITs are not Date Tracked, they are Dated, i.e., they have a start and end date on them. There is no history maintained by the system; you have to manually 'end date' an SIT record and create a new one; in other words, you maintain your own history.
OK, now that's out of the way, I confess, I don't grasp your problem entirely. For a start I don't understand why Administrators are using the Self Service screens to make SIT entries - just use the Professional Forms, maybe using Fastpath if you don't want them to see Person details. They can then change the effective date.
If you persist in using the SSHR screens, then there is no facility within Self Service to change the effective date for SITs - as you have found, they will use the system date. -
Please let me know the table and field for the Effective date the employee moved into the job
LisaHi Lisa,
the fileds BEGDA and ENDDA represent the Effective date and end date of the EE assigned to the Job
Thanks
Cheera -
How do you print data from a form?
From the interactive report, there's a built in function to print to variious formats (e.g., PDF, CSV, etc).
As long as the columns do not exceed the width of a page, it's okay.
But what I want to do is when a user clicks on 'edit' from the interactive report and displays the data entry screen, I want to be able to have a 'Print' button to print the data from a form.
Don't want to manually modify the URL to change a parameter to print.
Really appreciate any help I can get on this matter!!!I want to be able to have a 'Print' button to print the data from a form.Create a Print button in the form page with an <tt>onclick</tt> attribute that calls the method<tt>print()</tt> method:
onclick="window.print();"
Don't want to manually modify the URL to change a parameter to print. Sounds like you want to be able to control which page elements are printed and how they are formatted?
This is quite straightforward using a print media style sheet.
You'll need to identify CSS selectors (usually IDs and classes) from the page HTML for the components and regions that are not to be printed: a web inspector such as that found in Safari, or the Firefox+Firebug combo is useful for this. It's also a good idea to give all of your regions a unique static region ID to assist with this identification. Using this information, you can construct the style sheet to exclude all of the unwanted content using <tt>display: none</tt> rules.
In a simplified example, say you identify that there are 4 regions on the page, and you only want to print region 3. You would add the following style sheet to the page HTML Header:
<style type="text/css" media="print">
#region-1, #region-2, #region-4 {
display: none;
</style>+{message:id=2475831}+ is a solution to a similar problem, and see this article for more enhancements that can be included in your print style sheet.
Really appreciate any help I can get on this matter!!!You'll get effective help more quickly if you include the following information upfront when posting a question. This enables others to understand, replicate and determine the most appropriate fix without wasting time asking all kinds of supplementary questions:
- APEX version
- DB version and edition
- Web server architecture (EPG, OHS or APEX listener)
- Browser(s)/version(s) used
- Theme used
- Templates used
- Region/Report/Process type
And please update your forum profile with a better handle than "846623". -
How can I pass data from a form guide to another form in a business process
How do we pass data from a form guide to another form(not necessarily a guide) without having to open the form. For example we have a small form guide to capture the contract id so we can then get data from contracts table to present to the user in a form. We want the user to open the guide (either Flex guide or form guide) to enter the contract id. Upon submission we want the process to get the contract data and put it into the form that will be opened at the next step by the user without having a user interact with the form to get the data into it. In other words we need the process to get the data and populate a different form than the form guide the contract id was entered in and this new form needs to be opened in the next step by the user.
Firstly, I'm assuming that you have a Forms ES Server if you are rendering a Guide. This could be either version ES1, ES2/2.5 or ES3/ADEP
If you submit the form back to the server, you can populate a second (PDF/XDP) form with the data bound to the same schema/Data Model using Forms ES.
You referred to the next user in the chain - If you are using Process Management, this is very easy, as you define what form is used to render the data in the "Presentation & Data" section of the Assign Task activity -
How to print the data on the form (smartform)...
Hi,
i got a requirement that i have to create a selection screen and from that i process the data according to the inputs in the selection screen, and after i collect the entire data in an internal table, now i want that data to be displayed in the form ,
what is the process for this, can anybody explain me in detail.
Regards,
RamHi!
To create new smartform
How to create a New smartfrom, it is having step by step procedure
http://sap.niraj.tripod.com/id67.html
Here is the procedure
1. Create a new smartforms
Transaction code SMARTFORMS
Create new smartforms call ZSMART
2. Define looping process for internal table
Pages and windows
First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
Here, you can specify your title and page numbering
&SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
Main windows -> TABLE -> DATA
In the Loop section, tick Internal table and fill in
ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
3. Define table in smartforms
Global settings :
Form interface
Variable name Type assignment Reference type
ITAB1 TYPE Table Structure
Global definitions
Variable name Type assignment Reference type
ITAB2 TYPE Table Structure
4. To display the data in the form
Make used of the Table Painter and declare the Line Type in Tabstrips Table
e.g. HD_GEN for printing header details,
IT_GEN for printing data details.
You have to specify the Line Type in your Text elements in the Tabstrips Output options.
Tick the New Line and specify the Line Type for outputting the data.
Declare your output fields in Text elements
Tabstrips - Output Options
For different fonts use this Style : IDWTCERTSTYLE
For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
5. Calling SMARTFORMS from your ABAP program
REPORT ZSMARTFORM.
Calling SMARTFORMS from your ABAP program.
Collecting all the table data in your program, and pass once to SMARTFORMS
SMARTFORMS
Declare your table type in :-
Global Settings -> Form Interface
Global Definintions -> Global Data
Main Window -> Table -> DATA
Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
http://sapr3.tripod.com
TABLES: MKPF.
DATA: FM_NAME TYPE RS38L_FNAM.
DATA: BEGIN OF INT_MKPF OCCURS 0.
INCLUDE STRUCTURE MKPF.
DATA: END OF INT_MKPF.
SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
MOVE-CORRESPONDING MKPF TO INT_MKPF.
APPEND INT_MKPF.
ENDSELECT.
At the end of your program.
Passing data to SMARTFORMS
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZSMARTFORM'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
if sy-subrc <> 0.
WRITE: / 'ERROR 1'.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
call function FM_NAME
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
GS_MKPF = INT_MKPF
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
for Smartforms material
http://www.sap-basis-abap.com/sapsf001.htm
http://www.sap-press.com/downloads/h955_preview.pdf
http://www.ossincorp.com/Black_Box/Black_Box_2.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://www.sap-img.com/smartforms/smartform-tutorial.htm
http://www.sapgenie.com/abap/smartforms.htm
How to trace smartform
http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
http://www.sap-img.com/smartforms/smart-006.htm
http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
check most imp link
http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
step by step good ex link is....
http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
Or an another one:
just check it step by step with lots of screen shots.
http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
Reward all helpfull answers
Regards
Tamá -
Problem printing date on the form
Hello friends ,
I am doing form for the HR . Is there any special formatting needed to print the date on the form . I am doing this .
&t_payment-paydate& in the main window of the form .
t_payment is the table and paydate the date of payment . But instead of printing 1/22/2006 . It is printing 3//20/07/2 some junk value . Is it the format related problem ?
Any suggestions . You help would be greatly appreciated .
Regards & Thanks ,
HariHI,
You can do like this.
You make the following changes in the program
1. Define a character type field
data: v_payment_date(10) type c.
2. Assign the date value to the character field
write t_payment-paydate to v_payment_date.
You make the following changes in your sapscript text element.
instead of using field t_payment-paydate use v_payment_date.
Thanks
Ramakrishna -
Problem with JFMERGE using the last set of data on all form sets
b Here is the scenario...
I have a file of data in character delimited format. Each record needs to produce the same set of forms. I used the Visual Transformation Editor to define the field nominated data file, including the ^form statements. The transformation agent processes the file of multiple records just fine. I get a file from JFTRANS that contains the set of data & form statements repeated for each record in the file.
Great so far.
b Here is the problem...
Unfortunately, the print agent is repeating the same set of data on every copy of the set of forms that is printed. It uses the data from the last set of forms to be printed.
b Additional information...
For ease of building the field nominated file by our custom client program we have standardized on using GLOBAL fields. Therefore, our DAT files contain all the ^global declarations with all the necessary ^form statements at the end. I used the transformation editor to build the same type of file. Therefore the file going to the print agent looks like:
^global name1
data1
^global name2
data2
^form form1
^form form2
^global name1
newdata1
^global name2
newdata2
^form form1
^form form2
The printed result puts "newdata1" & "newdata2" on both sets of form2. Strangely, the correct data values are showing up on both sets of form1.
The only difference between the two forms is that form1 is not defined with the fields as global where form2 does define them as global. I removed the global flag from form2 but that didn't change anything.
I think I know what is occurring. JFMERGE is putting the data elements into the global dictionary and when the same name is in the file the latest data value ends up in the dictionary (thus all the forms print using the last data put into the dictionary). I certainly didn't expect this. I thought it would load the dictionary and print the first set of forms, then reload the dictionary and print the next set of forms. At least that is the way I see it occuring based on the order of things in the DAT file. Based on what is occuring it appears that JFMERGE reads the whole DAT file, building the dictionaries and then processes all the ^form statements.
b My request for help...
Does anyone know what I can do (such as insert some command) to get the correct data on the forms?
It looks like using a fixed record format might do the trick but that isn't an option at this time. As things are right now it looks like I'm going to have to take the data file apart, and make lots of files with one line of data per file.
I have a time deadline to get this printed so if there isn't a way to make JFMERGE operate as I expected it looks like I'll be doing this by hand. Fortunately, there are only 250-300 data lines. Future jobs could have thousands of data lines so if there isn't a way to do it with a multi-line data file I'll have someone create a program for splitting the original file up (and adding the ^job line).We don't use subforms so some of what you suggest isn't effective for us. Our forms are a duplication of the paper forms and are not dynamic. We design each form separately and our custom filler software (that builds the DAT file) uses a database with the required forms for each print job defined within it.<br /><br />Since we don't have subforms, our simple method of printing is to declare as GLOBAL all the unique fields used on all the forms to be printed followed by the ^form commands. It was a simple & straightforward method for us to do better than 500 print jobs over that past couple of years. In addition, our custom filler software can easily build the DAT files.<br /><br />Because I need to manually declare all the ^form statements my experience with using ^field is that the form must be declared followed by the appropriate field commands (repeat for all the forms).<br /><br />i <many hours later I continue typing this post><br /><br />Taking the original Transformation Definition File and customizing it for how things need to be when using ^field commands was a time consuming experience (and a learning one). It did the job as I needed but it is an experience I don't want to repeat. There has got to be a better way of building the TDF properly. I'm definately leaning towards a program to split the file into multiple files.<br /><br />Here is what I went through...<br /><br />I did all the editting using Notepad. I changed all ^global to ^field. Then I had to remove the #comment lines. Next was to find any references to fields that had to be global to the top and chang ^field to ^global. Then it was moving the fields around so they were underneath the appropriate ^form statement. Then, since one of the forms was multi-page I had to add the ^page command and sort the fields so they were under the correct page. That was followed by duplicating fields that are used on multiple forms or multiple pages. Then I discovered that the print agent won't do ^page unless "inline processing" is turned off (I did not want to specify the page name as it could change over time) - so I added "^inline off" in front of every ^page. Finally it was removing unecessary field references so the log file would be clean.<br /><br />For those that are interested, the following is an example of my final file. <br /><br />^global nameA<br />data<br />^global nameB<br />data<br />^form nameX<br />^field name1<br />data<br />^field name2<br />data<br />^form nameY<br />^field name1<br />data<br />^field name3<br />data<br />^inline off<br />^page<br />^field name4<br />data<br />^field name1<br />^inline off<br />^page<br />^field name5<br />data<br />^field name6<br />data
-
Date Format in Forms- Need inputs.
Forms [32 Bit] Version 9.0.4.1.0 (Production)
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
I have date type field (Db column of date type Date ) in a data block and its value is set based on a char field value in another block, in a trigger event.
In a when-button-pressed trigger, I convert a char item value (from another block - :mod_plan.date_plan_to_zero, Eg say 05/27/2013) to to_date, something like below.
trigger code
begin
:lims_flood_gates.plan_date := to_date (:mod_plan.plan_date_to_zero,'mm/dd/yyyy');
end;
When I run the form in debug mode, I see that plan_date (which is a date type field, with format mask MM/DD/RRRR) has a value '2013/05/27 00:00:00'...?! as soon as the above code is run.
using TRUNC did not work. No matter what, the value when converted to date and assigned to the variable, takes the said format. I need to lose the time portion and need the date to be mm/dd/yyyy format.
How can I do that?
Thanks
SRTry these in when-new-form-instance trigger:
set_application_property(builtin_date_format,'mm/dd/yyyy');
set_application_property(plsql_date_format,'mm/dd/yyyy');
FORMS_DDL('ALTER SESSION SET NLS_DATE_FORMAT = "mm/dd/yyyy"');
I don't know about that format mm/dd/rrrr I'd use y's instead.
As others have said, a date in the database is a date-time so you can never really get rid of the time underneath the hood. -
Assign Form and Output Program for Purchase Order
Hi,
in SPRO, Assign Form and Output Program for Purchase Order I see the following data:
- IMG Activity Assign Form and Output Program for Purchase Order
- View Maintenance: Data
- VV_TNAPR_EF
- TNAPR
- 007ZNEU2EF
What is 007ZNEU2EF ?
Yours faithfullyI dont have enough knowledge on this one. However i will try to clarify this
007 i think its a version
ZNEU2 its a Process type
EF Purchase order -
Query all Employees Elements without effective date
Hi,
I need to make a query shows a list of employees with their elements without using the effective date,
because when we use the periods and effective dates the suspended assignments will not be shown in the report ....
Also it should not be related to Payroll processing ! simply Employee name or number and what element he has
Ex:
Emp# Element Value
10002 Basic Salary 6200
10002 Housing Allowance 2500
10002 Mobile Allowance 300
10452 Basic Salary 10000
10452 Hou........................ etc
Even if this employee is suspended or not included in the Payroll Process ...
Please Help....
RegardsHi ,
Thank you for your fast reply ...
I want to report all basic allowances or benefits which is given to each employee while hiring him, for all employees...
I want to report it as fixed values even if it is not processed this month ..
Basic Allowances like:
1. Basic Salary.
2. Housing.
3. Transportation.
4. Food.
5. Mobile.
For example:
John is a new employee joined our Company as a manager, then Our Payroll unit entered his Salary and related elements to be paid monthly !
Now we need to have a report shows all employees with their Allowances, without looking in the payroll run or the assignment status...
Our HR Dept. needs to review all salaries and allowances.
Regards -
How to update People Group KFF Segments in Assignment Form
Hi Gurus,
Please help me on how to update people group KFF individual segments on assignment form.
Please provide sample code/reference.
Thanks,
Raghava.Hi Vignesh,
I have tried the api using below code. But im getting the error like below:
ORA-20001: FLEX-VALUE DOES NOT EXIST: N, VALUE, Teachers, N, SEGMENT, PENSION_SCHEME_ESCH, N, VALUESET, GEN_PENS_SCHEME_LOOKUP
ORA-06512: at "APPS.HR_ASSIGNMENT_API", line 16616
ORA-06512: at line 22
Code:
DECLARE
l_people_group_id number;
l_special_ceiling_step_id number;
l_ovn number;
l_soft_coding_keyflex_id number;
l_group_name varchar2(9000);
l_effective_start_date date;
l_effective_end_date date;
l_org_now_no_manager_warning boolean;
l_other_manager_warning boolean;
l_spp_delete_warning boolean;
l_entries_changed_warning varchar2(9000);
l_tax_district_changed_warning boolean;
l_concatenated_segments varchar2(9000);
l_gsp_post_process_warning varchar2(9000);
BEGIN
l_ovn:=11;
--l_people_group_id:=966;
l_soft_coding_keyflex_id:=null;
l_special_ceiling_step_id:=null;
hr_assignment_api.update_emp_asg_criteria
(p_effective_date =>TO_DATE('08-SEP-2012')
,p_datetrack_update_mode =>'CORRECTION'
,p_validate =>FALSE
,p_assignment_id =>37325
--,p_segment1 =>'Local Government Conditions (Green book)'
--,p_segment2 =>'R'
,p_segment3 =>'None'
,p_object_version_number =>l_ovn
,p_special_ceiling_step_id =>l_special_ceiling_step_id
,p_people_group_id =>l_people_group_id
,p_soft_coding_keyflex_id =>l_soft_coding_keyflex_id
,p_group_name =>l_group_name
,p_effective_start_date =>l_effective_start_date
,p_effective_end_date =>l_effective_end_date
,p_org_now_no_manager_warning =>l_org_now_no_manager_warning
,p_other_manager_warning =>l_other_manager_warning
,p_spp_delete_warning =>l_spp_delete_warning
,p_entries_changed_warning =>l_entries_changed_warning
,p_tax_district_changed_warning =>l_tax_district_changed_warning
,p_concatenated_segments =>l_concatenated_segments
,p_gsp_post_process_warning =>l_gsp_post_process_warning
END;
Commit;
Please help me on how to update the individual segment.
Thanks
Raghava
Maybe you are looking for
-
How do I move cc 64 (sustain) data in sync when I move midi notes?
In the matrix editor, when I 'Select All Following' in order to move everything that follows back a few ticks to get rid of a rythmic hesitation, the sustain pedal data doesn't move with the notes. Obviously, this messes up the piano pedaling. Is the
-
Cant open my Raw from my NIKON D7000 in Photoshop and cant down load updates get error messages all the time have tried at least ten times and tried to get help from support but not succeeded. Very bad I think but what to do???? Ulf
-
I tried to set up my icloud account and it says to verify my email but the email has never came. Now what?
-
Alternative units of measure are inconsistent; correct the values in SMW01
Hi, when material replication process is happening we came across an error in SMW01.It shows Alternative units of measure are inconsistent; correct the values Message no. COM_PRODUCT_UNIT014 Consider the below example we have maintained a material fr
-
Hello, When I use a WAD report and do an operation that takes the system a lot of time to calculate the system is stuck and even if I regret that I did this operation and wants to start the report from the beginning the system will be stuck. Just whe