Infotype record create, edit

Hi All,
Can anybody tell me the steps involved in creating, editing employee;'s own infotype records through WD ABAP view.
I have infotype (IT0057) record which need to be displayed, create, edit. We are also supposed to attach a custom workflow template with this application so that whenever employee updates, creates his own record - a workflow item will be triggered and sent to concern person for approval.
We have designed the customer workflow template for the same. Please tell me the steps to display, create, update infotype record through WD View.
Regards,
Anil Kumar

Hi,
If you want to perform some additional logic on these buttons then the standard buttons on the ALV cannot be used.
You need to have your own buttons and provide coding or you can also use the Normal TABLE UI element.
At first i'm explaining the process for TABLE UI element.
First,
Design the context node in the component controller for that table of contents with the apt columns.
Map this node to the view1.
Now, In the view1,
Create the TABLE UI element and using CREATE BINDING option bind it to this node, while doing this
select the apt type of UI element for each column( I mean if there are any columns for Inputfield/drodpdown etc).
and also you can design the buttons ADD, EDIT,DELETE and implement the actions.
After designing this, try to display the data by reading that infottype and fill the context node by using
the BIND_TABLE of if_wd_context_node.
By default for the table, one row is selected(lead selection). If you want mutltiple ones then use the option
Leadselection(Multi).
The BAPI you specified is for the save/update the infotype.
Now you can start of with this information...Once this is done I can help you out..for further process.
Regards,
Lekha.

