Custom field in Infotype via custom table

Hi experts,
I have the following scenario:
1.I have added a new custom field to the standard PA infotype through PM01.
2.The field is a code(e.g contract code) and the contract desciption is to be strored in a separate custom table.
My question is:
How/where to write the code to insert values into the custom table ,when such infotype is created?Is there a standard function module for this?Any sample/pseudo code would be highly helpful.
thanks in advance,
KC

Pleae see my comments to your questions:
1.This one relates to pont 2 of your reply:How and where to declare the custom table as a check table in the CI?in SE11?when I open the infotype table in SE11 and try to declare the 'contract code' as a check field,I am being asked the access key.Please let me know if there is a correct way of doing so.
Go to SE11. Give the main table name associated to the Infotype(PANNNN). Click display. Scroll to the bottom and you see te CI include associated with it. Double click on it. It shows you the details of the fleds and in the include. Go to Change mode here. It does not ask for the access key as this is your custom extension. Scroll to the right and you can assoicate the master table as check table against the field.
PS:You can go to CI include directly in edit mode also from SE11.
2.In the infotype entry screen,If I want to show the only those values of the 'contract code' which are present in the custom table,what is the best advised solution?
I implemented this also on our extension. You add the value help in the module pool and add custom search help code there.
This way you can display the code and its description in the search help.
Edited by: Raj Julakanti on Oct 12, 2008 7:49 PM

