Blueprint---- very urgent ----Thank u---
Hi All,
First I would like to thanks to you for communicating with me.
Actually I have to extract data from SD, MM, FI CO.
Here we are implementing ECC5 for R/3 and BW 3.5
My client is one of the Big medical (pharmacy) distributor.
My BPOs( SD, MM, FICO ) they dont know about BW.
How to implement BW3.5 here, what I have to gather from there ,
That I have to ask from BPOs.
Can u give in detailed information in this.
Thank you for u r cooperation and suggestions .
Jameel
I'm starting a new BW3.5 implementation (SD, MM ,and FICO information to BW). I'm in urgent need of business bluprint (the way to handle and structure this kind of project, things to consider etc.) I would be very grateful if someone of you could post an example of it to:
Can any one of you please send me the copy of the Business Blueprint Doc
My Ids: [email protected]
[email protected]
U can chat with me on
[email protected]
Thanks and Regards
Jameel
Hello Jameel,
Please go through following link
http://help.sap.com/bp_biv235/BI_EN/index.htm
Here you will get best pratice recommended by SAP for all the modules you are looking for. Also you can have a look at Business blueprint section.
Regards,
Praveen
Similar Messages
-
Hi sdn Experts,
1) hi everyone iam ABAPER i have problem in fico module i.e i want to modify the standard report RFITEMGL (Line Items general Ledger a/c), it is displaying individual accounts.
but my requirement is, i want 2 add " Opening and Closing balance for that report.
could anyone plz explain how to solve that and from where can i get those values.
regards,
sudharsan .your welcome
ABAP FAQ
[url=/thread/235444 [original link is broken];/thread/235444 [original link is broken];/url] -
How to write code for this logic in a routine, very urgent --help me
hi all,
i want to apply this logic into one subroutin ZABC.
here i m giving my logic ,can any body help me in coding for this, this is very urgent, i hv to submit on wednesday.
4.1 Read the company code number BSEG-BUKRS from document line item.
4.2 Fetch PRDHA from MARA into GV_PRDHA where MATNR = BSEG-MATNR.
4.3 Fetch Business area (GSBER) from ZFIBU into GV_GSBER where (PRDHA = GV_PRDHA and BUKRS = BSEG-BUKRS) OR (PRDHA = GV_PRDHA and BUKRS = SPACE).
4.4 If business area match is found, go to step 3.9. Else continue.
4.5 If BKPF-BLART IN set ZVS_POSDT OR BKPF-XBLNR starts with I0*, execute steps below. Else, go to Step 3.6.
i. MOVE: BSEG-BKURS TO work area field WA_ZFIBUE-BUKRS,
BSEG-MATNR TO work area field WA_ZFIBUE-MATNR,
GV_PRDHA TO work area field WA_ZFIBUE-PRDHA,
BSEG-HKONT TO work area field WA_ZFIBUE-HKONT,
BSEG-GSBER TO work area field WA_ZFIBUE-GSBER,
BSEG-PSWBT TO work area field WA_ZFIBUE-PSWBT,
BKPF-BUDAT TO work area field WA_ZFIBUE-BUDAT,
SY-DATUM TO work area field WA_ZFIBUE-CREDATE,
SY-UZEIT TO work area field WA_ZFIBUE-CRETIME,
Fetch running serial number (WA_ZFIBUE-SERIALNO) from ZFICO. This number will be stored in ZFICO with PARAMTYPE = "BPM030307", SUBTYPE = "ZFIBUE" and KEY1 = "SERIALNO". The actual serial number will be stored in the field VALUE1.
i. Insert WA_ZFIBUE INTO ZFIBUE.
ii. Send email notification to the user (if it is not already sent to user on the same posting date).
Use function module SO_NEW_DOCUMENT_ATT_SEND_API1 to send mail.
Fetch email address and date of last email from ZFICO. These values will be stored in ZFICO with PARAMTYPE = "BPM030307", SUBTYPE = "EMAIL" and KEY1 = "<USERNAME>". The email address will be stored in the field VALUE1 and posting date in VALUE2. Once mail is sent, VALUE2 is updated with latest posting date (BKPF-BUDAT).
iii. Increment the running serial number and update ZFICO with new serial number.
a. GV_ SERIALNO = WA_ZFIBUE-SERIALNO + 1
b. Update ZFICO Set value1 = GV_SERIALNO
Where PARAMTYPE = "BPM030307" AND
SUBTYPE = "ZFIBUE" AND
KEY1 = "SERIALNO".
iv Move VDFT to BSEG-GSBER.
v. Exit routine.
4.6 Fetch MTART into GV_MTART from MARA where MATNR = BSEG-MATNR.
4.7 If SY-BATCH = INITIAL AND GV_MTART <> ROH, issue the error message - Maintain the mapping of product hierarchy <PRDHA> from article <MATNR> for <BUKRS>. Else, go to step 3.8.
4.8 If SY-BATCH <> INITIAL AND GV_MTART <> ROH, issue the error message - Maintain product hierarchy on article master. Go to step 3.10.
4.9 Move GV_GSBER TO BSEG-GSBER.
4.10 Exit Routine
plz give me reply asap --this is very urgent
thanks in advance
swathiHi Swathi,
If it's very very urgent then you better get on with it, don't waste time on the web. Chop chop. -
Open items for purchase order its very urgent
hi
my requirement is to write extract program for purchase order(me21) to extract only open items.
please provide sample code its very urgent.
thanks in advance.
points will be rewarded.
thanks
hari prasad reddycheck the below report :
REPORT ZMM_OPEN_PO_REPORT no standard page heading
line-size 255
message-id zwave.
======================================================================
Program Name : ZMM_OPEN_PO_REPORT *
Description : This report displays all Open PO Items and output *
would be PO Number,Material number and so on *
Author : Seshu *
Date : 01/24/2007 *
MODIFICATION HISTORY *
DATE | AUTHOR | CHANGE # | DESCRIPTION OF MODIFICATION *
--|||--
01/24/07| Seshu | DEVK921979 | Initial *
D A T A D E C L A R A T I O N P A R T ***
type-pools
type-pools : slis.
Tables
tables : ekko, " Purchase order Header
ekpo, " Purchase order Item
marc. " Material with Plant data
Internal table for output.
data : begin of i_output occurs 0,
ebeln like ekko-ebeln,
matnr like ekpo-matnr,
end of i_output.
ALV Data declaration.
data : v_repid like sy-repid.
ALV Function Module Variables
DATA: gs_layout type slis_layout_alv,
g_exit_caused_by_caller,
gs_exit_caused_by_user type slis_exit_by_user.
DATA: gt_fieldcat type slis_t_fieldcat_alv,
gs_print type slis_print_alv,
gt_events type slis_t_event,
gt_list_top_of_page type slis_t_listheader,
g_status_set type slis_formname value 'PF_STATUS_SET',
g_user_command type slis_formname value 'USER_COMMAND',
g_top_of_page type slis_formname value 'TOP_OF_PAGE',
g_top_of_list type slis_formname value 'TOP_OF_LIST',
g_end_of_list type slis_formname value 'END_OF_LIST',
g_variant LIKE disvariant,
g_save(1) TYPE c,
g_tabname_header TYPE slis_tabname,
g_tabname_item TYPE slis_tabname,
g_exit(1) TYPE c,
gx_variant LIKE disvariant.
data : gr_layout_bck type slis_layout_alv.
Ranges
ranges r_eindt for eket-eindt.
initialization.
v_repid = sy-repid.
start-of-selection.
Get the data from EKKO ,EKPO and MARC Table
perform get_data_tables.
end-of-selection.
display the data in the form of ALV
perform display_data.
*& Form get_data_tables
Get the data from EKKO,EKPO and MARC Table
FORM get_data_tables.
clear : i_output.
refresh : i_output.
fill the dates in ranges
r_eindt-low = sy-datum - 7.
r_eindt-high = sy-datum + 14.
r_eindt-option = 'BT'.
r_eindt-sign = 'I'.
append r_eindt.
Get the data from EKKO,EKPO and EKET Tables
select aebeln bmatnr into table i_output
from ekko as a inner join
ekpo as b on aebeln = bebeln
inner join marc as c on cmatnr = bmatnr
inner join mara as d on dmatnr = bmatnr
inner join eket as e on eebeln = aebeln
and eebelp = bebelp
where c~beskz = 'E'
and c~werks = '1000'
and d~mtart = 'FERT'
and b~loekz = space
and b~elikz = space
and e~eindt in r_eindt.
if sy-subrc ne 0.
message e000(zwave) with 'No open purchase order found'.
endif.
ENDFORM. " get_data_tables
*& Form display_data
text
FORM display_data.
Fill the Fiedlcat
PERFORM fieldcat_init using gt_fieldcat[].
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = v_repid
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = g_user_command
I_CALLBACK_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE =
I_GRID_SETTINGS =
IS_LAYOUT = gr_layout_bck
IT_FIELDCAT = gt_fieldcat[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = g_save
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IT_ALV_GRAPHICS =
IT_ADD_FIELDCAT =
IT_HYPERLINK =
I_HTML_HEIGHT_TOP =
I_HTML_HEIGHT_END =
IT_EXCEPT_QINFO =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = i_output
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " display_data
*& Form fieldcat_init
text
-->P_GT_FIELDCAT[] text
FORM fieldcat_init USING e01_lt_fieldcat type slis_t_fieldcat_alv.
DATA: LS_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
Purchase order number
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'EBELN'.
LS_FIELDCAT-ref_fieldname = 'EBELN'.
LS_FIELDCAT-ref_tabname = 'EKKO'.
LS_FIELDCAT-TABNAME = 'I_OUTPUT'.
ls_fieldcat-seltext_L = 'Purchase Order'.
ls_fieldcat-seltext_M = 'Purchase Order'.
ls_fieldcat-seltext_S = 'Purchase Order'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Material #
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'MATNR'.
LS_FIELDCAT-ref_fieldname = 'MATNR'.
LS_FIELDCAT-ref_tabname = 'EKPO'.
LS_FIELDCAT-TABNAME = 'I_OUTPUT'.
ls_fieldcat-seltext_L = 'Material'.
ls_fieldcat-seltext_M = 'Material'.
ls_fieldcat-seltext_S = 'Material'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
ENDFORM. " fieldcat_init -
I have an eclipse application to open a new email message with an attachment (in the default mail client) clicking a button.
Below are my codes:-
Runtime.getRuntime().exec(new String[]{"cmd.exe","/c","start mailto:[email protected]?subject=MailTo&cc=[email protected]&attachment="e://myfile.txt"});
The problem is that the file can't be attached.
Appreciate suggestions and solutions.
Pls reply asap as this application is very urgent
Thanks.You should have simplified your problem by producing a valid Windows command before trying to Runtime.exec it. What you are doing there is testing with your eyes shut.
If you had typed that string you thought was a Windows command, and fiddled with it a bit, you would have found out that the & character is treated as a delimiter that separates a list of commands by the Windows shell. You would have seen the error message that says
'cc' is not recognized as an internal or external command, operable program or batch file.
Sorry, I don't know what you can do about that. But it isn't a Java question. -
Hi to All...
I Designed the PDF forms using Adobe Acrobat Live Cycle Designer 7.0.
but i am facing tab problem.
for example: if i entered in the some text boxes then if i want to go back to previous text boxex means curser will go to the some other text boxes.
and also if open in internet Explorer tab issue is more.
is there any property we need to set?
please guide me its very urgent.
thanks in Advance...
chalmal SeetaramTo set the Tab order choose: 'Tab Order' under 'View' menu and read through the Tips.... it is easy.
Good Luck,
SekharN -
How to send Zip files as attachments !! Very urgent, Please help!
I am sending PDF files as attachments using java mail (it works fine). But now my requirement is to zip the PDFs and send them as attachments instead of actual PDF's. But i don't know how to achieve that. does java mail API support zip attachment facilities? I have looked in activation API also, but i couldn't find anything helpful. even i searched the forums, but no clue. Please, anybody help me about this, it's very urgent.
thanks
sriCheck the first "if". If I specify an attachment, then a myme multipart doby is created: one for text and the other for the attachemnt I use this myme ovbject only for attachemnts, because some ISPs have problems and report error in email format if the attachemnet is missing and it contains only text and no attachment.
static public void send(String to,
String from,
String host,
String smtpPort,
String subject,
String body,
String fileAttachment,
String attachmentMimeType,
String username,
String password,
String debug)
throws Exception
// create some properties and get the default Session
Properties props = new Properties();
props.put("mail.smtp.host", host);
props.put("mail.smtp.port", smtpPort);
props.put("mail.smtp.timeout","5000");
props.put("mail.debug", debug);
Session session = null;
if (username != null && password != null)
props.put("mail.smtp.auth", "true");
MyPasswordAuthenticator auth = new MyPasswordAuthenticator(username, password);
session = Session.getDefaultInstance(props,auth);
else
session = Session.getDefaultInstance(props, null);
//session.setDebug(true);
// create a message
MimeMessage message = new MimeMessage(session);
message.setFrom(new InternetAddress(from));
InternetAddress[] address = InternetAddress.parse(to, false);
message.setRecipients(Message.RecipientType.TO, address);
message.setSubject(subject);
message.setSentDate(new Date());
// create the message part
if ( fileAttachment != null && fileAttachment != "NO" )
MimeBodyPart messageBodyPart = new MimeBodyPart();
//fill message
messageBodyPart.setText(body);
//Multipart multipart = new MimeMultipart();
Multipart multipart = new MimeMultipart("alternative");
multipart.addBodyPart(messageBodyPart);
// Part two is attachment
System.out.println("----->fileAttachment DISTINTO de NULL");
messageBodyPart = new MimeBodyPart();
FileDataSource fds = new FileDataSource(fileAttachment);
messageBodyPart.setDataHandler( new DataHandler(fds));
messageBodyPart.setFileName(fileAttachment); //<-- El archivo atachado.
multipart.addBodyPart(messageBodyPart);
//EN DESARROLLO el envio de attachment!!
// Put parts in message
message.setContent(multipart);
} else { //Envio es solamente TEXTO
message.setText(body);
// send the message
Transport.send(message);
Regards,
Vladimir -
Its very urgent:how to insert data into database tables
Hi All,
I am very new to oaf.
I have one requirement data insert into database tables.
here createPG having data that data insert into one custom table.
but i dont know how to insert data into database tables.
i wrote the code in am,co as follows.
in am i wrote the code:
public void NewoperationManagerLogic()
ManagerCustomTableVOImpl vo1=getManagerCustomTableVO1();
OADBTransaction oadbt=getOADBTransaction();
if(!vo1.isPreparedForExecution())
vo1.executeQuery();
Row row=vo1.createRow();
vo1.insertRow(row);
in createPG processrequest co:
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
ManagerInformationAMImpl am=(ManagerInformationAMImpl)pageContext.getApplicationModule(webBean);
am.NewoperationManagerLogic();
process form request:
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
if(pageContext.getParameter("Submit")!=null)
ManagerInformationAMImpl am=(ManagerInformationAMImpl)pageContext.getApplicationModule(webBean);
am.getOADBTransaction().commit();
please help with an example(sample code).
its very urgent.
thanks in advance
Seshu
Edited by: its urgent on Dec 25, 2011 9:31 PMHi ,
1.)You must have to create a EO based on custom table and then VO based on this EO eventually to save the values in DB
2.) the row.setNewRowState(Row.STATUS_INITIALIZED); is used to set the the status of row as inialized ,this is must required.
3.) When u will create the VO based on EO the viewattributes will be created in VO which will be assigned to the fields to take care the db handling .
You must go thtough the lab excercise shipped with you Jdeveloper ,there is a example of Create Employee page ,that will solve your number of doubts.
Thanks
Pratap -
Procedure for pricing calicualtions on ipc: very urgent
Hi gurus
I am working on crm 5.2 and i have to do caliculations of custom fields by using the pricing conditions and display the result on custom fields. My questions is As i am new to this, plese tell me the procedure how we can do that or what is the procedure and what user exits can be used..very urgent
Thanks
shashiHi Shashi,
Maybe you can check the documentation in note 809820.
Hongyan -
Report painter problem very urgent
Hi to ALL,
I have prepared two reports of cost centre through report painter. The format is proper is both the reports. The set is also correct and values in set(i.e cost centres) are also properly
but when we execute the report one report is being executed properly while other shows zero values. only when i doubleclick on zero amt and go to plan line items then it shows me values for that particular row in report.
Why is it so? what is solution to it? can it be possible that my tables are not correct. Ia m using CCSS table.
Pls this is very urgent
Thanks in advance
TanujaHi
Can you check one thing...after selecting the zero you are getting the line item...chekc the total of that items...if it is coming zero..then no problem.
If not you can check in the no.format of that report. If you select the lacs format and your amount is below ten thousand...you will get the zero value only
VVR -
Splitter operator doesnt use multi table inserts in OWB...very very urgent
Hi,
I am using OWB 9i to carry out tranformations. I want to copy the same seuence numbers to the two target tables.
Scenario:
I have a source table source_table, which is connected to a splitter and the splitter is used to dump the records in two target tables namely target1_table and target2_table. I have a sequence which is also an input to the splitter, so that I can have the same sequence number in the the two output groups of he splitter. I then map the sequence number from the two output groups to the two target tables expecting to have the same sequence number in the target tables. But when I see the generated code it creates two procedures and effectively inserts sequencing numbers in the target tables which are not consistent. Please help me so that I have the same sequencing numbers in the target tables which are consistent.
Well the above example works in row based operating mode but not in set based mode. Please give me a valid explanation.
OWB pdf says that splitter uses multi table inserts for multiple targets. After seeing the generated code for set based operations I dont agree to this.
Its very urgent.
thanks a lot in advance.
-SharatHi Mark,
You got me wrong, let me explain you the problem again.
RDBMS oracle 9.2.0.4
OWB 9.2.0.2.8
I have three tables T1,T2 and T3.
T1 is the source table and the remaining two tables T2 and T3 are target tables.
Following are the contents of table T1 -
SQl>select * from T1;
DEPTNAME LOCATIO?N
COMP PUNE
MECH BOMBAY
ELEC A.P
Now I want to populate the two destination tables T2 and T3 with the records in T1.
For this I am using splitter operator in OWB which is suppose to generate multi table inserts, but unfortunately its not doing so when I generate the SQL. There si no "insert all" command in the sql it generates.
What I want is, when I populate T2 and T3 I use a sequence generator and I want the same sequences for T2 and T3 eg.
SQl>select * from T2;
NEXT_VAL DEPTNAME LOCATIO?N
1 COMP PUNE
2 MECH BOMBAY
3 ELEC A.P
SQl>select * from T3;
NEXT_VAL DEPTNAME LOCATIO?N
1 COMP PUNE
2 MECH BOMBAY
3 ELEC A.P
I am able to achieve this when I set the operating mode to ROW BASED. I am not geting the same result when I set the operating mode to SET BASED.
Help me....
-Sharat -
Very Urgent Text Modules - Smartform in diff lang
Hi,
Could any one give me a detailed info on how to use one text module in Smartform to other languages <b>without logging</b> into the system in that language.
I <b>tried</b> Example in the thread containing as below nut unable to succeed.
/: INCLUDE z_txt OBJECT TEXT ID txt LANGUAGE &Variable&
Name: z_text
Object: Text
Text id: Txt (Text id from SO10)
Language: variable[/code][/code][/code]
Its very Urgent
Thanks
DanDan...
you want to give the Language for Text elemetn dinamically..
in genaral attributes of the Text Module winodow..
Text name: xxxxxxx
Text Object: Text
Text ID: ST
Language: as below...
so wht i am suggesting is give the &CONTROL_PARAMETERS-REPLANGU1& (if it contain the Language)..
in Language tab.. Press the button right side of this element ">" then the text box will be become large.. then enter &CONTROL_PARAMETERS-REPLANGU1&..
if it is not clear plese tell wht exactly you r requirement again
<b>Please Close this thread.. when u r problem ise solved</b>
Reward if Helpful
Regards
Naresh Reddy K -
Chinese charecter display in Discoverer-Very Urgent
Hi,
I have a column which holds chinees values in database.
I can see some junk charecters instead of chinees charecters when I pull this column at report
Are there any settings to be done?
Could you please help !! This is Very urgent
Thanks Much
SridharHi,
You need the information stored in the database in a double-byte characterset (UTF-8, UTF-16,etc).
you also need:
The correct language resource files installed (has to be done at the initial install)
The correct fonts installed on the server and client (for multi-byte characters especially)
like Alban
The correct locale/language set in the client.
The followiing metalink documents should point you in the right direction
434135.1 How To Find Language (NLS) and Character Information For Oracle Business Intelligence Discoverer 10g (10.1.2)
340944.1 Chinese Characters Appear As Inverted Question Marks in Plus and Viewer
Regards,
Steve -
Can anybody help me in this code.
I would like to print out delivery order,but when i printed,it just printed out the whole delivery order in the bottom of A4 paper.Can anybody modify the source code and give me proper one?
I would it to fit on A4 paper.
These are the soource code,Pls help,it's very urgent.Thanks for any help.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.table.*;
import java.sql.*;
import java.net.*;
import java.io.*;
import java.util.*;
import java.awt.print.*;
import java.awt.geom.*;
public class ConfirmDeliveryOrderDialog extends JDialog implements ActionListener,Printable
private ResultSetTableModel retrieveDOInfoModel;
private JTable newDOTable;
private JScrollPane newDOSp;
private JLabel comT1,comT2,comT3,doT,doID,doIDNo,receivedDate,actualReceivedDate,deliveryTo,deliveryToCustomerInfo,
companyAddress,companyAddressInfo,tel,telNo,dispatchDate,actualDispatchDate,total,totalQuantity,
inputTotalQuantity,totalKg,inputTotalKg,remark,inputRemark;
private Line2D line,line1;
private Graphics2D g;
private Container cp;
private JButton printBtn,exitBtn;
private Connection con;
private Statement retrieveDOInfoStmt;
private ResultSet retrieveDOInfoRs;
int quan,Kg;
boolean centered = true;
public ConfirmDeliveryOrderDialog(JDialog parent)
super(parent,"New Delivery Order",true);
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = Laundry.getConnection();
retrieveDOInfoStmt = con.createStatement();
String retrieveDOInfo = "SELECT ItemName,ItemTypeName,WashingType,CleaningType,ItemCategory,QuantityOrKg AS [Quantity/Kg] " +
"FROM DoDetail,DOInfo " +
"WHERE DODetail.DOID = DOInfo.DOID " +
"AND DOInfo.CompanyID = " + Laundry.companyDetails.get(0) +
"AND DODetail.DOID = " + EnterDeliveryOrderNumberDialog.DOInfo.get(0);
retrieveDOInfoRs = retrieveDOInfoStmt.executeQuery(retrieveDOInfo);
if(Laundry.SCROLLABLE)
retrieveDOInfoModel = new ScrollingResultSetTableModel(retrieveDOInfoRs);
else
retrieveDOInfoModel = new CachingResultSetTableModel(retrieveDOInfoRs);
newDOTable = new JTable(retrieveDOInfoModel);
newDOSp = new JScrollPane(newDOTable);
newDOTable.getTableHeader().setReorderingAllowed(false);
newDOTable.setPreferredScrollableViewportSize(new Dimension(550,350));
retrieveDOInfoStmt.close();
con.close();
cp = getContentPane();
cp.add(newDOSp, BorderLayout.CENTER);
catch(SQLException ext)
JOptionPane.showMessageDialog(null,"SQL Exception:","ERROR",JOptionPane.ERROR_MESSAGE);
while (ext != null)
JOptionPane.showMessageDialog(null,"SQL State:" + ext.getSQLState() + "\nMessage:" + ext.getMessage() + "\nVendor:" + ext.getErrorCode(),"ERROR",JOptionPane.ERROR_MESSAGE);
ext = ext.getNextException();
catch(ClassNotFoundException ex)
JOptionPane.showMessageDialog(null,"Exception:" + ex,"ERROR",JOptionPane.ERROR_MESSAGE);
ex.printStackTrace();
catch(Exception e)
JOptionPane.showMessageDialog(null,"Exception:" + e,"ERROR",JOptionPane.ERROR_MESSAGE);
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = Laundry.getConnection();
retrieveDOInfoStmt = con.createStatement();
String retrieveDOInfo = "SELECT SUM(QuantityOrKg) AS [Total Quantity] " +
"FROM DOInfo,DODetail " +
"WHERE DOInfo.DOID = DODetail.DOID " +
"AND DOInfo.CompanyID = " + Laundry.companyDetails.get(0) +
"AND DODetail.DOID = " + EnterDeliveryOrderNumberDialog.DOInfo.get(0) +
"AND ItemCategory = 'Piece' " +
"GROUP BY DODetail.DOID ";
retrieveDOInfoRs = retrieveDOInfoStmt.executeQuery(retrieveDOInfo);
while(retrieveDOInfoRs.next())
quan = retrieveDOInfoRs.getInt("Total Quantity");
retrieveDOInfoStmt.close();
con.close();
catch(SQLException ext)
JOptionPane.showMessageDialog(null,"SQL Exception:","ERROR",JOptionPane.ERROR_MESSAGE);
while (ext != null)
JOptionPane.showMessageDialog(null,"SQL State:" + ext.getSQLState() + "\nMessage:" + ext.getMessage() + "\nVendor:" + ext.getErrorCode(),"ERROR",JOptionPane.ERROR_MESSAGE);
ext = ext.getNextException();
catch(ClassNotFoundException ex)
JOptionPane.showMessageDialog(null,"Exception:" + ex,"ERROR",JOptionPane.ERROR_MESSAGE);
ex.printStackTrace();
catch(Exception e)
JOptionPane.showMessageDialog(null,"Exception:" + e,"ERROR",JOptionPane.ERROR_MESSAGE);
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = Laundry.getConnection();
retrieveDOInfoStmt = con.createStatement();
String retrieveDOInfo = "SELECT SUM(QuantityOrKg) AS [Total Kg] " +
"FROM DOInfo, DODetail " +
"WHERE DOInfo.DOID = DODetail.DOID " +
"AND DODetail.DOID = " + EnterDeliveryOrderNumberDialog.DOInfo.get(0) +
"AND DOInfo.CompanyID = " + Laundry.companyDetails.get(0) +
"AND ItemCategory = 'Kg' " +
"GROUP BY DODetail.DOID ";
retrieveDOInfoRs = retrieveDOInfoStmt.executeQuery(retrieveDOInfo);
while(retrieveDOInfoRs.next())
Kg = retrieveDOInfoRs.getInt("Total Kg");
retrieveDOInfoStmt.close();
con.close();
catch(SQLException ext)
JOptionPane.showMessageDialog(null,"SQL Exception:","ERROR",JOptionPane.ERROR_MESSAGE);
while (ext != null)
JOptionPane.showMessageDialog(null,"SQL State:" + ext.getSQLState() + "\nMessage:" + ext.getMessage() + "\nVendor:" + ext.getErrorCode(),"ERROR",JOptionPane.ERROR_MESSAGE);
ext = ext.getNextException();
catch(ClassNotFoundException ex)
JOptionPane.showMessageDialog(null,"Exception:" + ex,"ERROR",JOptionPane.ERROR_MESSAGE);
ex.printStackTrace();
catch(Exception e)
JOptionPane.showMessageDialog(null,"Exception:" + e,"ERROR",JOptionPane.ERROR_MESSAGE);
comT1 = new JLabel("Deluxe Laundry Sdn Bhd");
comT1.setFont(new Font("Sanserif",Font.BOLD,12));
comT2 = new JLabel("Lot 1641, Jln Sungai Tua, Batu Caves, 68100 Selangor Darul Ehsan");
comT2.setFont(new Font("Sanserif",Font.PLAIN,10));
comT3 = new JLabel("Tel : 03-61863093 03-61863091 Fax : 03-61863096");
comT3.setFont(new Font("Sanserif",Font.PLAIN,10));
Box comBox = Box.createVerticalBox();
comBox.add(Box.createVerticalStrut(5));
comBox.add(comT1);
comBox.add(Box.createVerticalStrut(2));
comBox.add(comT2);
comBox.add(Box.createVerticalStrut(2));
comBox.add(comT3);
comBox.add(Box.createVerticalStrut(2));
Box comNBox = Box.createHorizontalBox();
comNBox.add(Box.createHorizontalStrut(10));
comNBox.add(comBox);
comNBox.add(Box.createHorizontalStrut(300));
//line = new Line2D.Float();
//line.setLine(10,50,600,50);
//Graphics2D dfl = (Graphics2D)g;
//dfl.drawLine(10,50,600,50);
doT = new JLabel("Delivery Order");
doT.setFont(new Font("Sanserif",Font.BOLD,17));
doID = new JLabel("DO ID : ");
doID.setFont(new Font("Sanserif",Font.BOLD,12));
doIDNo = new JLabel("");
doIDNo.setText("" + EnterDeliveryOrderNumberDialog.DOInfo.get(0));
doIDNo.setFont(new Font("Sanserif",Font.PLAIN,12));
receivedDate = new JLabel("Received Date : ");
receivedDate.setFont(new Font("Sanserif",Font.BOLD,12));
actualReceivedDate = new JLabel("");
actualReceivedDate.setText("" + EnterDeliveryOrderNumberDialog.DOInfo.get(1));
actualReceivedDate.setFont(new Font("Sanserif",Font.PLAIN,12));
JPanel jp = new JPanel();
jp.setLayout(new GridLayout(2,3));
jp.add(doID);
jp.add(doIDNo);
jp.add(receivedDate);
jp.add(actualReceivedDate);
Box doBox = Box.createHorizontalBox();
doBox.add(Box.createHorizontalStrut(200));
doBox.add(doT);
doBox.add(Box.createHorizontalStrut(50));
doBox.add(jp);
doBox.add(Box.createHorizontalStrut(100));
//line1 = new Line2D.Float();
//line1.setLine(10,0,600,0);
//Graphics2D df2 = (Graphics2D)g;
//df2.drawLine(10,100,600,100);
deliveryTo = new JLabel("Delivery To :");
deliveryTo.setFont(new Font("Sanserif",Font.BOLD,12));
deliveryToCustomerInfo = new JLabel("");
deliveryToCustomerInfo.setText("" + Laundry.companyDetails.get(1));
deliveryToCustomerInfo.setFont(new Font("Sanserif",Font.PLAIN,12));
Box deliveryToBox = Box.createHorizontalBox();
deliveryToBox.add(Box.createHorizontalStrut(10));
deliveryToBox.add(deliveryTo);
deliveryToBox.add(Box.createHorizontalStrut(10));
deliveryToBox.add(deliveryToCustomerInfo);
deliveryToBox.add(Box.createHorizontalStrut(500));
companyAddress = new JLabel("");
companyAddress.setFont(new Font("Sanserif",Font.BOLD,12));
companyAddressInfo = new JLabel("");
companyAddressInfo.setText("" + Laundry.companyDetails.get(2));
companyAddressInfo.setFont(new Font("Sanserif",Font.PLAIN,12));
Box companyAddressBox = Box.createHorizontalBox();
companyAddressBox.add(Box.createHorizontalStrut(98));
companyAddressBox.add(companyAddress);
companyAddressBox.add(Box.createHorizontalStrut(10));
companyAddressBox.add(companyAddressInfo);
companyAddressBox.add(Box.createHorizontalStrut(500));
tel = new JLabel("Tel :");
tel.setFont(new Font("Sanserif",Font.BOLD,12));
telNo = new JLabel("");
telNo.setText("" + '0'+Laundry.companyDetails.get(3));
telNo.setFont(new Font("Sanserif",Font.PLAIN,12));
Box telBox = Box.createHorizontalBox();
telBox.add(Box.createHorizontalStrut(10));
telBox.add(tel);
telBox.add(Box.createHorizontalStrut(10));
telBox.add(telNo);
telBox.add(Box.createHorizontalStrut(500));
dispatchDate = new JLabel("Dispatch Date :");
dispatchDate.setFont(new Font("Sanserif",Font.BOLD,12));
actualDispatchDate = new JLabel("");
actualDispatchDate.setText("" + EnterDeliveryOrderNumberDialog.DOInfo.get(2));
actualDispatchDate.setFont(new Font("Sanserif",Font.PLAIN,12));
Box dispatchBox = Box.createHorizontalBox();
dispatchBox.add(Box.createHorizontalStrut(10));
dispatchBox.add(dispatchDate);
dispatchBox.add(Box.createHorizontalStrut(10));
dispatchBox.add(actualDispatchDate);
dispatchBox.add(Box.createHorizontalStrut(500));
remark = new JLabel("Remark :");
remark.setFont(new Font("Sanserif",Font.BOLD,12));
inputRemark = new JLabel("");
inputRemark.setText("" + EnterDeliveryOrderNumberDialog.DOInfo.get(3));
inputRemark.setFont(new Font("Sanserif",Font.PLAIN,12));
Box remarkBox = Box.createHorizontalBox();
remarkBox.add(Box.createHorizontalStrut(10));
remarkBox.add(remark);
remarkBox.add(Box.createHorizontalStrut(10));
remarkBox.add(inputRemark);
remarkBox.add(Box.createHorizontalStrut(500));
Box infoBox = Box.createVerticalBox();
infoBox.add(Box.createVerticalStrut(5));
infoBox.add(deliveryToBox);
infoBox.add(Box.createVerticalStrut(5));
infoBox.add(companyAddressBox);
infoBox.add(Box.createVerticalStrut(5));
infoBox.add(telBox);
infoBox.add(Box.createVerticalStrut(5));
infoBox.add(dispatchBox);
infoBox.add(Box.createVerticalStrut(5));
infoBox.add(remarkBox);
infoBox.add(Box.createVerticalStrut(5));
Box northBox = Box.createVerticalBox();
northBox.add(Box.createVerticalStrut(5));
northBox.add(comNBox);
northBox.add(Box.createVerticalStrut(5));
northBox.add(doBox);
northBox.add(Box.createVerticalStrut(5));
northBox.add(infoBox);
northBox.add(Box.createVerticalStrut(5));
Shape firstShape = new Rectangle(350,100,10,5);
//Font font = new Font("Sanserif",Font.PLAIN,5);
String text = "Checked By";
//g.drawString(text,365,105);
//g.setFont(new Font("Sanserif",Font.PLAIN,5));
//g.fill(firstShape);
//g.draw(firstShape);
//Box joinBox = Box.createHorizontalBox();
//joinBox.add(northBox);
//joinBox.add(Box.createHorizontalStrut(10));
//joinBox.add(g);
printBtn = new JButton("Print");
printBtn.addActionListener(this);
exitBtn = new JButton("Exit");
exitBtn.addActionListener(this);
JPanel jp3 = new JPanel();
jp3.add(printBtn);
jp3.add(exitBtn);
total = new JLabel("Total");
totalQuantity = new JLabel("Quantity");
totalQuantity.setFont(new Font("Sanserif",Font.PLAIN,12));
inputTotalQuantity = new JLabel("");
inputTotalQuantity.setFont(new Font("Sanserif",Font.PLAIN,12));
inputTotalQuantity.setText("" + quan);
totalKg = new JLabel("Kg");
totalKg.setFont(new Font("Sanserif",Font.PLAIN,12));
inputTotalKg = new JLabel("");
inputTotalKg.setFont(new Font("Sanserif",Font.PLAIN,12));
inputTotalKg.setText("" + Kg);
Box totalBox = Box.createHorizontalBox();
totalBox.add(Box.createHorizontalStrut(270));
totalBox.add(total);
totalBox.add(Box.createHorizontalStrut(50));
totalBox.add(totalQuantity);
totalBox.add(Box.createHorizontalStrut(50));
totalBox.add(inputTotalQuantity);
totalBox.add(Box.createHorizontalStrut(30));
totalBox.add(totalKg);
totalBox.add(Box.createHorizontalStrut(50));
totalBox.add(inputTotalKg);
totalBox.add(Box.createHorizontalStrut(30));
Box southBox = Box.createVerticalBox();
southBox.add(Box.createVerticalStrut(10));
southBox.add(totalBox);
southBox.add(Box.createVerticalStrut(5));
southBox.add(jp3);
cp = getContentPane();
cp.add(northBox, BorderLayout.NORTH);
cp.add(southBox, BorderLayout.SOUTH);
setSize(600,400);
setLocation(100,100);
public void actionPerformed(ActionEvent ae)
if(ae.getSource() == printBtn)
PageFormat page = new PageFormat();
Paper paper = new Paper();
paper.setSize(595.275590551181,841.8897637795276);
paper.setImageableArea(70.8661417322835,70.8661417322835,453.5433070866141,700.1574803149607);
page.setPaper(paper);
page.setOrientation(PageFormat.PORTRAIT);
PrinterJob printJob = PrinterJob.getPrinterJob();
if(page == null)
page = printJob.defaultPage();
printJob.setPrintable(this,page);
if(printJob.printDialog())
try
printJob.print();
setVisible(false);
JOptionPane.showMessageDialog(null,"Please Generate Normal Or Express JobList","JobList",JOptionPane.INFORMATION_MESSAGE);
catch(PrinterException e)
JOptionPane.showMessageDialog(this,e);
else if(ae.getSource() == exitBtn)
EnterDeliveryOrderNumberDialog.removeDOInfo();
setVisible(false);
public int print(Graphics g, PageFormat pf, int page) throws PrinterException
if(page >= 1)
return Printable.NO_SUCH_PAGE;
Graphics2D g2 = (Graphics2D)g;
g2.translate(pf.getImageableX(), pf.getImageableY());
if(centered)
g2.translate(pf.getImageableWidth(), pf.getImageableHeight());
Dimension d = getSize();
double scale = Math.min(pf.getImageableWidth() / d.width, pf.getImageableHeight() / d.height);
if (scale < 1.0)
g2.scale(scale, scale);
if (centered)
g2.translate(-d.width, -d.height);
paint(g2);
return Printable.PAGE_EXISTS;Hi Thanx, your code helped. I have got another question. How do i implement a method from another method class into the applet. say, i want to implemen set frequency from the below code into my applet you wrote above?
class Histogram
int frequency[];
String alphabet;
Histogram(String alphabet)
this.alphabet=alphabet;
frequency=new int[alphabet.length()];
void scan(String message)
for(int i=0;i<message.length;i++)
frequncy[alphabet.IndexOf(message.charAt(i))]++;
void setfrequency(int frequency[])
for(int i=0;i<alphabet.length;i++)
this.frequency=frequency[i];
double entropy()
int total=0;
double probablity;
log2=Math.log(2.0);
for(int i=0;i<alphabet.length;i++)
total+=freguency[i]; -
Time overlapping of data record..very urgent
Hi All,
while loading time dependent data(texts..0HRPOSITION), i am geeting the following error....
Processing (data packet): Errors occurred
Data Package 1 ( 7418 Records ) : Errors occurred
Update ( 0 new / 0 changed ) : Errors occurred
Data records for package 1 selected in PSA - 2 error(s)
Record 7415 :0HRPOSITION : Time overlapping of data record 7415 with 7416 : '['20100924'/'20070618'] " .
Record 7416 :0HRPOSITION : Time overlapping of data record 7415 with 7416 : '['20100924'/'20070618'] ....
Could anyone let me know how to rectify this error and reload the IP..I am workning on production system.....its very urgent
Thanks in advance.
ManjulaHi Manjula
!)0HRposition infobject and check what is the time previously for that record..
2)Edit the PSA for the 7415 or 7416 and change the vlaue to the previous record time which u found in the infoobject
3) i think ur doing a full load. so better edit the PSA and repload the data from PSA
Regards
AK
Maybe you are looking for
-
Free Goods (With Batch Management)
Hi Gurus, I have defined a fee goods master data for material on which batch is activated. I have defined the it as with a min of 10 qty 1 free good will be delivered as exclusive item Now as the batch management is active and each batch has 1 qty in
-
I recently updated to the new Photos and when I went to import my library into Photos, it wouldn't let me. Kept throwing errors. I followed the suggested fixes using the terminal regarding permissions, but that didn't work. I decided to just go ba
-
Withholding tax issue while doing Down payment Clearing - Help needed
Hi, 1. I have posted vendor downpayment for 5000--> TDS was deducted here Bank Credit = 4500 Vendor Debit =5000 TDS Credit =500 2. I have posted vendor invoice for 5000 --> TDS was calculated Material Debit = 5000 Vendor Credit =4500 TDS Credit =500
-
AutoLoanFlow sample deployment failure
Hi all. I tried to deploy AutoLoanFlow BPEL sample from standard SOA Suite 10.1.3.1 samples and have got the following error from Ant: BUILD FAILED C:\oracle\product\10.1.3.1.0\SOA_Suite\bpel\samples\demos\AutoLoanDemo\AutoLoanFlow\build.xml:79: Depl
-
I am a newbie to FW. I have created several slideshows of my photography. I have yet to figure out how to import these shows into DW. Help is appreciated.