Query fields infotype 0061

Hi experts!
We need a user query for the infotype 0061. Exactly we need the data of two specific fields:  "CAC." and "Co.CA code".
The technical information of this two fields is:
Field CAC.
Table Name: Q0061
Table category: Struct.
Field Name: CCCEE
Data Element: PES_CCCTR
Field Co.CA code
Table Name: Q0061
Table category: Struct.
Field Name: NISSE
Data Element: NISS1
We have an infoset that includes the field "P0061-NISSE", but when we create a query with this infoset and when we select this field it doesn't show the value it seems tha the field is another. Also the other field "CCCEE" doesn't appear in the infoset.
How can I choose in a query this fields? How I should modify the infoset?
Kind regards,
Julian.
Edited by: hawk1942 on Mar 31, 2011 10:32 AM

Hola Julian,
Could you kindly check if field NISSE of table PA0061 is filled for any record? NISSE population depends on customer configuration.
The infotype screen structure (Q0061)  fill field CCCEE dynamically at run time (standard behavior is non-editable) according to ENISS feature configuration.
CCC value is granted according to personal structure at company level.
If you need to query this field in an infoset then talk to your abaper so to add some logic in field output:
*      form fill_CCCEE
form fill_CCCEE.
* Si el campo Q0061-CCCEE es no editable lo llenamos con una propuesta.
* Y si es editable pasamos el valor de P0061-nisse.
  data:
    l_e_nisse_data type pess0_nisse_data,
    l_nisse_propuesta like t5e01-nisse,
    l_return like sy-subrc,
    l_CCCEE_input.
* CCC propuesto
  perform HR_ES_PROPUESTA_NISSE
               using
                 p0061-endda
                 g_contract_classif-azubi
                 p0061-indre
                 p0061-exess
                 p0061-pesoc
               changing
                 l_nisse_propuesta
                 l_return.
  if l_return eq 0.
*   Llenamos el campo q0061-niss1 que será utilizado por la search help
*   del campo q0061-cccee
    CALL FUNCTION 'HR_ES_GET_NISSE_DATA'
      EXPORTING
        P_I_NISSE            = l_nisse_propuesta
        P_I_DATE             = p0061-endda
      IMPORTING
        P_E_NISSE_DATA       = l_e_nisse_data
      EXCEPTIONS
        OTHERS = 1.
    IF SY-SUBRC eq 0.
      q0061-niss1 = l_e_nisse_data-s_niss1-nisse.
    ENDIF.
  endif.
* Si p0061-nisse tiene algún valor grabado lo mostramos en lugar del
* propuesto
  if p0061-nisse is initial.
    q0061-cccee = l_nisse_propuesta.
  else.
    q0061-cccee = p0061-nisse.
  endif.
endform.
Cheers.

