Calculate IT0008-ANSAL using  a User Exit

Hi,
Anybody know the enhancement / exit for calculating ANSAL ?
It is not sufficient just to get the right figure displayed in PA30 IT0008 Function Modules like RP_ANSAL_FROM_PERNR will also need to work
so enhancement PBAS0001 would not work.
I see a lot of mentions on SCN of an 'Exit' but people seem shy about releasing the name !!
Cheers
bg

Giriesh,
Regarding IT0008 - and I stand to be corrected on this !
In standard config you can set up what wage types make up ANSAL
If any of those wage types are themselves indirectly valued then ANSAL does not get stored in PA0008-ANSAL and it is recalculated each time you go into IT0008.
If none of the wage types are indirectly valued then ANSAL does get stored to PA0008-ANSAL.
I have alway assumed this was because if ANSAL was based on indirectly valued wage types you could not store it in PA0008 as if you changed the underlying wage type configuration then any ANSAL that were stored on  PA0008 would no longer be correct and would need to be re-calculated!
Therefore if I was writing a report that had to display ANSAL I would use a FM like RP_ANSAL_FROM_WAGETYPES as PA0008-ANSAL would not be populated for all my employees.
The FM would derive ANSAL based on IT0008 and  Configuration in the sitaution where PA0008-ANSAL is blank. Where PA0008-ANSAL is populated then I am not sure what it does.
Therefore If I calculate ANSAL with enhancement  PBAS0001 and store it on PA0008-ANSAL it will only be correct as long as I do not change config relating to my wage types and indirect evaluation or any of the orther elements that I may wish to incorporate in my ANSAL calculation.
Regards
bg

