Reg : BDC issue while updating infotype 40 inside BADI class method

Hi Friends,
     Actually in my badi class, there is a method where i need to save the infotype fields including comment fields.. So with BDC recording i recorded screen fields and passing the pernr internal table values to recorded pernr values.. by doing this im getting error and so BDC is not upadting the data.. moreover if i pass directly pernr number within single quotes, BDC is working fine and data is getting updated..
bdc_field        'RP50G-PERNR'   pernr.  --> Error Message while calling transaction through BDC
bdc_field        'RP50G-PERNR'   '00001234'  ---> updating successfully..
1. Tell me whether the issue is with BADI or wat ? means we cant able to use BDC inside badi ?
2. I also tried changing my internal table value of pernr to type 'C' of length 8.. eventhough its showing error..
Please tell me what i need to do .... ?

Hi  Dilek Ersoz Adak ,
  I also tried with that, but getting same error..  Below is my error im getting while updating BDC through call transaction,
1     PA30     SAPMP50A     1000     E     K     PBAS_SERVICE     001     HRADMIN     EPPRELE 00000121     HRAdministrator          CTU     RP50G-PERNR
          Person is treated already by the HR Administrator

Similar Messages

  • Best Practice for Updating Infotype HRP1001 via Class / Methods

    I want to update an existing (custom) relationship between two positions.
    For example I want
    Position 1 S  = '50007200'
    Position 2 S =  '50007202'
    Relationship = 'AZCR'
    effective today through 99991231
    Is there a best practice or generally accepted way for doing this using classes/methods rather than RH_INSERT_INFTY ?
    If so, please supply an example.
    Thanks...
    ....Mike

    Hi Scott
    You can use a BAPI to do that.
    Check the following thread:
    BAPI to update characteristics in Material master?
    BR
    Caetano

  • BDC to update CAT2 transaction.one issue while updating CAT2 transaction

    Good Day Friends,
    i have one issue while updating CAT2 transaction,
    i have enhnced 3 custom fields in CAT2 tx-code. while updating through manually the data is getting stored in CATSDB tx-code for this i have done validation in enhamcement spots ECC 6.0.
    but when i am running bdc this custom field data is not updating in CATSDB table.
    my dout is will  BDC work for enhancement spots or not , also please suggest if you have any idea ?

    Hi,
    Usually I am trying to avoid BDC. So I would try to use BAPIs BAPI_CATIMESHEETMGR_INSERT and BAPI_CATIMESHEETMGR_CHANGE. Similar to other BAPIs, you can pass values for your extended fields using table EXTENSIONIN. It's described in BAPI's documentation or look for EXTENSIONIN on SDN. The principle is same for all BAPIs.
    Regards

  • Issues while creating implementation for BADI  "ME_PROCESS_PO_CUST"

    Hi Group,
    I have issues while creating implementation for  BADI "ME_PROCESS_PO_CUST".
    I tried to create implementation for the above mentioned BADI but, I was getting an error like this:
    "Interface implementation IF_EX_ME_PROCESS_PO_CUST does not exist".
    I want to implement this BADI and so, ideas/views at the earliest will be appreciated.
    Please let me know how to overcome this error.
    Thanks,
    Vishnu.

    Hi,
    Have you activated the class which is implementing the interface? (in transaction SE19 you should see class name)
    Best regards,
    Wojciech

  • Issue while updating field SCHZU (shift Premium) in table view  V_T508A

    Hi All,
    I am facing an issue while updating the field SCHZU(Shift premium) in Table view V_T508A.For some WSR entries when i am trying to update the shift premium say with a value 19400,the value is accepted.However for some other WSR entries,the value for shift premium gets modified to 19.400.Can someone please let me know why this error is occuring and how to rectify the same.
    Regards,
    Punam Jha

    usually its a percentage value. please check what value you enter

  • Issue while updating(Changing) quantity on line at quick sales order form

    Hi,
    I am facing a issue while changing quantity ordered on the order line in quick sales order form. (R12.1.3)
    Although the same logic works exactly as required in 11.5.9.
    There is a custom logic, post booking line status is Awaiting Shipping.
    Now when quantity is changed +(Saved), the status changes to a custom state but at the same time a new row is created with the same line id but different reservation id in the MTL_RESERVATIONS.
    The quantity here is the difference between the original quantity and the new entered quantity.
    And post completion of the custom logic the original row is updated, but being there a additional row the quantity reserved at the shipping tab comes wrong.
    Our requirement is of update which is happening but not the additional insert which is going into MTL_RESERVATIONS.
    The logic is perfect in 11.5.9 and no additional insert is being made.
    Kindly help and give some ideas for the possible reason the issue.
    Please ask for more information if required.
    Thanks,
    Vishal

    Hi Mahendra,
    I have gone through the note id that you have given. sorry to say that, that is refering to diffrent issue.
    Actually what i did is, At form header level, I have hide the fileds using the folder options. once after changes I have closed the form and re-opened it. by that time I can see that Button names got changed in bottom of the "Quick sales order form". Not sure how it become changed. there five buttons over the form, only two button names got changed.
    Kindly suggest any other options.

  • Issue while updating vacancy details through 'RH_UPDATE_DATABASE'

    Hi,
    i am trying to update the vacancy details through a Zprogram.
    This zprogram updates the infotype 1007 correctly which is done by:
    CALL FUNCTION 'RH_INSERT_INFTY'
        EXPORTING
          fcode               = 'INSE'
          vtask               = 'B'
        TABLES
          innnn               = lt_1007   " lt_1007 has all the values for updation.
    After this i am calling the fm :
      CALL FUNCTION 'RH_UPDATE_DATABASE'
          EXPORTING
            vtask     = 'S'
          EXCEPTIONS
            corr_exit = 1
    This updates the infotype 1007 in the database but the vacancy table T750X is not updated.
    However if i run the zprogram in foreground, this FM 'RH_UPDATE_DATABASE' updates infotype 1007 and also the table T750X. But in background mode only infotype 1007 is being updated and not T750X.
    Please let me know if any idea on how to solve this.
    Thanks.

    any inputs on this if any one had the same issue using 'RH_UPDATE_DATABASE'.

  • Issue while Updating a table having Unique Secondary Index

    Hi,
    I am trying to update a 'Z' table in which there are 5 fields comprising of primary key. Out of them 2 key fields are defined as a part of seconadry index with 'Unique' option selected.
    As per the requirement, I am trying to update the table using modify statement so whenever this statement occurs it will check the primary keys and accordingly try to m

    958572 wrote:
    Hi,
    We have observed the exception *'JDBC activity timed out while updating the table -Table1"* in our logs in prod environment.
    1)we verified the AWR report for that particular time and observed that one update statement was trying to update the table table1.
    its a simple update statement as below
    UPADTE TABLE1 SET COL1=VAL1,COL2=VAL2 WHERE ID1=VAL1 AND ID2=VAL2;
    there is a PK index on ID2 column.
    2)we also came to know that there were no locks on TABLE1 during this time.
    can some one please let me know what could be the possible reason for this kind of exception?
    ThanksOS/Networking mis-configuration.
    Oracle does not know or care about the type or flavor of remote client (JDBC, OCI, ODBC, etc).
    Oracle's default configuration contains no timeout.
    I suspect a FireWall setting.

  • Problem in Packages while compailing the code "bad class file"

    Hi,
    I wrote the code for encrypt the password in .java file and i used package also
    i'm importing that package and i'm compiling the .java file it throws the error like this.
    regi1.java:23: cannot access EncryptPassword
    bad class file: .\EncryptPassword.java
    file does not contain class EncryptPassword
    Please remove or make sure it appears in the correct subdirectory of the claspath
    EncryptPassword enc = new EncryptPassword();
                            ^
    1 error
    EncryptPassword.java
    package encrypt;
    import java.io.UnsupportedEncodingException;
    import java.security.MessageDigest;
    import java.security.NoSuchAlgorithmException;
    import sun.misc.BASE64Decoder;
    import sun.misc.BASE64Encoder;
    import sun.misc.CharacterEncoder;
    public class EncryptPassword  
         public EncryptPassword() { }
         public EncryptPassword instance;
         public String getEncrypt(String plaintext) throws Exception
         MessageDigest md = null;
         try
         md = MessageDigest.getInstance("SHA"); //step 2
         catch(NoSuchAlgorithmException e)
         throw new Exception(e.getMessage());
         try
         md.update(plaintext.getBytes("UTF-8")); //step 3
         catch(UnsupportedEncodingException e)
         throw new Exception(e.getMessage());
         byte raw[] = md.digest(); //step 4
         String hash = (new BASE64Encoder()).encode(raw); //step 5
         return hash; //step 6
         public EncryptPassword getInstance() //step 1
         if(instance == null)
         return new EncryptPassword();
         else
         return instance;
    }regi1.java
    import encrypt.*;
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class regi1 extends HttpServlet
         public regi1(){     }
          public void service(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse)
            throws ServletException, IOException
            java.io.PrintWriter printwriter = httpservletresponse.getWriter();
            HttpSession httpsession = httpservletrequest.getSession(true);
            httpservletresponse.setContentType("text/html");
            try
            {     EncryptPassword enc = new EncryptPassword();
                   String Email = httpservletrequest.getParameter("email");
                   String Password = httpservletrequest.getParameter("password");
    *--- some code for database connection---*
    String insQry1 =  "INSERT INTO register (Email, Pass);
    pStmt.setString(1,Email);
    pStmt.setString(2,enc.getEncrypt(Password));     
              catch( Exception exception)
                   exception.printStackTrace();           
                   System.out.println(exception);
              httpservletrequest.getRequestDispatcher("./FileSubmit.jsp").forward(httpservletrequest,httpservletresponse);
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Multipost: http://forum.java.sun.com/thread.jspa?threadID=5225097&tstart=0
    Please continue the thread there and don't multipost!
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • In update task option with class methods ??

    Hi,
    In my case, I have written a BADI and in it's method I will be updating a custom table. In the earlier approach I was updating the custom table in a function module which was invoked in update task as
    CALL FUNCTION 'Z_XXX'
          IN UPDATE TASK
         EXPORTING
    Do we have a similar update task concept w.r.t class methods ? So that whatever i have written in the FM I will copy into the method but that code must execute in update task !!
    thks

    Thanks Krishna, I too thought of the same initially but this looks like too many layers involved...
    BTW, I came across a document in SAP help,
    http://help.sap.com/saphelp_nw04/helpdata/EN/fa/f23c15330411d5992100508b6b8b11/content.htm
    Any idea on this ? Will this be of any help ?
    thks

  • Performance issue while updating the  custom  infotype records

    Hi All
    i have the info type with 80,000 records my requirement is to change the infotype wage type value to the  certain hard coded values .
    after populating the final internal table , in loop i am passing the records and updating the info type by using the hr_infotype_operation function module
    i have done the coding like bellow .
    loop at lt_infotype assigning     < x>
    at new pernr.
    bapi_employee_enquee
    endat.
    hr_infotype_operation
    at end of pernr .
    bapi_employee_dequee.
    endat.
    end loop.
    but it is taking nearly 15 hours to update all the records .please suggest me better solution for reducing the execution time .
    Thanks & Regards ,
    pramodh.m

    The delay problem can be solved with HR_INFOTYPE_OPERATION by using it with another FM i.e. HR_PSBUFFER_INITIALIZE the delay happens because of buffer problem. Use HR_PSBUFFER_INITIALIZE inside the loop just before you call HR_INFOTYPE_OPERATION and you wont see that much delay.

  • Updating infotype through BADI

    I need to update an 'Z'/ custom infotype without using BDC through BADI . How to do this ?

    Hi
    Try implementing BADI HRPAD00INFTY.
    Regards
    Shounak

  • Getting error while Updating Infotype 0377

    Hi All,
    I am using FM 'HR_ECM_INSERT_INFOTYPE' for updating data from an excel file in infotype 0377 but i am getting this error 'Entry   VSEL   does not exist in T5UBA (check entry)'. This is coming due to the foreign key validation on the fields BPLAN & LEVL1. So the records are not getting updated in the infotype. But when i am trying to create a record with same data manually through PA30 its getting created. Can you please tell me which FM is being used for infotype updation in PA30. If i use the same FM, may be my issue gets resolved.Thanks.
    Regards,
    Arpita.

    Please find the code below:
    CREATE OBJECT v_message_handler.
        CLEAR: v_is_ok.
        CALL FUNCTION 'HR_ECM_INITIALIZE_BUFFER'
          EXPORTING
            message_handler = v_message_handler.
        CALL FUNCTION 'HR_ECM_ENQUEUE_PERNR'
          EXPORTING
            pernr           = wa_p0377-pernr
            message_handler = v_message_handler
          IMPORTING
            is_ok           = v_is_ok.
        CLEAR v_error_mssg.
        IF v_is_ok IS INITIAL.
          PERFORM get_error_msg USING v_message_handler
                                      wa_p0377-pernr
                                CHANGING v_error_mssg.
          v_tot_err = v_tot_err + 1.
        ELSE.
    *      CALL FUNCTION 'HR_ECM_INSERT_INFOTYPE'
    *        EXPORTING
    *          pnnnn           = wa_p0377
    *          message_handler = v_message_handler
    *        IMPORTING
    *          is_ok           = v_is_ok.
    *      IF  v_is_ok IS INITIAL.
    *        PERFORM get_error_msg USING v_message_handler
    *                                    wa_p0377-pernr
    *                              CHANGING v_error_mssg.
    *        v_tot_err = v_tot_err + 1.
    *      ELSE.
    *        v_tot_suc = v_tot_suc + 1.
    *        CLEAR wa_error.
    *        wa_error-cnt = '1'.
    *        wa_error-pernr = wa_p0377-pernr.
    *        wa_error-desc = 'Data Successfully Uploaded'.
    *        APPEND wa_error TO i_error.
    *      ENDIF.
          CALL FUNCTION 'HR_INFOTYPE_OPERATION'
            EXPORTING
              infty            = '0377'
              number           = wa_p0377-pernr
    *         SUBTYPE          =
    *         OBJECTID         =
    *         LOCKINDICATOR    =
              validityend      = wa_p0377-endda
              validitybegin    = wa_p0377-begda
    *         RECORDNUMBER     =
              record           = wa_p0377
              operation        = 'INS'
    *         TCLAS            = 'A'
    *         DIALOG_MODE      = '0'
    *         NOCOMMIT         =
    *         VIEW_IDENTIFIER  =
    *         SECONDARY_RECORD =
            IMPORTING
              return           = v_return
              key              = wa_perdatakey
            EXCEPTIONS
              OTHERS           = 0.
          IF sy-subrc = 0.
            "Success
          ENDIF.
          IF v_error_mssg IS INITIAL.
            CALL FUNCTION 'HR_ECM_FLUSH_INFOTYPE'
              EXPORTING
                nocommit        = ' '
                message_handler = v_message_handler.
          ENDIF.
          CLEAR v_is_ok.
          CALL FUNCTION 'HR_ECM_DEQUEUE_PERNR'
            EXPORTING
              pernr           = wa_p0377-pernr
              message_handler = v_message_handler
            IMPORTING
              is_ok           = v_is_ok.
        ENDIF.
        CLEAR wa_p0377.
      ENDLOOP.
      FREE i_it0377.           "Clearing the internal table
    ENDFORM.                    " SELECT_UPLOAD_DATA
    Actually in this program i am fetching values from an excel file & updating them into IT0377.Yes the IT171 is maintained for those employees. CAn you please guide me as how to resolve this issue? If need more info, pls let me know.Thanks.

  • RunTime error DBIF_RSQL_INVALID_RSQL while updating infotype 0035

    Dear Experts,
    I am delimiting(changing the end date from future date to current date) the HR objects in IT 0035 using FM RH_CUT_INFTY. It is delimiting the records as per required.
    To do this update we have developed a report where we read the Object ID and the PERNR on the selection screen and inside the program we update IT35.
    The program executes in three steps:
    1. Lock HR Object
    2. Update(in synchronous mode) the records for the specified Object ID-PERNR pair using FM RH_CUT_INFTY
    3. Release HR object and go to next HR object and go back to step 1.
    The report is executing good when there are less number of records for an HR object. But, when the number of (PERNR)records for an HR object is more then the report is giving a po-up "Update was terminated" and when I checked the dump for the same in ST22, it gives the following details:
    Runtime Errors : DBIF_RSQL_INVALID_RSQL
    Exception         : CX_SY_OPEN_SQL_DB
    I would be grateful if anyone can please help me resolve this issue.
    Thanks,
    Jiten

    Hi Jiten,
    I don't know how much I can help you on this.
    But I found an FM: RH_CUT_INFTY_GENERIC
    This FM seems to be designed for mess process of CUT INFTY.
    I check the source code, the VTASK is set to 'B' when calling RH_CUT_INFTY in a loop.
        CALL FUNCTION 'RH_CUT_INFTY'
             EXPORTING
                  LOAD               = ' '
                  GDATE              = GDATE
                  HISTO              = HISTO
                  DEL_SUCC           = DEL_SUCC
                  VTASK              = 'B'
                  ORDER_FLG          = ORDER_FLG
                  COMMIT_FLG         = COMMIT_FLG
                  AUTHY              = AUTHY
              PPPAR_IMP          =
                  KEEP_LUPD          = KEEP_LUPD
                  WORKF_ACTV         = WORKF_ACTV
             TABLES
                  INNNN              = action_tab
               ILFCODE            =
             EXCEPTIONS
                  ERROR_DURING_CUT   = 1
                  NO_AUTHORIZATION   = 2
                  GDATE_BEFORE_BEGDA = 3
                  CUT_OF_TIMCO_ONE   = 4
                  CORR_EXIT          = 5
                  OTHERS             = 6.
    And when all the objects have been submitted to delimitation, call FM RH_UPDATE_DATABASE at last.
    I think this could be a workaround for your issue.
    Cheers,

  • Error while updating infotype using HINUINFO_UPDATE

    Hi All,
    While executing the program 'HINUINFO_UPDATE'
    i am getting an error 'No object identification permitted for infotype 0582, subtype LTA'.
    After the approval for LTA claim is done in ESS i have executed the program 'HINUINFO_UPDATE' to update he infotypes 15 and 582. Infotype 15 is getting created but while creating the infotype 582 system gives the above error message.
    In the detailed error log system gives the following message.
    "You attempted to access a data record with the object identification 1. However, according to the Customizing settings, object identifications cannot be used for subtype LTA of infotype 0582".
    Helpful answers will be rewarded .

    Solved by SAP

Maybe you are looking for

  • E-mails in HTM format: some are sent, some are not.

    Hi all, we're experiencing a very strange problem. We're creating emails in HTM format that are visible inside transaction SOST. Then when sending them, some of them are successfully sent and others are not. It seems that if depends on the lines of t

  • URGENT HELP for Ranges keyword

    hi guys,        Can any one tell me usage of keyword RANGES is recommended or it is OBSOLETE. AHMED

  • Queue in sxmb_moni?

    hi forum... i can see Queue ID...in the sxmb_moni.... during trouble shooting i encounter problem with the queue... can i get detailed information ... what queues are... are there outbound and inbound queues both.... why are queues sometime shows "ST

  • What's the best way to coordinate loading multiple modules.

    I have a number of resource modules that I'd like to load before loading my main UI module. I'm doing this now, but to make sure that everything loaded OK, I need to have a chain of Event.COMPLETE callbacks for every resource module load. In other (t

  • Work Status Settings "Controlled By"

    Hello, I have a problem in workStatus Settings because I cannot change the parameter ControlledBy in the first state of Work Status. I want to change the ContolledBy to "Mgr" but when I change and save the parameters assumes again the value "Both". D