Not to Update custom infotype

Hi Expert,
I have one custom FM which is used to update the custom infotype but my requirement is when it get fail it should not update
the infotype but it is updating.Befor this FM we are performing operation i. e MASSN  07,08, .
This requirement is based on contract renewal when contract is not renewed it should not update custom infotype bue it is
updating when contract is not renewed through the above FM.
please give me some idea so that custom infotype should not get updated when contract is not renewed.But it is
updating the infotype what should i put to not update the infotype when contract is not renewal.
Below is my listed code.
    IF lv_action =  '09' OR lv_action = '07' OR lv_action = '08' AND lv_cr_renewal = ''.
    CALL FUNCTION 'ZF_HCM_ALM_ABSENCE_DATA'
        EXPORTING
          i_pernr                 = lv_pernr
          i_effective_date        = lv_date
          i_updation              = 'X'
TABLES
  T_ABSENCE_DATA          =
      t_return                = lt_return_absence
Regards,
Md
Edited by: MdAddu on Jun 26, 2011 9:33 AM
Edited by: MdAddu on Jun 26, 2011 9:52 AM

Hi,
Write the code as :
IF ( lv_action = '09'  OR lv_action = '07' OR lv_action = '08' )
  AND lv_cr_renewal = ''.     "-- contract renewed ...
CALL FUNCTION 'ZF_HCM_ALM_ABSENCE_DATA'
EXPORTING
i_pernr = lv_pernr
i_effective_date = lv_date
i_updation = 'X'
TABLES
T_ABSENCE_DATA =
t_return = lt_return_absence
Regards,
Srini.

