Error message return in RH_INSERT_INFTY

Do you have any idea on how to return error messages from FM RH_INSERT_INFTY? im looking for something similar to HR_INFOTYPE_OPERATION bapi return 2.

Just handling its Exceptions should be enough as it does not have any RETURN tables like the other ones. This is how I did it sometimes ago, you might find it helpful to refer to the below code.
FORM update_pd_infty  USING    pt_old_pnnnn TYPE piq_p1001_t
                               ps_new_pnnnn TYPE p1001
                      CHANGING pv_ok        TYPE boole_d.
  DATA:
    wplog_record       TYPE wplog,
    wplog_record_tab   TYPE wplog_tab.
  FIELD-SYMBOLS:
    <ls_old_pnnnn>     TYPE p1001.
* check the old & new infotype records are not passed blank
  CHECK:
     pt_old_pnnnn IS NOT INITIAL,
     ps_new_pnnnn IS NOT INITIAL.
* convert the Old PNNNN structure to WPLOG structure
  LOOP AT pt_old_pnnnn ASSIGNING <ls_old_pnnnn>.
    CALL METHOD cl_hrrcf_infotype=>pnnnn_to_wplog
      EXPORTING
        pnnnn = <ls_old_pnnnn>
      IMPORTING
        wplog = wplog_record.
    APPEND wplog_record TO wplog_record_tab.
  ENDLOOP.
* delete the existing records (at buffer level only at this stage)
  CALL FUNCTION 'RH_DELETE_INFTY'
    EXPORTING
      vtask               = 'B'
      authy               = abap_false
    TABLES
      innnn               = wplog_record_tab
    EXCEPTIONS
      error_during_delete = 1
      no_authorization    = 2
      delete_first_record = 3
      corr_exit           = 4
      OTHERS              = 5.
  IF sy-subrc <> 0.
    RETURN.
  ENDIF.
  CLEAR:
    wplog_record,
    wplog_record_tab.
* convert the New PNNNN structure to WPLOG structure
  CALL METHOD cl_hrrcf_infotype=>pnnnn_to_wplog
    EXPORTING
      pnnnn = ps_new_pnnnn
    IMPORTING
      wplog = wplog_record.
  APPEND wplog_record TO wplog_record_tab.
* insert/create the new record (at buffer level only at this stage)
  CALL FUNCTION 'RH_INSERT_INFTY'
    EXPORTING
      vtask               = 'B'
      authy               = abap_false
    TABLES
      innnn               = wplog_record_tab
    EXCEPTIONS
      no_authorization    = 1
      error_during_insert = 2
      repid_form_initial  = 3
      corr_exit           = 4
      begda_greater_endda = 5
      OTHERS              = 6.
  IF sy-subrc <> 0.
    RETURN.
  ENDIF.
* update the database now for all buffer changes above
  CALL FUNCTION 'RH_UPDATE_DATABASE'
    EXPORTING
      vtask     = 'D'
    EXCEPTIONS
      corr_exit = 1
      OTHERS    = 2.
  IF sy-subrc <> 0.
    RETURN.
  ENDIF.
  pv_ok = abap_true.
ENDFORM.                    " UPDATE_PD_INFTY
Hope this helps.
Cheers,
Sougata.

