HCM PF: Create multiple new records while displaying old ones

Hiya (cross-posted to OSS & SDN),
I'm having some difficulties when trying to create new records to IT0014 while displaying old records at the same time, hope you can help me. The problem in brief is that existing records are removed from display when I create new ones and click on check.
My setup is as follows:
- SAP ERP 6.0 EhP4 SP29
- one form scenario with the following fields set up for backend service SAP_PA (two consecutive calls, first for I0014_xxxxx and the second for fields I0014_xxxxx_NEW):
o I0014_BEGDA Validity begin date 5 SAP_PA: Value for Effective Date Create 0014 * HCMT_BSP_PA_XX_R0014 BEGDA * PAD_BEGDA
o I0014_BETRG Amount 5 SAP_PA: Value for Effective Date Create 0014 * HCMT_BSP_PA_XX_R0014 BETRG * PAD_AMT7S
o I0014_ENDDA End date 5 SAP_PA: Value for Effective Date Create 0014 * HCMT_BSP_PA_XX_R0014 ENDDA * PAD_ENDDA
o I0014_LGART Wage Type 5 SAP_PA: Value for Effective Date Create 0014 * HCMT_BSP_PA_XX_R0014 LGART * LGART
o I0014_LGTXT Wage Type Text 5 SAP_PA: Value for Effective Date Create 0014 * HCMT_BSP_PA_XX_R0014 LGTXT * LGTXT
o I0014_WAERS Currency Manual Default Value: EUR Create 0014 * HCMT_BSP_PA_XX_R0014 WAERS * WAERS
o I0014_BEGDA_NEW Validity begin date Create 0014 * HCMT_BSP_PA_XX_R0014 BEGDA * PAD_BEGDA
o I0014_BETRG_NEW New Amount Create 0014 * HCMT_BSP_PA_XX_R0014 BETRG * PAD_AMT7S
o I0014_ENDDA_NEW New end date Create 0014 * HCMT_BSP_PA_XX_R0014 ENDDA * PAD_ENDDA
o I0014_LGART_NEW New Wage Type 1 ZS_ACTIONS: Value Help Create 0014 * HCMT_BSP_PA_XX_R0014 LGART * LGART
o I0014_WAERS_NEW New currency Manual Default Value: EUR 6 SAP_PA: Value Help Create 0014 * HCMT_BSP_PA_XX_R0014 WAERS * WAERS
- the PDF layout has two table controls: one for displaying the old values (I0014_xxxxx) and one for displaying the new entries to be created (customer requirement to display the tables side by side)
- old values are displayed all right and they get populated without any problems
The problem is that when I try to create a new entry with fields I0014_xxxxx_NEW, the first table entry in fields I0014_xxxxx is cleared out. This same problem currently occurs also with other table type entries (I0027, I0008).
I've looked very closely at note 1043692 and it states the following in its limitations:
- limitation 4:
a change to the field LGART is not allowed
=> I'm not doing a change, trying to create
- limitation 6:
Two front end fields mapped to the same backend (infotype) field cannot be used in the same table, though you have configured different default values and made one field as operation exclusive. The reason being that the field marked as Op-Exclusive will not be operated upon and there will be inconsistencies in the number of table lines generated.
=> could this be the reason for my problem?
I have also given a shot at creating a generic service for the job, but as the same note suggests it didn't work (testing the process timeouts if I return fields with multiple field values with separate indexes and subtypes).
Have you had any experiences with table controls showing both past and to-be values? Does the framework even support this kind of a requirement?
Best regards,
Mikko

Hi Aravind,
appreciate your input.
Not sure however if I followed you completely. When you wrote "values that needed to be displayed are made as optional" did you mean optional = operation-exclusive or optional = disabled with the help of a rule? 
Did you btw do this especially with subtype * and index * relevant infotypes? I tried your approach and upon initialization everything looks good (I didn't have the generic service in between SAP_PA:s because gs:s won't work in case of subtype * infotypes at least according to OSS and my initial tests), both the display and edit elements are populated all right.
However when I create a new entry into the new fields, their sort order is messed up upon check & send - the last entry suddenly becomes the first and check & sending for the second time I get errors about LGART and SUBTYpe not being the same (which is natural and according to the OSS note I referred to previously).
If you have been working with subty * related multiple fields, can you elaborate more on your solution?
Best regards,
Mikko

