How to create multiple associated record types in a single batch
I know that when inserting records in a batch, if one of the records fail, the entire batch is rolled back. But is there a similar feature when inserting records of different types that are associated with each other?
E.g.
From a web application, the user fills in a form for Contracts and Contract Products and submits to CRM.
The form will first create the parent object (Contract). After this has been created and the rowID for this new Contract object obtained, it can proceed to create multiple Contract Product objects, all tied to that Contract rowID.
But if one of the Contract Products fails during insertion, the batch will only rollback the Contract Products. It will not rollback the main Contract parent. Is there any way to accomplish this?
Well think of it I believe the scenario is too bird viewed hence the solution can't be exact.
But thinking of a possible solution every time a child operation fails have a catch block where you you go back to system if the parent needs to be deleted if yes, call Delete Method on the parent.
Note: Make sure that the decision on whether or not the parent record needs to be deleted will depends on the question "Does Parent Record already has several other children associated to it or not"
Hope this clarifies.
Regards,
Messer
Similar Messages
-
How to create multiple detail records dynamically ?
Hi All,
I have a master-detail Form. I would like to display 5 records from details in my form. After entering data in 5 records in my detail how do I create a new detail record. And how can I get a scroll bar to manage them ? Right now all I could do is just create 5 records as default while designing the form.
Can anyone please help me out ASAP.
Thanks very much,
Murali
[email protected]Hi murali,
Currently this is the way how MD forms works.If you wish to add more records in one go you can set at the design time for more no of detail records using "Number of Detail Rows to Display" in the Detail section .There is no provision of scrollbars at present.
The other time when you enter just enter the Master form's key value with "Master action" set to none and just insert the Detail Form's record using the "Detail actions " to Insert.
Hope it helps.
rahul -
How to create multiple Tree Type Region In Tabular Form ?
Dear Friends,
i have to design tabular form to Distribute User Rioght to emp to access application
eg if i have Three module in application
1.Administration
2.Attendance
3.Accounts
Module
1 Administration have 5 Pages A,B,C,D,E.
Module
2 Attendance HAVE 4 Pages F,G,H,I
Module
3 Accounts HAVE 7 Pages J,K,L,M,N,O,P
I need these three module divided into three section in tabular form as a tree Type like
Module 1 Tree Open in Tabular Form like
- (Tree Mark Open )
=======================================================
PAGE_ID-------------SUBPAGE_ID-------VIEW-------------------MODIFY-------------------CREATE----------------------------TABLE COLUMN NAME
========================================================
Administration-----------A------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Administration-----------B------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Administration-----------C------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Administration-----------D------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Administration-----------E------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
- (Tree Mark Open )
Module 2 Tree Open in Tabular Form like
Attendance-----------F------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Attendance-----------G------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Attendance-----------H------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Attendance-----------I------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
- (Tree Mark Open )
Module 3 Tree Open in Tabular Form like
Accounts-------------J------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Accounts-------------K------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Accounts-------------L------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Accounts-------------M------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Accounts-------------N------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Accounts-------------O------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Accounts-------------P------------------CHECK bOX------------CHECK BOX-------------CHECK BOXi need divided these three Module in Tabular form in three region as tree.
Table APPLICATION_PAGE_DETAILS
ID NUMBER
PAGE_ID NUMBER
SUB_PAGE_ID NUMBER
========================
TABLE USER_RIGHT
======================
ID NUMBER
EMP_ID NUMBER
PAGE_ID NUMBER
SUB_PAGE_ID NUMBER
VIEW VARCHAR2(1)
MODIFY VARCHAR2(1)
CREATE VARCHAR2(1)How to create multiple Tree Type Region In Tabular Form ?
How can i do this ?
Thanks
Edited by: Vedant on Oct 4, 2011 3:21 AM
Edited by: Vedant on Oct 4, 2011 9:09 PM
Edited by: Vedant on Oct 13, 2011 8:57 PMWell think of it I believe the scenario is too bird viewed hence the solution can't be exact.
But thinking of a possible solution every time a child operation fails have a catch block where you you go back to system if the parent needs to be deleted if yes, call Delete Method on the parent.
Note: Make sure that the decision on whether or not the parent record needs to be deleted will depends on the question "Does Parent Record already has several other children associated to it or not"
Hope this clarifies.
Regards,
Messer -
How to create a contract? ( Types: volume,time,quality contracts)
Hi Gurus,
How to create a contract? ( Types: volume,time,quality contracts)
Give the procedure to create above mentioned types of contract.
Bye
Narasimha Rao Gunda1.Access the transaction choosing one of the following navigation options:
SAP ECC menu Logistics Materials Management Purchasing Outline Agreement Contract Create
Transaction code ME31K
2.On the Create Contract: Initial Screen, enter the following values and choose Enter:
Vendor xxxx
Agreement type MK
Agreement date Todayu2019s date
Purchasing Organization
Purchasing Group xxx
Plant xxx
3.On the Create Contract: Header Data screen, in Validity End field, enter end date (e.g. two years in the future) of the contract and choose Enter.
4.On the Create Contract: Item Overview screen, enter the following values:
Material
Target Quantity 10000
Net price xxxx usd per 100 PC
Plant 1000
5.Remark: Delete any entry in the field storage location.
6.Additional step:
If you want to use the information of an existing info record mark the line of the agreement item (item 10) and go to Environment Info record. On the Info record: General Data screen choose Conditions. On the screen Display Gross Price Condition (PB00): Condition Supplements you can see the value of the gross price (here: 1282.5 per 100 pieces.).
7.Choose Save (Check if the automatic print function of the contract works). -
How to create multiple toolbar buttons in jsp ?
hi all,
how to create multiple toolbar buttons in jsp ?
plz help memgmt
plzhttp://www.catb.org/~esr/faqs/smart-questions.html#writewell
How To Ask Questions The Smart Way
Eric Steven Raymond
Rick Moen
Write in clear, grammatical, correctly-spelled language
We've found by experience that people who are careless and sloppy writers are usually also careless and sloppy at thinking and coding (often enough to bet on, anyway). Answering questions for careless and sloppy thinkers is not rewarding; we'd rather spend our time elsewhere.
So expressing your question clearly and well is important. If you can't be bothered to do that, we can't be bothered to pay attention. Spend the extra effort to polish your language. It doesn't have to be stiff or formal ? in fact, hacker culture values informal, slangy and humorous language used with precision. But it has to be precise; there has to be some indication that you're thinking and paying attention.
Spell, punctuate, and capitalize correctly. Don't confuse "its" with "it's", "loose" with "lose", or "discrete" with "discreet". Don't TYPE IN ALL CAPS; this is read as shouting and considered rude. (All-smalls is only slightly less annoying, as it's difficult to read. Alan Cox can get away with it, but you can't.)
More generally, if you write like a semi-literate b o o b you will very likely be ignored. So don't use instant-messaging shortcuts. Spelling "you" as "u" makes you look like a semi-literate b o o b to save two entire keystrokes. -
How to create multiple segments on the target structure of an IDOC
Hi All
I am working on the Shipment Confirmation Interface( Message Type SHPCON ) which is FILE to IDOC Scenario. I have a segment called E1EDL18 which occurs only once on the target side of the idoc. Now I have to created multiple E1EDl18 segments for the Qualifiers ORI, PGI and PCK. I treid to send a constant ORI,PGI,PCK and then used an user defined function which splits the constant at COMMA and then I am assigning to the target field QUALF. In the display queue for QUALF I see three values with context but still only one E1EDL!* segment is created. Please let me know how to create multiple E1EDl18 segments for three qualifiers.
Thanks
NagaIn message Mapping, just right click on the segment and click on duplicate subtree. now it will create you another segment with same name and fields in it..
you can hard code the Qual, or you can map the required source field into it. -
How to create multiple BOM of same parent item?
Hi All,
Please guide me, How to create multiple BOM of same parent item? I tried but system throws a message as same Parent Item already exist in the table. I am afraid if system supports this functionality or not?Hi,
You are welcome.......
Well the exact process would be as I mentioned in my previous post.
1. Create the BOM for an item
2. Choose this item in the Production Order
3. Then in this Production order you can change/ delete/ add whichever item you want .
OR
If all the child items are completely different from the original BOM then you can use the Special Type BOM in which you can always create the BOM while creating the Production Order itself. There is no standard BOM here.
J Nagesh -
I want to write record type variable in ult file.How to i can write record type varable without column name.
type rec_format_type is record
format1 VARCHAR(3),
format2 VARCHAR(3),
my_record rec_format_type;
UTL_FILE.PUT_LINE(file_out, my_record);ibney wrote:
I have below requirement.
DECLARE
emp_data UTL_FILE.FILE_TYPE;
BEGIN
emp_data := UTL_FILE.FOPEN ('EXDATAPUMP','TEST_BC_NN_PARALLEL.csv','W',32000);
FOR TEST1 IN (SELECT /*+ PARALLEL(TEST_BC_NN,4) */ * FROM TEST_BC_NN) LOOP
UTL_FILE.PUT_LINE (emp_data, TEST1);---Here i want to write record in utl file.without knowing the structure of table
END LOOP;
UTL_FILE.FCLOSE (emp_data);
END;
Why all the ugly upper case? You do realise that NO programming standard, ranging from Java and .Net, to C/C++ and Ada (of which PL/SQL is an implementation of), use upper-case-for-reserved-words as a standard.
The easiest and simplest way to address your requirement is as follows:
SQL> create or replace type TStringArray is table of varchar2(4000);
2 /
Type created.
SQL>
SQL>
SQL> begin
2 for c in(
3 select
4 TStringArray(
5 to_char(empno,'000000'),
6 ename,
7 to_char(hiredate,'yyyy-mm-dd')
8 ) as COLS
9 from emp
10 order by empno
11 ) loop
12 for i in 1..c.Cols.Count loop
13 dbms_output.put( c.Cols(i) ); -- write column
14 if i < c.Cols.Count then
15 dbms_output.put( '|' ); -- write column separator
16 end if;
17 end loop;
18 dbms_output.put_line( ' *end*' ); -- write record terminator
19 end loop;
20 end;
21 /
007369|SMITH|1980-12-17 *end*
007499|ALLEN|1981-02-20 *end*
007521|WARD|1981-02-22 *end*
007566|JONES|1981-04-02 *end*
007654|MARTIN|1981-09-28 *end*
007698|BLAKE|1981-05-01 *end*
007782|CLARK|1981-06-09 *end*
007788|SCOTT|1987-04-19 *end*
007839|KING|1981-11-17 *end*
007844|TURNER|1981-09-08 *end*
007876|ADAMS|1987-05-23 *end*
007900|JAMES|1981-12-03 *end*
007902|FORD|1981-12-03 *end*
007934|MILLER|1982-01-23 *end*
PL/SQL procedure successfully completed.
SQL> -
How to Create Multiple Distribution Groups
How to Create Multiple Distribution Groups using power shell?
i have created new csv file with below format
Name,Type
Test01,Distribution
test02,Distribution
Executed below command and it's prompting for each and every account to enter the sam account name.
[PS] C:\Windows\system32>Import-CSV "c:\dl\users.csv" | foreach {new-distributiongroup -name $_.name type $_.Type}
cmdlet New-DistributionGroup at command pipeline position 1
Supply values for the following parameters:
SamAccountName:
is there any other way to create bulk DL groups?
AucsnaPlease check this here is a similar thread.
http://social.technet.microsoft.com/Forums/exchange/en-US/0f86bb8a-63a2-44e5-921f-4a227221e71d/creating-distribution-groups
Thanks, MAS
Please mark as helpful if you find my comment helpful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you. -
How to create multiple instance on same database
Hi ,
I would like to know how to create multiple instance on same database . I know that some people use database configuration assistant to do this but i could not figure out how they did it.
Any how if some one can help me with this and can give me links of this it would be great help for me.
Thank you for reading my problem and helping me !
Amil
please if possible mail me on [email protected]How to create multiple instance?????Do you mean multiple instances on the same database, or multiple databases on the same machine ?
I m new to this field....
Willin to learn a lot about oracle....Then it wouldn't be bad reading a bit of Database Concepts -
How to create multiple pages in the output file?
hi, we have an application (C++) that generates PDF output. I've been asked to figure out how to create multiple copies of each page (uncollated). i.e. the output would be 4 copies of p 1 followed by 4 copies of p 2, etc. I'd like to do this without actually replicating each page if possible ... any ideas?
Why not just put four copies of the same CosObj reference into the Pages array/tree?
-
How can create SEGMENTS and IDOC TYPE in BADI in ECC 6.0 version
Hi All,
Can any one help, how to create SEGMENTS and IDOC TYPE in BADI in ECC 6.0 version.This is my task.
Given BADI name was----VENDOR_ADD_DATA_BI .
ThanksAnil,
look at this thread ..may be this helps you.
Re: 824 IDOC and BADI/User Exit
sateesh. -
How to create multiple selection screens in reports
How to create multiple selection screens in reports
Thanks,
SridharEx: hope you will find an idea from the below example :
SELECTION-SCREEN BEGIN OF BLOCK SEL1 WITH FRAME TITLE TIT1.
PARAMETERS: CITYFR LIKE SPFLI-CITYFORM,
CITYTO LIKE SPFLI-CITYFORM.
SELECTION-SCREEN end OF BLOCK SEL1
SELECTION-SCREEN BEGIN OF SCREEN 500 AS WINDOW.
SELECTION-SCREEN INCLUDE BLOCKS SEL1.
SELECTION-SCREEN BEGIN OF BLOCK SEL2 WITH FRAME TITLE TIT2 .
PARAMETERS: AIRPFFR LIKE SPFLI-AIRPFROM,
AIRPTO LIKE SPFLI-AIRPTO.
SELECTION-SCREEN END OF BLOCK SEL2
SELECTION-SCREEN END OF SCREEN 5000.
INITIALIZATION.
TIT1 = 'ITIES'.
aT SELECTION-SCREEN.
CASE SY-DYNNR.
WHEN '0500'.
MESSAGE W159(at) WITH 'SCREEN 500'.
WHEN '1000'.
MESSAGE W159(at) WITH 'SCREEN 1000'.
ENDCASE.
START-OF-SELECTION.
TIT1 = 'CITIES FOR AIRPORTS'.
TIT2 = 'AIRPORTS'.
CALL SELECTION-SCREEN 500 STARTING AT 10 10.
TIT1 = 'CITIES AGAIN'.
CALL SELECTION-SCREEN 1000 STARTING AT 10 10. -
How to create multiple Idocs in SAP R3 ?
I have been asked question on Idocs from MNC company.
How to create multiple idocs in R3 ? Please let me know.hi ,
if you want to create in multiple IDOCS in XI , take XSD of IDOC and chnage the occurance to 1 to UNBOUNDED, you can genarate multiple IDOCS.
Regards,
Raj -
How to create a new output type in inventory management
dear consultants .
how to create a new output type in inventory management...........?
please give me a solution
regards
ratanRefer:
http://sap.ittoolbox.com/groups/technical-functional/sap-dev/attaching-smartform-to-the-standard-transaction-2316027
Maybe you are looking for
-
My Iphone 4 network is not working in Malaysia
My Iphone 4 network is not working in Malaysia as I offered for 2 month period by behalf of my company and when buy a sim card in Malaysia then I only realise there were no network and I bring to a shop and they upgraded my Iphone and it stuck on the
-
Hello, In Lion 10.7.x I cannot disable the Lock documents for 2 weeks in Time Machine! Thus it prevents to change anything else like the system preferences or other settings. All is locked. How I can disable it?
-
Calling a library function node much faster than labview code?
Hi, I wrote a labview routine to perform a multiple tau autocorrelation on a large array of integers. A multi tau autocorrelation is a way to reduce the computation time of the correlation but at the expense of resolution. You can taylor the multi
-
Register with Shared Services 11.1.1.4 / AIX / WAS
Hello Admins, I'm working on an installation of EPM Interactive reporting. The environment is AIX 6.1 with manual deployment in Websphere Application Server 6.1. Shared services manual deployment was successful and comes up OK. Moving onto the Worksp
-
Hi, I have a table with 95 million records and the unique column of this table has a functional index MOD(unique_column,24)+1 that a PL/SQL script use. Can I benefit from hash partitioning this table on the unique column where there's this functional