FIELD ISSUE IN REPORT

one of the Field in my Report is F_Payment_date1 the source column its referring is payment_date which is in the table ..
The Query for this Group is
select
empl.action_context_id
, empl.full_name
, ppf.last_name
, ppf.first_name
, empl.national_identifier
,hou.INTERNAL_ADDRESS_LINE
, empl.employee_number
, empl.organization_name
, substr(empl.employee_address1,1,40) emp_add_ln1
, substr(empl.employee_address2,1,40) emp_add_ln2
, substr(empl.employee_address3,1,40) emp_add_ln3
, rtrim(substr(empl.employee_city,1,26))||' '
||empl.employee_state||' '
||empl.employee_zip_code emp_add_ln4
, empl.beginning_date period_start_date
, empl.ending_date period_end_date
, empl.payment_date
, LTRIM(RTRIM(TO_CHAR(empl.pay_rate,'99999999.00'))) base_salary
, empl.pay_basis salary_basis
, empl.employee_state resident_state
, empl.location_name
, paf.work_At_home
, empl.assignment_id
, :org_payment_method_id org_payment_id
, substr(empl.employer_address1,1,40) emplr_add_ln1
, substr(empl.employer_address2,1,40) emplr_add_ln2
, rtrim(substr(empl.employer_city,1,26))||' '
||empl.employer_state||' '
||empl.employer_zip_code emplr_add_ln3
from PAY_EMPLOYEE_ACTION_INFO_V empl
,pay_assignment_actions paa
,per_assignments_f paf
,per_people_f ppf
,hr_all_organization_units hou
where paa.assignment_action_id = empl.action_context_id
and empl.assignment_id = paa.assignment_id
and paf.assignment_id = paa.assignment_id
and empl.effective_date between hou.DATE_FROM and nvl(hou.date_to,empl.effective_date)
and paf.ORGANIZATION_ID = hou.ORGANIZATION_ID
and empl.employee_number = ppf.employee_number
and empl.effective_date between paf.effective_start_date
and paf.effective_end_date
and empl.effective_date between ppf.effective_start_date
and ppf.effective_end_date
even if the payment date expires in the report it is still showing payment_date
i want to include the logic like this
if overrideing then
v_date:=: PPA_OVERRIDING_DD_DATE ( Ihope this does not work as they are in dfferent group i need to write sql )
else
v_date:=:PAYMENT_DATE;
return(v_date);
PPA_OVERRIDING is in the table pay_assignment_actions
The Query for the other group where the PPA_OVERRIDING_DD_DATE
is
SELECT decode(ppa.action_type,'H',to_number(paa.serial_number)
,paa.action_sequence) orderby
, paa.assignment_action_id asg_actid, to_number(paa.serial_number) xfr_action
, ppa.action_type
, ppa.org_payment_method_id
, paa.assignment_id paa_assignment_id
, ppa.effective_date ppa_effective_date
, ppa.business_group_id business_group_id
, ppa.payroll_action_id ppa_payroll_action_id
, ppa.payroll_id ppa_payroll_id
, ppa.consolidation_set_id ppa_consolidation_set_id
, ppa.date_earned ppa_date_earned
, ppa.overriding_dd_date ppa_overriding_dd_date
FROM pay_assignment_actions paa
,pay_payroll_actions ppa
WHERE paa.payroll_action_id = :pactid
AND paa.chunk_number = :chnkno
AND ppa.payroll_action_id = paa.payroll_action_id
ORDER BY 1
can anyone gimme sugestion how to approach this ..i want to display
PPA_OVERRIDING_DD_DATE column values where ever
payment date is expired .
Thanks in Advance,
Dev Kishore.T

If i understand your question well, you could try this:
In the querygroup (datamodel) of your first query you create a formula column : CF_payment_or_overriding_date
In the PL/SQL Formula of your formula column you add code like this:
function CF_payment_or_overriding_dateF return DATE
is
ld_return DATE;
begin
IF 'overriding'
THEN
use your criteria to retrieve the overriding_dd_date from paa via select into or a cursor construction
ld_return := ppa_overriding_dd_date;
ELSE
     -- empl.payment_date is fine do not replace
     ld_return := :payment_date;