Similar Messages

  • HRFORMS - Custom table and Infotype Fields

    Hi,
    I am trying to add Custom table and Infotype Fields to the HRFORMS but i couldn not...
    1) I have created Custom MetaNet in HRFORMS_METADATA
    2) Created Meta Dimension and MetaStar for thr new fields
    3) When I use these custom metenet to crate Info stars in HRFORMS transaction, I am getting erros for DDIC activation.
    Does anyone has any idea or am i missing any steps?
    ...Naddy

    No issues when did it again.

  • Update PA0105 subtype-fields, PA0006 fields to Custom table

    Hi Experts,
    Please tell how can we UPDATE subtype-fields from PA0105 infotype to Custom tables. Is any functoin module is there. PA0105-USRTY(Subtype Fields:Primary Work Phone,Secondary Work Phone,Work Fax,Voice Mail,Pager,Email Address.) and UPDATE fields from PA0006 infotype (Fields:Mailcode,Building,Floor,Address1,City,State,Zip) to Custom table.
    Thanks,
    Spreddy

    Hi Srinivas,
    use like this
    call function 'HR_READ_INFOTYPE'
           exporting
                pernr           = pernr
                infty           =  '0267' "INfotype no
                begda           = datum
                endda           = datum
          importing
               subrc           = retcd
           tables
                infty_tab       = i0267 " table type table of p0267
           exceptions
                infty_not_found = 1
                others          = 2.
      read table i0267 into p0267 index 1.
    Change the fields here u want to change
    Fill infotype record
      p0267-infty = '0267'.
      p0267-subty = lgart.
      p0267-pernr = pernr.
      p0267-begda = datum.
      p0267-endda = datum.
      p0267-opken = ' '.
      p0267-lgart = lgart.
      p0267-betrg = betrg.
      p0267-waers = 'USD'.
      p0267-ocrsn = '0001'.
    ENDIF.
    Enqueue personnel number
    lock that particular personal no which u r updating
      CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
        EXPORTING
          number = pernr
        IMPORTING
          return = return.
      IF NOT return IS INITIAL.
        MESSAGE ID return-id TYPE return-type NUMBER return-number
                 WITH return-message_v1 return-message_v2
                      return-message_v3 return-message_v4.
        RAISE action_stopped.
      ENDIF.
    Perform PA30 via infotype_operation
    Function that update the record
      CALL FUNCTION 'HR_INFOTYPE_OPERATION'
        EXPORTING
          infty         = '0267'
          number        = pernr
          validityend   = datum
          validitybegin = datum
          record        = p0267
          operation     = 'INS'
          dialog_mode   = '2'
        IMPORTING
          return        = return.
      IF NOT return IS INITIAL.
        MESSAGE ID return-id TYPE return-type NUMBER return-number
                 WITH return-message_v1 return-message_v2
                      return-message_v3 return-message_v4.
        RAISE action_stopped.
      ENDIF.
    Thanks & Regards,
    Ruchi Tiwari

  • Custom table infotype

    Hi Experts,
    Can you please provide me with the steps to create a custom table infotype.
    Thanks
    Sri

    hi sri,
       the steps to follow to create the custom infotype are
    Steps to create a HR Infotype:
    1) Go to Transaction PM01.
    2) Enter the custom Infotype number which you want to create
    (Should be a 4 digit number, start with 9).
    3) Select the 'Employee Infotype' radio button.
    4) Select the 'PS Structure Infotype'.
    5) Click on Create... A separate table maintenance window appears...
    6) Create a PS structure with all the fields you want on the Infotype
    7) Save and Activate the PS structure
    8) Go back to the initial screen of PM01.
    9) Click on 'All' push button. It takes a few moments.
    10) Click on 'Technical Characteristics'. Infotype list screen appears
    11) Click on 'Change'(pencil) button
    12) Select your Infotype and click on 'Detail' (magnifying glass) button
    13) Give 'T591A' as subtype table
    14) Give 'T591S' as subtype txt tab
    15) Give your subtype field as subtype field
    16) Save and come back to PM01 initial screen
    17) Click on 'Infotype Characteristics' ... Infotype list screen appears
    18) Click on 'Change' (pencil) button
    19) Click on 'New Entries'
    20) Enter your Infotype number and short text
    21) Here we have to set different Infotype Characteristics as per the requirement.
    (Better open another session with some standard Infotype's
    infotype characteristics screen and use as the reference to fill yours)
    22) Save your entries.
    23) Now the Infotype is created and ready to use.
    24) If you want to change the layout of the Infotype as per your requirement...
    25) In the PM01 initial screen...Select 'Screen' radio button and give 2000
    as the screen name, then click on edit.
    26) In the next screen.. Select 'Layout Editor' and click 'Change'.
    27) Screen default layout appears...here you can design/modify
    the screen..change the attributes of the fields..etc.
    28) Save and activate. (Don't forget to 'Activate at every level)
    regards,
    sreelatha gullapalli

  • P0000-STAT1 (Customer Specific Status) field on Infotype 0000

    Hi All,
    I have a requirement on Customer specific status field on infotype 0000,  Where I should be able to maintain that field through PA40.
    As this field is standardly delivered as output field only through SAP I am unable to force that field as input field in module pool.
    did any one used this field before as input field in IT0000? I couldn't find OSS note on this issue.
    Please let me know if any one has solution on this.
    Thanks,
    Sang

    Hello sangarshitha
    try using field symbol ,
    asssign field symbol to p0000-stat1
    like
    field-sybmbols : <fs> type p0000-stat1.
    ASSIGN ('(MP000000)PSPAR-STAT1') TO <fs>. "check table pspar in debug wether field stat1 is there else go for P0000-stat1
    <fs> = "assign what you want to here.
    write this in PBO of User Exit/Badi for IT-0000
    reward points if helpful

  • Updating Custom table when updating infotype

    HI
    A custom transaction needs to be created for maintenance of the table in future as the values could change. Whenever infotype 0015 values are changed are updated this custom table  values should need to update.Could you please suggest me..

    I also suggest you to lock only the entry that will be updated (and not the whole table!) : you will have then far less problems of conflict with updating this table.
    For that, you have to create a lock object on your table (via SE11 - for example EZ_MY_TABLE). This will create 2 function modules named ENQUEUE_E<name of your lock object> (in my example ENQUEUE_EZ_MY_TABLE) and DEQUEUE_E<...>.
    You can then call those FM like this :
    CALL FUNCTION 'ENQUEUE_EZ_MY_TABLE'
      EXPORTING
        MODE_RSTABLE = 'S'
        KEYFIELD1 = ld_keyfield1  " Here are the key values for the entry that you have to update
        KEYFIELD2 = ld_keyfield2
      EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
        OTHERS = 3.
    Best regards,
    Samuel

  • How to find out the user who has created  a new field in the custom table.

    How to find out the user details who has created  a new field in the custom table.
    Thanks,
    Joan

    Hi Jesudasan ,
    You can know the user details with version management.Please find the
    below procedure to know.
    Go to table->Utilities tab->version->Version management->Compare the previous one .
    Hope this solves the issue,Let me know if you have any issues.
    Thanks,
    Rajani

  • How to Track the changes made to the custom table field value

    I want to track the changes made to the custom table field value in table maintenance generator.please help me it is very urgent
    Thanks & Regards,
    Kranti

    Hi Satya,
    These are the steps you've to do.
    1. Enable the change document flag in the data element level for the fields of the tables you want to monitor.
    2. Go to transaction SCDO. Create a new change object, and add your table to this object. After generation, you'll get a function module.
    3. Call this function module in the table maintainence generator screen, after the data is saved to the database table. This function module automaticallly writes the changes, with the old and new values, and the fields that were changed to the tables CDHDR and CDPOS.
    4. You can keep track of the changes made to the table by monitoring these tables.
    Regards
    Anil Madhavan

  • How to do a Search help on SAP structure field listing custom table data?

    i have a SAP screen (Trans KE52) that they want to have a drop down (search help on).
    The drop down should list values from a custom table.
    How do you do this?
    The values to be displayed are NOT from a structure table but from a transparent table.  i believe I will need a search FM to do this but not sure how it is to be done.
    Any one have ideas?
    Thanks!
    Scott

    Hi Scott,
    You need to go to SE11 and look for a searh help that match your requirment or build one.
    In case you are going to develop one, in the definition tab of the search help look for the selection method and put in the input field the name of your transparent table.
    After that you must specify the fields that you need to appear at the list and the one that is going to be selected for your field. This step you have to do it on the search help parameter grid.
    Regards,
    Eric
    PD. Reward points if this was helpful

  • Custom Table Currency field with 5 decimals

    Hello,
    I have created a custom table and it has a field for 'US Plan Cost'. The users wanted it with 5 Decimals. I have created a custom domain and custom data element of DEC Type with 5 Decimals.
    Domain: ZCOST: Data Type: DEC, No. of Characters: 11, Decimal Places: 5.
    However When I am trying to create entries in the table though, it's giving me error: Input must be in the format _____,_____,_____,_____~._____
    The entry that I am creating is: 1.23450.
    I dont know what went wrong? Can anybody please help me?
    Thanks Much.

    Are you doing this with SM30?  or from a program?  If a program, be sure your data value is precisely '1.23450'. It sounds like you're inputting something else...
    Or, post code?

  • Problem while saving date field in custom table

    Hi,
    Iam facing the following problem while saving a date field in custome table
    i have a date field zdate in which the value is 02082010.
    now when i try to insert this value in the custom table it is getting updated as 20/10/0208 , but it should be 08/02/2010
    How can i correct it..
    Regards
    Kumar

    just before saving u might have to use a string reverse FM and then save it..
    CALL FUNCTION 'STRING_REVERSE'
      EXPORTING
        STRING          = p_string
        LANG            = sy-langu
    IMPORTING
       RSTRING          = r_string
    EXCEPTIONS
       TOO_SMALL        = 1
       OTHERS           = 2

  • Add a new field in custom table but not show on SM30

    I add a new field in a custom table, did Table Maintenance generator and SE93.  But that field did not show on SM30 screen.  How to make it show on the SM30?
    Thanks
    Helen

    Hi,
    I think its the Problem with TMG.
    Go to TMG screen delete the old TMG and regenerate the new TMG
    Hope it helps
    regards
    Prasanth

  • Changing Non key field to Key field in a custom table

    Hello Abap gurus:
    I have a requirement in which i need to change a non key field in my custom table(Z TABLE) to key field.
    For example; i have field sequence as
    field 1  key field
    field 2 key field
    field 3 key field
    field 4 non-key field
    field 5 non-key field
    field 6 non-key field
    field 7 non-key field.
    i want to change field 7 as key field.
    Can i do perform operation??
    when i am tryingto perform bove operation it is taking long time to get the table activated.
    Could any one please help me in getting this resolved.
    regards,
    Sravanthi.

    Use DB Utility (se14) to perform alter table or conversion. The latter is used when atemps to perform first operation fails. Which one is used, really depends on system and current DB table state (i.e. if has any content and what is being adjusted).
    The way Max suggested is similar to [conversion process|http://help.sap.com/saphelp_nw04/helpdata/EN/cf/21f1b8446011d189700000e8322d00/content.htm] which system takes care of itself.
    Refer [Adjusting Database Structures|http://help.sap.com/saphelp_nw04/helpdata/EN/cf/21f1ab446011d189700000e8322d00/content.htm] and already given link to conversion.
    Please also consider potential errors while doing conversion . This can lead to data loss, so you should think of some backup to prevent that.
    Regards
    Marcin

  • Search help for fields in custom table..

    hi,
    in my custom table i have two fields - table name and field name. when user selects table name as VBAP , for field names i need all the fields in VBAP to be displayed and for that I set the check table as DD03L and I am able to see all the fields. But i am not able to see the description of the fields rather seeing field name , other key fields of DD03L.
    How do i get to display something like
    field name - description - length (length of the field as defined in DDIC)
    If search help will help then can u pl tell me how to create one ? or any standard can be used ?
    thanks

    Yes, you need to create search help and assign it to the field 'field name'
    Please search SDN for how to create search help. There are 100's of threads with this
    By the way the texts can be found in table DD03T  for tables as well as for fields

  • F4 help for custom table field - to be used when populating data thru SM30

    Hi,
    I have a custom table with 5 fields - say A, B, C, D and E. While populating data to the table through SM30, I need to create a F4 help for the field C. A  custom function module needs to be used.
    I have created a module for the same in the event PROCESS ON VALUE-REQUEST of the function group of the table.
    But the F4 for field C depends on the values put in fields A and B.
    I am not able to get the values of fields A and B from within the module PROCESS ON VALUE-REQUEST.
    Please help me to create the F4 help.

    hii,
    This is the piece of code i have used in one of my SM30 to get f4. mopdify according to ur need and use.
    revert back for further help.
    w_dynpread-fieldname = 'ZSITEDCDATA-SITE'.
      APPEND w_dynpread TO i_dynpread.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname               = 'SAPLZSITEDCDATA'
          dynumb               = sy-dynnr
          translate_to_upper   = 'X'
        TABLES
          dynpfields           = i_dynpread
        EXCEPTIONS
          invalid_abapworkarea = 1
          invalid_dynprofield  = 2
          invalid_dynproname   = 3
          invalid_dynpronummer = 4
          invalid_request      = 5
          no_fielddescription  = 6
          invalid_parameter    = 7
          undefind_error       = 8
          double_conversion    = 9
          stepl_not_found      = 10
          OTHERS               = 11.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      READ TABLE i_dynpread INTO w_dynpread INDEX 1.
      IF sy-subrc IS INITIAL.
        SELECT land1 FROM t001w
          INTO TABLE i_site
          WHERE werks EQ w_dynpread-fieldvalue.
        IF i_site[] IS NOT INITIAL.
          DATA: lv_line TYPE i.
          CLEAR lv_line.
          DESCRIBE TABLE i_site LINES lv_line.
          IF lv_line GT 1.
            CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
              EXPORTING
                retfield        = 'ZSITEDCDATA-SITE_COUNTRY'
                dynpprog        = 'SAPLZSITEDCDATA'
                dynpnr          = sy-dynnr
                window_title    = 'Site Country'
                value_org       = 'S'
              TABLES
                value_tab       = i_site[]
                return_tab      = i_return
              EXCEPTIONS
                parameter_error = 1
                no_values_found = 2
                OTHERS          = 3.
            IF sy-subrc <> 0.
              MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
            ELSE.
              READ TABLE i_return INTO w_return INDEX 1.
              IF sy-subrc IS INITIAL.
                zsitedcdata-site_country = w_return-fieldval.
              ENDIF.
            ENDIF.
    Thanks ,
    Gaurav

Maybe you are looking for

  • Setting of "opening web pages from last session"not works when open next time

    In Options, setting to "open windows & tab pages from last time" does not work. I have tries several time but nothing happens. have written to you earlier also , please help

  • Wanting to make the switch to an Apple, but 128MB VRAM is in the way

    I'm a Windows user, have been since I got my hands on a computer. I've continued using Windows to cater my gaming hobby, I currently play Counter-Strike: Source and World of Warcraft online on a regular basis. That's it just two games. My new job all

  • Photoshop - Motion - DVDSP Color Problem

    This message is crossposted in the Motion Forum because I'm not sure where the solution is to be found... I'm putting together a dvd and I wanted to create transition animations to go between the menus. I've run into a bit of a color problem, however

  • Streaming mac content to ipad

    Hi I've spent time searching for a simple solution but so far all I have found is apple tv. I was hoping to avoid shelling out another £100. I want to stream content from my mac o my iPad 2 while in my house over my home wifi network. I'd also like t

  • Q Block not released even though MMBE showing it as UR.

    Dear Guru's, Facing a issue in which the PO IR document for that material is showing Q block.. When checked in MMBE the material is showing under UR.. But when finance done the invoice the document under payment block it is still showing "Stock Quali