Inserting summary value in a ZTABLE
Hi Experts,
Please guide me on how the following:
I have created a Ztable into which i want to upload the Stock in a summary format i.e.
i have got the above values in an internal table. now i want to insert the sum of results into another internal table.
*PLANT MATERIAL BATCH STORAGE QUANTITY MONTH_END_DATE*
0001 ABC-001 12345 RM 500 30.04.2008
0001 ABC-001 12345 RM 1500 30.04.2008
0001 ABC-002 23456 PM 1000 30.04.2008
0002 XYZ-001 12345 RM 500 30.04.2008
0002 XYZ-001 12345 RM 500 30.04.2008
0002 ABC-001 23456 PM 500 30.04.2008
0002 ABC-001 23456 RM 500 30.04.2008
At the end of Plant, Material, Batch & Storage Location system should sum up the quantity and insert into the Internal table. Format is as below
*PLANT MATERIAL BATCH STORAGE QUANTITY MONTH_END_DATE*
0001 ABC-001 12345 RM 2000 30.04.2008
0001 ABC-002 23456 PM 1000 30.04.2008
0002 XYZ-001 12345 RM 1000 30.04.2008
0002 XYZ-001 23456 PM 500 30.04.2008
0002 XYZ-001 23456 RM 500 30.04.2008
I will then insert the above value into a Ztable.
I have tried doing it but i just do not get the summary values.
Please guide on how to achieve it.
I hope i have given you an idea of how i want the data,
Any queries please let me know.
Thank You,
Jitesh
I HAVE USED AS YOU SUGGESTED.
i am first giving the data what is there in the Internal Table IT_FINAL.
then i am giving the output after the code suggested has been written.
finally i am giving the output as and how i want it.
plant material batch storagelocation quantity
1 100050 NEWBATCH02 RM01 10,000.000-
1 100050 NEWBATCH01 RM01 50.000-
1 100050 NEW10 RM01 50.000-
1 100050 NEWBATCH01 RM01 100.000-
1 100050 NEW561 PM01 10.000-
1 100050 BATCH1 RM01 10.000-
1 100050 NEW561 PM01 1.000-
1 100050 123456 RM01 10.000-
1 100050 NEW561 PM01 10
1 100050 NEW10 RM01 50
1 100050 NEW10 RM01 50
1 100050 NEW561 PM01 10
1 100050 NEWBATCH02 RM01 10,000.00
1 100050 NEWBATCH02 RM01 10,000.00
1 100050 NEWBATCH01 RM01 100,000.00
1 100050 NEWBATCH01 RM01 10,000.00
1 100050 NEWBATCH01 RM01 100
1 100050 NEWBATCH01 PM01 200
1 100050 NEWBATCH01 PM01 41
1 100050 NEWBATCH01 RM01 100
1 100050 BATCH1 RM01 10
1 100050 BATCH1 RM01 10
1 100050 123456 RM01 10
1 100050 123456 RM01 10
120,370.00
PLEASE FIND HEREWITH THE CODE
it_final1[] = it_Final[].
DATA: WA_MANDT TYPE MANDT,
WA_MATNR TYPE MARA-MATNR,
WA_WERKS TYPE MSEG-WERKS,
WA_LGORT TYPE MSEG-LGORT,
WA_CHARG TYPE MSEG-CHARG,
WA_BUDAT TYPE BUDAT,
WA_MEINS TYPE MSEG-MEINS.
loop at it_final1.
MOVE: IT_FINAL1-MATNR TO WA_MATNR,
IT_FINAL1-CHARG TO WA_CHARG,
IT_FINAL1-LGORT TO WA_LGORT.
on change of it_final1-MATNR.
sum.
I_STOCK-MATNR = WA_MATNR.
I_STOCK-CHARG = WA_CHARG.
I_STOCK-LGORT = WA_LGORT.
I_STOCK-lbkum = IT_FINAL1-DR_STOCK - IT_FINAL1-CR_STOCK.
APPEND I_STOCK.
ENDon.
endloop.
Output after the code.
plant material batch storagelocation quantity
1 100050 NEWBATCH02 RM01 120,370.00
1 100050 NEWBATCH01 RM01 120,370.00
1 100050 NEW10 RM01 120,370.00
1 100050 NEWBATCH01 RM01 120,370.00
1 100050 NEW561 PM01 120,370.00
1 100050 BATCH1 RM01 120,370.00
1 100050 NEW561 PM01 120,370.00
1 100050 123456 RM01 120,370.00
1 100050 NEW561 PM01 120,370.00
1 100050 NEW10 RM01 120,370.00
1 100050 NEW561 PM01 120,370.00
1 100050 NEWBATCH02 RM01 120,370.00
1 100050 NEWBATCH01 RM01 120,370.00
1 100050 NEWBATCH01 PM01 120,370.00
1 100050 NEWBATCH01 RM01 120,370.00
1 100050 BATCH1 RM01 120,370.00
1 100050 123456 RM01 120,370.00
Below is the actual output summary i want
plant material batch storagelocation quantity
1 100050 123456 RM01 10
1 100050 BATCH1 RM01 10
1 100050 NEW10 RM01 50
1 100050 NEW561 PM01 9
1 100050 NEWBATCH01 PM01 241
1 100050 NEWBATCH01 RM01 110,050.00
1 100050 NEWBATCH02 RM01 10,000.00
120,370.00
This is how i want. Please advise where i am wrong.
Thank You,
Jitesh
Similar Messages
-
Sum, total, or count true false data vs using the insert summary
Please, does someone have specific knowledge on how to count total instances of true or false data vs using the insert summary?
We have data such as:
Name Formula1 Formula2
Detail level Bob Barker True False
Detail level Bob Barker False True
Detail level Bob Barker True False
Detail level Bob Barker True False
Group level (value) (value)
Detail level Drew Carey True True
Detail level Drew Carey False True
Detail level Drew Carey False False
Group level (value) (value)
I would like to group by person and run a total in the group level but count only the true data, not every instance. The insert summary wants to sum all instances formula1 or formula2 whether they are true or false, so Bob Barker will have a value of 4 for formula1 and a value of 4 for formula2 if the insert summary is used. Our goal is to show Bob having a value of 3 for formula1 and a value of 1 for formula2, only counting the true instances.
I was unsucessful using the insert summary, running totals, and my if, then, else formula statements.
Any ideas or suggestions?Instead of using true/false (which is actually returning a 1 or a 0), try using a formula like this...
IF {TableName.FieldName} = true condition THEN 1
Notice there is no ELSE condition, which means that if the formula evaluates to false the result will be a null value. Null values are not included in counts.
HTH,
Jason -
Using Highlighted Expert With Formula (i.e. 'Insert Summary')
I'm trying to compare the summary of a value (via formula (let's call it 'formula A' ) that uses the 'Insert Summary' option in Crystal Reports) with the value that is in a table. The formula does not show in the list of available fields (i.e. in the 'Item editor' section for 'Value of') of 'Highlight Expert'. So, I used 'Other Fields ...' (which took me to 'Choose Field'). I found the field (as a Group#1 total), so I set it up to compare this Group #1 total for 'formula A' to 0.00. I then tried to create logic in formula 'A' which currently does what it supposed to do, but it states that 'A formula cannot refer to itself, either directly or indirectly." How can I refer to the value and flag (i.e. 'crRed' - 'Conditional Formatting Function') the value if they are different. Thanks ! ! !
I found another way to compare these two (2) values. It is outlined below:
1. Right click on the value
2. Select 'Format Field . . .'
3. Select 'Font' tab
4. Create the formula (As shoen below)
If {Region.Commission_Amt} <> {@Commission Amount} Then crRed;
Now, my problem is that any value after the decimal point that does not end with a '00', '05', '50' is flag in red. I tried rounding, but it did not solve the problem. Since I can't see the actual values, I don't know what is causing this. Any ideas ? -
How to insert column values into database as rows
Hi,
I have 8 columns and some not null columns. Based on not null columns I want to insert into table as rows. The 8 columns may contain values or no value. If the first column contains data, then I have to insert into one row. if the second column contains data I have to insert a row and in second column. respectively...So How can I insert column values into rows. Can I write 8 insert statements. (OR) is it possible to insert data from columns using where clause.
Please help me out....
Thanks in AdvanceLines Table:
line_id, orcl_bank_account_num, product_type, service_type, lease_type,
funding_type, cpi, billing_frequency_unit_cd , annual_due_date ,
pricing_start_date, pricing_end_date, install_date, contract_end_date ,
prdct_replacement_cost_amt, cradle_replacement_amt, supranet_contract,
issuance_fee, board_inactive_date, header_id, creation_date, last_modified_date,
created_by_nam, modified_by_nam, activeinactive_flg, prdct_bill_amt_yr1,
prdct_bill_amt_yr2, prdct_bill_amt_yr3, prdct_bill_amt_yr4, prdct_bill_amt_yr5,
prdct_bill_amt_yr6, prdct_bill_amt_yr7, prdct_bill_amt_yr8, activation_fee_yr1,
activation_fee_yr2, activation_fee_yr3, activation_fee_yr4, activation_fee_yr5,
activation_fee_yr6, activation_fee_yr7, activation_fee_yr8,
In this table the columns structure is :
-- PRDCT_BILL_AMT_YR (1 to 8) NUMBER(14,4)
-- ACTIVATION_FEE_YR (1 to 8) NUMBER(8,2)
I have one more table:
PRDCT_INS_AMT NUMBER(14,4)
ACTIVATION_FEE_AMT NUMBER(14,4)
I want to insert prdct_bill_amt_yr (1 to 8) columns data into PRDCT_INS_AMT column. similarly activation_fee (1 to 8) columns data.
But the data should be inserted based product_type, service_type, lease_type columns values. (These 3 columns may contain upto 45 combinations). -
I am experiencing issue with my SharePoint site , when I am trying to add new Item in List . Error given below :--> 02/03/2015 08:23:36.13 w3wp.exe (0x2E04) 0x07E8 SharePoint Server Logging Correlation Data 9gc5 Verbose Thread change; resetting trace
level override to 0; resetting correlation to e2e9cddc-cf35-4bf8-b4f3-021dc91642da c66c2c17-faaf-4ff9-a414-303aa4b4726b e2e9cddc-cf35-4bf8-b4f3-021dc91642da 02/03/2015 08:23:36.13 w3wp.exe (0x2E04) 0x07E8 Document Management Server Document Management 52od
Medium MetadataNavigationContext Page_InitComplete: No XsltListViewWebPart was found on this page[/sites/00003/Lists/PM%20Project%20Status/NewForm.aspx?RootFolder=&IsDlg=1]. Hiding key filters and downgrading tree functionality to legacy ListViewWebPart(v3)
level for this list. e2e9cddc-cf35-4bf8-b4f3-021dc91642da 02/03/2015 08:23:36.17 w3wp.exe (0x1B94) 0x1A0C SharePoint Server Logging Correlation Data 77a3 Verbose Starting correlation. b4d14aec-5bd4-4fb1-b1e3-589ba337b111 02/03/2015 08:23:36.17 w3wp.exe (0x1B94)
0x1A0C SharePoint Server Logging Correlation Data 77a3 Verbose Ending correlation. b4d14aec-5bd4-4fb1-b1e3-589ba337b111 02/03/2015 08:23:36.31 w3wp.exe (0x2E04) 0x07E8 SharePoint Foundation Database 880i High System.Data.SqlClient.SqlException: Cannot insert
the value NULL into column 'tp_DocId', table 'Content_SP_00003.dbo.AllUserData'; column does not allow nulls. INSERT fails. The statement has been terminated. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject
stateObj) at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavi... e2e9cddc-cf35-4bf8-b4f3-021dc91642da 02/03/2015
08:23:36.31* w3wp.exe (0x2E04) 0x07E8 SharePoint Foundation Database 880i High ...or runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream,
Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior,
RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.SharePoint.Utilities.SqlSession.ExecuteReader(SqlCommand
command, CommandBehavior behavior,Are you trying to setup P2P? Could you explain the process you followed completely? By anychance you create the backup and then created the publication?
Regards, Ashwin Menon My Blog - http:\\sqllearnings.com -
Get a insert session value for SQL query at report
Hi friends
I created a global temp table and procedure to support web search form.
and a search result report. The procudure
gets search result from multip tables and
insert into temp table --recordsearch. I can get value from temp table by call procedure
at SQL*Plus.
However, I can not get this value by web report.
How can I get this insert session value and pass to SQL query for report?
Thanks,
Newweb
CREATE GLOBAL TEMPORARY TABLE recordsearch
(emp_id VARCHAR2(200),
ssn VARCHAR2(9),
fname VARCHAR2(200),
lname VARCHAR2(200),
m_name VARCHAR2(200)
) ON COMMIT PRESERVE ROWS;it possible that your web form does not have a persistent, dedicated connection. if you have connection pooling for example, multiple sessions will see the same instance of the GTT, so if one deletes it, then nobody sees it (or you can see others data). if the connections are not persistent, then they can disconnect between calls, deleting the GTT table.
-
Inserting a Value into otherTable using an App. Proc. from a Date Picker
I'm trying to call an Application Process that will insert an Attribute of a Row, into another table, after selecting a date from a Date Picker cell.
I don't know why this shouldn't be possible. I think I've got all of my "Ducks in a Row", so to speak,
but the Value that is being inserted into the other table is this:.. [object HTMLTableCellElement]
(Ultimately, I'd like my Application Process to include Page element values with the insert as well, but I'm trying to handle one problem at a time)
Here's a list of all the steps I've covered:
1. I've Created an Application Process, (popDevices). The Process Point is "On-Demand". The Type is "PL/SQL Anonymous Block".
The Process is defined as such:
BEGIN
Insert into P_DEVICES
NAME,
IP_ADDRESS,
MODEL
) values
'Unassigned',
'Unassigned',
:P153_MODEL
COMMIT;
END;
2. I've Included the Javascript in the Page HTML Header.
The Javascript is written as such: (minus the tags)
function popDevices(PART_NO)
var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=popDevices',0);
get.add('P153_MODEL',PART_NO);
gReturn = get.get();
get = null;
3. I've included the following in the "Element Attributes" field of the Date-Picker Item (Date_Delivered).
The Region Type is "SQL Query (Updatable Report)"
onChange="javascript:popDevices(PART_NO);"
THE RESULTS
A. A row does get inserted into the other (P_Devices) table,
But the value of the Attribute from the Page Region is not valid.
The Inserted value is this: [object HTMLTableCellElement]
B. I have tried Every conceivable combination of characters in the "Element Attributes" field, such as:
...(PART_NO), (#PART_NO#), (||PART_NO||), (+PART_NO+)
C. The Javascript in the Page HTML Header appears to be correct, since I have written it this same way for other applications without any problems.
D. If this simply cannot be done by referencing the "onChange" Javascript from the "Element Attributes" field,
Then can you help me to write the code into the Select statement of the region.
Thanks for any help you can give me.
-GaryThis may not be the most direct approach to the solution. But, none the less, it is a solution.
For those other novices, like myself, I hope this can be useful at some point in your development:
MY DESIRED RESULT:
A. To Insert into another tablle values derived from both; Page Item (i.e. P153_x) and Attributes of a Row in an Updatable Report from which I have selected the Date-Picker.
B. I want the insert to occur automatically after the user Selects the date from the Date-Picker.
SOLUTIONS:
1. I usea Javascript prompt window to prompt for information and store the information in Pre-Created Page Items.
This is the Javascript as I've entered it into the Page HTML Header region: (Minus the Tags)
function received_javaprompt () {
var Serial_Number = prompt("Enter the Serial Number");
var Bldg_Id = prompt("Enter the Bldg_Id");
var Clst_Id = prompt("Enter the Clst_Id");
$x('P153_SERIAL_NO').value = Serial_Number;
$x('P153_BLDG_ID').value = Bldg_Id;
$x('P153_CLST_ID').value = Clst_Id;
2. I needed to identify the (Manufacturer and Part_No) Column Attribute in the Row from which I selected the Date-Picker.
A. To do this, I enumerated the Columns in the order they were listed in the Select Statement of the region (Click on the Region Definition Tab).
B. Then (Click on the Report Attributes Tab). Count, In the numerical order which these columns are selected, ONLY the columns that are Editable.
C. When I counted down as far as the Column I wanted to capture the value of, Then I made a mental note of that number and used it in the following (2) Javascripts (findMaker and findModel).
3. findMaker (Minus the tags)
function findMaker (pThis) {
var vRow = pThis.id.substr(pThis.id.indexOf('_')+1);
var Maker = html_GetElement('f15_'+vRow).value
$x('P153_MAKER').value = Maker;
4. findModel (Minus the tags)
function findModel (pThis) {
var vRow = pThis.id.substr(pThis.id.indexOf('_')+1);
var Model = html_GetElement('f16_'+vRow).value
$x('P153_MODEL').value = Model;
5. I added one more Javascript, to the Page HTML Header, that references the Application Process which will Insert the values into the "Other" table:
function popDevices(P153_SERIAL_NO,P153_BLDG_ID,P153_CLST_ID,P153_MAKER,P153_MODEL)
var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=popDevices',0);
get.add('P153_SERIAL_NO',P153_SERIAL_NO);
get.add('P153_BLDG_ID',P153_BLDG_ID);
get.add('P153_CLST_ID',P153_CLST_ID);
get.add('P153_MAKER',P153_MAKER);
get.add('P153_MODEL',P153_MODEL);
gReturn = get.get();
get = null;
6. I added the "onChange" process to the Element Attributes field of the Table item which utilizes the Date-Picker:
A. Click on the Report Attributes Tab of the Region.
B. Click on the Edit icon of the column which utilized the Date-Picker
C. I added this "onChange" reference to the Element Attributes field, which is found in the Tabular Form section.
onChange="javascript:received_javaprompt();findModel(this);findMaker(this);popDevices((P153_SERIAL_NO).value,(P153_BLDG_ID).value,(P153_CLST_ID).value,(P153_MAKER).value,(P153_MODEL).value);"
7. The Application Process which inserts the collected data into the table is as follows:
(Name= popDevices: Process Point= On-Demand: Type= PL/SQL Anonymous Block)
BEGIN
Insert into P_DEVICES
BLDG_ID,
CLST_ID,
NAME,
IP_ADDRESS,
SERIAL_NO,
MAKER,
MODEL
) values
:P153_BLDG_ID,
:P153_CLST_ID,
'Unassigned',
'Unassigned',
:P153_SERIAL_NO,
:P153_MAKER,
:P153_MODEL
COMMIT;
END;
Well, I hope this may help someone else like me.
I usually arrive at my solutions by getting help here on the Discussion Forum and also Google. Google inevitably points me to a previous Apex Discussion Forum session.
Edited by: garyNboston on Mar 15, 2010 10:55 AM -
Insert a value of type Date/Time into a database
I am trying to insert a value of type date time into an access database. What is the format needed to insert the date/time.
Thanks,
-AmosI had all kinds of problems getting a datetime inserted into a SQl Server DB. Probably similar so this is what I do:
String date = new String("01/01/97 12:00:00");
stmt.setObject(1, date);
I tried using TimeStamp's but found I got an occasional Fractional Truncation exception back from the driver. Never had a problem inserting a String using the setObject() method though.
Hope this helps -
INSERTING A VALUES IN A DDIC TABLE AT A PARTICULAR INDEX VIA WORKAREA
HI ALL
Can I INSERT a value at a particular index in a DDIC table via a workarea with similar structure.??
like if I have a DDIC table with four feilds and creating a internal table and a workarea with similar structure.
after fetching the values from DDIC table to our internal table and making some changes or wants to insert a values at a particular index. Then Cal I write like:
INSERT WA INTO zMARA INDEX 2.
IS IT WRITE?
OR PLEASE SUGGEST ME THE CORRECT CODE.You can insert or rather update the row of table desired by using Primary key combination..
A Db table will have at least one primary key. So first select the desired record to be updated using
unique combination of primary key to get the row you want to modify in work area then change the
value of that field in work are and then use MODIFY db table from workarea.. Remembr you can't change primary key
If key combination is not found in DB table mentioned in work area then it will insert the row in ZABC..
Code..
consider ZABC having 2 fileds AA and BB, then consider AA as primary key.. and BB as normal field..
Consider row having value AA = 1 and BB = 2.
data: wa_ZABC type ZABC.
data: i_zabc type table of zabc with header line.
Select single * from ZABC into wa_zabc where AA = '1'.
wa_zabc-bb = '3'.
modify ZABC from wa_zabc.
if you want to change multiple lines in internal table and then update in DB table then use
Modify ZABC from table i_zabc. after selecting value of zabc in i_zabc and then change
value by loop .. endloop and then apply the Modify statement..
Hope this solves your query..
Regards,
Uday Desai. -
Inserting sequence value in a created column already table having some rows
i have a table emp whish has already having rows in that table
now i added one more column to that table with alter command and also i created sequence
now i want to insert the value in that newly created column with sequencename.nextval??????insert into employees values (employees_seq.nextval);
commit;
Here employees_seq is the name of the sequence.
Regards
Asif Kabir
17 (17 unresolved)
-- Mark your answer as correct/helpful
Edited by: asifkabirdba on Dec 22, 2009 3:39 PM -
Inserting Dynamic Values in Annotations
Hello everyone,
Is there a way to insert a value to an annotation field through say a properties file or a from a constants class (interface)?
Basically here is what I want to do. For example I have the entity class below,
@Entity
@Table(name="<get value from properties file or class>", schema="<get value from properties file or class>")
public class Person implements Serializable {
@Column(name="<get from properties file or class>")
private String name;
}I know what I want to do can be achieved through the orm.xml file, but through properties or constant class, is it possible?
Thanks,
Pataviod multi post
http://forums.sun.com/thread.jspa?threadID=5426756&tstart=0 -
How to insert bulk values in value mapping table at a time.
Hi all,
I hv one issue in value mapping i.e,
I hv some bulk data in MS- Excel, i am unable to copy all the date from ecel to value mapping table.
SO, How can i insert bulk values in my value mapping table at a time.
plz, help me in this asap.
Regards,
Maheshhai mahesh check the below links,
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1f42d490-0201-0010-6d98-b18a00b57551
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/83086a1d-0e01-0010-2797-f1ce7f8f562d
note:reward points if solution found helpfull.....
regards
chandrakanth.k -
How to insert new values in dropdown box through coding
hi,
I want to insert new values in dropdown box in a table.
Please provide me the corresponding coding.i already did this code but result is empty dropdown.I mapped the context properly..
int sklength=wdContext.nodeSkills().size();
for(int i=0;i<sklength;i++)
String getsub=wdContext.currentSkillsElement().getSubject();
if(getsub.equals("50000138"))
//IPrivateDetails1.INewskillElement el=wdContext.createNewskillElement();
List lis=new ArrayList();
//lis.add("Abap");
//lis.add("Workflow");
IPrivateDetails1.INewskillElement el=wdContext.createNewskillElement();
el.setTskill("abap");
lis.add(el);
el.setTskill("workflow");
lis.add(el);
wdContext.nodeNewskill().bind(lis);
//wdContext.nodeMonthsOfYear().bind(MonthsOfYear);
wdContext.nodeNewskill().setLeadSelection(1);
else
wdContext.currentNewskillElement().setTskill("C++");
waiting for a positive reply......
with regards,
S.Kiruthikakiruthika,
Too many logical errors to explian.
Should be:
IPrivateDetails1.ISkillsNode nSkills = wdContext.nodeSkills();
IPrivateDetails1.INewskillNode nNewSkill = wdContext.nodeNewskill();
int sklength = nSkills.size();
boolean cppAdded = false;
for(int i=0;i<sklength;i++)
String getsub=nSkills.getSkillsElementAt(i).getSubject();
if(getsub.equals("50000138"))
List lis=new ArrayList();
IPrivateDetails1.INewskillElement el1 = nNewSkill.createNewskillElement();
el1.setTskill("abap");
lis.add(el1);
IPrivateDetails1.INewskillElement el2 = nNewSkill.createNewskillElement();
el2.setTskill("workflow");
lis.add(el2);
nNewSkill.bind(lis);
nNewSkill.setLeadSelection(1);
else if (!cppAdded)
cppAdded = true;
IPrivateDetails1.INewskillElement elCpp = nNewSkill.currentNewskillElement();
if (null == elCpp) {
elCpp = nNewSkill.createNewskillElement();
nNewskill.addElement(elCpp);
nNewskill.setLeadSelection( nNewskill.size() - 1);
elCpp.setTskill("C++");
VS -
How to insert a value from sequence in Bussiness Components?
How to insert a value from sequence in Bussiness Components?
I would like to do it, but without a triger that would do it before insert.
I know that there is a type DBSequence in BC where you can insert a sequence name but it does not work when I type there my sequence name.
Do you now how to fix that problem?
Bart.The newer way to do it is to make the type DBSequence and enter the name of the Sequence object in the sequence field. It must match the same name of the sequence object in the database. Next, you have to create a before insert for each row trigger on the table. Basically, something like this:
CREATE OR REPLACE TRIGGER TGB_THEME_SEQ
BEFORE INSERT ON THEME
FOR EACH ROW
DECLARE
BEGIN
-- Assign the id from the sequence if null
IF( :new.theme_id IS NULL ) THEN
SELECT THEME_ID_SEQ.nextval
INTO :new.theme_id
FROM dual;
END IF;
END;
In the above example, THEME_ID_SEQ is the seuence object name in the database. If you have the name right but it still fails, then the user you are logging in as probably doesn't have access to the sequence in the database.
Hope this helps.
Erik -
How to insert / Update value for PFAKT in BP Relationship
Hi Friends / Experts,
How to insert the value for PFAKT ( Function value ) in BP Relationship in BP tcode , in SAP CRM.
I have tried it but it BAPI_BUPR_CONTP_CREATE. But I need it with BAPI_BUPR_RELATIONSHIP_CREATE Function Module.
Please help me out.
Any Enhancement points in BAPI_BUPR_RELATIONSHIP_CREATE or any user exists. Please let me know.
Regards,
KMF.you can also acheive this using MERGE( available in sql 2008 and above).
also, you are referring to DTS. DTS is legacy solution now..are you using sql 2000, you can use ssis, if you want and it available in sql 2005. as said, there are multiple ways you can do this.. it find the below one a easy solution, since your are
talking about only one table..
try this example..
create table test1(sno int primary key,sname varchar(20),scity varchar(20))
go
create table test2(sno int primary key,sname varchar(20),scity varchar(20))
go
insert into test1
values(1,'stan','atlanta'),(2,'william','newyork')
go
insert into test2
values(1,'robin','orlando')
go
--set this in you sql job and let it run for every half an hour
MERGE test2 t2
USING test1 t1
ON t2.sno = t1.sno
WHEN MATCHED THEN
UPDATE
SET t2.sname = t1.sname,t2.scity=t1.scity
WHEN NOT MATCHED by target THEN
Insert(sno,sname,scity)
values (sno,sname,scity);
go
--check this table and clean up
select * from test2
go
drop table test1
go
drop table test2
Hope it Helps!!
Maybe you are looking for
-
Dual boot windows 7+archlinux on separate disks; grub errors. [solved]
Hello, I am very excited to try arch linux, but am having trouble with the installation. My situation is as follows: I have 3 hard drives: windows 7 lives on sda and sdb. I am installing arch on sdc, which is 500GB. I partitioned the hard drive as
-
How to change the blog posts view when navigating through categories?
Hello, currently I've been struggling for a while with the following problem: In my SharePoint blog site I have the following default view of posts: http://s16.postimg.org/yvmu0j51x/Default_site.jpg When I click on a category, I get the following vie
-
Hi I'm using Flash Cs5 exporting to Air 2 I can write a text file, but am struggling to read in back in. Here is my code so far. Any help would be greatly appreciated import flash.filesystem.File; import flash.filesystem.FileMode; import flash.filesy
-
Error message when opening a pdf
he application wants to display a pdf on your device.there is a known bug in the pdf loading code that makes the running of arbitrary code possible,which could compromise your sistem.are you sure you sure you want to continue iPad 2
-
I would like to know new technologies,framework and tools on java
i am venu i love java very much .... as it makes web world more and more easy with the beauty of simple and great idea of platform independent i would like to know new and recent technologies,frameworks and tools on java .... could any one of u help