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.

Similar Messages

  • 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

  • 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.

  • Custom infotype with table

    Hi Guyz,
    i have to create a custom infotype with a table in it.i have created the PS structure (PM01)with fields a,b,c,d,e. i gave the infotype charac, techn attr, activated the PA table and P structure . In the lay out editor i created a table and put the fields a, b and c. i dragged the input/output field on the table and then dragged the text fileds above them. when i check the layout i get the following error in the flow logic.
    Program MP988800 Screen 2000
    The field P9888-ZA is not assigned to a loop. "LOOP............ENDLOOP" must
    appear in "PBO" and "PAI"
    can anyone tell me how and where should i write the code for the table to get activated. Thanks a lot.

    HI Ranjeth,
      i have tried the code you provided. I am getting errors.can you please tell me what IT_TBCTRL_BEHAVIOR and IS_TBCTRL_BEHAVIOR are.
    i am getting the following errors.
    Statement CONTROLS is not defined.
    IS_TBCTRL_BEHAVIOR-CODETXT not defined
    IS_TBCTRL_BEHAVIOR-RATE not defined.
      i have replaced i_bc_tbctrl with the table name which i defined in the layout editor.  i have put your code in the flow logic. check the code below
    CONTROL: options TYPE TABLEVIEW USING SCREEN 2000.
    PROCESS BEFORE OUTPUT.
    LOOP AT IT_TBCTRL_BEHAVIOR
    INTO IS_TBCTRL_BEHAVIOR
    WITH CONTROL options
    CURSOR options-CURRENT_LINE.
    MODULE options_GET_LINES.
    ENDLOOP.
            general infotype-independent operations
      MODULE BEFORE_OUTPUT.
      CALL SUBSCREEN subscreen_empl   INCLUDING empl_prog empl_dynnr.
      CALL SUBSCREEN subscreen_header INCLUDING header_prog header_dynnr.
            infotype specific operations
      MODULE P9111.
      MODULE HIDDEN_DATA.
    PROCESS AFTER INPUT.
    LOOP AT IT_TBCTRL_BEHAVIOR.
    CHAIN.
    FIELD IS_TBCTRL_BEHAVIOR-CODETXT.
    FIELD IS_TBCTRL_BEHAVIOR-RATE.
    MODULE options_MODIFY ON CHAIN-REQUEST.
    ENDCHAIN.
    ENDLOOP.
    process exit commands
      MODULE EXIT AT EXIT-COMMAND.
            processing after input
            check and mark if there was any input: all fields that
            accept input HAVE TO BE listed here

  • Custom infotype with subtypes

    Hi Experts,
    I have a requirement to create a custom infotype with subtypes. I have maintained all the fields + 'zzsubty' field (to store subtype no. - of type subty) in PSnnnn and also maintained infotype characteristics and Technical attributes (all the standard steps). But, I want only some of the fields to be displayed depending on the subtype entered. By using the current method, I see all the fields I created in the structure irrespective of the subtype. So, is there anything else that I need to work on to make sure that only the fields I want to be displayed will be visible depending on the subtype? If I need to work on the module pool, could you please be descriptive as I am new to it.
    Thanks
    Sri

    Hello,
    Try using the user -exit EXIT_SAPFP50M_001 for ur requirement.
    Cheers,
    Manoj.

  • 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.

  • Custom Infotype with multiple long text fields

    Hi,
    We have a need to create a custom Infotype (in PA or PD) that will contain more than one long-text area.
    I've searched this forum and found that there are generally two approaches :
    1. use the HR clusters for long-text and setting the ITXEX field in PA
    2. using SAP standard text area (SO10) and functions such as READ_TEXT, SAVE_TEXT, etc.
    The problem with (1) is that it can only store one long-text.  We need to have many.  Please correct me if we can hold more than one long text in the cluster...?
    With regard to (2), I'm just not sure that this is the correct place to store the long text...?
    If I was to adopt option (2), could I just use the key of PA9nnn (ie: PAKEY) as the key/TDNAME for STXH?
    Are there any other methods to store long text?
    As well, is it possible to create a custom Infotype in PD?  Can we use PM01 to create PD infotypes?
    Thanks,
    Raj

    Raj
    Sorry I'm not much help on the two questions you have raised...you have probably already got answers by now anyway..however FYI check out link below for enhancing PD infotypes (use transaction PPCI).
    enhance infotypes

  • Updating Customs Declaration with CUS_INBOUND message

    We are attempting to update a Customs Declaration with a CUS_INBOUND message.  We can successfully update the ITN number from the header but cannot update anything from the lower level segments such as container #, seal #, BOL #, dates, etc.  These values are in the HDOC and TRAR segments. Any ideas on what is causing this?

    Hi Patty,
    Field CUMES in the iDoc holds the Technical Message Type.  The corresponding field in GTS is EMESS, and table /SAPSLL/TLEACM holds the Message definitions.  If you have 'CSFR' in the CUMES field, then we're probably talking about the I1560 Message Type - the US "Commodity Shipment Filing response".  Does that sound right?
    Provided the "Document Update" flag is set in that /SAPSLL/TLEACM entry, Form US_CSFR_DATA_MAP should run in program /SAPSLL/LCUHD_PPF_INTACTF12 during the iDoc processing.  But as you can see, only the LEGCOM entry gets created there - there is no code to deal with the Container Number.
    If you think that's a serious omission, then perhaps you need to create an OSS incident?
    Regards,
    Dave

  • 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

  • Updating custom table with PU12

    Hi Experts,
    I need to update the custom table with PU12. Please let me know if this is possible with PU12.
    I have used the PU12 only to retrieve the data from database and have sent the data to application server.
    Thanks
    Rashmi

    Hi
    Can you please let me know how to  update the custom table with PU12.
    Can you please let me know the User exit you have used.
    Thanks in advance.
    Regards,
    Kiran.

  • Custom infotype with payslip data

    Hi,
    How to display the fields from custom infotype in HR forms. we have created a infotype P9030 from which I have to display the shift details of employees in payslip.
    How I will bring the custom infotype fields in the display. We are using international payroll run T.code PC00_M99_CEDT.
    Regards,
    Karthik.k

    Can anybody help.?

  • Updating OM infotype with blank values

    Hi All
    We have a custom field included in one of the standard infotypes using a CI include.
    When I try to update blank the values in the infotype using transaction PP01, I get the error 'A record without data cannot be saved'.
    the custom field is a char field of length one which can hold either 'X' or blank. Now when I dont update any of the standard fields and set the custom field to blank I get this error.
    Is there any way to over come this error? Any advice?
    Thanks

    Sounds like the field definition is not correct. Please can you post here a screenshot of the Domain for this field i.e. the value range tab.

  • Need urgent help -update customer account with out stock(Reserve Invoice)

    hi
    when we creating an invoice ,it will update both customer account and
    invetory account. i need only customer account. how can do with this function using oInvoice buisness object and oinvoices lines. i am using
    C#
    Thanks
    Edited by: sap_beginer on May 1, 2008 2:55 PM

    Its same as I wrote you in other thread, use service type of invoice as
    .DocType = SAPbobsCOM.BoDocumentTypes.dDocument_Service
    Petr

  • Update 2 Infotypes with File-- XI-- Idoc

    Hi all,
    I need to design an interface where XI picks up an inbound flatfile (csv). For each Infotype 2 update scenarios are possible based upon certain values in the ff. In total there are 4 update scenarios (2 for each IT).
    I'm pretty new to XI and need some guidance on how to tackle this.
    I've read that for updates to 2 seperate IT one need to use 2 idocs. One for each IT.
    Once the idocs are created, is the use of FM HR_INFOTYPE_OPERATION the way to go ??
    Much appreciated...
    John

    Hi John,
    First of all decide the Idoc structure. Based on that you need to go further.
    For each IT if you want to update, it is not required to have 2 idocs of <b>same type</b>. You can execute these logic in the mapping.
    <i>Once the idocs are created, is the use of FM HR_INFOTYPE_OPERATION the way to go ??</i>
    >>>XI can populate the data into Idoc Structure. Remaining functionality/posting should be taken care in the Idoc processing logic in the Application system.( i.e to execute FM/Validation etc)
    For File to Idoc scenario-
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/877c0d53-0801-0010-3bb0-e38d5ecd352c
    Hope this helps
    Regards,
    Moorthy

  • ABAP HR How to create infotype with table control in it like Infotype 0008

    Hi Experts.
    I need help from u guys. My client requirement is to create custom infotype just like 0008 infotype which contain table control to save amount and wage types. I try to create infotype with table control using PM01, but that table control is in display mode only, i almost search every where to create custom infotype with table control but what ever threads in forum all are they unanswered and most of the threads for creating infotype. But i already done with infotype , but my main problem is table control.
    If any one have some suggestion for this please share with me.
    <removed by moderator> i am looking for positive reply.
    Edited by: Thomas Zloch on Aug 30, 2011 12:54 PM

    Hi
    I've created several infotypes with a Table Control and it is always the same story. You have to create a custom Z table to store the Table Control data (if you can have unlimited records), so in the PSXXXX structure you need to add a TABNR field to link the PAXXXX table and the Z one, just like the type table OM infotypes.
    Then in your code you have to control every possible operation, INS, MOD, DEL... and update the Z table accordingly (the standard code won't do that)
    If your TC fields appear in display mode, take a look at the Groups 1 and 3 in your fields, the must be set with the usual values for a PA infotype.
    If you have more questions, just ask,
    Regards

Maybe you are looking for

  • How can I delete the list of watched videos on my iPad?

    I have been watching videos on my ipad through the iTunes "home sharing" feature. It seems to work fine. My problem is that I can't figure out how to delete the list (on the iPad) of videos that have been watched. Not only have I watched them but I h

  • HI GURUS REG CUSTOMER ACCOUNT GROUP

    hi, in cust account group 0001-sold to party, for Terms of Payment field , there r two different entries would be maintained in customer master . one in company code data and other is in sales area data billing pl tell me which is the entry where sys

  • Nullpointer in 'weblogic.transaction.internal.CoordinatorImpl

              I am using Weblogic 6.1 SP4 on JDK 1.3.1 on AIX.           My server has a transacted EJB which accesses Oracle and DB2 databases. I have           been running my application for several months.           Suddenly, yesterday it starting sp

  • Windows 8 slow on MBP Retina 15

    i just got MBP retina 15 and installed windiws 7 pro on it via bootcamp and win was running smoothly. I then upgraded to windiws 8 pro and it stucks/freezes frequently like if i make a new folder or sometimes oopen ny location like c drive or my docu

  • USB on ibook G4

    I bought my ibook G4 in May, and I am not sure if it has usb 1 or USB 2.0. Does anyone know when they started putting 2.0 on the ibook or how I can find out what I have? (it doesn't mention what version I have in my system profile). thanks!