Similar Messages

  • T582A Update Custom infotype information

    Hi experts,
       I created custom infotype but the table T582A does not have my custom infotype IT9009  data.
    please let me know T582A is update manually Using maintenance view or it updates while creating infotype .
    Please send your Suggestions.
    Thanks in advance.
    Regards,
    Sivakumar.A

    hi
         Table T582A  - is used for customer settings in Administration infotypes.
    the info type that u created is  for admistration  .
    Hope this will give u lead to solve ur problem
    Cheers
    Snehi

  • Creating / Updating Custom Infotype Records

    Hello everbody,
    We implement alot of custom HR infotypes in our system, both PA &  HRP.
    For the past several we have been using BDC (Batch-Input) recorded functions in order to update / create the records in our infotypes.
    We're currently facing an upcoming ECC upgrade , and I would like to lead a change that will eventually lead to us using generic SAP supplied functions.
    I've researched a few functions that might do the trick:
    RH_INSERT_INFTY:
    This one is giving me an SY-SUBRC 2 error code - Insert error, I tried to select a current record and insert it as different objid but this doesnt work.
    HR_INFOTYPE_OPERATION:
    I've read of several people that recommended using this function, but it is not released by SAP and I couldnt get it to work as well.
    BAPI_HRMASTER_SAVE_REPL_MULT:
    This one seems to work for sap infotypes but I dont think it suits custom infotypes.
    What is the "official" way of doing such operations?
    thanks in advance,
    Eli.

    Hello Dilak,
    Im currently trying to insert a new infotype record of infotype HRP9226.
    First I call function RH_GET_NEXT_NUMBER to get an objid.
    then I fill an HRP9226 line.
    after this i call the function:
    call function 'RH_INSERT_INFTY'
    exporting
    FCODE = 'INSE'
    vtask = 'S'
    ORDER_FLG = 'X'
    COMMIT_FLG = 'X'
    AUTHY = ' '
    PPPAR_IMP =
    OLD_TABNR = ' '
    REPID = ' '
    FORM = ' '
    KEEP_LUPD =
    WORKF_ACTV = 'X'
    tables
    innnn = hrp9226_line
    ILFCODE =
    EXCEPTIONS
    NO_AUTHORIZATION = 1
    ERROR_DURING_INSERT = 2
    REPID_FORM_INITIAL = 3
    CORR_EXIT = 4
    BEGDA_GREATER_ENDDA = 5
    OTHERS = 6
    I'm getting an "Error_During_Insert" and Im out of options regarding what I can possibly do.

  • Updating custom infotype with FM 'HR_INFOTYPE_OPERATION' dumps

    Hi All,
    While updating a custom infotype 9008 with FM 'HR_INFOTYPE_OPERATION', its giving adump.
    Except.  CX_HRPA_INVALID_PARAMETER.
    I am using DIALOG_MODE as '1'. when I enter a valid field value to that particular field ( mandatory field) on that infotype, it gives dump.
    Can you suggest something which will solve this?
    Thanks.
    Dipti.

    Hi,
    Here is the dump.
    Runtime Errors         UNCAUGHT_EXCEPTION
    Except.                CX_HRPA_INVALID_PARAMETER
    Date and Time          12.11.2008 07:23:32
    Short text
    An exception occurred that was not caught.
    What happened?
    The exception 'CX_HRPA_INVALID_PARAMETER' was raised, but it was not caught
    anywhere along
    the call hierarchy.
    Since exceptions represent error situations and this error was not
    adequately responded to, the running ABAP program
    'CL_HRPA_RESOLVE_EXCEPTION=====CP' has to be
    terminated.
    Error analysis
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_HRPA_INVALID_PARAMETER', was not
    caught in
    procedure "RESOLVE_EXCEPTION" "(FORM)", nor was it propagated by a RAISING
    clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    Invalid parameter EXCEPTION, value
    The occurrence of the exception is closely related to the occurrence of
    a previous exception "CX_HRPA_VIOLATED_PRECONDITION", which was raised in the
    program "CL_HRPA_MASTERDATA_FACTORY====CP",
    specifically in line 6 of the (include) program
    "CL_HRPA_MASTERDATA_FACTORY====CM004".
    The cause of the exception was:
    Precondition Violated
    Missing RAISING Clause in Interface
    Program                                 SAPFP50P
    Include                                 FP50PE10
    Row                                     2,152
    Module type                             (FORM)
    Module Name                             RESOLVE_EXCEPTION
    Trigger Location of Exception
    Program                                 CL_HRPA_RESOLVE_EXCEPTION=====CP
    Include                                 CL_HRPA_RESOLVE_EXCEPTION=====CM001
    Row                                     80
    Module type                             (METHOD)
    Module Name                             RESOLVE
    Source Code Extract
    Line
    SourceCde
    50
    message_handler = message_handler.
    51
    return.
    52
    53
    catch cx_sy_move_cast_error.
    54
    endtry.
    55
    END-OF-DEFINITION.
    56
    57
    58
    try_to resolve_missing_infty_data    cx_hrpa_missing_infty_data.
    59
    try_to resolve_missing_authorization cx_hrpa_missing_authorization.
    60
    try_to resolve_invalid_feature       cx_hrpa_invalid_feature.
    61
    try_to resolve_unexpected_message    cx_hrpa_unexpected_message.
    62
    try_to resolve_missing_personid      cx_hrpa_missing_personid.
    63
    try_to resolve_invalid_infotype_db   cx_hrpa_invalid_infotype_db.
    64
    try_to resolve_invalid_customization cx_hrpa_invalid_customization.
    65
    try_to resolve_inconsistent_database cx_hrpa_inconsistent_database.
    66
    67
    68
    Just to ensure the macro can be used nowhere else.
    69
    DEFINE try_to.
    70
    END-OF-DEFINITION.
    71
    72
    If we can not remap we would like to just re-raise the
    73
    exception like below like "RAISE EXCEPTION exception.".
    74
    Unfortunately the kernel will then forget about the
    75
    original source position.
    76
    77
    So this is the fallback strategy. Calling this method
    78
    is only allowed if the exception can be resolved. Since
    79
    this is not the case we indicate a parameter violation.
    >>>>>
    RAISE EXCEPTION TYPE cx_hrpa_invalid_parameter
    81
    EXPORTING
    82
    previous  = exception
    83
    parameter = 'EXCEPTION'.
    84
    85
    ENDMETHOD.
    Regards,
    Dipti.

  • Leave approved in Portal is not getting updated in Infotype 2001

    Hello,
    I am using the standard WF - WS12300111 for Leave Request in the Portal.
    The workflow is working fine in the portal; Manager could approve / reject the leave request in MSS and it is updating the portal Team calendar and ESS Employee Leave details.
    However the approved leave is not getting updated in the Absence infotype 2001 in the back-end system.
    Could you help ? 
    Kind Regards
    Desy

    Program (SE38) - RPTARQPOST has to be scheduled in order to update the status of leave requests and post to PA2001 after they have been approved.
    Is there any other way ?

  • Data not storing in Custom infotype build with tab strips

    Hi All,
    I have created one custom infotype 9030,
    With screen 2000.
    which is having tab strips, I have build the screens refering to p9030-zztest its not storing in database.
    where I am doing wrong...please let me know what should be done in this case.
    Regards
    Satish.v

    Hi,
    Checkout the below link :
    <link to blacklisted site removed by moderator>
    Shailaja Ainala.
    Edited by: Thomas Zloch on Jan 28, 2012 9:06 PM

  • Data not saving in Custom Infotype

    Dear Experts,
    I have created a custom infotype, 9003, for this I creates a structure ps9003.
    And I have to create a primary key field in my infotype, so I added a field in PA9003 as key field.
    Now this key field was not coming in the infotype screen, so I added it using screen painter.
    But now when I save the data the data is not saved in this key filed.
    Please Suggest.
    Warm Regards,
    Upendra Agrawal

    Hi
    As of my knowledge the primary key for the PA infotypes will be MANDT+PAKEY structure.  What is the need of adding the primary key.
    - While creating the custom infotype using PM01 screen will be automatically generated for the fields declared in PS structure
    - Screen Generation will wipe out the custom written on the fields so this is to be carefully handled.
    - if you added the field check logic in PAI & PBO
    - Check are you passing the data back to the infotye structure

  • Creating / updating Custom infotype with different screen

    Hi All,
    I have created custom infotype having different screen for different subtype(1,2).
    From Subtype 1, indotype is automatically updated as it is a standard program. But for subtype 2 i am using HR_INFOTYPE_OPERATION for updating the record which is ending with error, as employee which i am trying to update is already locked by me only through PA30. So this function module ends with Complex error. Please suggest how to update the infotype with subtype 2.
    Thanking you..
    Best regards
    Akshay

    Hi All,
    I have created custom infotype having different screen for different subtype(1,2).
    From Subtype 1, indotype is automatically updated as it is a standard program. But for subtype 2 i am using HR_INFOTYPE_OPERATION for updating the record which is ending with error, as employee which i am trying to update is already locked by me only through PA30. So this function module ends with Complex error. Please suggest how to update the infotype with subtype 2.
    Thanking you..
    Best regards
    Akshay

  • Record not appearing in custom infotype without selecting the period.

    Hi All,
    I have created a HR Custom Infotype for Medical Examination. Whenever i create a record for a particular employee and again i click on the Display button for the same employee, a message is diplayed "No data stored for Medical Examination details in the selected period". And when i select the ALL radio-button in the period selection area,only then the record is displayed. Why is it so that manually i need to select the ALL radiobutton to display the record? It is not so for other infotypes. Is there any solution for this, i mean can we change some settings to resolve this issue?
    Thanks in advance,
    Arpita Raizada.

    In PA20/30 we have period from and to dates on screen. If any date is entered on these screens then data from infotype is displayed based on these dates.
    If your record doesn't overlap/falls with these entered dates then system displays the message. Changes the period dates accordingly and system will display the records valid as of entered date.
    Regards,
    Ramnivas

  • Text fields are not displayed for custom infotypes in Adhoc query

    We have developed a custom infotype , which we had incldued in the adhoc query.  when we generate output , it is showng codes instead of text . In the output filed , it is hwoing only vaue and Vale and text is diabled.
    please let me know , how to add text in the out filed filed
    thanks
    rajaram B bhat

    HI
    But in the out put filed , when  i click on the output filed , i am get three drop downs , only text , only value and valu & text.
    Only value is enabled and other two ate disabled.
    How to enable the othet two , i.e text only and value & text
    thanks & regards
    Rajaram B Bhat

  • Logical database PNP not retrieving data for custom infotypes.

    Hi all,
    I am using logical database PNP in a program. I have declared infotypes as follows:
    INFOTYPES: 0001, 0002, 0041, 9801, 9840.
    The problem is that the logical database is retrieving data for the standard infotypes but not for the custom infotypes. Any explanation as to why data for custom infotypes is not being retireved and how this can be solved will be greatly appreciated.
    regards,
    Hamza

    solved

  • Person is already being processed by in while updating an infotype through

    Hi,
       I am trying to update custom infotypes through BDC based on status change of employee in infotype 0000 , while the BDC is executing I am getting an error message 'Person is already being processed by - ' What is this error and how to rectify it ?

    Hi!
    You can't call a transaction (with BDC) from inside a transaction (in a user-exit).
    The call transaction contains a commit work - and this would corrupt the transaction logic of the first transaction. Even if you call something which is not currently locked by the first transaction, you should not do this.
    Either make your updates after saving the first transaction or try to change values inside the first transaction in global data (internal tables / structures which will be saved by standard later).
    Regards,
    Christian

  • Adding field from Custom Infotype in Screen Header-PA30

    Hi all,
    Can we add the fields from custom infotype to the screen header in PA30? When I tried through Change Screen Modifications, I could not see the custom infotype in the Infotype column, so I could not select the required field.
    Please guide.
    Thanks in advance.

    Hi,
    When you take a drop down from the infotype column, you will see a window with infotypes. By default, it is restricted to 500 entries. To change that, click on the narrow bar under u201Crestrictionsu201D (has a downward arrow) and change the maximum number of hits to 999. You will then get all the infotypes including the custom ones.
    Hope this helps.
    Donnie

  • Custom Infotype In HR

    Hi All,
    plz send me detailed process in creating new custom infotype.
    Regards,
    Ashwin

    Hi,
    Check these,
    Tcode->PM01 is used to create a new custom infotype.
    If you want to create a letter from SAP after a transfer action, you need not create any custom infotype for this. Develop a Z-report & use LDB to fetch the data before & after the transfer action from IT0001. The data before transfer action will always be there in infotype 0001.
    http://www.sap-img.com/human/how-to-create-a-hr-infotype.htm
    Rewards points if helpful.
    Regards,
    Srinivas Ch

  • Create Custom Infotype and handle Modification/Updation

    Hi All,
    I need to create a custom infotype and handle few checks while creating/updating the existing one.
    I have gone through the existing threads and have figured out the creation part.
    Could anyone tell me where i need to code the checks while creating/updating.
    I tried editing the PBO/PAI of the Module pool program, but as its standard, is asking for access key. Do we need to code this in any userexit or implement BADI.
    For example,
    a) i need to check that only one instance of the infotype should be valid for an  
        employee at a time
    b) This infotype should be created for only Employees and not contingent workers.
    c) Few fields on the body section needs to be updated/modified.
    Thanks and Regards
    Manish.

    You can use the IN_UPDATE or AFTER_INPUT Methods of the BAdI HRPAD00INFTY to perform your validations.
    Arya

Maybe you are looking for

  • Unable to change the data in PSA

    Hello All, I have a delta failure because of invalid characters in one of the field and now i wanted to change the PSA. I have deleted the request from all data targets and started changing the error record, it is not showing all columns from PSA hen

  • Error message when opening document

    I need help with an error message that I am receiving.  I scan and upload a document to our customer's online program.  When I or anyone else goes to open and download the document, the following error message is received:  "There was an error openin

  • Lack of information in JMS based notification message

    Hello, I have configured Watch for server log and related JMS Message Notification. However, I get only a text like "MapMessage[ID:<589306.1276727319522.0>]" in the JMS message text. How can I get the original log message by that ID or the JMS messag

  • How do I sign an IPA coming from a third party developer with our Distribution Profile?

    We have an app developed from a third party developer. We then received his IPA file. Upon uploading the IPA using Application Loader, we are getting this error, We tried sending our Mobile Developer and Distribution Provisioning Profiles to him, but

  • Premier pro is very slow on my mac

    what are the requirements for a mac book to run premier pro smooth with out any problems in rendering on real time please help!