Similar Messages

  • Problem with Infotype 0061

    I'm trying to enhance dynpro 2910 of infotype 0061, via pm01
    I've created entrance in t582c, modulpool and Dynpro.
    But when i access that dynpro via pa30 i can't see my new fields
    Any ideas???

    cross check with this
    http://www.sapdevelopment.co.uk/hr/hr_infotypes2.htm
    Regards
    Prabhu

  • System and Query field disable in Data Manager for Netweaver BI

    Dear All.
    i have installed Xcelsius Engage Server 2008, when i try to add connection for SAP Netweaver BI from the Data Manager the dialog appears correctly but in Defination TAB only the Name field is enable both System and Query field is disable.
    without that how can i configure the connection please let me know how to fix this issue.
    Kind regards,

    Hi,
    You give the name of the connection and then click on "Browse".  It will then prompt you to connect to the desired system.  Log in and then select the appropriate query you want to build a dashboard on.
    Hope this helps.
    Regards,
    RashmiG

  • Add new field infotype "z" in logical database selection screen pnp

    Can add new field infotype "z" in logical database selection screen pnp
    I could explain how to realize
    Thanks

    In case to somebody it interests to him: TO EXTEND SCREEN OF SELECTION WITH OPTIONAL DELIMITERS The case that can be given in a screen of selection of a logical data base it does not appear a certain field that we need in the filter, the steps that will be due to follow are the following:
    u2022 To create a view of selection in agreement with the fields that we want to show To review the following Link http://help.sap.com/saphelp_46c/helpdata/es/6e/6ed638e70ef679e10000000a114084/content.htm u2022 To assign the view of selection to a class of report
    u2022 In the code of report to create select option in the selection screen that allows to introduce imput to leak and after start-of-selection to put the following code,
    "Allocation operative area to optional delimiter
      IF NOT p_aroper IS INITIAL.
        DATA: lt_texpr TYPE rsds_expr OCCURS 0 WITH HEADER LINE,
              wa_texpr TYPE rsds_expr,
              lt_rsds_expr_tab LIKE rsdsexpr OCCURS 10 WITH HEADER LINE,
              wa_rsds_expr_tab LIKE rsdsexpr.
        REFRESH lt_rsds_expr_tab.
        wa_rsds_expr_tab-arity = '0'.
        wa_rsds_expr_tab-fieldname = 'OBJID'.
        wa_rsds_expr_tab-option = 'EQ'.
        wa_rsds_expr_tab-low = p_aroper.
        wa_rsds_expr_tab-high = '00000000'.
        MOVE-CORRESPONDING wa_rsds_expr_tab TO lt_rsds_expr_tab.
        APPEND lt_rsds_expr_tab.
        REFRESH lt_texpr.
        wa_texpr-tablename = 'PA9004'.
        wa_texpr-expr_tab[] = lt_rsds_expr_tab[].
        MOVE-CORRESPONDING wa_texpr TO lt_texpr.
        APPEND lt_texpr.
      pnpdynse[] = lt_texpr[].
      ENDIF.
    English is the forum language.
    Edited by: Rob Burbank on May 18, 2011 11:41 AM

  • CR on BW Query : Query fields not displayed properly

    Hi Experts,
    I am using Crystal reports 2008 with SAP Integration Kit for BO Enterprise XI 3.0
    I want to create a CR based on SAP BI 7.0 Query. But I add BI query as a datasource from SAP BW Query, it doesn't bring in all the fields correctly.
    All the Characteristics are displayed as D~ [0sold-to]~ K or D~ [0Material] ~K
    All KFs are displayed as M~ [Measures].[D4NXLFXS1ULO50FAO05ZCM9DN] ~ M or M ~ [Measures].[D4NXLFXS1ULO50FAO05ZCM9DN] ~ U
    Please help me how to see the proper description of Char or KF?
    Thanks,
    Smruti
    Edited by: Smruti Pattani on Dec 11, 2008 8:12 PM

    Hi,
    I built a Crystal Report on BI query using SAP BW MDX Query.I have Crystal Reports 2008 and BO Integration kit for sap XI 3.1. I am able to bring in all the query fields into report but when i try to see preview, system fails to retrieve data and it gives me error
    Database Connector Error: "BAPI Error # :0"
    Error occurred when starting the parser: timeout during allocate / CPIC-CALL: 'ThSAPCMRCV'
    Please help me how to resolve this issue.
    Thanks,
    Smruti

  • Is it worth using select query on infotype tables

    Hi Experts,
    I might be posting in the wrong column, but i just need to know is it worth using a select query on Infotype tables (PAxxxx)?? or should we prefer using the function modules for data fetching?
    If select is not suggested, what is the reason for that?
    Rgds
    Prateek

    Hi ,
    Its not said that u cant write select on PAXXXX tables . Yes of couse LDB are there to fetch the data but it depends on
    the requirement when to write a select and when to consider using in LDB .
    Generally when you are looking at say 8 to 10 tables of infotypes with free selection , then LDB is suggested to fetch the data .
    if you are looking to fetch the data for say some tables for a restricted selection (where clause) then select is used .
    If i want to write a program using select only then fetching data from infotypes tables for large no of records will lead to
    more time consumption which becomes easier in LDB as they are fetched in hierarchy level based on keys .
    Normally it will be a combination of LDB and select querys  in the development scenario
    Br,
    Vijay.

  • Marketing Calender Query field is not populating

    Hi Experts,
    I'm using CRM5.0 and EP7.0 .
    I've a problem with marketing calener. I've added it to portal but I'm not getting data from the backend in the query field(Show label). I'm getting all the views in view field but not the query field. I got some idea that the backend role to be assigned to portal roles in 'Assign portal role to single role' but it is not working.I think I'm missing some steps or entering incorrect values. Please send me detail steps of what I've to do in ''Assign portal role to single role' .
    Thanks in advance
    Koustav

    Hello ,
    Create requirement class and Requirement type relevalnt for your order type.
    Path to create this is:
    SPRO-> Proect systems->Material->Control of Sales-Order-Related Production->Check Requirements Classes
    Check Requirements type also.
    Create stretegy in view V_T461S.
    assign req class &type to stgy.
    then assign this req class and type in material master
    create Project or WBS elemt in transaction CJ20N.
    then follow the same process steps to create sales order that WBS elemt pop will come.
    regards,
    Nisha
    @award pts is helpful.

  • Query regarding infotype

    hi sap experts i have a query regarding infotypes ..
    which infotype displays EEO Exmpt indicator and EEO reporting  unit  indicator and job classification ..please let me know ..
    thanks in advance,,..

    Hi,
    Its infotype 1610.
    Regards,
    LNB

  • Query fields initialised  on page load

    Hi,
    I have a query region with autoCustomizationCriteria on my page. How do I set initial values for some query fields?
    Thanks

    Get a handle to the bean corresponding to the query field and call the method to set the default value. Setter method will differ based on the query field like textinput or choicelist etc. Refer to javadoc of corresponding baen for default value setter method.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Sizing the Query Field

    I know that the basic search query field can be sized, but I need to use a custom search portlet in order to specify the page group and results page. Is there any way to specify the size/width of the query field in a custom serach portlet?

    No, the size of any of the search fields in all of the search portlets are not customizable. Only the 'Basic Search Box' item has this feature.

  • Query field, Auth object (characteristic variable)

    Please bare with me as I am a little new to this and dont really know what im asking. I have been asked to populate an Auth object for a BW query field via a user exit. Basically when you add a field to the row section of the query designer, say i add 'Grant' you then get a number of characteristics, one of which is Grant(Auth), which you can set to be processing by 'Customer exit'. I have been given the user exit but am a little unsure how i would go about populating this auth object field. Any help would be much appreciated
    Regards
    Martin

    hi Mart,
    check if helps
    http://help.sap.com/saphelp_nw04/helpdata/en/6d/58f438114ee836e10000000a114084/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1b439590-0201-0010-ea8e-cba686f21f06
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/696affac-0701-0010-f7b5-cc431fc9365d

  • Query fields

    Hello all,
    i am making a query with MKPF and MSEG tables (similar than MB51 t-code). I want to make one thing like the tcode. There when is quantity -2, puts red colour and when it is +2 puts it on green colour.
    I want to make the same in my query. To put red and green fields when the quantity was negative or positive. Is this possible?.
    Thanks.

    Thanks. It's a clue. The second part (to create a t-code) was known by me already. This wasn't my question but the first part yes.
    I've tested it, but it doesn't works. When i write the coding into my added query field it tells me the next:
    'COLOR POSITIVE" is not expected; only 1 to 7 or the relevant color. IDs (COL_...) are allowed.'
    I've tested with 1 to 7 colours too, but nothing. My query added field says:
    CLEAR ZCTD.
    IF MSEG-SHKZG = 'S'.
       ZCTD = MSEG-ERFMG.
    ELSE.
       ZCTD = - MSEG-ERFMG.
    ENDIF.
    if ZCTD > 0.
    format color 1.
    write: ZCTD.
    format color off.
    endif.
    if ZCTD < 0.
    format color 2.
    write: ZCTD.
    format color off.
    endif.
    Any ideas??

  • Query in infotype 2001(Absenses)  and 2005(Overtime)

    Dear Freinds,
                   I have one query in infotype 2001(Absenses) when iam entering the  the absence hours  as 2 hours it is defaulting the start date time (beguz) 9.00 and end time (enduz) 11.00 ....which my user is not accepting ......they wantedn it to act like the overtime (2005) it is deducting the end of the time 18.00 (6.00p.m) as the Beguz as 18.00 pm and Enduz as 20.00 pm..........i would like to know can we change for the 2001 also in this way .......by using the concept of 2005 in the user exit EXIT_SAPFP50M_002  or in the BADI BAdI HRPAD00INFTY , however i am unable to change , could any one please let  me know if you  has implemented please let me know .
    thanks & regards
    madhuri

    Hi,
    i don; think we can modify IT2001, since we have IT2005 to enter Overtime.
    It is better to use IT2005 for overtime. One more thing here, how can we treat absence hours as Ovetime hours?
    thanks,
    vasu.

  • Ad-Hoc Query Field using HR_99S_INTERVAL_BETWEEN_DATES function module

    I have created an additional field in Sq02 to calculate years between two dates and am using function module HR_99S_INTERVAL_BETWEEN_DATES.
    There are no syntax erros but when I run a query in Sq01 and output the field it doesn't calculate instead gives "00000" output.
    The field Code in the additional field
    Clear ZHR_SERVICEYRS.
    DATA: V_MONTHS TYPE  i.
    DATA: V_YEARS TYPE  i.
    DATA: V_MONTHS1 TYPE  char20.
    DATA: V_YEARS1 TYPE  char20.
    CALL FUNCTION 'HR_99S_INTERVAL_BETWEEN_DATES'
      EXPORTING
       BEGDA           = P0002-GBDAT
       ENDDA           = Sy-Datum
      TAB_MODE        = ' '
    IMPORTING
      DAYS            =
      C_WEEKS         =
       C_MONTHS        = V_MONTHS
       C_YEARS         = V_YEARS
      WEEKS           =
      MONTHS          =
      YEARS           =
      D_MONTHS        =
      MONTH_TAB       =
    V_MONTHS1 = V_MONTHS.
    V_YEARS1 =  V_YEARS.
    CONCATENATE V_YEARS1  '.'  V_MONTHS1 INTO ZHR_SERVICEYRS.
    condense ZHR_SERVICEYRS.
    has anybody had similar problems! Help Appreciated!

    Hi Anuj,
    Yes, you use Transaction Code SQ02.  Find your infoset on the list - if you want to create a new infoset you can do so.  If it is an existing infoset, select it and Change.  On the next screen you will see all the infotypes in that infoset on the left.  The fields available for Ad Hoc are on the right.  Open the infotype table on the left and the field group on the right.  If the field is not included in the field group all you have to do is drag and drop from the list on the left to the correct field group.  If the infotype is not already in your infoset, select Edit --> Change Infotype Selection from the top menu bar.  Place a check in the new infotype and then return and do the drag and drop if necessary.  You will find the basic fields already moved to the field group. 
    You say you want information from IT0008-Basic Pay and IT1005-Planned Compensation.  Problem is that if you use the standard HR logical data base, there is no link directly between a person and IT1005.  IT1005 is assigned to a Position or a Job.  If it is assigned to a Position, you can select the "Change Infotype Selection" action and ago to the bottom of the list to Related Objects.  Here select Position and open that to find the IT1005.  If the IT1005 is tied to the Job, there is no direct link. Thus, if it does not already exist, you will need to create an infoset based on the PCH logical database and object Position.  Now you can link that Position to "Holder"-Person and "Described by"-Job.  Again, select the infotypes and fields you want and you will be able to obtain your information via Ad Hoc Query based on that infoset.
    Paul

  • In Infoprovider DSO no query fields available ( 0PM_DS02_Q0001  )

    Hi,
    I have a problem in Quality Managemenr (QM) module query called ( Mean Time To Repair (MTTR) and Mean Time Between Repair  ) 0PM_DS02_Q0001   and this query 0PM_DS02 which loads the data from 0PM_DS01 data mart. in the query key figures are
    MTTR (days),
    MTBR (days) ,
    MTTR (h),
    MTBR (h)  ,
    no.of outages,
    tot. no of notifications,
    actual outage time(h) ,
    effective time between outages(h)
    Except tot. no of notifications field  no other filed is available in 0PM_DS02 DSO.
    without the fields no report executed, and saying no pplicable data found in the report.
    please advice and resolve the issue
    thanks,
    sapsdn

    Hi Vikram:
      Some questions for you:
    - Did you apply any SAP Note to try to solve this issue?
    - Is the DataFlow that writes data to the 0PM_DSO2 DSO in version 3.5 or you migrated it to 7.0?
    - What are the Key Fields both on 0PM_DS01 and 0PM_DS02 DSOs?
    - How many records does the 0PM_DS01 DSO have?
    - On the Dataflow that goes to 0PM_DS01 is the field ROCANCEL mapped both to the 0STORNO and 0RECORDMODE InfoObjects?
    - What happens when you try to load data to the 0PM_DSO2 DSO? Do you get an error message? Does the 0PM_DS02 DSO remains empty or some records are loaded to it?
    - Did you enhance the DataSource or added some InfoObjects to 0PM_DS01 or 0PM DSOs?
    Regards,
    Francisco Milán.
    P.S. Please note that the required logic for the Key Fields on 0PM_DS02 is available on the Start Routine.

Maybe you are looking for