on 03-31-2010 10:41 AM
Here three Tables available(PORange, Material Range and DateRange) These three tables having same output table.
Here Every Table Having four attributes
Porange table----Sign, Optional, PO_Heigh and PO_Low
Material Range Table----- Sign, Optional, Matr_Heigh and Matr_Low
DateRange Table----
Sign, Optional, DateFrom and date TO
Here Every Table Having Common 2 Files(Sign, Optional). In WDJ I have done there values in HotDoe
Like
porange.setOption("BT");
porange.setSign("I");
Now My Req- Is Suppose Vendor is Enter in to Input details in PO range
That these 4 fileds is added to Porange Table
Or Vendor enter Material Range from and to values that time these 2values and remaining 2 Hot code values add into Material Range table
I m doing like that
public void wdDoInit()
{
//@@begin wdDoInit()
//$$begin Service Controller(1580039519)
//wdContext.nodeYmm_Bapi_Oa_Update_Input().bind(new Ymm_Bapi_Oa_Update_Input());
Ymm_Sc_Bapi_Oapending_Getlist_Input input = new Ymm_Sc_Bapi_Oapending_Getlist_Input();
wdContext.nodeYmm_Sc_Bapi_Oapending_Getlist_Input().bind(input);
// Po Range
Ymm_Sc_Bapiebeln porange = new Ymm_Sc_Bapiebeln();
wdContext.nodePorange().bind(porange);
// if(wdContext.nodePorange().currentPorangeElement().getPo_Low()!= null && wdContext.nodePorange().currentPorangeElement().getPo_High()!= null)
// {
porange.setOption("BT");
porange.setSign("I");
porange.setPo_Low("");
//wdComponentAPI.getMessageManager().reportSuccess("Low123:"+porange.getPo_Low());
porange.setPo_High("");
//wdComponentAPI.getMessageManager().reportSuccess("High123:"+porange.getPo_High());
input.addPorange(porange);
// }
// else
// {
// Materila Range
Bapimatram mateRange = new Bapimatram();
wdContext.nodeMaterialrange().bind(mateRange);
// mateRange.setOption(porange.getOption());
// mateRange.setSign(porange.getSign());
mateRange.setOption("BT");
mateRange.setSign("I");
mateRange.setMatnr_High("");
mateRange.setMatnr_Low("");
input.addMaterialrange(mateRange);
//}
// Delivery Date
// Date d=new Date();
// java.sql.Date d1=new java.sql.Date(d.getTime());
// Ymm_Sc_Bapieindt delvDate = new Ymm_Sc_Bapieindt();
// wdContext.nodeDaterange().bind(delvDate);
// delvDate.setOption("BT");
// delvDate.setSign("I");
// delvDate.setFrom_Date(d1);
// delvDate.setTo_Date(d1);
//
//
// input.addDaterange(delvDate);
//$$end
//@@end
}
Here I am getting one problem
I have to pass porange details that time mateRange Hot coded values also added to mateRange table that time I m not getting output
So I need I want what table data we will pass that data will saved into that table
Regards
Vijay Kalluri
Hi Vijay,
Could you please eleborate your problem, your message is not properly readable.
Regards
Arun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.