END IF;
RETURN (ld_return);
end;
And in your layout section,
for your field F_Payment_date1 set your source column to
your formula column CF_payment_or_overriding_date
Hope this helps,
Greetings,
Emiel

Similar Messages

  • Alternative Account number - using as a custom field/Issues in reports pull

    Hi All,
    Requirement:
    Create a new field in the GL master that will link through to a new 8 to 10 character new Chart of Accounts (COA).
    We are presently using the "Group Account number" field from the GL master for reporting purposes through a Group COA. So this won't be available for our new purpose. Instead of creating a custom field and pulling the data, I'm thinking to use Country Chart of Accounts to fill this gap by using "Alternative Account Number" in GL Control data tab.
    I created a new Country COA and assigned it to Operational COA. Created new GL account (FS00) and also created a new Country Chart of Accounts (FSP0) at Chart of Accounts level and assigned this to the created GL (FS00). In this process I got couple of issues
    1) System didn't allow me to assign Country COA GL if already has the balance, and tried to change this error message in OBA5 without success. How can I add newly crated Alternative a/cs to the existing (balanced) GL A/cs?
    2) This time I created brand new GL a/c and added the alternative a/c and created new Financial Statement Version (FSV) assigned the newly crated a/cs but I couldn't run the reports on this new COA, getting following error message "Company codes and charts of accounts entered are incompatible" when executing F.01/F.08.
    3) May be silly to ask - why we are not maintaining the Alternative a/c at Company Code level (FSS0)? Why we are only maintaining at Chart of Accounts level (FSP0)?
    Would be glad if any one touch this area deep enough to understand easily

    Hi
    The system will update the amount at company code level GL only. You can post the entries at company code gl only, no option to post the transaction figures at chart of accounts level. So the group COA or country level COA will pick up the transactional data from the GL at country level. Remaining level GLs are link with the country level COA.

  • I can not insert a field in ANY report . . .

    Post Author: Chass
    CA Forum: General
    I've searched around a bit about this. I can't find anything about anyone who had the same problem.
    I was reporting along and suddenly CR v8.5 wouldn't let me insert a field anymore. I can't insert a field on a new or old report from the field exporer. I drag the field to the area of the report that I want to drop it and it stays a black circle with a line through it. It won't allow me to insert any field in any report.
    I tested this on my coworkers computer and his is working fine. Same version, same report, same field.
    What would cause my install of CR to stop allowing insertion of fields?
    Thanks in advance . . .
    Chass
    ct

    Post Author: Chass
    CA Forum: General
    For anyone else that runs into this issue. I searched heavily and came up with nothing.
    I decided to uninstall and then reinstall the application and that fixed the problem.
    I still don't know the original cause . . .
    Chass
    ct

  • Font issue between Reports Designer and Report Output

    Hi.
    I've succesfully migrated several reports from 6i to 10g (10.1.2.0.2) with and without parameter form. However, I have the following font issue:
    - When report is run from Reports Designer, font is kept.
    - When report is run from a forms module (through rwserver on the same machine, that is not really from an application server, but using Oracle BC4J or Developer Suite enviroment) the report output is different. In this case a bigger font is displayed and occasional truncation happens for some fields.
    The question is: How can i avoid this difference in font behaviour?. Is it font.ali related?. How come this happen on the same machine(Windows XP)? These reports are to be deployed on Linux, where reasonably, and font machine is expected to happen.
    Font used: Arial (Occidental) 9

    this might be an issue with the printer that is associated also, and the permissions to the printer that you might have..
    login to the application server machine and restart the reports server as an admin..try running the reports via the URL..i have a feeling that this issue might be somethiing to do with the permission(s) to the printer from your AS machine

  • How to add a computed field to a reports

    I have a report where I would like to add a column that is the sequence of the row. It is not the rownum in the db, but I want it to be a row number for what is returned.
    So, if I return 10 records, I would like a column to contain 1 through 10 to depict the row number.
    I do not want to have this number in the table or view.
    Is it possible to add a computed field to a report like this?
    If so, how?
    Thanks - Jim

    The SQL function rownum should suffice if the report is not too complicated, as this returns the number of the row rather than the database row ie.
    select empno,ename,rownum
    from emp
    add some clauses each time and you should see that each row is always numbered 1 to n.
    However, if you introduce the HTMLDB column sort functionality into the report then it would appear that it is the result set that is sorted rather than a new query being issued.
    Hope this is of help.

  • Enhance GRC issue status report columns

    Hello GRC Gurus
    I am new to GRC application and I have a requirement to enhance u201CIssue Statusu201D report  fields.
    Process:
    Goto -> Report Center - > "Issue status" Report -> run based on the condition. It will display ll the issue report in a ALV table formate with the columns
    Organization     Subprocess      Control       Issue     Ectu2026(As configured in SPRO)
    But my requirement is to add a Custom additional Field to the ALV table report:
    Is there any enhancement to add the custom field in to the report  and implement  logic to populate data to the same?
    Kindly let me know your comments.
    Thanks you ,
    Regards,
    Magesh
    Edited by: mageshB on Dec 28, 2010 6:10 AM

    Yes, of course.
    Kindly look into the view cluster:
    VC_GRFNREPCOLUMNSC - Reporting: Customizing of report columns
    VC_GRFNREPCUST           - Report: Customizing

  • How we can add custom field in standard report 2kee.

    Hi,
    How we can add custom field in standard report 2kee.
    I need one extra field to add in 2kee report for the same is there any customization req.
    Regards
    Ravi

    Ravi,
    Which extra field do you want to add or see?  Without specifying the field, it is difficult for one to tell you precisely whether you need a custom field or just change the layout to get the standard one.
    There are so many fields which exists but are not displayed when you execute 2KEE. You need to change the layout selections to your preference.
    Nonetheless, if the field you want to add does not already exist, then yes you can do customization.  Is there a customization requirement? No. But remember, you are making changes to SAP Standard program which will no longer be supported by SAP should in the case an issue arise in the future related to this very program.
    Have your abaper add the said field in the program or why not just create a query to pull the report?
    Elias
    Edited by: Elias Akorli on Sep 18, 2009 9:02 PM

  • Issue with Report Template in EHS

    Hi Gurus
    I have an issue wiht report template in EHS. When i go to CG42 i tried to search for a report template no entries found. But if you F4 in template field there are templates getting displayed. If i select template and enter again, it says no object available. Looks like weird. Template is very well available in system. If you have this issue please guide me to correct the situation. Also can you please let us know what is the table to check report templates.
    Regards
    Murali

    Hi Murali,
    with TC code - CG34, u may further try the following path -
    File with path -  Character standard
    <path on application server>:\BP_PH_EHS_MSDS.DAT     MS-NT
    <path on application server>:\BP_PH_EHS_COVERL.DAT     MS-NT
    Choose Check File (F5). The transfer file area is filled with data.
    Choose Start/Transfer time (F6). The symbol match up is displayed.
    On the Import Report Template: Symbol Matchup screen choose again Start/Transfer time. MS Word for Windows is started with the template.
    Choose Check Template. upcoming warning messages may be Ignored.
    hope the issue is solved.
    with regards,
    mahesh

  • Column Headings in the report and adding an extra field to the report

    Hi All.
    I had an issue like i need to put column headings for a report and I want to add an extra field to the report.
    The problem here is that the report was actually cloned from a Query.At the time of cloning,they forgot to add the column headings.
    Now we need to add the column headings for the same.How can we proceed for this and where we need to add our code?
    How to add an extra field  to the existing report?
    Any pointers will be very much helpful.
    Regards,
    SSR.

    Hi,
    you can get this done in 2 ways:
    1 - Change the query to add another column and the re-generate the report
    2 - If changing query is not possible, you can change the report it self for adding extra field. If you look at the code, it will be more like normal ABAP code. you can easily modify it (If you are ABAPer) for your additional requirements.
    thnx,
    ags.
    Edited by: Agasti Kale on Jun 12, 2008 6:26 PM

  • Pull more than one field into the same field in a report.

    I am attempting to put together a report in Visual Studio 2008. It seemed a simple report at first, but as I am creating the SQL, I am having a little trouble conceptualizing how to get it to work exactly as needed. Here is the issue...
    In this case, the report should show two rows for each department. One is the count of who within an audience (that will be set up as a parameter) completed a certain course (the course may also be a parameter). The next row should be
    a count, within that same department, of all users within the audience. Both counts should be within the same field on the report, but on different rows.
    My thought was to create two CTE's. One would contain the counts, by department, of everybody in the audience. The other would contain the counts, by department, of those within the audience who completed the given course.
    The problem is, though, I need to then have these two counts by department on two separate lines, and they should be within the same field. Basically, the idea is they are the numerator and denominator. There would also be a field before the count that would
    need to identify which one it is. For the sake of the example, call it "Measure_ID" and it would say "CourseCert" for the count of who completed the course and "CourseAvail" for the count of those who are part of the audience.
    Let me know if that makes sense, or if I can provide any further clarification to help you better understand what I am trying to achieve. Does anybody have thoughts on how to do this?

    Unfortunately, the counts need to be in separate rows. If they could be in the same row, it would have probably been a lot easier. I think I could have just done a couple "Case When" type formulas within the list of things under "Select."
    As it is, I need the two counts to show up under the same heading in separate rows. Unfortunately, the table structure of this database is very complicated. I think it would likely just further confuse things if I tried to share all of that detail here.
    That is why I was trying to be generic.
    Unless there is another easier way I am missing, I was thinking the easiest way to achieve what I needed was to use two CTE's. One would list all users by department who belong to a specific audience (the audiences are what we use to then assign them
    to certain courses, so the audience would be the people who are required to complete a certain course). The other would list all user by department who are in that audience and have completed a particular course. I think I am fine to complete that part.
    It is just getting them to then display as in my example that I am not sure how to do.
    The desired result, as you see in my example, has two lines per department, the first being a count of those who completed the course ("Certified"). The second line being a count of those who are required to complete it ("Available").
    Does that help? I was basically hoping somebody had an example they could use, just with fake table names so I could adapt it to my data. If it helps, though, let's pretend the two CTE's are like this:
    Table Name: Certified
    Table's purpose: This table would list all people who had completed the course.
    Fields:
    CourseName
    CourseCode
    AudienceName
    AudienceCode
    CompletionResult
    EmpCode
    DepartmentCode
    Table Name: Available
    Table's purpose: This table would list all people who are assigned to the audience.
    Fields:
    AudienceName
    AudienceCode
    EmpCode
    DepartmentCode
    The desired result would then count the EmpCodes, by department, from each table in that Measure_Amount field so it could display as I showed above. Does that make sense? I apologize if that does not help to clarify. I was trying to be as simple
    as possible so you could just use it as a generic example.

  • BAM Alerts - When a data field in a report meets specified conditions

    Hi ,
        Please find the below mentioned issue , which I am facing at the time of creating BAM alerts.
      I have created a data object, when i am creating the bam alert  [ create new alert --> create rule --> when i select an even " When a data field in a report meets specified conditions" and "When a data field in a data object meets specified conditions" then below in rule expression I am unable to edit the expression of  "this data fields has a specified condition of x".]
                          Appreciate your quick response.
    VAMSI.P

    Hi,
    I am having the same issue, and I am on IE9.  When I was on IE8 I had no problems.  Are you also on IE9
    Thanks
    Judy

  • Number field on crystal report displays Exponential form.

    Number Type field on crystal report printed in Exponential form when digits in this field are more than 17.

    Hi Jay,
    The same issue is addressed in the K-Base article c2005336. This is the limitation in Crystal, If you have more than 15 digits of numberic field it will convert into Exponential
    Use database-level syntax to convert the numeric database field to a string so that Crystal Reports will interpret it as a string type, and display all of the characters.
    For example, in Oracle, cast the number using to_char() and in Microsoft SQL Server use CAST() or STR() prior to adding the field to the report.
    As a workaround to display all the number, I would suggest you to convert it to text using a SQL Expression Field. A SQL Expression field will be evaluated on the database server.
    I would suggest you to follow the below mentioned steps to create SQL Expression field and convert a database field to a string:
    1. Open the report.
    2. Right click the SQL Expression field which is present in the Field Explorer.
    3. Select New and copy and past the below-mentioned text.
    CAST ("Database Field" as varchar)
    Note u201CDatabase Fieldu201D Here you have to mention your database field.
    After you create the SQL Expression Field, insert it on the report and it will display the full number.
    Please note that no calculation can be made on that field since it is now a string.
    I hope this helps you.
    Regards,
    Prashant

  • Pulling more than one field into the same field within a report.

    I posted this in the T-SQL forum, but it was suggested it may be better to post it here. This is somewhat complicated, so I hope I am explaining this well. I will post here what I posted there. I will also include two replies I gave in offering further information
    in case that may help to further clarify my question. See below:
    I am attempting to put together a report in Visual Studio 2008. It seemed a simple report at first, but as I am creating the SQL, I am having a little trouble conceptualizing how to get it to work exactly as needed. Here is the issue...
    In this case, the report should show two rows for each department. One is the count of who within an audience (that will be set up as a parameter) completed a certain course (the course may also be a parameter). The next row should be a count, within that
    same department, of all users within the audience. Both counts should be within the same field on the report, but on different rows.
    My thought was to create two CTE's. One would contain the counts, by department, of everybody in the audience. The other would contain the counts, by department, of those within the audience who completed the given course.
    The problem is, though, I need to then have these two counts by department on two separate lines, and they should be within the same field. Basically, the idea is they are the numerator and denominator. There would also be a field before the count that would
    need to identify which one it is. For the sake of the example, call it "Measure_ID" and it would say "CourseCert" for the count of who completed the course and "CourseAvail" for the count of those who are part of the audience.
    Let me know if that makes sense, or if I can provide any further clarification to help you better understand what I am trying to achieve. Does anybody have thoughts on how to do this?

    Unfortunately, the counts need to be in separate rows. If they could be in the same row, it would have probably been a lot easier. I think I could have just done a couple "Case When" type formulas within the list of things under "Select."
    As it is, I need the two counts to show up under the same heading in separate rows. Unfortunately, the table structure of this database is very complicated. I think it would likely just further confuse things if I tried to share all of that detail here.
    That is why I was trying to be generic.
    Unless there is another easier way I am missing, I was thinking the easiest way to achieve what I needed was to use two CTE's. One would list all users by department who belong to a specific audience (the audiences are what we use to then assign them to
    certain courses, so the audience would be the people who are required to complete a certain course). The other would list all user by department who are in that audience and have completed a particular course. I think I am fine to complete that part. It is
    just getting them to then display as in my example that I am not sure how to do.
    The desired result, as you see in my example, has two lines per department, the first being a count of those who completed the course ("Certified"). The second line being a count of those who are required to complete it ("Available").
    Does that help? I was basically hoping somebody had an example they could use, just with fake table names so I could adapt it to my data. If it helps, though, let's pretend the two CTE's are like this:
    Table Name: Certified
    Table's purpose: This table would list all people who had completed the course.
    Fields:
    CourseName
    CourseCode
    AudienceName
    AudienceCode
    CompletionResult
    EmpCode
    DepartmentCode
    Table Name: Available
    Table's purpose: This table would list all people who are assigned to the audience.
    Fields:
    AudienceName
    AudienceCode
    EmpCode
    DepartmentCode
    The desired result would then count the EmpCodes, by department, from each table in that Measure_Amount field so it could display as I showed above. Does that make sense? I apologize if that does not help to clarify. I was trying to be as simple as possible
    so you could just use it as a generic example.

  • Can not change the field property - 10gR2 reports crashing on Linux :(

    All I want to do, is to change one field's property from NUMBER to DATE in the property palette. It does not allow me to do it (not east like forms). I can not change the field property - 10gR2 reports keep crashing on Linux :(
    I don't know if this is a Linux specific iDS issue, or a generic one.
    What are the proper steps to change one field (in my query, the field name is ptime, it was defined as a number field originally, and now I need to change it to DATE and apply the proper format mask). The matching database field definition was modified from number to date.
    very frustrating...
    Any input is appreciated.
    Message was edited by:
    zaferaktan

    nop, did not change anything in the select statement at all. Just selected the related query under the data model (in the navigator), then selected the related query from within the property panel, connected to the db, then from the related navigor menu selected compile all, when the related query was highlighted (selected). Then I saved it, checked the groups, and bingo - the datatype was changed from number to date. Then I went to the related object under the page layout and applied the format mask (that was another funny story). And it worked. It is not as flexible as the forms for sure - pain in the a.. And I still don't know why Reports Builder keeps crashing on Linux - have no problems with Forms Developer on Linux at all. It is a certified RH platform with all the required libs, rpms, etc installed. I am certain it is not an installation issue. Maybe I should check Metalink and apply if an iDS 10gR2 patch exists for reports.

  • I am having a major issues to report machine -G6 series

    Hi. Team
                    This is a serious customer issue that I have to report .I am Owning an HP G6 series laptop. After 7 months of purchase I am facing lots of issue with this. The system is getting stucked sometimes and the controllers  of Keyboard and mouse are not working, While the time of boot up it is making big noise. All these issues I have reported to authorized service center of HP Maha electronics(Cochin).And the engineers over there observed the issue and replaced my hard disk two times. But the fact is like I am still facing the issue. Till today I have given two times to authorized HP service center (Maha electronics )Cochin. Days after the second time repair I had gone to US and I was unable to report the issue for the third time. I recently came to India and I have reported the issue in HP authorized service center (Maha Electronic)Bangalore. But by that time I came to know that my machines warrantee got over.And they neglected my request saying it cannot be done under warrantee.
                    Team, Please think that I have reported the problem during the time of warrantee itself, And your engineers couldn’t able to repair it properly to me.Frankly speaking, They have kept my laptop more than weeks under their custody for observation. But they were failed to find out the root cause of the issue. The folks reading this mail might be thinking that this issue can be, Now because of damage of some other stuff, but it’s absolutely no, Why because, You folks can check the description of the problem with the laptop during my first repair visit(Check the slip’s issue’s reported description) With this serial no([Personal Information Removed]).And still they are not specific about the root cause. This was happened mainly in (Maha Electronics)Cochin. They are not specific about the issue changing all parts by parts without any logical sense.
                    Folks, Act sensibly to your customer. It’s because of deep sadness I am saying these words. I was having 100% trust with your product(HP).But Now ,if anyone ask me about to which laptop to go with, I am having no words to tell them. How can I believe your engineers and give my words to my fellow beings.
    Thanks And Regards.
    Nijil [Personal Information Removed]

    Sorry to say we folks are not HP employees and have no access to your service records so there is not much help we can provide other than moral support

Maybe you are looking for

  • Oracle SQL query for getting specific special characters from a table

    Hi all, This is my table Table Name- Table1 S.no    Name 1          aaaaaaaa 2          a1234sgjghb 3          a@3$%jkhkjn 4          abcd-dfghjik 5          bbvxzckvbzxcv&^%# 6          ashgweqfg/gfjwgefj//// 7          sdsaf$([]:' 8          <-fdsj

  • My Apple TV is not recognizing my iTunes login

    I've made sure my password and log in are correct and that my internet connection is set up correctly, but I get an error message saying can not connect. please try again later. What can i do to fix this issue?

  • FCPX DVD of 4:3 Aspect Ratio Project Cropped on Widescreen TV

    I have imported some older standard video clips (640X480) into Final Cut Pro X. When I burn a DVD of a project based on those clips, I have a problem playing the DVD on a widescreen TV. Instead of displaying the correct 4:3 aspect ratio, the video fi

  • S206 wiht a simple HDMI to VGA Adpater is it possible?

    It it possible to switch in the HDMI analog Modus with the S206 to use this cable ? Thx 4 answer.  http://www.amazon.de/HDMI-Kabel-Videokabel-Adapterkabel-Anschlusskabel/dp/B002F44MJE/ref=sr_1_1?ie=U...

  • MAPI.Session for Office 2010

    Hi all, This code works fine in office 2003 but not in office 2010  (Raise NO_MAPI). Do you have an idea ? CREATE OBJECT SESSION 'MAPI.Session'.     IF SY-SUBRC NE 0.       RAISE NO_MAPI.   ENDIF. Now log into the session with the given profile   CAL