Similar Messages

  • How do I create a new account and delete old one.

    I want to stop current account and start a new one.

    Go to Settings>iCloud and turn all data that is syncing with iCloud (contacts, calendars, etc.) to Off.  When prompted choose to keep the data on the iPhone.  After everything is turned off, scroll to the bottom and tap Delete Account.  Next, set up a new iCloud account using a different Apple ID and turn iCloud data syncing for contacts, etc. back to On.  When prompted, choose Merge.  This will upload the data to this new account.
    This will not move your photo stream, however.  If you have photos in photo stream that you haven't backed up anywhere else you will need to save these before deleting the account.  If your computer is syncing with your iCloud account, your can photo stream photos directly to your computer.  If not, open your photo stream album on your iPhone in the thumbnail view, tap Edit, tap all the photos to select them, tap the share arrow button, then tap Save to Camera Roll.  Once in the camera roll you can import them to your computer.

  • I just created a new email because my old one wasn't working, so I changed my Apple ID to my new email but now it's saying it can only send to my old email

    Help

    Hello Kinleyc,
    The following articles should help get your Apple ID associated with and using your current email address rather than your old address.
    Apple ID: Associating and verifying email addresses with your Apple ID
    http://support.apple.com/kb/HE68
    Apple ID: Changing your Apple ID
    http://support.apple.com/kb/HT5621
    All my best,
    Allen

  • Creating new records while querying existing record

    Hi,
    I have one master - detail form.
    First i created 1 record. Request ID is the primary key. Now request id generated. For ex.: 10
    Request Id, date, requestor , location, status fields are in header block.
    In lines block, i hv some other fields.. and one field called 'Activity'.
    While creating first record, the activity will be 'New'.
    Then i'll query the record '10'.
    when i'm changing the activity 'New' into 'Upgrade', it should create new record with new request ID.
    How to do this?
    I hv written procedure that, i'm taking field values to local variables. Then assigning the local variable values to field values.
    It is not creating as new record. It overwriting the existing record with new values. Existing record is missing.
    Pl. give steps.
    Thanks
    Kavi

    Hi,
    Okk, you will have to do two things. Create two trigger on block level on which you want to do your changes.
    1. First trigger. (PRE-UPDATE)
    In pre-update trigger u will have to write the complete insert statement into the same table with new req id. like
    DECLARE
    vReqNo DATA_TYPE;
    BEGIN
    SELECT MAX(REQ_ID)
    INTO vReqNo
    FROM your_table;
    INSERT INTO your_table
    (req_no, fields....)
    VALUES
    (vReqNo, :forms_values);
    END;
    2. Create 2nd trigger on block level (ON-UPDATE)
    write in this trigger
    NULL;
    for viewing the inserted record. What u have to do is in ON-UPDATE after null; create one timer NO_REAPEAT.
    and in timer u will have to set the block property to req_id = generated_req_id_from_pre_update_trigger and
    execute_query;
    hope it will work...
    -Ammad

  • JDeveloper 10g Creating a new record with trigger sequence primary key

    Hi there, I'm sorry to post this incredibly simple question and I'm sure that someone must have answered this on this forum before but the searching of this site is incredible slow and painful and after 30 mins I can't find help.
    I am using a struts Data Action to create a new record in the database and then being forwarded to an edit page where I can enter the new details. Then when the details are entered I am clicking an update button and returning to a browse screen where I can either commit the change to the database or rollback. Sounds pretty simple but I am really struggling with trying to get the trigger of the number sequence to work properly.
    Ideally I would like to click the create new record button and then the primary key/triggered sequence number is already displayed on the empty form...
    ... but if this is too tricky or not possible then I would like the user to either not enter any value in the key field (which currently causes error - JBO-27014: Attribute PoNo in PO_SYS_MODULE.PoSystemView1 is required) OR the user enters a number and the trigger overwrites this number with the next in the sequence.
    I can enter a new record if I look in the manager console and see the next number in the sequence and then create the record using this number and then click commit twice, as the first time I get the error: JBO-25019: Entity row of key oracle.jbo.Key[154 ] not found in PoSystem. Or if I enter a value 5 times greater than the next in the sequence I have to click the commit button 5 extra times to get the sequence to match the input.
    I hope that this lengthy explanation fills you in on my problem, there must be a simple solution to this and I will be VERY grateful to anyone who can help me.
    Many thanks
    Ben Sayers (clearly a newbie)

    Hi,
    ADF Business Components handles this for you - unless yo prefer doing this manually. In the Entity Object, set the PK attribute's type to DBSequence. Then create a database sequence and use a database trigger to add the sequence value on insert
    Frank

  • How to create multiple new rows in ADF Table?

    Hello,
    being new to ADF Faces/BC I managed to display data in an ADF Table and create new entries using the "CreateInsert" operation (one at a time).
    Now, the next task is to create multiple new rows at the same time, set some default values and display the new rows in the ADF table. Then the user will enter additional data and commit the new rows.
    Where do I step in? In the EntitiyImpl? Can this be handled declaratively or do I have to implement custom method(s) in the AM?
    Thanks
    Gerald

    Hi John,
    I'm still getting the following error
    Error(94,144): method getValue() not found in class javax.faces.el.ValueBinding
    What should it be casted to?
    The code in backing bean is like this..
    package view.backing;
    //import com.test.model.TestAppModuleImpl;
    import javax.faces.component.html.HtmlForm;
    import javax.faces.component.html.HtmlPanelGroup;
    import javax.faces.context.FacesContext;
    import javax.faces.event.ActionEvent;
    //import javax.faces.event.FacesListener;
    //import oracle.adf.model.BindingContext;
    import oracle.adf.model.binding.DCBindingContainer;
    import oracle.adf.model.binding.DCIteratorBinding;
    import oracle.adf.view.faces.component.core.data.CoreColumn;
    import oracle.adf.view.faces.component.core.data.CoreTable;
    import oracle.adf.view.faces.component.core.input.CoreInputText;
    import oracle.adf.view.faces.component.core.nav.CoreCommandButton;
    import oracle.adf.view.faces.component.core.output.CoreMessages;
    import oracle.adf.view.faces.component.html.HtmlBody;
    import oracle.adf.view.faces.component.html.HtmlHead;
    import oracle.adf.view.faces.component.html.HtmlHtml;
    import oracle.jbo.ApplicationModule;
    import oracle.jbo.Row;
    import oracle.jbo.ViewObject;
    //import oracle.jbo.server.ViewObjectImpl;
    //import view.utils.EL;
    public class MultipleInsert1 {
    private HtmlHtml html1;
    private HtmlHead head1;
    private HtmlBody body1;
    private CoreMessages messages1;
    private HtmlForm form1;
    private CoreTable table1;
    private CoreColumn column1;
    private CoreInputText inputText1;
    private CoreColumn column2;
    private CoreInputText inputText2;
    private CoreCommandButton commandButton1;
    private HtmlPanelGroup panelGroup1;
    private CoreCommandButton commandButton2;
    public void setHtml1(HtmlHtml html1) {
    this.html1 = html1;
    public void createMultiRows(ActionEvent actionEvent) {
    DCBindingContainer dc = (DCBindingContainer) FacesContext.getCurrentInstance().getApplication().createValueBinding("#{bindings}").getValue();
    DCIteratorBinding iter = dc.findIteratorBinding("TestView1Iterator");
    ViewObject vo = iter.getViewObject();
    for (int i=1; i<=5; i++) {
    Row newRow = vo.createRow();
    newRow.setAttribute("Id", i);
    ApplicationModule am = vo.getApplicationModule();
    am.getTransaction().commit();
    vo.executeQuery();
    Do I need to import something else?
    Thanks,
    Shri.

  • I have added a new field in IT0006 ,Now when try to create a new record for

    Hi Experts,
    I have added a new field in IT0006 ,Now when try to create a new record for a employee.
    1,If I give the SUBTY in the PA30 screen getting an error "Don't Specify a subty error"
    if and remove the subty and press CREATE button popup's comes and list the subty values.......It was allowing me to enter the subty in the PA30 screen prior to my new field addition in IT0006... is't a problem with the new field addition?
    2, After I choose the subty value from the pop-up I am able to see the next screen....BUT GETTING AN INFORMATION MESSAGE THAT "Assignment to feature P0006 did not take place"?
    3,, In the next screen after I have passed all mandatory fields while attempting SAVE I am getting an error called " Time constraint table in T777D is incorrect" what could be the cause?

    How are u adding fields to table using append in se11 or pm01.
    if you are adding fields using se11 delete it and add it0005 in transaction pm01 and generate object.
    add fields to structure CI_XX_R0005 and generate screen and maintain entry and screen in maintance view add entry and activate program.

  • Populate fields when creating an new record

    Hello,
    When I create a new record from an other record type (ex: a service request from a task), I would like to pre populate some fields which are common to the task and the SR (ex: Owner, Account, Contact) and already on the task record.
    I have read that I could use the joinfieldvalue function with the post default activated.
    But the fields Owner, Account and Contact are read only picklist on the service request record and I am not allowed to use the default feature...
    Could you help? Do you have any idea?
    Thanks in advance
    Laurent

    Hi, As a service request can have multiple activities and you dont have the activity field (primary) in the service request, i dont think it is possible to acheive your requirement through JoinFieldValue. On the other hand if you like to default activity fields on basis of the associated SR to activity that is possible as the activity has the associated SR information. Hope it helps
    -- Venky CRMIT

  • Web GUI new feature - creating a new record based on the current record

    Vincent,
    We need new feature in Web GUI:
    creating a new record based on the current record with data
    from Moscow with money

    It is already enabled, in the next release.
    If you joint TAB program, the march preview build contains it. User can select 1 or multiple users and make a copy.

  • Need help to create a new record in mdm using java webdynpro

    hi all,
    I have to develop an application to create a new record in mdm by using java WebDynpro  . Please help me what is the process that i have to follow to do this and provide me if you have any step by step guidance for this.
    thanks & regards,
    Mahi.

    Hi,
    The below link will help u to make the application in JAVA webdynpro
    The article has code to for creating records.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/803e9e80-21f4-2a10-8cbf-bcf6a8060be3
    Hope this may help u .
    Rgds
    Ankit

  • When creating a new record in a list, I want to create a new record in another list, too, together with the ID of the first record

    OK, for anyone who has ever programmed a database, this one is easy. However, I am EXTREMELY limited. I work with SharePoint 365 (2013). I am pretty proficient in a number of programing languages, but I really don't know how to program SP. I wouldn't even
    know where to put code.
    Say, I have two lists: List A, with Items A1 (ID), A2, A3 and List B, with Items B1 (Lookup to A1), B2, B3. What I want this: When I create a new record in List A I want that also an empty record (except for the B:A1 item) is created. Is that possible without
    any major programing?

    you can create a workflow to achieve your requirement
    http://sharepoint.stackexchange.com/questions/50059/create-a-list-item-when-item-is-created-in-another-list
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • Is there a way to create multiple New Tabs pages and name them?

    This feature is great but I would like to be able to create multiple new tabs pages and label them. This would be more useful than tabs groups that all load at once.

    No that is (currently) not possible.
    It will be possible in future Firefox version to specify the number of rows and columns.
    *[https://bugzilla.mozilla.org/show_bug.cgi?id=752841 bug 752841] - [New Tab Page] make the number of tabs adjustable
    <i>([https://bugzilla.mozilla.org/page.cgi?id=etiquette.html please do not comment in bug reports])</i>

  • Create a new record in transformation

    Hi there,
    I would like to create a new datarecord, in a start/end routine or in a characteristic transformation routine. I am loading data from one cube to another.
    I have, say, a data structure looking like this:
    GL_Account; Fiscyear; Version; Amount
    111000;          2008;      01;         100.000
    I want to, based on this record, create a new record where version gets a new value (ex: 10, instead of 01), so the new record would look like, eg,:
    GL_Account;  FiscYear; Version; Amount
    111000;          2008;       10;        100.000
    What would be the best way of doing this?
    Thanks for your help.
    Jon
    I'm on BI 7.0

    Hi,
    Do this in End routine of Transformation,
    data:
              itab type tys_tg_1,
              it_resultpackage type tyt_tg_1.
        append lines of RESULT_PACKAGE to it_resultpackage.
        loop at it_resultpackage assigning <RESULT_FIELDS>.
        if <RESULT_FIELDS>-version = '01'.
            <RESULT_FIELDS>-version = '10'.
                append itab to RESULT_PACKAGE.
          endif.
          clear <RESULT_FIELDS>.
        endloop.

  • About create a new record in MM01

    hi,all
    I have created a new record of MARA-MATNR = 'Raffin_001' in MM01.
    But I don't know how I can find some fields like "MARA-WRKST".
    Can I write
               UPDATE MARA
                  SET WRKST = 'XXX'
                WHERE MATNR = 'Raffin_001' "
    to replace it?
    Is it right?

    Hi,
    WRKST - Is the field name for Basic material
    Basic Materia is defined in OMT6 tcode
    Path - LG - MM - Settings for Key fields - Define Basic Material.
    After defining in the SPRO settings then you can enter this basic material in BASIC DATA 2 under basic material field for the material code you wanted.
    Thanks & Regards,
    Kiran

  • Filling datarows before creating a new record  frm-40735 ora-01422

    Hello
    I want to create a user-control table where I Store in the Mastertable the user informations. in the 2 detail tables I store the programmnames of the first level, in the second table I store the name of the form and if the user is allowed to insert, amend or delete.
    I use a Master/2 Detail-Form. When I create a new record in the master block, I want to fill in the first and second detail block, informations of another user of the 2 detail tables. therefore I created a when-new-block-instance trigger with the following code:
    select programm
    into :k_zugriff.Programm
    from k_zugriff, K_benutzer
    where r_benutzer_zaehler=k_benutzer.zaehler
    and oracle_user='ROBERT';
    because this sql serves more than one row I receive the error code frm-40735 ora-01422
    so how could I solve the problem to insert 5-10 rows in :k_zugriff.Programm. I can not make an insert before I go to the block k_zugriff, because the user number is not commited known. Also I want to commit the form when all informations are filled in. in case of a mistake I want to exit the form with no commit;
    has anyone a usefull Idea?
    regards
    robert

    it works thank you. where can I get further information about this technik. are there any turtorials or something where I get information how to build this complex forms??
    right statement
    DECLARE
    CURsOR cr IS
    select programm
    from k_zugriff, K_benutzer
    where r_benutzer_zaehler=k_benutzer.zaehler
    and oracle_user='ROBERT';
    BEGIN
    FOR rec IN cr LOOP
    IF :SYSTEm.RECOrD_STATUS!='NEW' THEN
    CREATE_RECORD;
    END IF;
    :k_zugriff.Programm:=rec.PROGRAMM;
    END LOOP;
    END;

Maybe you are looking for

  • Error  while reading data using Function Module /sapapo/msdp_data_read

    In my report, function module /sapapo/msdp_data_read  is called to get the data from a planning area. The problem is that, the values returned by this FM are not correct.means its returning wrong Key_figure values. On checking it was observed that ,

  • Display blob file

    Quick Question: Is it possible to display a file stored in an oracle blob field directly to the browser, without first writing it to the server? My Situation: I need to display the file associated with a given record. When the user selects the record

  • How to make items in a region populate a parameter in another region

    I have two regions in an APEX page: List of items (hyperlinks) on the left, PL/SQl block containing a media player for videos on the right. What I want is for the list to talk to the media player. Click an item in the list and that populates what fil

  • Is there a way to send PP renders to another computer on the network?

    Is there a way I can send renders out of Premiere Pro CS6 to another computer on the network that has Adobe Media Encoder CS6 installed?

  • Re - Activation !

    My apologies for this message, but i don't know whre to go ! Can someone help me to find the correct link for reactivating my codes? I'm an Adobe customer since...decades (!), using allways the same email address or my older Adobe ID, but when i try