Generate extra record when create a new record in secondary form
I have been troubshooting this for a logn time:
I have exemption form ties to exemption table. because there are two many info on exemption form, I create a second form called exemption (2) form and ties to exemption(2) table. Then, I create a "Go to exemption(2) form" button from the first form and it will redirect the user to the second form once they click it.
Once the users complete the second form entry, and click the Create(which is the save record) button, it not only creates a new record in exemption (2) table but also create an extral record in the first exemption table.
I used the exemption sequence to genertate the id so for example,
Exemption (1) has 3 records so far, but after the user add the record in the second form, Exemption (1) has 4 records.
How do I make the first form and the second form consistent in the ID?
Thanks so much in advance!
Thank you Tauceef for your help,
If I get your problem exactly, you are using a sequence for the ID, and you want to insert the same ID in both Tables 1 & 2 - Yes, it is exactly what I want to do
for that what you can do is, in the first form submit process, you can assign the sequence value to a hidden or application - I use exemption sequence and the first form takes nextval of it.
item in your first form and use that item in your second form. - then, I went to the second form, and assign the ID to the first form ID (the page item in application)
I got error message saying can not insert NULL value to second table, can not process the row.
Can you show me the submit process in the first form?
Hope it won't take too much of your time,
Kitty,
Similar Messages
-
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 -
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
LaurentHi, 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 -
Problem with a primary key when creating a new record in Forms
My table has a field - MDD_KEY - that is a primary key. It is updated from a sequence with a before-insert database trigger. I know this works properly as the primary key was accurately populated when I inserted 1433 records.
In Forms 6, I have a form based on that table. I have set the mdd_key as a hidden field because I assume it will be entered by the before-insert trigger. However, when I enter data into the table, and then try to save it, I get a FRM-40202: Field must be entered. - followed by - FRM-40222: Disabled item MDD_KEY failed validation.
If I set DATA Required to no, when I try to save I get an FRM-40600: Record has already been inserted - but no such record exists in the database. I know this record is unique and does NOT exist because I deliberately made it up.
In the property palatte, the attributes of the field are:
DATA Data Type Number
Required Yes
DATABASE Database Item Yes
Primary Key Yes
Query Only No
Query Allowed Yes
Query Length 0
Insert Allowed Yes
Update Allowed Yes
Update Only if Null No
Lock Record No
I assume that my problem is that with a new record, the form wants to see the MDD_KEY populated before it saves - but that isn't going to happen until the before insert trigger fires in the database. I assume I have to populate that field within forms, but how do I do that without messing up the database trigger/sequence? I will have to load more data directly into the database - so I need the database trigger in place.
I have not used primary keys before so I am more than a little bit confused about how and when it should be populated when a new record is created in Forms.
Any help would be appreciated as I cannot enter new data into my form (works well with existing data).
Thanks
Glennhi
if u have any problem using seq then try that statemetn ur block level in ur form
PRE-INSERT trigger
select nvl(max(nvl(srno,0)),0)+1 into :srno from tablename;
Rizwan -
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. -
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 -
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
robertit 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; -
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 -
How to deactivate/ignore R/3 info records when creating Shopping Cart?
Hi all and thanks for reading...
We have the requirement of ignoring/deactivating R/3 info records when creating Shopping Carts SRM , so that no Vendor is proposed in transactions BBPSC01/BBPSC02.
At the moment, when info records exist in backed, system is proposing vendor and other data and we want them to be completely ignored, both in classic and extended classic scenarios.
How can we accomplish that? Is it possible to use BBP_SOS_BADI or is this BADI only valid for SRM local sources of supply?
Has anybody had the same problem and solved it before?
Thanks in advance for your help, regards
DavidHi David
Inforecord is only source of supply for classic scenario only.
Find and Check Sources of Supply
Use
With the Business Add-In BBP_SOS_BADI, you can search for and check sources of supply according to your own rules. These sources of supply include contracts, vendor list entries and product linkages. For this, the customer fields of the shopping cart or purchase order are transferred to the BAdI.
Standard settings
The BAdI provides the following methods:
1. BBP_SOS_INDEX_UPDATE_CHECK
Use: Check and update contract items in the source of supply table.
2. BBP_SOS_SEARCH
Use: Search for sources of supply according to your own rules.
3. BBP_SOS_CHECK
Use: Check and filter the sources of supply found by the standard search according to your own rules.
4. BBP_SOS_PD_CHECK
Use: Carrying out your own additional checks when creating a shopping cart document item with an assigned contract.
Activities
Implement the BAdI if you wish to determine or check sources of supply according to your own rules.
See also
Implementation
As prasanna mentioned - do you want disable both sides or only one side .
Muthu -
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.0Hi,
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 -
Hello,
I have a simple form for entering records in a table. After entering data and pressing the create button it creates a new record. However it clears the fields for the next record to be entered. I've got two questions:
1. If I want the form to stay within the new created record instead of emptiying the fields, how do I do that?
2. Is there a posibility to search on a form? An example would be appreciated.
Thanks in advance,
Denes1. If I want the form to stay within the new created
record instead of emptiying the fields, how do I do
that?Ahh exactly the same question I was just searching for an answer to! =)
Anyone got any ideas?
- JMW -
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 moneyIt 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. -
How to generate an id for a vendor when create a new one?
Dear friends,
How to generate a new id for a new vendor when create the new vendor?
Thanks a lot!>
Qiwei Yin wrote:
> Dear friends,
>
> How to generate a new id for a new vendor when create the new vendor?
>
> Thanks a lot!
Hi,
For many account groups, there is no need to specify vendor number while creating a new vendor. They will take internal number assignment and you can leave this field blank.
For external number assignment, you can assign you own number.
If you are creating vendors through program, and you want your vendors in a particular format, you can use your own number ranges created through SNRO.
regards
Sreenivas -
Assign account from Service Request when creating a New Task
When creating a new task from within a Service Request the SR # is defaulted we would also like to default the account associated with the SR on to the Task. How can you do this?
This is not working in WF.
Refer this thread
Re: Contact record not pupulated when Task created using Workflow.
Maybe you are looking for
-
Inserting records in a table after iterating through it
Hi, I have a table like this: Col 1 Col 2 1 rat 2 hen 1 dog 1 cat 3 lion My requirement is to process all the records with unique values in col 1, means I will be inserting these unique records in table A and if the record repeats like for values in
-
Value not getting maintained even after maintain in some situations
hi experts, we work on service contracts. when a line item is entered, a value( iv_eos_i.) is set Yes/No depending on some custom logic in the line item level this value is then maintained in the crmd_customer_i table using crm_customer_i_maintain_o
-
How do I obtain a credit card receipt from Adobe for an auto renewal?
My account auto renewed and charged my corporate credit card. Is there a way to obtain a receipt for the charge from Adobe?
-
Dear All, I have requirement for password encryption from custom designed login screen. Please help me. Regards, S.Ramakrishna.
-
Another iTunes Won't run question
Yesterday I tried to open iTunes to listen to my music and nothing-it wouldn't launch. So I uninstalled everything per Apple support, reinstalled iTunes and QT and still it will not launch or open. The hard drive spins as if to access the program the