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

Similar Messages

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

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

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

  • Custom Infotype - Using Table control in the screen.  IN OM

    Hi,
    I am having a requriement where in I need to create a custom infotype using table control in the screen. I have to create this in OM and I am using PPCI transaction to create the info type. I am able to create the infotype with fields but not table control. Please let me know if any one of you came across and help me with the process I need to follow.
    Thanks in advance.
    Venkat.

    Hello,
    After you create the info type throug PPCi, you can directly go to the Sceen module program created automatically while creating Info type and edit the screen.
    activate it after your changes.
    Regards,
    Srujan.

  • Custom infotype with subtypes

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

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

  • Updating a customer infotype detail table (in PIQSTM) from an interface

    We have a customer infotype that has a header table (HRP....) and a detail table (HRT.....) and we have this attached to transaction PIQSTM. This works fine. However, we now have a requirement to update the infotype via an interface and we have hit a problem using the standard function modules. We have tried, for example, using FM 'HRIQ_PNNNN_MAINTAIN' but have found that whilst it updates the header ok, if any detail record exists it is always overwritten. We need to keep the existing detail records attached to the same header.
    I've debugged the way our tables are updated when saved in PIQSTM and can see that there is a lot going on with buffers. It seems that buffers are updated and then FM 'RH_BASE_UPDATE_DB_DIALOG' is called, ultimately resulting in an insert to our detail infotype table. In our interface program, obviously I would prefer not to update the table directly. I guess BDC is always an option but again, I'd prefer not to use it if possible.
    Has anyone out there done this and can offer me any advice ?
    thanks,
    Malcolm.

    Malcom,
       Try to feed old HRT record and New records(from interface) to Insert/update info-type function module.
    Thanks,
    Prabhat Singh

  • Creating / updating Custom infotype with different screen

    Hi All,
    I have created custom infotype having different screen for different subtype(1,2).
    From Subtype 1, indotype is automatically updated as it is a standard program. But for subtype 2 i am using HR_INFOTYPE_OPERATION for updating the record which is ending with error, as employee which i am trying to update is already locked by me only through PA30. So this function module ends with Complex error. Please suggest how to update the infotype with subtype 2.
    Thanking you..
    Best regards
    Akshay

    Hi All,
    I have created custom infotype having different screen for different subtype(1,2).
    From Subtype 1, indotype is automatically updated as it is a standard program. But for subtype 2 i am using HR_INFOTYPE_OPERATION for updating the record which is ending with error, as employee which i am trying to update is already locked by me only through PA30. So this function module ends with Complex error. Please suggest how to update the infotype with subtype 2.
    Thanking you..
    Best regards
    Akshay

  • Custom Infotype with multiple long text fields

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

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

  • Updating custom infotype with FM 'HR_INFOTYPE_OPERATION' dumps

    Hi All,
    While updating a custom infotype 9008 with FM 'HR_INFOTYPE_OPERATION', its giving adump.
    Except.  CX_HRPA_INVALID_PARAMETER.
    I am using DIALOG_MODE as '1'. when I enter a valid field value to that particular field ( mandatory field) on that infotype, it gives dump.
    Can you suggest something which will solve this?
    Thanks.
    Dipti.

    Hi,
    Here is the dump.
    Runtime Errors         UNCAUGHT_EXCEPTION
    Except.                CX_HRPA_INVALID_PARAMETER
    Date and Time          12.11.2008 07:23:32
    Short text
    An exception occurred that was not caught.
    What happened?
    The exception 'CX_HRPA_INVALID_PARAMETER' was raised, but it was not caught
    anywhere along
    the call hierarchy.
    Since exceptions represent error situations and this error was not
    adequately responded to, the running ABAP program
    'CL_HRPA_RESOLVE_EXCEPTION=====CP' has to be
    terminated.
    Error analysis
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_HRPA_INVALID_PARAMETER', was not
    caught in
    procedure "RESOLVE_EXCEPTION" "(FORM)", nor was it propagated by a RAISING
    clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    Invalid parameter EXCEPTION, value
    The occurrence of the exception is closely related to the occurrence of
    a previous exception "CX_HRPA_VIOLATED_PRECONDITION", which was raised in the
    program "CL_HRPA_MASTERDATA_FACTORY====CP",
    specifically in line 6 of the (include) program
    "CL_HRPA_MASTERDATA_FACTORY====CM004".
    The cause of the exception was:
    Precondition Violated
    Missing RAISING Clause in Interface
    Program                                 SAPFP50P
    Include                                 FP50PE10
    Row                                     2,152
    Module type                             (FORM)
    Module Name                             RESOLVE_EXCEPTION
    Trigger Location of Exception
    Program                                 CL_HRPA_RESOLVE_EXCEPTION=====CP
    Include                                 CL_HRPA_RESOLVE_EXCEPTION=====CM001
    Row                                     80
    Module type                             (METHOD)
    Module Name                             RESOLVE
    Source Code Extract
    Line
    SourceCde
    50
    message_handler = message_handler.
    51
    return.
    52
    53
    catch cx_sy_move_cast_error.
    54
    endtry.
    55
    END-OF-DEFINITION.
    56
    57
    58
    try_to resolve_missing_infty_data    cx_hrpa_missing_infty_data.
    59
    try_to resolve_missing_authorization cx_hrpa_missing_authorization.
    60
    try_to resolve_invalid_feature       cx_hrpa_invalid_feature.
    61
    try_to resolve_unexpected_message    cx_hrpa_unexpected_message.
    62
    try_to resolve_missing_personid      cx_hrpa_missing_personid.
    63
    try_to resolve_invalid_infotype_db   cx_hrpa_invalid_infotype_db.
    64
    try_to resolve_invalid_customization cx_hrpa_invalid_customization.
    65
    try_to resolve_inconsistent_database cx_hrpa_inconsistent_database.
    66
    67
    68
    Just to ensure the macro can be used nowhere else.
    69
    DEFINE try_to.
    70
    END-OF-DEFINITION.
    71
    72
    If we can not remap we would like to just re-raise the
    73
    exception like below like "RAISE EXCEPTION exception.".
    74
    Unfortunately the kernel will then forget about the
    75
    original source position.
    76
    77
    So this is the fallback strategy. Calling this method
    78
    is only allowed if the exception can be resolved. Since
    79
    this is not the case we indicate a parameter violation.
    >>>>>
    RAISE EXCEPTION TYPE cx_hrpa_invalid_parameter
    81
    EXPORTING
    82
    previous  = exception
    83
    parameter = 'EXCEPTION'.
    84
    85
    ENDMETHOD.
    Regards,
    Dipti.

  • Custom infotype with payslip data

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

    Can anybody help.?

  • Insert Infotype with Table Part

    Hi All,
    I am trying to insert Infotype nnnn including the information in the table part using a Function Module.
    I have found FM RH_INSERT_INFTY_EXP. This FM has a parameter called TNNN which is supposed to hold the table part information. However, I have tried to used this but the table part is not filled.
    I saw that PNNNN-ITXNR is relevant here.. However, incremeting this number for each entry I write seems unhandy..
    Can anybody help me here?
    Thanks, Johannes

    Hi Maricella,
    Use FM 'RH_INSERT_INFTY'.
    Pass values for below parameters while calling the FM.
      REPID               = SY-REPID
      FORM                = 'FILL_TASK_DATA'
    Create a subroutine with the same name as you have given above for 'FORM'
    and in this subroutine you can populate data for HRTNNNN.

  • Dynamic tabstrips and table control in custom infotype

    Dear Experts,
    I have a requirement to create a custom infotype using tabstrips and table control. The tabstripes should also be dynamically populated. For example we have infty 8(Basic pay) used table control and 24(Qualifications) for tabstripes.
    Could you please tell me how to do this. Please do the needful ASAP.
    Thanks,
    Chaitanya.
    Moderator message - Please don't just post your requirements and ask the forum to do your work for you...especially ASAP - Thread locked
    Edited by: Rob Burbank on Oct 7, 2009 4:16 PM

    Hi Partha,
    Pls check the threads:
    Best way to store a table control into an infotype
    Re: Custom Infotype with table control - Overview/List  Screen
    Dilek

  • Table control in Custom infotype 9008

    Hi,
    I need to create a custom infotype with table control in it.
    Normally after going to PM01 and genetete it will display all the field as individual field.
    Here i need to use 4 of those field into table control format.
    Is ther any special process to create table control in custom infotypes??
    Thanks in advance,
    Satyadev

    Hi Satyadev,
    I dont have a solution for your problem, but am curious about the intent of what you are trying to do .... the purpose of the table control is to store multiple records, so if a user enters multiple records for the four fields, how are you planning to store it in the Database (PA9nnn) table considering the key would be unique .... Unless you have defined 4*X times the number of columns in your P9nnn strcutre and hence need X number of rows in table control?
    Just trying to bring up a question - so that it might help realize a solution or prospective future problem!
    Cheers,
    Aditya

  • 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

  • Search help on custom infotype

    Hi Experts,
    I create custom infotype with field PLANS and others.
    I have problem on search help (F4) on field PLANS,
    I want to get structural list of position ( like attach file example2.png), not like this in attached file example1.png.
    Could you please help me resolve this problem.
    Thank you, Mija

    Hi Mija,
    The following FM will return you the hierarchical list of any HR Object type that you specify. 
      CALL FUNCTION 'RH_OBJID_REQUEST_46A'
        EXPORTING
          plvar           = '01'
          otype           = 'S'
        IMPORTING
          sel_object      = ls_objec
        EXCEPTIONS
          cancelled       = 1
          wrong_condition = 2
          nothing_found   = 3
          illegal_mode    = 4
          internal_error  = 5
          OTHERS          = 6.
    I use this for 'F4 Help' in the selection screens of my report programs. But, to have it at the table level, you need to create a Search help and attach it to the particular field of the Custom Infotype table.

  • Pop up message in custom infotype screen

    Hi Expert,
    I have one custom infotype with field zzdest ( destination airport) which show all destination airport like mumbai,delhi etc.this
    airpot are mainatin in an ztable  ZR_HR_DES. while user selecting destination some name will be wrong like mumbay instead of mumbai  in the custom table at that time it should show the pop up message that please select mumbai instead of mumbay.
    can any one suggest me how to do this.
    Regards,
    Mdaddu

    When user give a text that is not in your table, you may try to fill an internal table with similar text and then use this internal table in a popup select FM like REUSE_ALV_POPUP_TO_SELECT.
    Some way to fill the internal table
    - with leftmost part of the name removing rightmost character until you get some records (remove right most character and add wildcard til select returns some records) (will identify incomplete text or error at rightmost characters)
    - converting erroneous input to a range replacing every character by a wildcard (DO length(str)/replace sy-tabix character by wildcard and append to a range) (identify a single mistake on a character)
    - wait til SAP implements a [Levenshtein distance|http://en.wikipedia.org/wiki/Levenshtein_distance] rule in SQL...
    Remarks: why don't you use an "official" airport code like ICAO or IATA to identify an airport, a text like "Bombay",  "Mumbai", "Sahar" or even "Chhatrapati Shivaji" can refer to the same airport, and many cities have more than one airport (eg. Juhu for small private aircraft)
    Regards,
    Raymond

Maybe you are looking for

  • Can't get off the settings page. Cant turn on or off

    Hullo there. My current problem is this, whilst on the ipad an alert popped up advertising some game or other for free d/load, when i tried to d/load it a message came up saying(i'll paraphrase here!) "you dont have enough storage left to d/load, go

  • Microsoft Bluetooth Notebook Mouse 5000

    I have a Toshiba Satellite M60, supposedly Bluetooth capable and have just purchased this mouse and have followed the mouse's instructions but it will not communicate with my laptop. Bluetooth software on the laptop says that Bluetooth is not ready.

  • Disk too slow messages

    I keep on getting this message Disk too slow  not able to process all data on time  every  5 to 10 seconds

  • PCA for balance sheet AR / AP

    Dear All, Please give a possible solution urgently. In 3KEH balance sheet accounts are assigned to default PC's i.e. in case for revenue and cost allocation at the time of invoice posting if any B/S accounts are assigned as account determination but

  • Difference between different invokeLater() methods

    What is actually the difference between: SwingUtilities.invokeLater() EventQueue.invokeLater() Are there other classes that implements the invokeLater() method?