Similar Messages

  • Creating / Updating Custom Infotype Records

    Hello everbody,
    We implement alot of custom HR infotypes in our system, both PA &  HRP.
    For the past several we have been using BDC (Batch-Input) recorded functions in order to update / create the records in our infotypes.
    We're currently facing an upcoming ECC upgrade , and I would like to lead a change that will eventually lead to us using generic SAP supplied functions.
    I've researched a few functions that might do the trick:
    RH_INSERT_INFTY:
    This one is giving me an SY-SUBRC 2 error code - Insert error, I tried to select a current record and insert it as different objid but this doesnt work.
    HR_INFOTYPE_OPERATION:
    I've read of several people that recommended using this function, but it is not released by SAP and I couldnt get it to work as well.
    BAPI_HRMASTER_SAVE_REPL_MULT:
    This one seems to work for sap infotypes but I dont think it suits custom infotypes.
    What is the "official" way of doing such operations?
    thanks in advance,
    Eli.

    Hello Dilak,
    Im currently trying to insert a new infotype record of infotype HRP9226.
    First I call function RH_GET_NEXT_NUMBER to get an objid.
    then I fill an HRP9226 line.
    after this i call the function:
    call function 'RH_INSERT_INFTY'
    exporting
    FCODE = 'INSE'
    vtask = 'S'
    ORDER_FLG = 'X'
    COMMIT_FLG = 'X'
    AUTHY = ' '
    PPPAR_IMP =
    OLD_TABNR = ' '
    REPID = ' '
    FORM = ' '
    KEEP_LUPD =
    WORKF_ACTV = 'X'
    tables
    innnn = hrp9226_line
    ILFCODE =
    EXCEPTIONS
    NO_AUTHORIZATION = 1
    ERROR_DURING_INSERT = 2
    REPID_FORM_INITIAL = 3
    CORR_EXIT = 4
    BEGDA_GREATER_ENDDA = 5
    OTHERS = 6
    I'm getting an "Error_During_Insert" and Im out of options regarding what I can possibly do.

  • Can VMD_EI_API handle Create, Edit, and Delete Vendor Master records?

    Hi Everyone,
    I have a development that requires to create, edit, and delete vendor master records through a webportal ui. Technically, it will be a background process in SAP because it must not have a dialog screen. In my search so far, there is no standard BAPI or Function module that can handle this one.
    Can the class VMD_EI_API handle the requirements?
    Regards,
    John

    Hi,
    Yes, You can use this class to create/modify/delete vendor master data. You can find in SCN documents with example how use it.
    Jarek

  • Problem in creating 0027 infotype record in background

    Hi Experts,
    I am facing the problem in creating 27(Costs distribution) infotype record in back ground.
    Whenever there is a change in position of the employee or when we hire a new employee (Through PA40)
    i have to ctreate 0027 infotype record in background.For that i am using IN_UPDATE method of BADI
    HRPAD00INFTY.
    Here i am getting 2 problems.
    1. I am unable to get the latest positions that is assigned to the employee.
       Through NEW_IM AGE structure we can get the latest position but if a person is assigned to multiple   positions for the same period then i am getting only one position from NEW_IM AGE but not all.can any body help me?
    2. I am calling HR_INFOTYPE_OPERATION FM to create the IT0027 record in background in the above method (IN_UPDATE). but it is not updating the PA0027 table. any idea?
    Full points will be rewarded.
    Regards,
    Sai.

    I am sending a sample program , which is on infotype 0105 (communication). I hope that this program will help u out............
    REPORT ZSAPHR_SAMP.
    tables: pa0105.
    infotypes: 0105.
    DATA : I_RETURN TYPE BAPIRETURN1,
    I_KEY TYPE BAPIPAKEY,
    PERNR TYPE P0001-PERNR,
    I_P0105 TYPE TABLE OF P0105 WITH HEADER LINE,
    ENDDA TYPE P0105-ENDDA,
    BEGDA TYPE P0105-BEGDA.
    MOVE '00000010' TO PERNR.
    BEGDA = SY-DATUM + 1.
    ENDDA = SY-DATUM + 1.
    i_p0105-pernr = PERNR.
    i_p0105-infty = '0105'.
    i_p0105-subty = '0002'.
    i_p0105-endda = ENDDA.
    i_p0105-begda = BEGDA.
    I_P0105-USRTY = '0002'.
    I_P0105-USRID = '[email protected]'.
    APPEND i_p0105.
    CALL FUNCTION 'DEQUEUE_ALL' .
    CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
    EXPORTING
    NUMBER = PERNR.
    IF SY-SUBRC = 0.
    WRITE 'Employee Locked Successfully'.
    ENDIF.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
    EXPORTING
    INFTY = '0105'
    NUMBER = PERNR
    SUBTYPE = '0002'
    VALIDITYEND = BEGDA
    VALIDITYBEGIN = ENDDA
    RECORD = i_p0105
    OPERATION = 'INS'
    TCLAS = 'A'
    DIALOG_MODE = '0'
    NOCOMMIT = 'X'
    IMPORTING
    RETURN = I_RETURN
    KEY = I_KEY.
    IF SY-SUBRC = 0.
    WRITE : 'FM returns sy-subrc 0'.
    ENDIF.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
    EXPORTING

  • Infotype records of infotype 0027 can not be edited.

    Dear experts,
    I have the following problem:
    I can not edit infotype records of infotype 0027. If I delete a row, the message "no change found" is displayed. I press the "save" button but when I display the record again, the row has not been deleted.
    Thank you in advance,
    Vana Sounta

    Hi Vana,
    I assume you are using wrong dynpro (2100) instead of 2500 for MP002700. So please check first in T582A for IT0027, if
    you have maintained 2500 as single screen then make sure that in table T588M you are using module pool MP002700 with screen 2500.  Hope it helps,
    Kind Regards
    Christine

  • Possible to edit recording created through LSMW?

    I created a Batch Input Recording through LSMW. In the recording, a node has got created which doesn't have an OKCode. As a result, when I process the recording, the transaction halts in between due to lack of OKCode (I have pasted a part of the recording at the bottom. The node in Bold Italic is the problem.)
    In order to overcome this issue, I have to edit the recording & remove the node completely. OR I could create an OKCode entry (for an ENTER press) in the node. But I am not able to edit the recording. I am only able to add & delete Screen fields. OKCode not being a Screen field is not available for addition.
    Does LSMW not give the functionality to edit recordings at all? If it so, how can I use an edited recording created through SHDB in LSMW?
    <u>A partial view of the recording follows:</u>
    >>>SAPLOIRB_APP03 321                                                                               
    BDC_CURSOR                     ROIRB0320-VALID_FROM
        BDC_OKCODE                     =ENTE              
        ROIRB0320-STATUS                                  
        ROIRB0320-VALID_FROM                              
    <i><b>>>>SAPMOIFA 0165                                                                               
    BDC_SUBSCR                     SAPMOIFA
        BDC_SUBSCR                     SAPMOIFA
        BDC_SUBSCR                     SAPMOIFA
        BDC_SUBSCR                     SAPMOIFA
        BDC_SUBSCR                     SAPMOIFA
        BDC_SUBSCR                     SAPMOIFA
        BDC_SUBSCR                     SAPMOIFA</b></i>
    >>>SAPMOIFA 0165                                                                               
    BDC_OKCODE                     =SAVE       
        BDC_SUBSCR                     SAPMOIFA    
        BDC_CURSOR                     OIFSPBL-PBLNR

    I went ahead & completed remaining all the LSMW steps. Then I processed the created session in foreground & tracked the OKCode on each screen.
    It ran perfectly upto the screen prior to the problematic node. When it got to processing the problematic node, the OKCode command dialog box remained empty. This is perfectly understandable since in the recording itself there is no line item for OKCode. Unfortunately, it did not skip processing and move onto the next node which had a 'SAVE' OKCode.
    This is where the transaction halted & manual intervention was required.
    Coming back to square one, I have to somehow get rid of the node or find a way to insert a OKCode line item into the recording.
    Did SAP tell you that it not possible to edit an LSMW recording? It is not possible to use an SHDB recording in LSMW either?

  • Adding read infotype records to payroll

    Dear ,
    i 've used the code mentioned in this link to read the infotype records .
    Use SAP defined methods instead of Logical Database(LDB)
    now i want to add this record to the tree in the payroll . could u plz tell me how to add it to a node in the additional payment tree node.
    Edited by: Kathy_Adam on May 22, 2010 3:40 PM

    Hi,
    1. Create new payroll function code in payroll driver exist. Starts with FU<custom name>.
    2. Create new function via PE04 with custome name.
    3. Add custom function to payroll schema.
    Custom name should start with special character, e.g. %, &, :, etc.
    User exit is special for every country driver, check payroll driver program and figure out its name.
    Cheers

  • ECM Records Created with $0.00

    We are setting up Enterprise Compensation Management in ECC 5.0 with MSS.  During the Compensation Planning phase in MSS, where you create adjustments for employees (i.e. merit increases, bonuses, etc.), any employees who are eligible but not granted an adjustment are still having infotype 0759 records created with a value of $0.00, and are then included in the approval process.  There must be a way to control the creation of these records and exclude any employees that are skipped (which defaults to a value of $0.00).  Any ideas?

    Thanks for the quick response. 
    We tried that approach initially but, unfortunately, it is not a complete solution.  It does eliminate the record creation for employees listed that do not have any comp adjustments, but that idea does not work entirely when you want to perform an adjustment for one employee. 
    In a Comp Review period, if you select an employee for 1 plan, it selects them for all plans, and the same if you deselect them.  So, if you have more than one compensation type in your review period (like merit increase and equity adjustment), and only want to grant a merit increase, then the equity adjustment is automatically select too, and an infotype 759 record is created for merit with your specified dollar amount, and one for equity with value $0.00.
    Message was edited by: Chris Bell

  • How to get all records created this month?

    Ok I'm trying to write a query that would get records that were created this month or later but not in the past.
    So today is Nov 16th 2009
    I need to look for all records created from 11/2009 and onward (>11/2009)
    Any ideas?

    Do you have any field like "create_date" on that table ? Here is simple qry
    with t as ( select 1 as id,to_date('01-OCT-2009','DD-MON-YYYY') as create_date from dual
    UNION
    select 2,to_date('11-OCT-2009','DD-MON-YYYY') from dual
    UNION
    select 3, to_date('02-NOV-2009','DD-MON-YYYY') from dual
    UNION
    select 4, to_date('01-NOV-2009','DD-MON-YYYY') from dual
    UNION
    select 5, to_date('13-DEC-2009','DD-MON-YYYY') from dual)
    select * From t
    where CREATE_DATE >= trunc(sysdate,'MON')Edited by: rkolli on Nov 16, 2009 1:23 PM

  • HR_INFOTYPE_OPERATION - Need help w/Deleting infotype records

    Hello all,
    We have an issue where infotype records got created where the ENDDA is less than the BEGDA (ENDDA = 06/30/2006 and BEGDA = 07/01/2006).  We are trying to delete these using HR_INFOTYPE_OPERATION but we are getting message PG-009 (No data stored for 9001 in the selected period) returned in our tests. 
    BTW, 9001 is one of our customer infotypes. 
    I know I can remove these records using a direct SQL statement, but I would prefer to remove them more gracefully if possible.  Is there a way around this error?  I actually think function module HR_READ_INFOTYPE is raising the error.
    Any suggestions would be greatly appreciated.
    Thanks,
    Al

    You can check report RHRHDC00, I think it can help you with custom infotype too.
    Otherwise you might need to delete the records forcefully using DELETE statement, which is not suggested since all the  standard FM consider BEGDA and ENDDA and in your case they will always return blank.
    You can also check FM -
    HR_ECM_DELETE_INFOTYPE
    Regards,
    Amit
    Reward all helpful replies.

  • FM for delimit the infotype record

    Hi
    I'm new to HR-ABAP.I need to develop function modules to delimit the some infotype records (eg: 0167,0168,0014,2006 etc)
    Presently i developed the function module that has following source code.
    CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
        EXPORTING
          number        = empno
    CALL FUNCTION 'HR_READ_INFOTYPE'
        EXPORTING
         tclas                 = 'A'
          pernr                 = empno
          infty                 = '0167'
          begda                 = delimitdate
          endda                 = delimitdate
      BYPASS_BUFFER         = ' '
      LEGACY_MODE           = ' '
    IMPORTING
      SUBRC                 =
        TABLES
          infty_tab             = itab "itab is of the structure p0167
    enddate = itab-endda.
    MOVE delimitdate TO itab-endda.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
        EXPORTING
          infty                  = '0167'
          number                 = empno
          subtype                = itab-subty
          objectid               = itab-objps
          lockindicator          = itab-sprps
          validityend            = enddate
          validitybegin          = itab-begda
          recordnumber           = itab-seqnr
          record                 = itab
          operation              = 'LIS9'
          tclas                  = 'A'
          dialog_mode            = '0'
      NOCOMMIT               =
      VIEW_IDENTIFIER        =
      SECONDARY_RECORD       =
       IMPORTING
         return                 = return
      KEY                    =
    CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
        EXPORTING
          number        = empno
    when i use 'MOD' operation in FM 'HR_INFOTYPE_OPERATION' that FM runs perfectly.it changes the enddate to delimit date in the table PA0167.
    But, when i use 'LIS9' (delimiting) operation FM is throwing following error message
    "E PG  428 A complex application error has occurred".
    I need help regarding this error statement.can i use 'MOD' operation to delimit the records (time constraint of most of the infotype record to be delimited is 2).In which case we use 'LIS9'??
    Also any SAP function modules for delimiting IT2006 infotypes????
    Pls suggest.
    Thank u,
    shrinivas
    Message was edited by: Shrinivas

    For 167 & 168 have you looked at HR_BEN_TERMINATE_HEALTH_PLAN & HR_BEN_TERMINATE_INSURE_PLAN?
    The error message you got is actually mapped to (00)344 ie "No batch input data for screen & &"
    For the delimit operation, you probably,need to pass the delimit date separately..
    I have a feeling this function call cannot be used for the delimit operation le 'LIS9'.AS the delimit date is usually entered on a pop-up box when you do it via PA30.
    ~Suresh

  • Modifying SPRPS field in an infotype record

    Hi experts,
    I have a requirement in which i need to modify the lock indicator value of an existing 2001 infotype record. That is, initially when a record is created, i need to update the lock inidicator field as 'X'. Then after few approvals, i need to read the same recoed from infotype 2001 and need to modify the lock indicator with blank. Can the same requirement be achieved using HR_INFOTYPE_OPERATION ?
    Is it possible to modify the SPRPS field with the value blank ' ' using HR_INFOTYPE_OPERATION'?
    Regards,
    Shanthi

    Yes it is. All you need is to provide correct key fields of the record vis this FM exporting parameters and for record parameter pass structure for the record with all the target data (new data for the record).
    So basically the structure will hold all the information as it is right now + field SPRPS with changed value. To ensure you provide correct data, you can first read appropriate record entry with HR_READ_INFTY -> get required entry from result list -> then change only field SPRPS and pass it back to HR_INFOTYPE_OPERATION on input.
    Please refer http://www.sapdev.co.uk/fmodules/fms_HR_INFOTYPE_OPERATION.htm.
    Regards
    Marcin

  • Create Edit Delete in Oops ALV

    Hi Experts,
    I need to create an ALV which will provide all the functionality of Create, Edit, Save and Delete records and update the Custom table accordingly.
    I want to design it as follows -
    1. Display should be in non-ediatble mode initially (because I don't want to make it completely ediatble at all times)
    2. When the user clicks Create button a new line appends at the bottom and the ALV has to be made editable, for the values to be entered at the new row appended.
    3. When the user presses Save, again the ALV goes into non-ediatble mode.
    4. When the user presses Edit Button, the ALV is open for editing and again the whole ALV is editable. After Editing, the user will select those particular lines through Box Button and Press on Save Button to enable those particular lines to be modified and saved in ALV. Again at the press of Save button, the ALV will switch to Non-modifiable view.
    5. For Deletion, select the particular line/lines through Box Button and Click on Delete.
    This is how I plan to achieve the Create, Edit, Delete Functionality.
    Can you please confirm the feasibilty of this Design, whether it is achievable.
    There is some option of dynamically changing the Field Catalogue. If it is there, I'm thinking of utilising it for switching the modes on click of Create, Edit and Save Buttons. Click/Edit --> Modifiable. Save --> Non-modifiable.
    Please do give your comments on the above functionality and feasibility. If you are knowing a different or easy approach please do share it. If you have done it then please do share it.
    Thanks & Regards
    Tanu

    Plz ask your specific requirement otherwise mosarator will block the thread...

  • Create editable content area

    hi,
    i noticed in dreamweaver there is create editable regions etc. how can i create a page that when the user logs in they can input the text and click update and it will change the public index file?
    dont really want to go and use joomla or anything if possible.
    many thanks

    I have no idea whether InContext Editing can be branded. I doubt it, though, because it's an Adobe hosted service.
    Creating a simple CMS in Dreamweaver is perfectly possible. See the tutorial athttp://www.adobe.com/devnet/dreamweaver/articles/first_dynamic_site_pt1.html. It runs you through the basics of inserting, updating, and deleting records.
    Although I have never used it myself, several people have recommended CushyCMS for a basic CMS for clients. See http://www.cushycms.com/.

  • No infotype record 0007(Planned working time) on 03/07/2011

    Hi,
    In our scenario, Time sheet is integrated with work order and while submiting we are getting an error :
        "No infotype record 0007(Planned working time) on 03/07/2011".
    Where as I checked infotype 0007 but it is maitained with proper data.
    Please suggest what could have gone wrong and why this error is coming?

    I am assuming 03/07/2011 in your problem refers to March 07, 2011.
    Please check: Has the work schedule in IT 0007 been generated? Check transaction PT03 in your production system and see if you can display the work schedule for the month.
    If it has not been generated, you will need to generate it for the month.
    If it has been generated, please check the details for the day in question (03/07/2011). Please make sure that the DWS and PWS are all consistent with the configured values. Run teams, too often, try and create different schedules by changing the DWS value in a PT01 run.

Maybe you are looking for

  • Report Using PL/SQL Region

    Hi, I have bit experiment create custom reports using PL/SQL region http://dbswh.webhop.net/apex/f?p=BLOG:READ:0::::ARTICLE:97800346956448 I would like have from you tips and ideas how enhance this. Because I'm not so good with SQL, I really apprecia

  • Project Accounting

    We are looking at implementing PA for 11.0 or 11i; Looking through the documentation I have been unable to locate how sales tax is handled in PA and if you can still use Vertex to calculate tax rates and exceptions?? Is there anybody who has dealt wi

  • I have lost my passcode and cant sync my iphone either

    PlEaSe HeLp I have lost my passcode and cant sync my my phone either so i cant access anything to change it.

  • BT Infinity - Stuck In Customer Support Loop

    I seem to have fallen through the cracks in the Indian Level 1 & 2 support's scripts for BT Infinity.  1) After the nationwide 2Mb/s speed problem, my connection never recovered. After numerous calls, hours on hold and failures to call me back after

  • Dropdown in select options

    Hi experts, Can a dropdown be displayed in a select option. eg: att type:   awart- low    awart-high Can this awart-low and awart-high have a dropdown to select data instead of a search help. Because when I tried to create a select option and added w