Similar Messages

  • Can we add additional fields in work center creation using any user exit ?

    Hi,
    is there any user exit using which we can have some tab and fields such that we can add/ update the equipment to wotk center in CR01 ?
    regards,
    madhu kiran

    hi,
    requirement is can i get the additional fields like equipment and asset in the work center creation ?
    i would like to maintain these against a work center
    and  using any user exit can i add additional fields ?
    regards,
    madhu kiran

  • As01 transaction using substitution user exit populate classificaion

    Hi all,
    I have a requirement, where in using the substitution user exit rule U210, I need to populate fields ANLB-NDPER, ANLB-NDJAR and ALNA-VMGLI from the values maintained in Ztable.
    I am able to overwrite the SAP standard values for the fields ANLB-NDPER and ANLB-NDJAR. But not able to populate the filed VMGLI(Classification key).
    For some asset classes, the classification key is not mandatory and the user without giving the value in that field if save the transaction, then I need to populate the value of VMGLI with the ztable value.
    The present rule U210 is not working for classification key.
    Please suggest, is there any other user exit for the scenario where we can populate VBGLI field.
    regards
    Rajani Yeluri

    In the user exit documentation,  it doesn't say anything about this exit being used for validation, therefore,  it probably shouldn't be used as a validation routine, especially if its not being trigger at every PAI. 
    <i>FU EXIT_SAPLAISA_001
    Short text
    Assign Inventory Number
    Functionality
    Using this user exit, it is possible to assign an inventory number when you create a new asset master record.
    Notes
    In the user exit, it is absolutely forbidden to use a statement that leads to an update or removal of database changes. Examples of such statements are:
    'Commit Work' , 'Rollback Work' or call of function module 'DB_COMMIT'.
    Parameter
    I_ANLA
    E_INVNR
    Exceptions
    Function group
    XAIS</i>
    Regards,
    Rich Heilman

  • How to use/activate user exits

    Hi all,
    i wish to use user exit COZF0001...
    however i have no experience how to do it.  do i need an ABAPer or other consultant to do it or can i just activate it and make it work with minimal instructions?
    kindly give procedure/overview how to activate/use user exits.
    thanks in advance

    Hi Ramesh,
    Go to transaction CMOD . Create a project called ZVA01. Choose the Enhancement assign radio button and press the Change button. In the first column enter COZF0001.
    Note that an enhancement can only be used in 1 project. If the enhancement is already in use, and error message will be displayed
    Click on  Save . Go to Components. You can now see that enhancement uses the user exit EXIT_SAPLCOZF_001.  Double click on the exit and add your code.
    Activate the include program. Go back to CMOD and activate the project.
    -- Shivaji

  • JOB_OPEN cannot be used in user exit, what can I do to raise a job?

    Dear Experts,
    We need to setup a job in user exit ZXM06U43 (when saving purchase order), but JOB_OPEN has 'COMMIT WORK' in it, which is not acceptable in user exit.
    Do you have another method to walk around?
    Thank you for your comments.
    Joanne Wu

    Hi,
    Try this..
    Create a RFC FM...
    In the include ZXM06U43...Call the function module in background task..
    CALL FUNCTION 'Z_RFC_TEST' IN BACKGROUND TASK
    EXPORT.
    In that RFC function module use JOB_OPEN Function module...
    Hope this helps..
    THanks,
    Naren

  • Changing sales office in sales office using save_document user exit

    Hi,
      My requirement is to change the sales office to 109 based on some conditions.
    Here i am using FORM USEREXIT_SAVE_DOCUMENT   user exit in the sales order to do it.
    but it is not taking this value .
    Can any one suggest me any other place i.e. user exit where we can change sales office depending on some conditions.
    Thanks & regards
    Manjari.

    You have to use userexit 'USEREXIT_SAVE_DOCUMENT_PREPARE' because when exit 'USEREXIT_SAVE_DOCUMENT' is called all the order data has already been submitted into update task. So if you want to change data in the order and have it saved with it you need to use 'USEREXIT_SAVE_DOCUMENT_PREPARE'.
    Regards,
    Michael

  • How to use MV45FZZ user-exits to validate PONumber

    I want to detect duplicate PO numbers on sales orders. On VA01 I want to check if for the Sold-to-party is there already an Order with the some PONumber. Code to detect this is simple. The problem is what user-exit routine I should use (and how) in report MV45AFZZ.
    There is a form called  USEREXIT_MOVE_FIELD_TO_VBKD but how do I know in this routine that the screen field POOrder was changed, and not any other? I would like to make the check only once, after changing VBKD-BSTKD or XVBAK-KUNNR, not to any screen-field change.
    Can someone give an help on this user-exit usage?
    Thanks

    yes. I didn't knew there were standard validations for duplicate POs
    Where do I configure thais? in Sales Document types?
    Thanks

  • How to know the tcodes/programs that uses a user exit

    Hi, anybody knows given the user exit (function module) how will i know the tcodes/programs that uses it? the where used list doesn't return any.

    Hi,
      You will find the enhancement for the exit EXIT_SAPLCOZF_001 ,go to se11>enetr MODSAP Table name in Memeber postion you can enter your function module name EXIT_SAPLCOZF_001>now you will get the enhancement COZF0001 (trx SMOD)
    yOU will find whre the exit is called from the t.code Try this method:
    All exits have the program name as part of their own name, for eg, EXIT_SAPLCOZF_001. In this, SAPLCOZF is the program that the exit is called in, you can use this program name and search for transaction codes related to the program (in SE93).
    The only hitch in the above method is when the program name is a function group program name (SAPL*), in which case you will have to drill down into the function group to find the corresponding tcode.
    Or
    Go to SMOD transaction.
    Enter the Enhancement Name in SMOD.
    Open in Display mode.
    Now get the package name from the window.
    Now go to transaction SE80.
    Choose package from the listbox
    and enter the package name.
    Now it will display the list of Transactions associated with the project.
    Regards
    Kiran Sure

  • As01 transaction using substitution user exit populate classificaion key

    Hi all,
    I have a requirement, where in using the substitution user exit rule U210, I need to populate fields ANLB-NDPER, ANLB-NDJAR and ALNA-VMGLI  from the values maintained in Ztable.
    I am able to overwrite the SAP standard values for the fields ANLB-NDPER and ANLB-NDJAR. But not able to populate the filed VMGLI(Classification key).   
    For some asset classes, the classification key is not mandatory and the user without giving the value in that field if save the transaction, then I need to populate the value of VMGLI with the ztable value.
    The present rule U210 is not working for classification key.  
    Please suggest, is there any other user exit for the scenario where we can populate VBGLI field.
    regards
    Rajani Yeluri

    Hi,
    Did you find a solution. I'm just looking for the same thing.
    best regards..

  • As01 using substitution user exit populate classificaion key(ANLA-VMGLI)

    Hi all,
    I have a requirement, where in using the substitution user exit rule U210, I need to populate fields ANLB-NDPER, ANLB-NDJAR and ALNA-VMGLI from the values maintained in Ztable.
    I am able to overwrite the SAP standard values for the fields ANLB-NDPER and ANLB-NDJAR. But not able to populate the filed VMGLI(Classification key).
    For some asset classes, the classification key is not mandatory and the user without giving the value in that field if save the transaction, then I need to populate the value of VMGLI with the ztable value.
    The present rule U210 is not working for classification key.
    Please suggest, is there any other user exit for the scenario where we can populate VBGLI field.
    regards
    Rajani Yeluri

    Hi Balaji,
    We have the same problem.
    Have you discovered how to make this exit works?
    We will really apreciate your help.
    Thanks a lot,
    Ivan Spellmeier

  • Where used FM user exits

    Hi.
    In 4.6 when I had a FM (e.g. EXIT_SAPLE10M_001), when I did where used I got the source when this exit was called ( if showed as call customer-function '10' )
    But In ECC 6.0 this option is no longer valid? Where used option brings me no results.
    Anyone knows how this can be overiden?
    Using modsap table & smod does not help since I do get the FM name but stilll the "where used" isn't working.
    Thanks
    Ariel Fisher

    > In 4.6 when I had a FM (e.g. EXIT_SAPLE10M_001), when I did where used I got the source when this exit was called ( if showed as call customer-function '10' )
    >
    > But In ECC 6.0 this option is no longer valid? Where used option brings me no results.
    >
    > Anyone knows how this can be overiden?
    >
    > * Using modsap table & smod does not help since I do get the FM name but stilll the "where used" isn't working.
    >
    I don't know why this is not working, but the Exit function is still valid. 
    in the main program SAPLE10M the Exit function is used.
    i just searched for CALL CUSTOMETR-FUNCTION globally inside the program SAPLE10M(Function group main program) i got the below one.
    * Call user-exit...
      CALL CUSTOMER-FUNCTION '001'
           EXPORTING
                 x_v_eger  = x_v_eger
                 x_etyp    = x_etyp
                 x_te271   = x_te271
           IMPORTING
                 y_wechsel = y_wechsel
                 y_bglkenn = y_bglkenn
                 y_bglform = y_bglform.

  • MC94 - How to use the User exit EXIT_SAPMMCP6_002 to develop custom macros

    We’re implementing macros with the user exit EXIT_SAPMMCP6_002, but we see that the parameter table T_TAB doesn’t contain all lines and columns viewed in the grid of transaction MC94 (Change Plan – Consistent Planning).
    Nevertheless, files and columns that are contained, aren’t shown in the order that they are visualized in the screen (MC94 - program SAPLMCPA – screen 707).
    Does somebody know how to update the grid visualized in that screen?
    Thanks in advance for any help!

    Hi,
    Have you any luck with this yet. I am actually looking to do something similar but on the planning level.
    To get the detailed level, you can try the following:
    get the lines for this macro
      CLEAR I_LINES. REFRESH I_LINES.
      LOOP AT T_LINES WHERE KRIT1 = I_STRAT-AKT_PLOBJ  
                        AND FLGIS IS INITIAL
                        AND STRUL = 'X'.
        I_LINES = T_LINES.
        APPEND I_LINES.
      ENDLOOP.
    get columns for this macro
      LOOP AT T_COLS.
        LOOP AT I_LINES.
          READ TABLE T_TAB WITH KEY Z = I_LINES-LINE
                                    C = T_COLS-COLUMN
                                    BINARY SEARCH.
          IF SY-SUBRC EQ 0.
            I_COLS = T_COLS.
            APPEND I_COLS.
          ENDIF.
        ENDLOOP.
      ENDLOOP.
      SORT I_COLS.
      DELETE ADJACENT DUPLICATES FROM I_COLS.
    this should pull the values that are visually seen on the screen. 
    What i need is the values for ALL levels?  I cant seem to figure this out. 
    Anyways, lemme know if the above was helpful.

  • Sales order forceful completion using the USER-EXIT

    Hi all,
    We have a requirement as follows: As soon as the sales order is created a smartform should get triggered. the configurations are done in nace. It is working fine. But in our case we dont enter the PO number in the sales order this will show an incompletion log throwing a warning message. So we need to do modification in the user exit MV45AFZZ for the forceful completion of the sales order
    This is to be done for the order type Zxxx. As i have not worked in the userexits before can anyone help me with the code.
    Thanks and Regards
    venu.mulaparthi

    Hi,
    Try this..
    Create a new incompletion procedure in SPRO without that PO number field..
    In the user exit USEREXIT_SAVE_DOCUMENT_PREPARE in the include MV45AFZZ..
    IF VBAK-AUART = 'Zxxx'.
    * Switch the incompletion procedure.
      TVAK-FEHGR = 'ZZ'.   " New incompletion procedure..
    * Then call the function module with the new incompletion procedure..
    * I believe the function module name RV_CHECK_DOCUMENT.
    * Or check RV*check*document in SE37..
    * This will make sure the sales order to recognize
    * the new incompletion procedure..
    ENDIF.
    Thanks
    Naren

  • Iam not getting the data on screen after using the user exit zxpadu01

    Dear Freinds
                As per my requirement when the user enters value Ansal  it should get defaulted to Amount field (bet01 ) based on the wage type
    i have written calculation ( q0008-bet01 = ansal/100) before it getting defaulted to bet01, i found that value is not getting default  on the screen for bet01 once i enter value for Ansal , please any body correct my code
    in   ZXPADU02 i have written the code as  below :
    data : wa_p0008 like p0008,
            i0008 like p0008,
           l_v_ANSAL type ANSAL_15,
           l_v_amount type PAD_AMT7S.
    CASE innnn-infty.
    when '0008'.
    CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
    EXPORTING
    prelp = innnn
    IMPORTING
    pnnnn = wa_p0008.   -- HERE I GOT ALL THE DATA EXCEPT BET01
    if wa_p0008-lga01 = 'MFPY'.
    l_v_ansal =  wa_p0008-ansal.
    l_v_amount = l_v_ansal / 100.
    move l_v_amount to wa_p0008-bet01.
    CALL METHOD cl_hr_pnnnn_type_cast=>pnnnn_to_prelp
    EXPORTING
    pnnnn = wa_p0008  --- HERE I CAN SEE EVEN THE BET01 IS FILLED
    IMPORTING
    prelp = innnn.         --- HERE I CAN SEE LGART BUT NOT AMOUNT VALUE
    endif.
    when others.
    endcase.
    IN ZXPADU01 I HAVE WRITTEN AS BELOW:
    data : wa_p0008 like p0008,
            i0008 like p0008,
           l_v_ANSAL type ANSAL_15,
           l_v_amount type PAD_AMT7S.
    CASE innnn-infty.
    when '0008'.
    MOVE-CORRESPONDING  innnn to wa_p0008.
    CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
    EXPORTING
    prelp = innnn
    IMPORTING
    pnnnn = wa_p0008.
    if wa_p0008-lga01 = 'MFPY'.
    l_v_ansal =  wa_p0008-ansal.
    l_v_amount = l_v_ansal / 100.
    move l_v_amount to wa_p0008-bet01.
    CALL METHOD cl_hr_pnnnn_type_cast=>pnnnn_to_prelp
    EXPORTING
    pnnnn = wa_p0008   --- I CAN SEE ONLY WHEN I COME AGAIN
    IMPORTING
    prelp = innnn.
    endif.
    when others.
    endcase.
    Now my problem is as follows :
                   i have entered the value for Ansal (ex: p0008-Ansal = 1000) ..........and i say enter then i should found the calculated value for the ansal through my coding
    and it should  display in bet01 as 10 ( q0008-bet01 =  p0008-ansal /100)
    but i dont find the value 10 being displayed for the field bet01 on the screen  when
    user enters Ansal  as 1000 .........even then i have saved it to test the scenario......
    now i came in displayed mode (pa20 ) for the infotype 008 for the same personnel no for the same  dates .....where i created the record........i found that the value
    bet01 is there i.e i can see  the value bet01 as 10 ( my requiremnt here matching)
    but when the user say enter during the time of creation of the record the value
    bet01 is not getting defaulted with 10 .........why iam not able to understand
    PLEASE ANY BODY HELP ME IN THIS REGARD 
    regards
    shanti.

    Hi Pranesh,
                   i have used the logic which you hav given as below
    in ZXPADU02
      FIELD-SYMBOLS <fs>  TYPE ANY.
    ASSIGN ('(MP000800)Q0008-betrg') TO <fs>.
    if <fs> is assigned.
    <fs> = l_v_amount .  ---  amount as (ansal /100 i.e 1000/100 = 10) 10
    endif.
    still iam not getting the data for the field bet01
    this is the coding i am using
    data : wa_p0008 like p0008,
            i0008 like p0008,
           l_v_ANSAL type ANSAL_15,
           l_v_amount type PAD_AMT7S.
      FIELD-SYMBOLS <fs>  TYPE ANY.
    CASE innnn-infty.
    when '0008'.
    MOVE-CORRESPONDING  innnn to wa_p0008.
    CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
    EXPORTING
    prelp = innnn
    IMPORTING
    pnnnn = wa_p0008.
    if wa_p0008-lga01 = 'MFPY'.
    l_v_ansal =  wa_p0008-ansal.
    l_v_amount = l_v_ansal / 100.
    move l_v_amount to wa_p0008-bet01.
    ASSIGN ('(MP000800)Q0008-betrg') TO <fs>.
    if <fs> is assigned.
    <fs> = l_v_amount .
    endif.
    CALL METHOD cl_hr_pnnnn_type_cast=>pnnnn_to_prelp
    EXPORTING
    pnnnn = wa_p0008
    IMPORTING
    prelp = innnn.
    endif.
    when others.
    endcase.
    please help me as iam still not getting (value in bet 01) when i press enter once i enter value in ansal feild.
    regards
    shanti.

  • How to define a global field for use in User exit

    Hi All,
    I want to define a global flag field (say my_flag) in Function group VEDA. I need to set/reset it in exit EXIT_SAPLVEDA_003 and check its value in EXIT_SAPLVEDA_002.
    Can anyone help me out in this. Where can I define this field?
    Thanks.
    Regards,
    Riyaz

    I have created a customer table zflag1 which has one field z_flag and the correspopndiong data el;ement is 'zflag' and i also ccreated parameter ID in table TPARA and assigned tht parameter ID 'ZFLAG' to my data element.
    reward points if helps..
    in the Z include of Exit function 3 write -
    data :g_global like zflag1-z_flag.
    G_GLOBAL = 'X'.
    set parameter id 'ZFLAG' field g_global.
    and in the Z include of exit function 2 write  -
    DATA G_GLOBAL LIKE ZFLAG1-Z_FLAG.
    GET PARAMETER ID 'ZFLAG' FIELD G_GLOBAL.

Maybe you are looking for

  • Getting error in dependent LOV

    jdev version: 10.1.3.3 I have a dependent LOV in a page. It works fine except in one scenario. When I enter partial value in dependent LOV field and click torch icon, it gives following error: Exception Details. oracle.apps.fnd.framework.OAException:

  • Error in simple form

    Hi All, I am OAF learner, I got error in a page like - No method with signature - initDetails(class java.lang.String, class java.lang.String) I tried with couple of times but there was no use.. How Can I fix that error? Please suggest me ASAP. Best R

  • How to put songs into the 5300 player from compute...

    When i sync or just drop it into the phone it only shows up to the memory card and it won't be on the player on the 5300. How can I put it into the 5300 player? Thanks in advance.

  • Error 150:30.  Any help resolving this licensing issue?

    I just installed a new hard drive and am unable to start illustrator.  Any advice?

  • ERS - MRRL/MR90 - changing the user ID

    Hi all, We have recently changed the Output Type for ERS to external send - where the invoice is automatically emailed to the supplier rather than having to print and fax the invoice.  However - we need to change the user ID that the email is sent fr