This is krishna,

I created new Table,Bc,Link,Bo,view,screen
TABLE : CX_ECB_S_TAT
BC : ECB TAT BC
Link : ECB TAT BC/Service Request
Bo : ECB TAT BO
View : ECB TAT View
Screen : ECB TAT Screen

and I created new "X_ECB_TAT_ID" Column for foregin key
relation ship in "S_SRV_REQ" Table [in colum properties I
specified Forieignkey Table-CX_ECB_S_TAT]

and I created "TAT Id Ext" Field with "X_ECB_TAT_ID" Column
in "Service Request" BC.

I created Link"ECB TAT BC/Service Request". in this link I
specified "Destination Field-TAT Id EXT".( Parent BC : ECB
TAT BC, Child BC : Service Request)
---------------------------------------------------
There is two Screens 1)ECB TAT Screen 2)Service Request
Screen

in First Screen : ECB TAT Screen

Parent BC : ECB TAT BC

Fields : Type,Area,Sub Area,TAT

I given the field values to Type,Area,Sub Area
and based on field values I given "TAT" field value.

now we will go to Second Screen : Service Request Screen

Child BC : Service Request

Fields : INS Product,INS Area,INS Sub-Area,TAT
I given same values(Parent bc Field Values) to INS
Product,INS Area,INS Sub-Area
then should be update "TAT" Field value (I mean Parent BC
same "TAT" Field vaue should be update in "TAT" Field in
Child BC)

I wrote script for above requirement in "SetFieldValue"
Event in "ECB TAT BC"

function BusComp_PreSetFieldValue (FieldName, FieldValue)
{

if(FieldName == "TAT")
{
var Bo = TheApplication().GetBusObject("ECB TAT BO");
var Bc = Bo.GetBusComp("Service Request");
this.ActivateField("Type");
this.ActivateField("Area");
this.ActivateField("Sub Area");
this.ActivateField("TAT");

var sType = this.GetFieldValue("Type");
var sArea = this.GetFieldValue("Area");
var sSubArea = this.GetFieldValue("Sub Area");

var sTAT = FieldValue; //this.GetFieldValue("TAT");

var Bc1 = Bo.GetBusComp("Service Request")


with(Bc1)
{
var exp = "[INS Product] = '" + sType + "' AND [INS Area]
= '" + sArea + "' AND [INS Sub-Area] = '" + sSubArea + "'";

ActivateField("INS Product");
ActivateField("INS Area");
ActivateField("INS Sub-Area");
ClearToQuery();
SetViewMode(AllView);
SetSearchExpr(exp);
ExecuteQuery(ForwardOnly);

var cnt = CountRecords();
ActivateField("TAT");
var fst = FirstRecord();

while(fst)
{

SetFieldValue("TAT",sTAT);
fst = NextRecord();

}

}

}
return(ContinueOperation);
}

but in "Service Request" BC "TAT" field value updating
existing records,not updating creating new necords.

I should update "TAT" field value to creating new records.

where I have to write script in which event in which BC for
this.
please post detail script for this.

from last 15 days i'm working on this.
please help me on this.

thank you so much in advance.

Answers were Sorted based on User's Feedback



This is krishna, I created new Table,Bc,Link,Bo,view,screen TABLE : CX_ECB_S_TAT BC : ECB TA..

Answer / krishna

ple send me detail script

Is This Answer Correct ?    0 Yes 0 No

This is krishna, I created new Table,Bc,Link,Bo,view,screen TABLE : CX_ECB_S_TAT BC : ECB TA..

Answer / taj

Hi Krishna

Write your code in Pre Write Record Event it must works for
NEw Records.

Thanks

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Siebel Interview Questions

In an applet one custom button is created on clicking that button all the fields get validated and then message should be displayed on the other applet as the corresponding field values are empty

0 Answers   Dr Reddys, IBM,


How do you import list of values?

0 Answers  


Explain what is nameserver? What does it do?

0 Answers  


best practices in configuration

1 Answers   TCS,


How would you remove unnecessary seed data by deleting all rows from the s_lst_of_val base table?

0 Answers  






scenario where we use ForwardBackward & ForwardOnly in Execute Query in Scripting

1 Answers   IBM,


How do you control visibility in Siebel?

3 Answers   HP, VCSS,


Determine ootb functionality in siebel.

0 Answers  


What is the relationship between a view and a b/o?

3 Answers   Siebel Systems,


How can you do the data cleansing in eim?

0 Answers  


What are the 3 major steps in the event handler process?

0 Answers  


how to invoke workflows using scripting

2 Answers  


Categories