SAP HR : ABAP Query / Infotype enhancement / Field in Q0168 & not in P0168

Hi all,
There is a field in the structure Q0168-CSTDT, the field can be seen in the PA20/30 screen under the costs tab.
This field is not there in the P0168 structure.
The requirement is to add this to the ABAP Query.
What steps should be taken ? Do we need ABAP coding ?
Thanks
Rahul

Hi,
    Use Fm : HR_BEN_GET_KEY_DATE to get the Benefit Cost Calculation Date ..
    Look at include MP016840 for the same.
    Look for F1 on the field in pa20/pa30  , you'll get an idea on how this field is calculated.
Regards,
Srini.

Similar Messages

  • ABAP QUERY: Obligatory selection fields

    Hello,
    I have created an ABAP QUERY and i can't find a way to make any of the selection fields obligatory.
    Is this possible?
    Regards

    Hi, Everyone .
    We can do that .
    At selection-screen output (code section 13), set "1" to the field REQUIED by using MODIFY SCREEN code .
    (You can get Dynpro number by F1 key or T-cd SE51 )
    Masao .
    Edited by: MASAO NONAKA on Oct 20, 2008 9:12 AM

  • PNPCE in ABAP Query !!! Slection is not working completely

    Hi
      I have developed an ABAP query using LDB PNPCE. I am reading data from IT000,IT0001 etc . I test the query in QA and I noticed that the PNCPCE screen doesn’t care about the selection in query. Like I have given the date range in PNCPE default screen. But it’s not filtering that data at all. It pulling up the employee’s regardless of date, it behaves the same for field action type (P0000-MASSn). The surprising thing is that for company code its working fine. My question is that Why PNPCE standard screen-selection not filtering data in ABAP query.
    Did any one of you also experience that?
    <u>
    <b>FYI</b></u>
    I also find an OSS note # 730005 but we are already on 52 Patch !!
    OSS note :PNPCE: Incorrect data of infotype 0000 and 0001
    Symptom
    When you carry out a reprot which is based on logical database PNPCE, errors occur during the processing of infotypes 0000 and 0001.
    Other terms
    PNPCE, AS PERSON, P0000, P0001, data selection period, person selection period, CHECK_IT_0000_DATA_RESTRICTED, CHECK_IT_0001_DATA_RESTRICTED
    Reason and Prerequisites
    You start a report which is based on logical database PNPCE. In the report, infotype 0000 or 0001 is processed (that is, it was declared via the INFOTYPES statement). At event 'GET GROUP' or 'GET PERAS', the system either returns too few data records in the infotype tables or it returns data records twice.
    The error (missing data records) has only occured since the implementation of Note 687004 or the import of Support Package SAPKE47028.
    Solution
    Implement the attached corrections. or import the corresponding Support Package.
    Thanks
    Saquib Khan

    Hi Saquib,
       Recently i am facing the same issue can u pls do reply how you have overcome this issue..The data is not getting picked up at the right time it is lately picked up by the program . Earlier it was PNP and it has been changed to PNPCE also we had implemented OSS Note 687004 and the later's Notes  were also implemented but still now we are unable to track down why there is delay in picking up the records this has been happening for the past 8-10 Months(i m not sure far more before). I am finding 2 main issues,
    1. we are using GET peras in PNPCE and no other event after that may be this is not fetching all the data because my selection screen does contain PERSONID where i suppose there should be GET PERSON event to define it
    2. RP_READ_INFOTYPE macro while using for P0000 ,, the code in the macro is such that it fetches using P0001 also ...I suppose if there are any inconsistency between IT0 and IT1 then this might one to take care ...
    kindly let me know how you have approached to resolve this issue.

  • ABAP Query Execution via Custom Transaction Code - Not working

    We have created an ABAP Query in our DEV client and we then created a transaction code to run that query. We have done this because the customer does not want anyone to have access to SQ01, SQ02 in production. This works great in DEV but we can not get it to work in production.
    The ABAP Query was exported to our Prod client successfully.  I say exported because you do not do direct transports with queries.
    We then transported the new transaction code to run the query to production and it was successful.
    However, when we run the transaction is production we get a sys dump stating it can not find the query.
    We believe the problem is the TRDIR table is missing an entry for the program in production (it has an entry in DEV).
    I would have thought that the export on the query would have brought in this entry -but obviously not.
    Any suggestions on how we can get this entry into the production client?  Did we miss a step on the export that would do this?  We want to only bring over this entry - not the entire TRDIR table for obvious reasons (size (1.5 million entries, programs not ready for production, etc.).
    Please help!
    Thanks.
    Scott

    Hi,
    The above solution will work if you assign the transaction in one server, If you want this will not work in quality/production boxes when transported the query..the program name will not be the same in all the servers...
    For this. Do the below:
    In SE93, Create a Paramter Transaction
    -> Transaction = Start_report
    -> In default values, give the below details:
         D_SREPOVARI-REPORTTYPE = AQ
         D_SREPOVARI-EXTDREPORT = Name of the Query
         D_SREPOVARI-REPORT = User Group
    Save the transaction..Now if the program is generated with different names in the quality/proudction, this will still work..
    Regards
    Vijay Hebbal

  • ABAP query using logical database KDF is not populating custom fields

    Hi Experts ,
    I created two following queries
    1.       VENDORCATKDF – uses KDF logical database
    2.       VENDORCATLFA1 – uses table = LFA1
    I’m pulling the same information in both queries:
    ·         Vendor Number
    ·         Country
    ·         Vendor Name
    ·         Vendor Category  (custom fields added to LFA1)
    The results for the query that uses the logical database KDF is incorrect.  It doesn’t pull in the flag on the custom field LFA1-ZMRO.   Even though the logical database KDF is made up of the table LFA1 and has these fields. 
    Is there something that can be done – so that all of these “custom” category fields under LFA1 (such as LFA1-ZZMRO) – get pulled into queries – when we use the logical database KDF ?

    Hi,
    I have got the error removed by ensuring that fields from one table are a part of one line ( taking help of ruler) only. But the underlying problem remains, the output is not ALV but List output.
    I do not think having additional fields in the query is reason for this.
    Is it bcoz iI am adjusting the output length of columns to ensure no hierarchical error ?
    Can we not have a query using LDB which is shown as SAP List?
    Regards,
    Garima.

  • OM INFOTYPE ENHANCEMENT (  FIELD ADDITION)

    Hi Experts,
    My requirement is to add field in PO13 based on the subtype selected, Once the entry is saved , the HRP1002 is to be updated.
    Please Help me . Thanking you in advance.

    Hi,
      I think u have 2 make things in SPRO.
      U have 2 make entry in Restrict country grouping.
      or check it in T500L table whether the country entry
      is there?
      If u need any additional info get it from Basis
      consultant.
      Hope it will work.
           Manian.

  • Abap query about enhancement set

    How do we use an enhancement set?Where we can maintain a particular enhancement set to a client?
    *How do we know about an activated enhancement set?
    Moderator message: please search for available information/documentation before asking, this is not a training forum.
    locked by: Thomas Zloch on Oct 5, 2010 5:32 PM

    Hi,
    In PBO code this way :
    MODULE f4_scr OUTPUT.
      REFRESH g_list1.
      g_name1 = c_status.
      g_value_1-key = c_to_be_sub.
      g_value_1-text = c_to_be_sub.
      APPEND g_value_1 TO g_list1.
      g_value_1-key = c_sub.
      g_value_1-text = c_sub.
      APPEND g_value_1 TO g_list1.
      g_value_1-key = c_chg_needed.
      g_value_1-text = c_chg_needed.
      APPEND g_value_1 TO g_list1.
      g_value_1-key = c_app.
      g_value_1-text = c_app.
      APPEND g_value_1 TO g_list1.
      IF NOT g_list1 IS INITIAL.
        CALL FUNCTION 'VRM_SET_VALUES'
          EXPORTING
            id     = g_name1
            values = g_list1.
      ENDIF.
    ENDMODULE.                 " F4_SCR  OUTPUT
    And in PAI :
    MODULE user_command_9000 INPUT.
    * function module to get the list box values.
      g_name1 = c_status.
      CALL FUNCTION 'VRM_GET_VALUES'
        EXPORTING
          id           = g_name1
        IMPORTING
          values       = g_list1
        EXCEPTIONS
          id_not_found = 1
          OTHERS       = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      READ TABLE g_list1 INTO g_wa_list WITH KEY key = g_status.
      IF sy-subrc EQ 0.
        g_status = g_wa_list-text.
      ENDIF.
    ENDMODULE.                 " USER_COMMAND_9000  INPUT
    Hope this helps.
    thanx,
    dhanashri.
    Edited by: Dhanashri Pawar on Aug 21, 2008 11:36 AM

  • SAP Smart Forms: Drag & Drop of fields into editor not possible

    Hi Guys,
    In the SAP Form Builder I can't move elements out of the field list into my editor by using drag & drop. Or I'm doing something wrong, no idea.
    It seems like to drag them is possible, but it's not possible to drop them. I can edit them manually, but that's a little circular.
    I know that's not a big problem, but I think the solution is very complex (I hope so).
    Hope you can help,
    best regards,
    tannat

    Thank you for this hint.
    Any idea which SP Level I have to reach?
    Currently there's SAP Basis Release 700, Level 16 installed.
    Regards,
    Tannat

  • Webdynpro for abap: my cProjects enhancement post-exit is not working?

    I enhanced this WD 'DPR_PROJECTS_VIEW' View'VI_PROJECTS_VIEW'.
    created a post-exit in method 'MODIFY_BREADCRUMB', but it is not working.
    the post-exit is not run.
    May I know the reason? What should I do?

    Hi Duan,
    just to take care of the simple things first - Have you activated the enhancement? (I'm sure you have!) have you put in a breakpoint in the modify_breadcrumb method to see that it is being called at all?
    Is it possible that the method is returning/exiting before your enhancement gets processed?
    Cheers,
    Chris

  • ABAP Query (SQ01) Compare bewteen 2 selected fields

    Hello, In ABAP Query has selected fields (say) Fld1 Fld2 Fld3...  I need to output / show only those records where Fld1 not equal to Fld3. Any ideas ?? Both the fields are from the same table in a functional area.
    Thank You,
    Deb

    Hi,
    Welcome to SDN.
    This is not possible exactly with ABAP Query but can be easily done by ADHOC query. Using Set operation A-B.
    Check the links for ADHOC Query -
    <a href="http://www.sap.cmich.edu/fihr/hr/adhoc-query.doc">http://www.sap.cmich.edu/fihr/hr/adhoc-query.doc</a>
    Regards,
    Amit
    Reward all helpful replies.

  • Abap query issue.

    Hi ,
    I have an existing abap query whose infoset has logical database ADA.
    Now I have to add a new table ANLC to this existing query .
    My main task is to add 3 new fields in the output of the existing abap query  One is a direct field from the ANLC table namely  Acquisition value and 2 other fields will be derived from the following formula :
    anlc-Acc ordinary depreciation + anlc-Ord. depreciation posted = Total accumulated depreciation.
    NBV = Acquisition value u2013 Total Acc depreciation
    Could you please sugest:
    1.  how to add  the ANLC table in the query?
    2.  How to calculate the above two fields and populate the output in an abap query?
    Thanks,
    Suchi.

    No, above mentioned is not the solution for your problem.
    I believe you want to write ABAP Query (i.e. Tcode SQ01), NOT the SQL Query in a normal program.
    Now, if you want to put abap code behind a field in your SQ01 query then you need to create custom field in your infoset. To learn how to create custom fields I have written a blog: SAP Adhoc Query SQ01 SQ02 SQ03
    Good news is that you do not need to create custom fields for the requirement that you mentioned.
    i want to fetch data where one field begins with 1* or 2* or 3* or 4* .
    For this, simply put the field on the selection screen by selecting appropriate check box and just use 1, 2, 3* or 4* in on the selection screen.
    Where should i COUNT the data selected and display it .
    when you execute the report, click on the 'Layout' icon, and select 'Column for number of rows'. It will give you last row with count. You can then save the layout as default layout so that it appears automatically.
    If you want to do anything different than above then you need to create custom fields, see my blog for that.

  • I changed an existing abap query ME80FN but not find in production system.

    Hi,
    I have changed an ABAP QUERY  ME80FN for user group SAPQUERY/ME in Dev system via transaction SQ01 & SQ02.
    But when I am searching for same query in Production via transaction SQ01 it is not existing.
    Please give me some inputs.
    Thanks,
    Jwala

    Hi Jwala
    1. Check if that ABAP query is transported to production or not.
    or
    check the versions of the ABAP Query in dev w.r.t Production so that you will know the status of the program in production.
    regards
    PBI

  • How to retrieve ABAP query field metedata using SAP JCO?

    How can I retrieve all field details (such as field name, field description, output length field type) using SAP JCO for an ABAP Query?
    I have query name, user group, query area and infoset name with me.
    Thanks

    Hi,
    Please use the DDIF_FIELDINFO_GET (standard) Function Module to retireve the details which you have mentioned.
    Thanks,
    Arun

  • Additional field in selection screen of a abap query

    Hi,
    I am adding a new additional field in the selection screen through abap query(using transaction SQ02) which is of type VBRK-FKSTO.
    The value entered can be 'X' or empty space.But the value which is entered in the selection screen is not getting reflected in the code.Kindly advice me on what needs to be done to capture the selection screen value in the code.
    Regards,
    S.Subasree

    Hi
    You can add new field in VFX3 selection screen as follow. In the report code we can see various explicit enahcement points provided by SAP.One of them is ENHANCEMENT-POINT sdblbddl_01 SPOTS es_sdblbddl STATIC. Here you can declare your selection screen parameters.  Then in the processing i can see a call customer fucntion happening in VBSK_DISPALY which you can implement to add your logic.
    Thanks
    Nabheet

  • Creation of local field in ABAP Query

    Hi
    Please let me know how to create a local field in ABAP query. I am finding the option inactive in SQ01.
    Regards
    Priyadarshini

    hi priya,
         *__Adding u201CLocal Fieldu201D (user defined field) in SAP Query_ :
    There is also facility to add the user defined fields in SAP query output. Also we can provide calculation formula for calculating values for this user defined field.
    Calculation formula consists of standard fields from standard SAP tables. So the values fetched for particular standard SAP fields from standard SAP tables get calculated as per the calculation formula defined for the user defined field and displays the value accordingly.
    To do this first go to change mode for Query which automatically takes you to screen shown below and click on icon   , as below :
    Then further screen will appears. So select the Field group and again click on the same icon button   .
    Then switch on the Short names for the fields and give the short names to fields which we need to use in Calculation formula.
    Give the short names and then created u201CLocal Fieldu201D, as shown in below screen shot. Also Short names are given to fields, which can be used further for calculation.
    Defining Local Field u201CREM_QTYu201D along with its field type and Calculation formula.
      In this case we have 
      defined field type for new  
      field as similar to
      ORD_QTY and
      Calculation formula is  
      defined.
    Also its possible to have Conditional logic for Local field by putting Condition in u201CConditionu201D line.
    Now activate this newly added Local field for coming it in output screen. To do the same again go to u201CBasic Listu201D and activate the Local Field as shown below :
    i think this will help u
    regards,
    sindhu.

Maybe you are looking for

  • OIM 11.1.1.5.0 to OIM 11.1.2.0.0 Upgrade

    Hello all, I'm trying to test the in-place upgrade process, OIM 11.1.1.5.0 (with SOA 11.1.1.5.0 and Weblogic 10.3.5) to OIM 11gR2, with no custom configurations, plugins or connectors (Upgrading Oracle Identity Manager 11g Release 1 (11.1.1.5.0) Envi

  • Is  this like a hot spot/do i have to pay for service?

    is  this like a hot spot/do i have to pay for service?

  • Table for loans given to customer

    hi to all, i m new to abap, i have requirement for developing a report that list loans given to customer.im unable to find table for loans please help me out .its very very urgent.

  • Flash Pro CS5.5 and Flash 11/Air 3

    Hey guys. First time posting here. I recently read up on some news about Flash player 11 / Air 3 update coming soon and that Adobe is bringing full hardware-accelerated 3D graphics to both Flash and Air. Which sounds awesome . Buuut.. Here's the thin

  • PSE 8 will not install on new imac OSX Snow Leopard

    28. Feb 26, 2010 4:16 PM in response to: docmark86 Re: PSE8 will not install on Mac Snow Leopard 10.6.1 I have a new iMac 21.5 screen with OSX Snow Leopard.  I installed IWork and turbo tax with no problem.  Nothing else. PSE 8 installation fails aft