Similar Messages

  • Display of Error messages returned in BAPI in the logon language?

    Hi Experts ,
                          I  have a requirement where in I need to display the error messages returned in the return table of BAPI_BILLINGDOC_CREATEMULTIPLE in the logon language..Is there any function module to convert text in the return table to the logon language?..Any pointers on achieving this functionality would be of great help..Thankz in advance

    >
    Shawn Sunny wrote:
    > Hi Experts ,
    >                       I  have a requirement where in I need to display the error messages returned in the return table of BAPI_BILLINGDOC_CREATEMULTIPLE in the logon language..Is there any function module to convert text in the return table to the logon language?..Any pointers on achieving this functionality would be of great help..Thankz in advance
    Hello Shawn,
    Messages are always displayed in the logon language so what's the big deal in it?
    May be the translation is not maintained for this message in the logon language, hence the issue.
    You maintain the translation from SE91.
    Get the message details from the RETURN table --> Trxn SE91 --> Select the Message to translate --> From the menu bar : Goto --> Translation
    BR,
    Suhas

  • Desktop apps: Report Builder 3.0 (x86) that does not let me allow query result which I created Customers Report. Here is the error message returns.:

    Desktop apps: Report Builder 3.0 (x86) that does not let me allow query result which I created Customers Report. Here is the error message returns as following.
    Database query from: AdventureWorks2014
    System.Web.Services.Protocols.SoapException: The permissions granted to user 'SQLServer2014\Mubs' are insufficient for performing this operation. ---> Microsoft.ReportingServices.Diagnostics.Utilities.AccessDeniedException: The permissions granted to
    user 'mujb-HP\mujb' are insufficient for performing this operation.
       at Microsoft.ReportingServices.Library.ReportingService2010Impl.CreateReportEditSession(String Report, String Parent, Byte[] Definition, String& EditSessionID, Warning[]& Warnings)
       at Microsoft.ReportingServices.WebServer.ReportingService2010.CreateReportEditSession(String Report, String Parent, Byte[] Definition, String& EditSessionID, Warning[]& Warnings)
    The permissions granted to user 'mujb-HP\mujb' are insufficient for performing this operation.
    Is there anybody help me out, pl
    My MSSQL Server express 2014 edition x64  and My desktop "Report Builder (RB) 3.0' is 32bit (x86).
    Does Report Builder x64 exist? I didn't see anywhere so I downloaded x86 RB

    Hi mujb,
    Per my understanding you are using the report builder 3.0 to design the report and when you click the query designer button to execute the query you got the error message above, right?
    I have tested on my local envornment and your issue can be caused by the user "SQLServer2014\Mubs"  and "mujb-HP\mujb"  haven't grant permission to the report server or the shared dataeource/dataset if you have used this.
    I would like to confirm if you have assigned both the Item-Level and System-Level role of the user above to sucessfully access the report server, If you haven't grant any access to the above user and when you connect to the report server in the report builder,
    you may got the error message:
    More details information below for your reference:
    Please execute the query in the microsoft SQL Server Management Studio to see if you have permission to execute the query.
    If the query works fine in step1, please run the report builder as Administrator and if you are using the shared datasource/dataset the issue can be cause by the you haven't grant access the share datasource, Double click to open the Datasource
    and click the "Test Connection" as below to test if it can connect successfully:
    If the "Test Connection" failed, please click the shared datasource/dataset on Report Server to check if you have grant correct permission.
    Related information about the grant permission to report server for your reference:
    https://msdn.microsoft.com/en-us/library/ms156034.aspx
    http://www.allenkinsel.com/archive/2013/01/adventures-in-ssrs/
    If your issue still exists, please try to provide more details information.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Tried sending via a list (contains my own address twice), send folder is updated, no email returned, no error messages returned

    T'bird 32.1.0.
    I send a newsletter each week to 3 different mailing lists. (my own address is on first list.)
    Today I got no error messages. Sent folder contained confirmation copies. No one received a copy.
    I created a new list, 2 entries - both my name - sent. No errors. No e-mail message sent.
    Suggestions?

    You don't need to use, and shouldn't be using Bcc: in mail merge. Each message is addressed to just one recipient. Since that message is uniquely addressed there's no point or value in hiding the addressees. So you just use To:. Your CSV file attempt sounds better suited, but it can be very picky about the CSV file structure, using quote marks to include spaces and so on.
    I don't have any real use for mail merge myself so can't speak for its usefulness or performance. When I have tried even small mailings to just a few of my own email addresses, it seemed a bit fragile and prone to stopping and getting stuck, leaving you with no clear idea of which messages had been sent and which needed to be attempted again.
    The mail merge built into the open office/libre office suites seems to work rather better.

  • Error message "iTunes has detected an iPod that appears to be corrupted"

    Everything used to work just fine until recently. On my Windows XP Home SP3 laptop, with iTunes (version 9.0.2.25) already open, I connect my 5th Generation iPod Nano and get the following message in iTunes:
    "iTunes has detected an iPod that appears to be corrupted. You may need to restore this iPod before it can be used with iTunes. You may also try disconnecting and reconnecting the iPod."
    If I plug the iPod into the computer without first starting iTunes, the Windows ‘Auto Play’ message comes up immediately then disappears and then the following message appears:
    "Your iPod needs to be formatted for use with Windows. Would you like to run iTunes to restore your iPod Now?"
    Otherwise, the iPod functions normally when not connected in iTunes. I can play the music, videos, and record videos with no problems.
    The troubleshooting steps I took were:
    I performed a reset of the Nano by first sliding the hold switch on/off a few cycles, leaving switch off (no orange showing), then pressed and held the Menu + Select button until the Apple logo appeared. Then I tried it in iTunes again; no such luck, same error. I then did a reset again, this time with the iPod connected to an AC power source; still no luck. I tried the reset numerous times and it didn’t help.
    Next, I ran the diagnostics by pressing and holding the Menu + Select buttons immediately followed by the Select + Reverse buttons. I stepped through all the diagnostics tests and all tests passed as far as I could tell (there was no errors reported).
    After this, I tried it in iTunes again and still no luck.
    I even tried the iPod on my Windows Vista Home Premium (32 bit) machine and it behaved the same way. The version of iTunes on that machine was at an earlier version when I first tried it there. I then upgraded iTunes to the latest version but that didn’t help either.
    I can sync my iPod Touch and 2nd gen Nano without any problems.
    Sorry about be long winded about this but I am wondering if anyone else may have other suggestions. I want to try and avoid a restore if possible because I have some videos I recorded that I would like to get off the iPod. I’m not concerned about my music files as I have them always backed up but didn’t get the videos off yet.

    I am having this same problem with my brand new Mac Pro. It seems to be tied to the computer awaking from sleep (no I am not leaving the iPod connected while sleep... I am referring to waking the computer from sleep and then connecting iPod as opposed to restarting the computer and then connecting the iPod). In other words, if you are getting this error message, try ejecting the iPod, restart your computer, then connect the iPod and see if the error message goes away. For me it does, but I only get one shot at it, if I eject the iPod and then reconnect it, the error message returns. This happens on both iPods I have. I have rebooted (hold menu-select) and gone to disc mode (hold select-play) and the error message remains. The only way it goes away is to reboot the computer, then I get one shot at hooking up an iPod.
    I NEVER had nor get this error message when I connect to the Windows PC that I started with. Perhaps the iPod does not like moving from PC to Mac?

  • Validation error message is not displayed for an attribute as an Input List Of Value

    Hi everyone,
    I use jdev 11.1.1.7.0
    In my application I've created an Entity Obj and a View Obj base Employees table.
    for the JobId attribute I've taken actions as listed below:
    1. in Employees EO I've created a validation for this attribute and in some cases an error message returns (the error message is "the salary is not high"):
         * Validation method for JobId.
        public boolean validateJobId(String jobid) {
            if (...) {
                return false;
            if (...) {
                return false;
            if (...) {
                return false;
            return true;
    2. in Employees VO  I've created a LOV for this attribute (the view accessor is JobsViewObj ) and I display the attribute as an Input Text with List Of Values.
    in jspx page I drag& drop this attribute as below:
              <af:inputListOfValues id="jobIdId"
                                    popupTitle="Search and Select: #{bindings.JobId.hints.label}"
                                    value="#{bindings.JobId.inputValue}"
                                    label="#{bindings.JobId.hints.label}"
                                    model="#{bindings.JobId.listOfValuesModel}"
                                    required="#{bindings.JobId.hints.mandatory}"
                                    columns="#{bindings.JobId.hints.displayWidth}"
                                    shortDesc="#{bindings.JobId.hints.tooltip}"
                                    autoSubmit="true">
                <f:validator binding="#{bindings.JobId.validator}"/>
              </af:inputListOfValues>
    I open the Popup and I select a row from the Popup list and then I click Ok. After that if the validation method(validateJobId) returns false, the error message("the salary is not high") must be show to the user. but the error message doesn't display. I don't understand why this happens.
    Can anybody guide me about this problem?
    Regards
    Habib

    yes, you're right, I've tested it in 12.1.3 and error message was displayed.
    it seems it's a bug(bad bug ) in both 11.1.1.7 and 12.1.2. and now what can I do? is there any way to display the the error message?
    Regards
    Habib

  • ORA-12705 Error Message while trying to connect to the DB

    A colleague of mine has been trying to connect to the DB through PL/SQL Developer. The error message returned is :
    ORA-12705: invalid or unknown NLS parameter value specified
    Checked the registry for NLS_LANG which is set to NA. I did that because the ORA message references the NLS_LANG parameter. However, I doubt that is the problem. Went about to create a new TNS Name entry through Oracle NET Manager and get the same Error Message while performing the TEST function.
    Any clues ? I am clueless at this point.

    This can occur with any NLS_ environment variable of registry value.
    Your assertion ' the ORA message references the NLS_LANG parameter' is incorrect.
    You can set NLS_TERRITORY, NLS_DATE_FORMAT etc, etc, etc.
    The order of precedence is environment variable, registry, Oracle provided default.
    To find out what is going on set every NLS related environment variable to the empty string.
    In sqlplus
    select * from v$nls_valid_values
    will show you what can be set,
    This error will also occur when you installed the software with English as the only language.
    SQL developer doesn't use tnsnames.ora
    The new tnsname entry has nothing to do with it.
    You have an incorrect environment variable or registry value somewhere
    (in HKLM\software\oracle)
    Sybrand Bakker
    Senior Oracle DBA

  • Error message -48: The itunes library file cannot be saved.

    Hello,
    When I open up my itunes i get an error message 48 - the itunes library file cannot be saved. All my data is there - music, podcasts etc. Just wondering if this error message means anything, if so what, and what I can do to fix it?
    Thanks!

    I just called Apple Support and I think they helped me, but I'm still waiting to see if the error message returns. I was experiencing the same problem. Whenever I started iTunes, I would get the -48 error message. Everything else was working fine. Apple Support instructed me to delete some files from a folder and restart my pc. I did this and it seems to have worked. The folder is on my C:/ drive. Using Windows Explorer, I went to my C:/ drive and then opened the following folders in this order: "Documents and Settings", "Administrator", "Application Data", "Apple Computer", "iTunes", "iPod Software Updates". Inside the iPod Software Updates folder, I found four files which I deleted. I then emptied my trash can and restarted my pc. After I restarted my pc and opened iTunes, the error message did not come up. So it looks like my problem has been solved. Just some minor glitch having to do with the last update. I should mention that I did just get an iPod Classic 80 gig which replaced my 30 gig iPod Photo which just died.

  • Errors with french error messages in XML validation

    Hi,
    I am getting errors in the french error messages which are generated when parsing an XML document and validating against an xml schema. I am using the SAX parser and I set the locale of the parser with the following code:
    parser.setLocale(new Locale("fr", "CA"));
    However, when I get error messages returned they look like this:
    (Erreur) Texte '1fg2' non valide dans liliment : '{1}'
    As you can see, liliment should be l'iliment and '{1}' should be the tag name where the error occured.
    Am I doing something wrong? Any suggestions?
    Thanks
    Chad

    I am not sure if you want something like highlighting the components which have errors -
    If yes , then try this code bit
    public void addMessage(UIComponent component, FacesMessage.Severity type,
    String message) {
    FacesContext fctx = FacesContext.getCurrentInstance();
    FacesMessage fm = new FacesMessage(type, message, null);
    fctx.addMessage(component.getClientId(fctx), fm);
    You can call the method like this addMessage(this.componentName,FacesMessage.SEVERITY_ERROR,ErroMessage)
    -Sudipto

  • Unable to retreive the fault message returned by web service

    Hi,
    We are working on Proxy to SOAP synchronous scenario. The WSDL provided by the third party has 3 messages - 1. for request structure, 2. response structure and 3. Error message to track the exceptions, if any.  The interface working fine for positive test cases but we are facing issues when trying to capture the error message returned by the web service.
    We have configured the error message(provided in WSDL) as fault message in our Inbound interface. In the outbound interface, we have configured standard Fault message type provided by XI. we have mapped the two structure.
    Now when error is returned by the web service, we are able to see the blank response structure in the payload in MONI in XI. Also the SOAP Error Message structure is there in XI.
    But when we trying to retrieve the same in our proxy, it is giving the blank structure.
    Please help how to get the error message returned by the web service in proxy....
    Please help..
    Thanks in advance.

    >>>I am getting the error message as the fault message, in the response from the web service.
    >>>Now I want to forward the same message to SAP R/3 system. For this I have configured the standard fault message in the >>>outbound interface and have mapped the same with the web service error message. So if I am not wrong, the transformed >>>>structure according to the rules in message mapping should be sent to SAP R/3 system. But I am unable to see the result >>>>of this mapping in XI MONI. Neither is this passed to Client proxy.
    You are consuming the third party webservice. Third party webservice WSDL has request, response and fault message. if the third party application logic capture the exception and pass the response as fault mesg, then the above specified target fault mesg mapping with your Standard fault message mapping will be sent to sender or client proxy.
    Suggestions:
    Having fault message in WSDL does not mean that target system sends fault message during application exception. Check in the SXMB_MONI whether your response during exception is occuring in the fault message structure publised as WSDL. If not then doing mapping will not help. It gives only blank.
    If you notice response in fault message structure from third party in SXMB_MONI, then you need to check that at the client proxy side, are you handling/done coding for fault message methods similar to response strucutre for capturing data.
    Hope that helps.

  • Different error messages from different env while fetching ref cursor

    Hi<br>
    I have a package where i need to call one of the procedure.I this <br>
    procedure i am returning a refcursor as out parameter.Before returning refcursor i <br>
    am doing i am checking a condition if it is satisfied then I am saying return or else<br>
    it will proceed and refcursor is assigned for out parameter.So i am speakig about <br>
    the condition where i am exiting from procedure before refcursor parameter is <br>
    assigned .And later i am tring to fetch from that cursor .So i am getting different <br>
    kinds of errors which i described as follows <br>
    <br>
    <br>
    So If execute that procedure from sqlplus uing <br>
    <br>
    <br>
    var m ref cursor<br>
    DECLARE<br>
    Y NUMBER;<br>
    Z NUMBER;<br>
    A NUMBER;<br>
    BEGIN<br>
    A:=campa.dtl_inq(2,100070875,'R',Y,Z,:M);<br>
    END;<br>
    <br>
    Then if say<br>
    Print m<br>
    It gives <br>
    <br>
    ORA-24338: statement handle not executed<br>
    <br>
    And if i execute this using vb application <br>
    <br>
    I am getting following error <br>
    <br>
    ORA-01023: Cursor context not found (Invalid cursor number)<br>
    <br>
    So i am serching the reason for different errors<br>
    <br>
    Regards<br>
    vamsi krishna<br>

    The error depends on exactly what OCI calls the client software makes in accessing this invalid (null) ref cursor variable.
    It would seem that SQL*Plus makes different calls than what your code and Visual Basic does - thus the different error messages returned by the two applications.

  • [SOLVED] Question about GCC error messages.

    I'm currently taking a course in C programming, and I have  a question about the error messages returned by GCC.
    When ever i try to compile a program containing syntax errors, i get cryptic and not very helpfull error messages.
    If i try to compile:
    #include <stdio.h>
    int main(void)
    int i;
    i = 0
    return 0;
    I get following from GCC:
    error.c: In function â:
    error.c:8:2: error: expected â before â
    But shouldn't the message be something like:
    error.c: In function 'main':
    error.c:8:2: error: expected ; before 'return'
    or am I mistaken?
    /AcId
    Last edited by AcId (2010-10-13 17:48:19)

    Woah. That is very strange. I've never seen that before.
    I assume you're using Arch Linux. What text editor did you use to write the code? Which terminal application are you using?
    ...those questions are probably unrelated to the problem, but we might as well get them out of the way.

  • Bapi error messages, explainations

    Hi All,
    I am working on implementing a Bapi and we are getting a number of different error message returned. for instance one code we are getting is 'SAP Error Code #E-M8-074' = 'Quantity entered larger than quantity to be debited'
    but we can post the voucher manually when we enter the data in the system.
    what is the best way to trouble shoot this issue?
    looking forward to hearing back from you.
    thank you for your time.

    I assume you have read the long text for this message.
    From the long text it appears you are trying to post a subsequent debit or credit.  Is that correct?
    If so, has an invoice been posted for this purchase order?  You cannot post a subsequent debit/credit without at least one invoice posting.
    If an invoice has been posted what was the invoice quantity?  The error is occurring because you are trying to post the invoice against a quantity great than the invoice quantity.

  • I've only had my iphone 5s for a week. I keep getting an error message of "Server has stopped responding."  I need the server to work. Does anyone know if there is a "fix" for the problem? Other wise, I probably best return for a refund and get a Samsung.

    I've only had my iphone 5s for a week. I keep getting an error message of "Server has stopped responding."  I need the server to work. Does anyone know if there is a "fix" for the problem? Other wise, I probably best return for a refund and get a Samsung.  Thanks

    sandyzotz wrote:
    Other wise, I probably best return for a refund and get a Samsung.
    Unlikely.  Based on the complete lack of detail of the issue provided it is entirely possible the same issue would occur.
    Unless and until the user provides some actual details of the problem, there is nothing the indicate that the issue is with the iPhone.

  • After upgrading to Lion the bookmarks in Preview returns error message.

    After upgrading to Lion the bookmarks in Preview returns error message : The File "****" couldn't be opened because you don't have permission to view it. To change the perimssion, select the item in finder and Choose File info.  I have bookmarked plenty of files in Preview.  How to overcome this error message???

    Doesn't work Steve. I think it is an issue with Preview being sandboxed (check the sandbox column in Activity Monitor: Preview = Yes). Sandboxed apps restrict file access to those the user has explicitly selected. My theory is that this causes the unfortunate side effect of bookmarked or linked PDFs not working. A simple test: open a file with bookmarks, manually open the bookmarked file and then select the bookmark in the first file - it should open with no complaints about permissions (which leads to a weak workaround: open all the PDFs you intend to work with!).

Maybe you are looking for

  • I need to run the job  every 8th of the month

    Hello, Can you please help me out to run the oracle job every 8th of the month. Thanks in advace Kind reagrds, Nick

  • About pyment terms

    Hi experts, Actually our company maintain payment term like Net due date is 30, with in 15 days 2% cash discount. we define this payment term for this and assign it to vendor master record. And we post one invoice on 02/02/2012 with this payment term

  • Solaris 10 Update 5 availability question

    Did I miss the release of Update 5? I see it mentioned in docs.sun.com, but not in downloads. Or does anyone have availability date for it? It seems overdue timewise.

  • Why are extra pages opening behind my emails

    I get 3 extra pages behind my emails and I cannot determine why. The initial email is okay, but if there is something I have to click on in the email these pages open. They are blank and continuance of their page names includes the words 'Not Availab

  • Upload serial numbers for an existing item

    Hi, I'm having some problems trying to upload 880 serial numbers using DTW. Basically, we have created a purchase order for these 880 items under a similar item code. I am managing this item using a serial number on every transaction in SBO. I have b