Urgent: Validation on additional units field in Infotype 15: Points assured

hi all
I am implementing enhancement PBAS0001using function exit EXIT_SAPFP50M_002
for putting validation on number of additional units entered.
In our company, a predefined no. of units is allotted to every PS group for the whole year. Now i need to validate if the no. of add. units entered for an employee for a given year against the limit set for the PS group he belongs to.
I have created two ztables. One is a master table for the PS group and the annual limit.
and the other one is for storing the month wise additional units and the total add. units conusmed . Its structure is : pernr, lgart, entry_date, add. units, total units consumed, year, month.
Now in the exit i am coding statement like
lv_new_tot = innnn-anzhl + lv_tot.
where lv_new_tot denotes the new sum of add. units consumed and lv_tot is the previous
total of add. units consumed.
But it gives an error saying: INNNN does'nt have a component anzhl.
Now please tell me how to refer to the additional units for the current entry being made.
<b>Points will be awarded surely.</b>
thanks

Hi,
Have a look at this thread regarding the coding in userexit-EXIT_SAPFP50M_002.
User Exit for Infotype 0019
Reward points if Helpful.
Revert back if u need anything else.
Regards,
Manoj.

Similar Messages

  • Number/ unit field in infotype 0015

    Hi Experts,
    There is a number/unit field in infotype 0015. What is the exact use of this field? Can we make payments by this field? Like if i want to pay an employee 2days extra Basic salary due to some reason, then how shd i configure my wage type so that system automatically calculate the amount by entering the number/ unit field.
    plz help
    regards
    Kunal

    If i enter some number/unit, then how the system will calculate the amount for that.
    Like if i want to pay an employee 1day extra salary due to some reason and i want to pay this through the Ex-gratia wage type, shd i just enter the number=1 and unit =days??
    System is not paying anything for this values.
    plz help
    regards
    kunal

  • Adding additional text field to infotype in SQ02

    Hi ,
    I am trying to create an additional text filed to the infotype 0034 in a customized infoset, in Tx SQ02 as shown in the link below:
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/cb4468455611d189710000e8322d00/content.htm
    Here the question is :
    The check box "Detemine LIKE reference using text field" is grayed out and I couldn't able to check the box.
    Can any one help me to resolve this and let me know what is the significance of that check box?

    Hi Suresh,
    I tried running the query after deleting the newly added text fields to the infoset, the query is running properly with out any short dump, where as with the additional fields added it is going to short dump and the shot dump states as shown:
    An exception occurred. This exception is dealt with in more detail below          
    . The exception, which is assigned to the class 'CX_SY_DYN_CALL_ILLEGAL_FUNC',    
    was neither                                                                      
    caught nor passed along using a RAISING clause, in the procedure "%_GET_PERNR"    
    "(FORM)"                                                                         
    Since the caller of the procedure could not have expected this exception          
    to occur, the running program was terminated.                                    
    The reason for the exception is:                                                  
    The program "!QZZ/SAPQUERY/H2AAVULA27174228" contains a CALL FUNCTION             
    statement. The name                                                              
    of the function module to be called is "RPAQ_GET_AF_0034".                                                                               
    No function module exists with the name "RPAQ_GET_AF_0034".                       
    All function modules are stored in the Function Library (SE37).                                                                               
    Possible reasons:                                                                 
    a) Wrong name specified. Particular attention should be paid                      
       to upper/lower case and underscores ("_")                                      
    b) Transport error                                                                
    c) If an enqueue/dequeue module has been used, the lock object                    
       may not have been activated (ABAP Dictionary)         
    Any help?
    Best regards
    Vamsi

  • Help with F4 search on additional field in Infotype 0045

    Hi guys,
    I have created an additional field in Infotype called 'Payee_Key' of type P0057-EMFSL. I have to create F4 help for that field. However when creating F4 help through foreign key it is showing all tha values for EMFSL in the table.
    I want the F4 help to be like Payee Key field of Infotype 0057 , where only specific country values of EMFSL , depending on the employee number are shown. not all values.
    Please help me out. Thanks.
    Edited by: soumyajit DM on Dec 15, 2010 10:42 AM

    Hi Zafar,
    Here is the answer to your question:
    1) Create a class say ZABC_F4 that implements the IF_BSP_WD_CUSTOM_F4_CALLBACK interface.
    2) Create method RETRIEVE_CUSTOM_VALUES with below parameters in that class:
    CT_RESULTS_TAB Changing Type SHSVALTAB
    IR_CUSTOM_REF Importing Type Ref To OBJECT
    IS_SEARCH_HELP Importing Type SHLP_DESCR
    3) Write logic for DB select here and put it in below code:
    select * from abc into LT.
    data:   ls_result LIKE LINE OF ct_results_tab.
       LOOP AT lt ASSIGNING <fs>.
        CLEAR ls_result.
        ls_result-key = <fs_>-field.
        ls_result-value = <fs_>-fieldtext.
        APPEND ls_result TO ct_results_tab.
      ENDLOOP.
    4) Redefine the V-method for that attribute and put below code there:
    DATA:
            ls_map TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
            lt_inmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
            lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.
        ls_map-context_attr = 'STRUCT.attribute1'.
      ls_map-f4_attr = 'aaa'.
      APPEND ls_map TO lt_intmap.
      ls_map-context_attr = 'STRUCT.attribute2'.
      ls_map-f4_attr = 'bbb'.
      APPEND ls_map TO lt_outmap.
      CREATE OBJECT rv_valuehelp_descriptor TYPE
        cl_bsp_wd_valuehelp_f4descr
        EXPORTING
          iv_help_id        = '(ZABC_F4)'
          iv_help_id_kind   = if_bsp_wd_valuehelp_f4descr=>help_id_kind_comp
          iv_input_mapping  = lt_inmap
          iv_output_mapping = lt_outmap.
    5) Implement get P for value input, as you know.
    Thats it.
    Regards,
    Bhushan

  • How do you add additional fields in infotypes?i want to leave blank space

    how do you add additional fields in infotypes?i want to leave blank space in front of the field?

    Hi,
    To add new fields go to PM01 and select Enhance Infotype option and then follow the steps in sequence.
    I am not getting blank space in front of the field. please elaborate it.
    Regards,
    Raja.D

  • Add additional selection fields to RPUAUD00- Logged changes in infotype rpt

    Hi,
    I'am trying to add additional selection fields to Logged changes in infotype  report and was wondering if this can be done through customization instead of creating a copy of the std report to add the additional fields?
    Thanks

    Hi Ajay, The requirement is to add fields like personnel subarea, op code for reporting purposes.
    Thanks

  • E-Recruiting Addition field to Infotype 5107

    I'm implementing E-Recruiting for a client.
    I added the additional field to infotype 5107 Desired Work Location using PPCI. I also created a custom table for Desired Work Location to store the value of Location (county, institution & etc.).  When I added the new field to the infotype 5107 it automatically shows up on the Desired Work Location of E-Recruiting page as a text field.    I found the bsp for this page it's desLocn_detail.bsp.   Also I have to set two field that are already on the page Country and State to a default value.  Both are drop down list.
    Here's my question:
    1.I would like to make the new field list box i think that's what it is called, where the candidates can select multiple locations.  How & where can i do this? And how can i link the value from the custom table that i created to the new field that I added to Infotype 5107 to appear on the list box?
    2.How and where can I set Country and State field to the a default value? Is this done in the IMG?
    3.I'm assuming the deslocn_detail.bsp is a SAP standard BSP.  should I modified this bsp to rendered what I'm supposed to do?  If i modified this page when the upgrade/service pack is applys my modification will be wiped out?
    any suggestion will be helpful.

    I think you should take the following approach:
    The only sane way to keep multiple values in a single database record that comes to my mind id to create a new table to keep the selections.
    It's key should be the same as of the HRP5107 table plus a sequential number for counting selections.
    There are further 3 things to consider:
    1. Filling up the table before display with current selection.
    2. Handlig user selection after submit.
    3. Hiding the text field from user input.
    ad 1.
    I havn't used <htmlb:listbox> before, so I might wrong somewhere, but i guess that you should prepere two tables and pass them to table and selection attributes.
    Probably it would be best to store them as attributes of the controller to provide easy access from the bsp.
    The proper place to fill these structures is the DO_REQUEST method, probably near the end of the method when all standard stuff is done.
    In this method you should read the configuration of available loactions and put it in the 'table' attribute,
    and read the table of selections and put them in the 'selection attribute'.
    ad 2. The place to handle input is the DO_HANDLE_DATA in the controller. As i've said a haven't used listbox, but probably the are multiple fields with the id of the listbox, each containing a selected item.
    You should read them here and place them in the 'table' attribute.
    Next you have change the on_save method in the controller (Actually it might be in a parent controller - i haven't checked it).
    In there you should insert the values in the 'table' attribute to the custom table with selections (probably you have to delete all entries for the current infotype record first)
    ad. 3
    Now that i wrote 1 and 2 i see that you can just remove the field from the infotype...
    Hope this helps.

  • Very urgent - validation failed in field

    hello friedns,
    i have an issue field called weight in ADF page. i am very new to ADF Technolgy.
    1) if user eneters invalid value enters in weight filed it will show alert that Weight - Value should be 0 to 9999.999 only ,i cliked the ok of that alert window, but immedeately it can let me go to the next filed in create page, it should not let me go to next field until i eneter valid value.
    2) same validation update page working fine - when i eneter the invalid value , then it should not go next filed to eneter value, until i enter valid value in weght field.
    i did the same below validation create and update page.
    function chkForDecimalValue(inpValue)
    var regExpDecimal=/^(0|[1-9]\d{0,3})(\.\d{1,3})?$/
    if (inpValue.search(regExpDecimal)==-1)
    alert("Weight - Value should be 0 to 9999.999 only");
    obj = document.forms["warrantDetailsForm"].elements;
    obj["weight"].select();
    obj["weight"].focus();
    return false;
    else
    return true;
    i added this function in weight field properties - java script option under in Onblur. very urget how to fix this problem and help me out.
    Thanks in advance.
    vamshi.

    CAn you please provide the page code for update and create? Are you using same page?

  • Units field XYZ for field ABC of DataSource ZRST Message no. R8147

    HI,
    When I'm trying to SAVE my datasource ZRST, I've got following error.
    Units field XYZ for field ABC of DataSource ZRST Message no. R8147
    In extraction structure of this datasource thare are at least two fields that use the same unit field.
    Accordign SAP note no 867795:
    One of the fields is displayed and another is hidden.
    Then the unit field is hidden and the above error occurs.
    This note is valid for component SAP_ABA release 700. I'm running my R/3 source system on SAP_ABA     620.
    Could it be the same case as described in this SAP  note?
    Anybody got same problem? Please advise.
    Thanks
    m./

    Hi,
        Please check the dependencies on the fields, as some fields should have the units defined ,check the fields and activate the datasource.
    hope this helps,
    thanks,
    vrrp.

  • Not able to see the additional information fields in OIE

    Hi,
    After applying some patches in OIE, the additional information fields in expense report are not visible.
    In Internet Expenses setup and Administration, these fields are set as 'Required'.
    When we try to save the expense report, it is throwing an error that these fields are required.
    But these fields are not visible to enter the information. Is any setup required for the same ?
    Please advice.
    Regards,
    Manjusha.

    Hi,
    We have already bounced the apache and checked.
    It is still the same.
    We noticed just now that it is working for some Operating units.
    Is there any way to find out what is missing in the required operating unit?
    Regards,
    Manjusha.

  • OAM 11gR2 Authentication using username/password/additional ldap field

    I want to add additional credential parameter along with username and password to be validated against LDAP.
    Is there any out of the box solution for authentication using username/password/additional ldap field in OAM 11gR2?
    This solutions exist in 10g and could not find any OOB feature in 11g.

    Do you need to accept additional parameter from user via login form & then use it in credential mapping step
    Not sure if %% syntax would work .. havent tried it. next option is to develop custom authentication plugin
    Additional ldap attribute against static value
    If you need to add additional ldap attribute (check against static value) that you can specify in LDAP search filter in "User Identification plugin" configuration
    Take a look at "MTLDAPPlugin" under custom authentication modules
    Hope this helps

  • Organisational unit in HR infotype

    Hello Guys,
    why TRIP need the organisational unit in HR infotype 0001 (field P0001-ORGEH) ?
    Thanks

    Hi,
    For example, feature TRVCT can use the org unit or the personnal area or other fields from IT0001 and these features are read at trip time so if you change the organizational assignment, you must take care that the features keep delivering the correct values. Hope it helps,
    Kind Regards
    Christine

  • Fields in infotype 415

    Hi
    Can anyone tell me difference b/w 'Export data until' and 'No exports after' fields of infotype 415.
    It seems to be the same. kindly help
    Regards
    Manu

    Phil :
    The fields would need to first be included in the screen painter (e.g. MP007700 / screen 2010) for it to show up on 'Infotype screen control' (so you can turn on or off through configuration. As you can see, not all fields included in the definition of the infotype is to be included in the screen painter.
    To have additional fields in IT0077 to show up, you can create a custom screen painter (e.g. ZP007700 / screen 1000) which includes fields in IT0077 that is not in the standard SAP screen. Include this screen for IT0077 by configuring 'Including sceen for Infotypes'.
    Once this is done, when going into screen for IT0077, aside from what's already included in the SAP standard screen, you'll see another block containing other fields (hopefully).
    Rgds.

  • Additional Unit of Measure

    I have my base unit of measure set as EA and in the additional unit of measure I'm trying to put a conversation to state that 1 EA = 165838 KG
    The system wouldn't allow that since the this field in the table only accepts 5 characters and 0 dec. (it also saves the digits in x,xxx format which means I can only give 4 digits).
    Is there anything to do to fix this? I can't store in Ton because it won't be accurate.
    Thank you

    Ideally your base unit should be the smallest unit or a small unit. In this case KG should have been the base unit.
    However, if you still wish to continue...
    try using 500 EA = 82919 TON (This is exact if 1 TON = 1000 KG)
    If it is not allowing 5 digits, and you are willing to have a minor approximation, you can use
    50 EA = 8292 TON. At 1 TON = 1000 KG, this works out to 1 EA = 165840 KG (A difference of 2 KG from actual figure).
    Hope this helps,
    Lakshman
    P.S. Dear Srao, changing the number of decimals in currencies and Units of measures is not recommended.

  • How to Map the Unit field  in case of DSO and INFOCUBE

    Dear Experts,
    I have a issue ,Please help me to solve this
    I have DSO as provider ,
    And, i have to map transformations  btw the Datasource and DSO.
    In generic Data source,  i have unit fields like BASME,MEINS (Quantity units) & STWAE (currency field)
    and normal Quantity fields  like KWMNG,OAUME(quantity related),OAUWE (value related).
    In DSO data fields as Key figure info objects like  0Quantity (which have 0Unit as unit of measure) and some other  key figures which have there respective unit of measure in info object  definition.
    So you Please tell me how to map the Quantity ,Amounts, unit fields to key figures that we have.
    (How it will be for both DSO and Info cube is there any difference?)
    Edited by: AnjunathNaidu on Jan 18, 2012 1:20 PM

    Navasamol ,
    If it is works ,will u please tell me what is the difference ,if the transformations btw data source and DSO and
    what is the difference btw data source and info cube and btw DSO to Infocube or cube to cube .
    And i have  seen the Quantity fields  and there respective unit fields are mapped directly  to key figure info object
    in case of Info cube . Its working fine .
    If only 1:1 mapping allowed in DSO data fields key figures and there respective unit of measure characteristic.
    why this difference btw DSO and Info cube can any one explain me in detail.
    Expecting your valuable suggestions.
    Thanks & Regards,
    Anjunath Naidu
    Edited by: AnjunathNaidu on Jan 18, 2012 4:05 PM

Maybe you are looking for