Custom infotype- Infotypes statement

I am getting error when I declare custom infotype in "INFOTYPES" statement in my program, pl advise what attributes are misssing

hi Nagarjuna,
  the statement INFOTYPES can be declared if your porgram use an  LDB.
If you need a table entry from a custom infotype you should use a code like this:
data: lw_custom_infotype type P9XXX .
hope this is helpfull
regards .

Similar Messages

  • Custom infotype field data in Rem. Statement

    Hi,
    I am trying to display a date in the Rem statement from a field
    in custom infotype.Have given the table and the field and pulled
    the same into the Remu. statement with conversion being Date
    formatting.But the date is not reflecting in the slip.
    Request suggestions on the same.
    REgards
    Madhavi

    Hi,
    You can try the same through custom program.
    When you call the smart form you can pass the date in the data table and display it through payslip.
    Thanks,
    Sutapa.

  • Custom Infotype length limitation

    Hi,
    I have a requirement to create a custom infotype in ECC 6.0 with a table control which can have a maximum of 50 line items. Something similar to basic pay infotype and PA0008. While going through the SAP documentation I found the below statement .
    "A new infotype is limited to a maximum of 1000 positions. This restriction is due of the length of structure PRELP, which is used as a container during infotype processing."
    This is available at
    http://help.sap.com/saphelp_erp60/helpdata/en/60/d8d8c7576311d189270000e8322f96/frameset.htm
    In our implementation, each record of standard table PA0008 could go upto 1200 characters with a maximum of 40 line items in the table control. We never used more than 5 line items and never had any problem.
    Since the custom table control can have upto 50 line items, each record of my custom table pa9xxxx could go upto 4000 characters and I'm concerned that if this is going to be an issue. Any suggestions in this regard please ?
    Thanks for your time,
    Kumar.

    Hi Venkata
    Please see notes 563145 and 1168062 for help
    Please also be aware that custom infotypes and the effects of changing structures are the customers responsibility
    Best wishes
    Stuart

  • HR ABAP : Custom Infotype updations through FM HR_INFOTYPE_OPERATION

    Hi All,
              Actually, I want to update the custom infotype 3 fields as per my user inputs. I am fetching the data from the PA table acoording to sy-datum falling in the begda, enda limitations. now I am changing the field with new values in the work area. And pass with the following data to the FM.
              But I am getting the error 'No data stored for 9008 in the selected period', eventhough it is already having a data in the database table. I had seen prvious therads, but could not get how they solved the issue.
    Please provide the inpus for the following code.
              ( I had also passed the validity start and end from the database entry. at this moment it gets dumped at the statement
      assign record to <record> casting type (tabname). "XDP UniCode
    where tabname is proposed from t777d-ppnnn. which is a structure and having a value as P9008. If i change the value at debug point to PA9008. it works fine. is there anything extra i need to do to solve this issue? )
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
    EXPORTING
    infty = '9008'
    number = pernr
    "SUBTYPE =
    "OBJECTID =
    "LOCKINDICATOR =
    "VALIDITYEND =
    "VALIDITYBEGIN =
    "RECORDNUMBER =
    record = wa_pa9008
    operation = 'MOD'
    "TCLAS = 'A'
    "DIALOG_MODE = '0'
    "NOCOMMIT =
    "VIEW_IDENTIFIER =
    "SECONDARY_RECORD =
    IMPORTING
    return = l_bapireturn
    key = bapipakey_tab
    Regards,
    Brijesh Patel

    Hi,
    Check this code once
    Read Infotype9004 Record for the personnel No
        CALL FUNCTION 'HR_READ_INFOTYPE'
          EXPORTING
            tclas           = A
            pernr           = pernr
            infty           = 9004
          IMPORTING
            subrc           = v_subrc
          TABLES
            infty_tab       = it_pa9004
          EXCEPTIONS
            infty_not_found = 1
            OTHERS          = 2.
    Read it_pa9004 into wa_pa9004 with some condition.
    if sy-subrc eq 0.
    Lock the employee for processing infotype 9004
        CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE'
          EXPORTING
            number = wa_pa9004-pernr.
      v_begda = wa_9004-begda.
          v_endda = wa_9004-endda.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
            EXPORTING
              infty         = c_9004
              number        = wa_9004-pernr
              subtype       = c_0001
              validityend   = v_endda
              validitybegin = v_begda
              record        = wa_9004
              operation     = c_mod
              tclas         = c_a
             dialog_mode   = c_0
              dialog_mode   = '2'
            IMPORTING
              return        = wa_return.
    CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE'
          EXPORTING
            number = wa_pa9004-pernr.
    endif.
    reward the points if it is helpful.
    Regards,
    Srilatha

  • Error executing Custom Infotype..

    An Invalid table name PA9001 is mentioned in the open SQL Statement.
    Runtime Error:SAPSQL_INVALID_TABLENAME
    Exception:CX_SY_DYNAMIC_OSQL_SEMANTICS occoured in procedure READ_DATABASE but neither
    handled locally nor declared in the RAISING clause of its signature.
    Termination occoured in ABAP Program SAPFP50P- in "READ_DATABASE".
    The main Program was "MP900100".
    I did not do any modifications in the programming part.Even then I am getting the errors..

    I had faced these issues before while creation of custom infotype. But I found later that its the incorrect authorizations which is not allowing the system to create the structures.
    When you create an infotype, sap follows few steps to create various strcutures and table enties.
    But due to insufficient authorizations, many of them are skipped. e.g. A functional person does not have authorization to create tables/ structures through SE11. I think this is the reason why the table PA9xxx is not created in your case.
    Fix your authorizations, and recreate the custom infortype.
    Reward points if it helps.

  • Custom infotype updation

    Hi Expects,
    I am working on custom infotype creation. In my requirement I have used table control concept where user enters multiple records and updates the custom infotype.
    For a single PERNR,SUBTYPE, BEGDA and ENDDA I want to update multiple records into the infotype using table control concept.
    Ex: PERNR : 25
          SUBTY: 2001
          BEGDA: 01/01/2001
          ENDDA: 12/31/2001
    Here by using the function modules 'HR_INFOTYPE_OPERATION' or 'HR_MAINTAIN_MASTERDATA' I am trying to update the custom infotype where sequence number need to be increamented automatically for duplicate entries but only one record is getting updated instead of multiple records.
    I have maintained the time constraint as '3'.
    Please let me know the procedure to update multiple records at a time into custom infotype.
    Regards,
    Mahesh.

    Hi,
    In the custom infotype table, if their are  duplicate then the sequence number field value will be created automatically for time constainst '3' but using the function module it is not creating the sequence number but using the modify statement it is working fine.
    Ex: Modify PA9002 from table GT_PA9002.
    Please let me know the solution for updating multiple records into a custom infotype.
    Regards,
    Mahesh.

  • Error for custom infotype in PPOME

    Hello Experts,
    I have created one custom OM infotype for object position.Now when i am trying to acccess that Infotype in PO13 it is working fine but when i am trying to acccess the custom infotype in PPOME it is giving a dump.
    EERROR:
    Error in the ABAP program "SAPLRHOMDETAIL_PP01" had to be terminated because it has come accross a statement which cannot be exceuted.
    An exception occurred.
    The exception, which is assigned to class 'CX_SY_ASSIGn_CAST_UNKNOWN_TYPE', was not caught in procedure "INIT_SUBSCREEN" "(FORM)" nor was it propagagted by raising clause exception.
    The reason for the exception is :
    The type "" dynamically specified with ASSIGN....CASTING TYPE is unknown.
    Please guide me where i am doing mistake.
    Thanks in advance.
    Shweta

    Hi Sudha,
    PM01 is the tcode.
    Similar questions were already answered in the following threads
    ABAP HR : Infotype Enhancement
    So please search and then post specific queries.
    rgds
    gayathri

  • Doubt in Custom Infotype / Modulepool

    Hi all,
    I have some doubt in Module pool.
    Wuld u plz check let me know on this.
    Iam started creating the New Customized Infotype.
    In that Infotype i have one name SHIFT. The field SHIFT is having F4 help pop-up.
    Basing the F4 help pop-uping, i need to ful-fill and populate the next fields. ( Starttime and end time of Employee).
    For that i need to write the Select query to fetch the data from table based on that F4 help data.
    My doubt where i have to write the select statement i.e in PAI or PBO.
    But the Break point is not going to perticular select statement based on the F4 help field.
    wud u plz let me know whr i have to write the SELECT query.
    Thanks,
    N.L.Narayana

    hi Narayana
    you have to write the code in the event 'PROCESS ON VALUE-REQUEST'.
    FIELD <filedname > MODULE <module name>.
    <u>case 1: if you are not writing any select query.</u>
    inside this module you can porbably make use of the function module RH_OBJID_REQUEST to get the desired search help..
    <u>case 2: if you need to write select query.</u>
    write the select query and get the data into an internal table.
    use function module F4IF_INT_TABLE_VALUE_REQUEST to populate the F4.
    Hope this helps.
    Sajan.

  • 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

  • Significance of classes in custom infotypes???

    hello everyone,
    i know that on creation of custom infotype a class will be created. i want to know the significance of the classes. if i change the name of the class will it effect any thing?? if i change the name of the class where all places should i change the name etc......??
    and question2.
    On creation of infotypes SAP generates standard code. in that i found that in PAI two sets of chain-endchain statements are there with the same fields. what will be the effect if i remove one set..
    pls respond at the earliest .
    Thanks,
    shiva.

    http://www.hr-manager.de/cgi-bin/yabb2/YaBB.pl?num=1045064431
    check this link it may help u
    regards
    anil chaudhary

  • Custom Infotypes and Change History

    HR Gurus,
    I am being told that with custom infotypes, we can not track change history.
    THe scenario I have is that I need to be ableto capture Address Changes (Address Line 1, Address Line 2, City, State and Zip) and send a Delta for the changed address.
    In my unique situation, I have been told that if Address Line 2 is deleted, than the change histiry can not capture the fact that it was deleted and all change history regarding its prior existnace will be deleted if the Address Line2 is removed.
    I am not entirely sure=, but I wanted to ask you guys anyway if I woukd be able to track Change history.
    -Feroz

    Hi Feroz,
    Do not believe everything you hear.  You can view changed and deleted information from custom infotypes and fields. 
    First, I am not sure why you need a custom infotype for addresses when IT0006 is available to you.  You can more easily create a custom subtype if the supplied ones do not meet your needs.
    But for any PA infotype including custom infotypes, you can use the Logged Changes to infotype Data report (RPUAUD00).  You have to set up the infotype to be logged in the IMG:  Personnel Management --> Personnel Administration --> Tools --> Revision --> Set Up Change Document.  In the first section, you list the infotypes you want to track changes for including your custom infotype.  In the second step you list the fields you want to track.  "*" means any change to any field.  And in the third step you indicate whether the information is kept as a long term or short term document. 
    When you run the report, you can enter the infotype and period you want and the first list will be all changes to that infotype.  Select one to view the details and you will see each field listed with the original data and the new data.  If a field is deleted, it will appear blank in the new area, but you can still see the old entry in the previous data column. 
    Also, if an individual deletes a entry in an infotype by using Copy and enters in a new start date, the old record will be delimited, but still be available for viewing.  Also, every infotype records who made changes and the date of the change. 
    Paul

  • Authorization Object: P_ORGXX - fields can be from a custom infotype ?

    I need to create a customer-Specific Authorization Object, but the documentation states that we can use any of the fields in IT0001, and also customer-specific additionald fields. But we need to know if those additional fields can be from a custom infotype.
    If it is not possible, we need to replicate the std P_ORGXX and the way it validates the field pa0001- SACHZ. But with fields from a custom infotype. Is there any way to do it?
    I hope you can help me with this.
    Regards,

    Hi,
    Try the link from SAP as reference for authorization object creation and how functionality for authorization object works w/ infotype.
    http://help.sap.com/saphelp_470/helpdata/en/9e/74ba3bd14a6a6ae10000000a114084/content.htm
    http://help.sap.com/saphelp_470/helpdata/en/16/b8b83b5b831f3be10000000a114084/content.htm
    Thanks,
    Ameet

  • Error while creating a query for my custom infotype

    Hi,
    I have created a custom infotype with fields currency amount and currency field .
    While I am creating a query for it its giving an error
    Message no. AQ_AD_HOC221 Error when generating the report(see long text )
    I tried to execute the standard program RPUMS40CCI but still I am facing same error .
    I have also maintained table T777i for my infotype but still problem exists.
    Please help.
    P

    Hi
    Check in PM01

  • Error while editing an automaticlly populated record of  a custom infotype

    hi,
    a query in HR ABAP.
    i have created a custom Infotype to store the CTC details of an employee. this custom IT needs to get the records auto populated, when they are created in Infotype 0008.
    i have used the exit. EXIT_SAPFP50M_002  inside which  an include program is written  :ZXPADU02
    using this, the records made to get create automatically in the custom IT.
    but when we try to modify or delete those records thru the tcode PA30,
    it does not allow to do so and throws a standard error message. as  below.
    Specified subtype is invalid
    Message no. PG088
    please help me out to fix this issue.

    the exact point of the std error is,
    i do the folowing steps.
    1)_ for auto creating a record in custom IT Pa**** , i goto transaction, PA30, create record in IT 0008 with a basic Pay., click on save.
    on saving , the EXIT_SAPFP50M_002 is called where i ve written a Z inlcude Program, which inserts the record in custom IT PA****.  this is successful.
    2) when i try to change or delete the same record which i ve created as above, through the Tcode PA30 for custom IT, PA
    ****, i get the error.
    hope the problem is clearly mentioned

  • About to use HR_INFOTYPE_OPERATION to create customer infotype issue:

    hi
    i want to create infotype use function(HR_INFOTYPE_OPERATION).
    this infotype is customer infotype.
    the first scenario is:
      i'm be sure no data about one employee in this infotype(9004).
      to call with data upload function and put data into internal table IT_PA9004.
      and the table data as follow:
    one line: it_pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ03',
              it_pa9004-begda = '20080201' , it_pa9004-endda = '20080930'
              it_pa9004-zzvalue = 50 (customer field).
    two line:it_pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ03',
              it_pa9004-begda = '20080201' , it_pa9004-endda = '20080930'
              it_pa9004-zzvalue = 60 (customer field).
    three line:it_pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ03',
              it_pa9004-begda = '20080101' , it_pa9004-endda = '20081031'
              it_pa9004-zzvalue = 70 (customer field).
    four line:it_pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ03',
              it_pa9004-begda = '20080101' , it_pa9004-endda = '20081031'
              it_pa9004-zzvalue = 80 (customer field).
    i run the programme and get information is:
    11022887 insert ok.
    11022887 insert ok.
    11022887 insert ok.
    11022887 insert ok.
    but i use the transation PA30 to view all data:
    in database just exist one row:
    four line:it_pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ03',
              it_pa9004-begda = '20080101' , it_pa9004-endda = '20081031'
              it_pa9004-zzvalue = 80 (customer field).
    the second scenario is:
    in database the infotype have exist one row:
               pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ02',
               pa9004-begda = '20080318' , pa9004-endda = '20080318'
               pa9004-zzvalue = X (customer field).
    and i create another row:
    line:it_pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ02',
              it_pa9004-begda = '20080318' , it_pa9004-endda = '99991231'
              it_pa9004-zzvalue = 80 (customer field)
    i run the programme and get information is:
    11022887 insert ok.
    the three scenario is:
        set  HR_INFOTYPE_OPERATION of import parameter operation = 'MOD'
        in any scenario will get error :not exist subtype .
    what heppend about HR_INFOTYPE_OPERATION working,i had to use this function to
       create other infotype of SAP owner.
       and will create successfully.
    so i thank it may be config Constraints about customer infotype.
    is time Constraints effect?
    so i want to how to check it?
    and if i want to create one infotype for customer using PM01 what some thing
    must be taken into account.
    think you advance.
    partial source code as follow:
    FORM ACTION_INSERT .
      DATA: P_FLAG TYPE C.
      DATA: WA_LOG LIKE LINE OF DATA_LOG.
      DATA: PP_ACTION TYPE PSPAR-ACTIO.
      LOOP AT IT_PA9004.
        CLEAR P_FLAG.
        CALL FUNCTION 'HR_PSBUFFER_INITIALIZE'.
        PERFORM lock_employee USING IT_PA9004-pernr CHANGING P_FLAG.
        PP_ACTION = IT_PA9004-ACTION.
        PERFORM HR_INFOTYPE_OPERATION USING IT_PA9004 PP_ACTION CHANGING P_FLAG.
        IF P_FLAG IS INITIAL.
          if test_run = space.
            COMMIT WORK.
          else.
            ROLLBACK WORK.
          endif.
          write:/ it_pa9004-pernr,'insert ok'.
        ELSE.
          ROLLBACK WORK.
          write:/ it_pa9004-pernr,'error'.
        ENDIF.
        PERFORM unlock_employee USING IT_PA9004-pernr .
      ENDLOOP.
    ENDFORM.                    " ACTION_INSERT
    FORM LOCK_EMPLOYEE  USING    P_PERNR
                        CHANGING PP_FLAG.
      CHECK PP_FLAG IS INITIAL.
      CLEAR P_RETURN.
      CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
        EXPORTING
          number = P_PERNR
        IMPORTING
          return = P_RETURN
        EXCEPTIONS
          OTHERS = 01.
      CALL FUNCTION 'HR_INITIALIZE_BUFFER'
        EXPORTING
          pernr = P_PERNR.
      IF P_RETURN IS NOT INITIAL.
        PP_FLAG = '1'.
      ENDIF.
    ENDFORM.                    " LOCK_EMPLOYEE
    FORM HR_INFOTYPE_OPERATION  USING    P_PA9004 LIKE IT_PA9004
                                         P_ACTION type PSPAR-ACTIO
                                CHANGING PP_FLAG.
      CHECK PP_FLAG  IS INITIAL.
      DATA: bapipakey type bapipakey,
            P_SUBTY TYPE P9004-SUBTY,
            PP_9004 TYPE TABLE OF  P9004 WITH HEADER LINE.
      CLEAR P_RETURN.
      REFRESH PP_9004.
      MOVE-CORRESPONDING P_PA9004 TO PP_9004.
      IF P_ACTION = 'INS'.
        PP_9004-AEDTM = SY-DATUM.
        PP_9004-UNAME = SY-UNAME.
      ENDIF.
      IF P_ACTION = 'MOD'.
        PP_9004-AEDTM = SY-DATUM.
        PP_9004-UNAME = SY-UNAME.
      ENDIF.
      APPEND PP_9004.
      P_SUBTY = P_LGART.
      CALL FUNCTION 'HR_INFOTYPE_OPERATION'
        EXPORTING
          infty         = '9004'
         subtype       = 'FQ03'
          subtype       = P_SUBTY
          number        = PP_9004-pernr
          validityend   = PP_9004-ENDDA
          validitybegin = PP_9004-begda
         RECORDNUMBER  = pp_9004-seqnr
          record        = PP_9004
           operation     = 'INS'
         operation     = P_ACTION
          nocommit      = 'X'
        IMPORTING
          return        = P_RETURN
          key           = bapipakey
        EXCEPTIONS
          OTHERS        = 0.
      IF P_RETURN IS NOT INITIAL.
        PP_FLAG = '9'.
      ENDIF.
    ENDFORM.                    " HR_INFOTYPE_OPERATION
    FORM UNLOCK_EMPLOYEE  USING    P_PERNR.
      CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
        EXPORTING
          number = p_pernr
        IMPORTING
          return = P_RETURN
        EXCEPTIONS
          OTHERS = 01.
    ENDFORM.                    " UNLOCK_EMPLOYEE

    hi
    i want to create infotype use function(HR_INFOTYPE_OPERATION).
    this infotype is customer infotype.
    the first scenario is:
      i'm be sure no data about one employee in this infotype(9004).
      to call with data upload function and put data into internal table IT_PA9004.
      and the table data as follow:
    one line: it_pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ03',
              it_pa9004-begda = '20080201' , it_pa9004-endda = '20080930'
              it_pa9004-zzvalue = 50 (customer field).
    two line:it_pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ03',
              it_pa9004-begda = '20080201' , it_pa9004-endda = '20080930'
              it_pa9004-zzvalue = 60 (customer field).
    three line:it_pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ03',
              it_pa9004-begda = '20080101' , it_pa9004-endda = '20081031'
              it_pa9004-zzvalue = 70 (customer field).
    four line:it_pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ03',
              it_pa9004-begda = '20080101' , it_pa9004-endda = '20081031'
              it_pa9004-zzvalue = 80 (customer field).
    i run the programme and get information is:
    11022887 insert ok.
    11022887 insert ok.
    11022887 insert ok.
    11022887 insert ok.
    but i use the transation PA30 to view all data:
    in database just exist one row:
    four line:it_pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ03',
              it_pa9004-begda = '20080101' , it_pa9004-endda = '20081031'
              it_pa9004-zzvalue = 80 (customer field).
    the second scenario is:
    in database the infotype have exist one row:
               pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ02',
               pa9004-begda = '20080318' , pa9004-endda = '20080318'
               pa9004-zzvalue = X (customer field).
    and i create another row:
    line:it_pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ02',
              it_pa9004-begda = '20080318' , it_pa9004-endda = '99991231'
              it_pa9004-zzvalue = 80 (customer field)
    i run the programme and get information is:
    11022887 insert ok.
    but in database just exist the first data
               pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ02',
               pa9004-begda = '20080318' , pa9004-endda = '20080318'
               pa9004-zzvalue = X (customer field).
    the three scenario is:
        set  HR_INFOTYPE_OPERATION of import parameter operation = 'MOD'
        in any scenario will get error :not exist subtype .
    what heppend about HR_INFOTYPE_OPERATION working,i had to use this function to
       create other infotype of SAP owner.
       and will create successfully.
    so i thank it may be config Constraints about customer infotype.
    is time Constraints effect?
    so i want to how to check it?
    and if i want to create one infotype for customer using PM01 what some thing
    must be taken into account.
    think you advance.
    partial source code as follow:
    FORM ACTION_INSERT .
      DATA: P_FLAG TYPE C.
      DATA: WA_LOG LIKE LINE OF DATA_LOG.
      DATA: PP_ACTION TYPE PSPAR-ACTIO.
      LOOP AT IT_PA9004.
        CLEAR P_FLAG.
        CALL FUNCTION 'HR_PSBUFFER_INITIALIZE'.
        PERFORM lock_employee USING IT_PA9004-pernr CHANGING P_FLAG.
        PP_ACTION = IT_PA9004-ACTION.
        PERFORM HR_INFOTYPE_OPERATION USING IT_PA9004 PP_ACTION CHANGING P_FLAG.
        IF P_FLAG IS INITIAL.
          if test_run = space.
            COMMIT WORK.
          else.
            ROLLBACK WORK.
          endif.
          write:/ it_pa9004-pernr,'insert ok'.
        ELSE.
          ROLLBACK WORK.
          write:/ it_pa9004-pernr,'error'.
        ENDIF.
        PERFORM unlock_employee USING IT_PA9004-pernr .
      ENDLOOP.
    ENDFORM.                    " ACTION_INSERT
    FORM LOCK_EMPLOYEE  USING    P_PERNR
                        CHANGING PP_FLAG.
      CHECK PP_FLAG IS INITIAL.
      CLEAR P_RETURN.
      CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
        EXPORTING
          number = P_PERNR
        IMPORTING
          return = P_RETURN
        EXCEPTIONS
          OTHERS = 01.
      CALL FUNCTION 'HR_INITIALIZE_BUFFER'
        EXPORTING
          pernr = P_PERNR.
      IF P_RETURN IS NOT INITIAL.
        PP_FLAG = '1'.
      ENDIF.
    ENDFORM.                    " LOCK_EMPLOYEE
    FORM HR_INFOTYPE_OPERATION  USING    P_PA9004 LIKE IT_PA9004
                                         P_ACTION type PSPAR-ACTIO
                                CHANGING PP_FLAG.
      CHECK PP_FLAG  IS INITIAL.
      DATA: bapipakey type bapipakey,
            P_SUBTY TYPE P9004-SUBTY,
            PP_9004 TYPE TABLE OF  P9004 WITH HEADER LINE.
      CLEAR P_RETURN.
      REFRESH PP_9004.
      MOVE-CORRESPONDING P_PA9004 TO PP_9004.
      IF P_ACTION = 'INS'.
        PP_9004-AEDTM = SY-DATUM.
        PP_9004-UNAME = SY-UNAME.
      ENDIF.
      IF P_ACTION = 'MOD'.
        PP_9004-AEDTM = SY-DATUM.
        PP_9004-UNAME = SY-UNAME.
      ENDIF.
      APPEND PP_9004.
      P_SUBTY = P_LGART.
      CALL FUNCTION 'HR_INFOTYPE_OPERATION'
        EXPORTING
          infty         = '9004'
         subtype       = 'FQ03'
          subtype       = P_SUBTY
          number        = PP_9004-pernr
          validityend   = PP_9004-ENDDA
          validitybegin = PP_9004-begda
         RECORDNUMBER  = pp_9004-seqnr
          record        = PP_9004
           operation     = 'INS'
         operation     = P_ACTION
          nocommit      = 'X'
        IMPORTING
          return        = P_RETURN
          key           = bapipakey
        EXCEPTIONS
          OTHERS        = 0.
      IF P_RETURN IS NOT INITIAL.
        PP_FLAG = '9'.
      ENDIF.
    ENDFORM.                    " HR_INFOTYPE_OPERATION
    FORM UNLOCK_EMPLOYEE  USING    P_PERNR.
      CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
        EXPORTING
          number = p_pernr
        IMPORTING
          return = P_RETURN
        EXCEPTIONS
          OTHERS = 01.
    ENDFORM.                    " UNLOCK_EMPLOYEE

Maybe you are looking for

  • File based Sync-Async Bridge

    Hi All, I have a scenario where a file is available in a shared folder. This file needs to be picked by a RFC Function module called in a Synchronous mode and the contents of the file needs to be displayed as the output of this RFC. Is this achievabl

  • File-RFC-File Sync-- BPM error..

    Hi All, My scenario is File -- RFC -- File, synchronous scenario, The scenario needs to be designed using BPM its clients requirement, and i have used Receive step, BLOCK and in the block Transform, Sync Send, Transform and with in the block i have u

  • Capital projects and Grants Accounting

    We looking at the feasibility of creating capital projects in Grants Accounting as part of our R12 project. I need to know whether it is possible to combine non-sponsored capital project types with our existing sponsored projects funded by awards. I

  • ICal problem setting up google account.

    I have OS 10.8.5.  Have gotten the following message when I try and configure my gmail calendar with ical:  account can't be saved to disk. check console for errors. account already exists.  Any thoughts on how to resolve.

  • Floppy drive not working on Neo2-FIS2R

    This is a bizarre one. When we first set the system up, the a: wouldn't work. So we tried 2 different floppy drives and 3 different cables. Eventually the floppy drive just started to spontaneously worked - this allowed us to set up the Intel RAID ar