Problem in roatating a line
can any one tell me how to rotate line(g.drawline) like an hand of a clock that rotate...
thanxs in advance...
I have no idea what JTutor is, but if it tells you to override paint() in Swing, it's not worth its disk space.
[http://java.sun.com/docs/books/tutorial/uiswing/painting/closer.html] clearly says that for all practical purposes paintComponent will be the only method that you will ever need to override.
Similar Messages
-
I have a problem regarding sales order line item with confimed quanity
Hi Experts,
I have a problem regarding sales order line item with confimed quanity with '0' with delivery block but confirming the sales order quantity once the order is released from credit check.
The situation arises as per the below scenarios.
Scenario - 1 - When the sales order has two line item - one line item with confirmed qunaity in the schedule line and for the 2nd line item there is no available stock for the Material xxxxxx.
Initially the sales order is created for the line item 2 with confirmed quantity = 0, and having the delivery block = 01 for the Material xxxxxx and the order is set with credit check. Once the order is relased from the credit check. The quanity for the item 2 where the confirmed quantity will be = 0 ( Where it is not changing the confirmed quantity)
Scenario -2- Updating the order qunaity for the line item 2 as (9Pcs) it will goes to credit check and save the order.
Maintain the stock for the line item 2 ( 5 Pcs).
Once the order is released from the credit check. Then for the line item 2 the confirm quanity will be seting to 5 Pcs with Delivery blcok 01.
This should not happen, When the credit check is released even though if it has stock based on the delivery blockl it should set the confirmed quanity to Zero.
Can you please help me how to solve this issue.
Looking forward for your reply.
Thanks and Regards,Hi,
I agree with your point. In the sales order When the complete delivery check box is enabled where the confimed qty is set to zero, it is fine but when we save the orderr it goes to credit check. Once we release the order using VKM3 where in the sales order the confimed quantity is setting to 5, But it should set to Zero quantity. Quatity should not be get confirmed it should be Zero Quantity.
Further in SPRO - customizing in the deliveries blocking reasons - It has a tick mark in the confirmation blcok. But we dont want to remove the - Confirmation Block tick mark
Please any one can help me if you have any solution to solve this problem.
Thanks and Regards. -
I purchased Macbook Pro i5 in March 2011. Now the screen has problem; one vertical blue line is in the screen (at the right side). I noticed this last week when I opened the macbook and now I am always seening it. I am seeing the blue vertical line always in the screen. However, I am not seeing this line when I open Word, Excel, PowerPoint files (without pictures). But I am seeing this line always when I see movies, pictures, and all the files which have pictures. Please do let me know how can I remove this vertical blue line (blue tint) pernamentally from the screen.
Regards,
UjjalBackup your files to a external hard drive and disconnect.
Call Apple and make a warranty call, then take it to the nearest Apple Store etc.
You can run these things and it might clear your issue or give further informaiton
Perform a hardware check
http://support.apple.com/kb/ht1509
Then see if resetting the SMC/PRAM resolve your issue
http://support.apple.com/kb/HT3964
https://support.apple.com/kb/HT1379 -
Problem with Table control lines
Hi Friends,
This is the problem with table control lines:
I have screen with table control and I would like change the table control lines dynamicaly.
Exp:
In my PBO the Internal table which I am using to loop the TC is havig 7 records and its displayed with 7 records, now I have added one more record into my ITAB and now ITAB is having 8 records, when I am looping this ITAB with TC its taking the TC lines 7 only.
here is the code:
Initial values in gt_scr400 = 8
Initial values in tc_scr400 = 8
Now added one more recor into gt_scr400 , now gt_scr400 = 9.
LOOP AT gt_scr400
INTO wa_scr400
WITH CONTROL tc_scr400
CURSOR tc_scr400-current_line.
ENDLOOP.
I have used this logic :
DESCRIBE TABLE gt_scr400 LINES g_rec_300 .
tc_scr300-lines = g_rec_300.
but its not modifying the lines in my table control.
How to change the TC lines based on ITAB total records.
Thanks,
Sridharthere is a field in TableViewName-xxx
don't remember the exact field name for (total no of records)
you can check it in debug. when you add records in Internal table, u need to modify this field which is set at the first time when table control is populated. -
Problem while reading a line from a file
Hi all
I am facing a problem while readinga line from a file ,
line contains some french characters due to which it skips sequence, returning invalid record in a variable
e.g 'abcdefghÛLasasa'
Starting Point of Û is 9 and if
V1:=substr(''abcdefghÛLasasa',9,3)
result is v1='ÛLas' which is invalid
can i anybody help me out in resolving this problemHello,
What is your oracle version? And what is your expected result.
I used the same string and this is my output on 10.2.
select substr('abcdefghÛLasasa',9,3) mystring from dual;
MYS
ÛLa
1 row selected.Regards
Edited by: OrionNet on Jan 29, 2009 12:45 AM -
Telephone man says the problem in our telephone line is that there is a short in my laserjet 3050
HP laserjet 3050 all-in-one. Mac OXS10.4.11 power pc.
My telephone land line went out on me. The telephone repairman did his little troubleshooting thing and told me that the problem was a short in my printer. Ever heard of suc a thing and is there a fix for it?
Thanks.Hello,
Thanks for the post. I've not heard of this issue before, very strange indeed. I've serached for anything "short" related on this product, but have found none as of yet. I might suggest also posting this question on the links provided below. Good Luck!
http://h30499.www3.hp.com/t5/Business-Support-Forums/ct-p/business-support
http://h30499.www3.hp.com/t5/Printers-LaserJet/bd-p/bsc-413
I worked for HP but my posts and replies are my own....Thank you!
*Say thanks by clicking the *Kudos!* which is on the left*
*Make it easier for other people to find solutions, by marking my answer with (Accept as Solution) if it solves your issue.* -
Small Office fax problem through verizon phone line
Instead of sitting on the phone for 3 hours I figured I would try this first. I have a small office with Verizon internet and phone. I have one phone line, a credited machine, a computer and a 4 in one print scan fax copy. I was just wondering if anyone knew witch of these devices are supposed to be connected directly to the phone ports. Im having a problem sending out faxes after another employee moved around wires. Please and think you for any help! Or if you suggest me posting this some where else please let me know.
Myles Devaney
* your go to for personal assistance *There is no standard way to determine what is connected directly into the phone line.
Here is my 2 cents though. Generally a fax machine is connected directly into the VZ Phone Jack and a phone will connect off the fax machine. The reason for this is in case a fax is being sent or received the fax machine will block the phone port so your landline phone will not interupt the fax transmission. I'm not sure if the credit card machine does the same with it disconnecting your phone line so credit card transactions don't get interupted when transmitting. If so then you can plug the credit card machine into the fax and then hang the phone off the credit card machine. The phone should be the last one in line.
Jim -
Problem in drawing a line in Java Application Program
Hi,
I am trying to draw a line after a message is displayed on the screen. But the line is not at all coming on the screen while running. but I can see a red line is appearing on the screen first and and it is getting overridden.
There is something wrong in the concept what I understood about graphics.Can anybody help to
understand where the problem is ?
Here is the part of the code which used to draw line.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.table.*;
import java.io.*;
import java.sql.*;
import java.util.*;
import java.util.Date.*;
import java.text.*;
import java.lang.*;
import MyPack.*;
class chalan_pay extends JFrame
JTextField jt1,jt2,jt3,jt4,jt5;
JLabel jlh,jl1,jl2,jl3,jl4,jl5,jl10;
JButton bt1,bt2,bt3;
Choice ch1,ch2,ch3,ch4;
Connection con = null;
int i1no,i2no,i3no,i4no,itno;
String idate;
public chalan_pay()
getContentPane().setLayout(null);
jt1= new JTextField(5);
jt1.setBounds(110,150,50,20);
jt2= new JTextField(10);
jt2.setBounds(400,150,100,20);
jt3= new JTextField(3);
jt3.setBounds(590,150,30,20);
jt4= new JTextField(2);
jt4.setBounds(750,150,30,20);
jlh= new JLabel();
jlh.setText("CHALLAN DETAILS");
jlh.setBounds(300,50,200,20);
jl1= new JLabel();
jl1.setText("IGM No. ");
jl1.setBounds(50,150,100,20);
jl2= new JLabel();
jl2.setText("IGM Date ");
jl2.setBounds(340,150,100,20);
jl3= new JLabel();
jl3.setText("Line No. ");
jl3.setBounds(530,150,100,20);
jl4= new JLabel();
jl4.setText("Subline No. ");
jl4.setBounds(680,150,100,20);
jl10= new JLabel();
jl10.setBounds(100,200,300,20);
ch1= new Choice();
ch1.setBounds(170,150,150,20);
getContentPane().add(ch1);
ch1.addItemListener(new Opt1());
bt1= new JButton("Exit");
bt1.setBounds(200,600,100,20);
getContentPane().add(bt1);
bt1.addActionListener(new Ex());
try
con=db_connect.getConnection();
Statement st1 = con.createStatement();
ResultSet rs1 = st1.executeQuery("select igm_no,to_char(igm_dt,'DD-MON-YY'),line_no,subline_no from "+
"det_item order by igm_no");
while(rs1.next())
ch1.addItem(String.valueOf(rs1.getInt(1))+" "+rs1.getString(2)+" "+
String.valueOf(rs1.getInt(3))+" "+String.valueOf(rs1.getInt(4)));
rs1.close();
st1.close();
catch(Exception e){e.printStackTrace();}
getContentPane().add(jlh);
getContentPane().add(jl1);
getContentPane().add(jt1);
getContentPane().add(jl2);
getContentPane().add(jt2);
getContentPane().add(jl3);
getContentPane().add(jt3);
getContentPane().add(jl4);
getContentPane().add(jt4);
getContentPane().add(jl10);
setSize(900,700);
setVisible(true);
show();
public void paint(Graphics g)
g.setColor(Color.red);
g.drawLine(0,300,600,300);
class Ex implements ActionListener
public void actionPerformed(ActionEvent evt)
if(evt.getSource() == bt1)
dispose();
return;
This code is incomplete. The program is compiled and Ran. I am unable to see the Line.
Is it because , I am using contentPane ?. Please help me to cake it clear.
mjavaI have no idea what JTutor is, but if it tells you to override paint() in Swing, it's not worth its disk space.
[http://java.sun.com/docs/books/tutorial/uiswing/painting/closer.html] clearly says that for all practical purposes paintComponent will be the only method that you will ever need to override. -
Problem in uploading multiple line items while Creating sales order by BAPI
Hi experts , Im able to create sales order with one item while using this program, but the problem is when iam having multiple items or multiple sales order , iam not able to createthe line items , though its creating sales order header , Iam copy pasting my code , please add the additional code to my code to take more than 1 line items ,This is urgent requirement . Points will be rewarded for answers , Thanks in advance
*& Report Z_SO_CREATE_BAPI
REPORT Z_SO_CREATE_BAPI.
DATA: i_header TYPE bapisdhd1 occurs 0 with header line.
DATA: i_details TYPE bapisditm OCCURS 0 WITH HEADER LINE.
DATA: i_partner TYPE bapiparnr OCCURS 0 WITH HEADER LINE.
DATA: i_return1 TYPE bapiret2 OCCURS 0 WITH HEADER LINE.
DATA: i_return2 TYPE bapiret2.
data : ORDER_HEADER_IN like BAPISDHD1.
data : ORDER_ITEMS_IN like BAPISDITM occurs 0 with HEADER LINE .
data : ORDER_ITEMS_INX Like BAPISDITMX occurs 0 with HEADER LINE .
data : RETURN like BAPIRET2 occurs 0 with header line.
data : ORDER_PARTNERS like BAPIPARNR occurs 0 with
header line.
DATA : ORDER_KEYS LIKE BAPISDKEY OCCURS 0 WITH HEADER
LiNE.
data : ORDER_SCHEDULES_IN like BAPISCHDL occurs 0 with
header line.
data : ORDER_SCHEDULES_INX like BAPISCHDLX occurs 0 with
header line.
data : BEGIN OF TAB OCCURS 0,
SRNO(4),
DOC_TYPE like ORDER_HEADER_IN-dOC_TYPE,
SALES_ORG LIKE ORDER_HEADER_IN-SALES_ORG,
DISTR_CHAN LIKE ORDER_HEADER_IN-DISTR_CHAN,
DIVISION like ORDER_HEADER_IN-DIVISION,
REQ_DATE_H(10),
PURCH_DATE(10),
PMNTTRMS LIKE ORDER_HEADER_IN-PMNTTRMS,
PURCH_NO_C LIKE ORDER_HEADER_IN-PURCH_NO_C,
ITM_NUMBER like BAPISDITM-ITM_NUMBER,
MATERIAL LIKE ORDER_ITEMS_IN-MATERIAL ,
PLANT LIKE ORDER_ITEMS_IN-PLANT,
TARGET_QTY LIKE ORDER_ITEMS_IN-TARGET_QTY,
ITM_NUMBERX like ORDER_ITEMS_INX-ITM_NUMBER ,
MATERIALX LIKE ORDER_ITEMS_INX-MATERIAL ,
CUST_MAT22 LIKE ORDER_ITEMS_IN-CUST_MAT22,
PLANTX LIKE ORDER_ITEMS_INX-PLANT,
TARGET_QTYX LIKE ORDER_ITEMS_INX-TARGET_QTY,
ITM_NUMBER LIKE ORDER_ITEMS_IN-ITM_NUMBER,
MATERIAL LIKE ORDER_ITEMS_IN-MATERIAL ,
PARTN_ROLE LIKE ORDER_PARTNERS-PARTN_ROLE,
PARTN_NUMB LIKE ORDER_PARTNERS-PARTN_NUMB,
END OF TAB.
DATA: v_vbeln TYPE bapivbeln-vbeln.
selection-screen begin of block b1 with frame.
skip 3.
parameter:p_infile like rlgrap-filename obligatory.
skip 3.
selection-screen end of block b1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_infile.
PERFORM value_help.
start-of-selection.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
filename = p_infile
FILETYPE = 'DAT'
HAS_FIELD_SEPARATOR = 'X'
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
VIRUS_SCAN_PROFILE =
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH =
HEADER =
tables
data_tab = tab.
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
**Validation for the Create SO screen
*AT SELECTION-SCREEN ON BLOCK na_create.
Loop at Tab.
i_header-doc_type = TAB-DOC_TYPE .
i_header-sales_org = TAB-SALES_ORG.
i_header-distr_chan = TAB-DISTR_CHAN .
i_header-division = TAB-DIVISION .
append i_header.
*endloop.
i_partner-partn_role = TAB-PARTN_ROLE .
i_partner-partn_numb = TAB-PARTN_NUMB.
APPEND i_partner.
i_details-material = TAB-MATERIAL .
APPEND i_details.
endloop.
*Bapi for Creating SO
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
EXPORTING
SALESDOCUMENTIN = v_vbeln
order_header_in = i_header
ORDER_HEADER_INX =
SENDER =
BINARY_RELATIONSHIPTYPE =
INT_NUMBER_ASSIGNMENT =
BEHAVE_WHEN_ERROR =
LOGIC_SWITCH =
TESTRUN =
CONVERT = ' '
IMPORTING
SALESDOCUMENT = v_vbeln
tables
RETURN = i_return1
ORDER_ITEMS_IN = i_details
ORDER_ITEMS_INX = ORDER_ITEMS_INX
order_partners = i_partner .
ORDER_SCHEDULES_IN =
ORDER_SCHEDULES_INX =
ORDER_CONDITIONS_IN =
ORDER_CONDITIONS_INX =
ORDER_CFGS_REF =
ORDER_CFGS_INST =
ORDER_CFGS_PART_OF =
ORDER_CFGS_VALUE =
ORDER_CFGS_BLOB =
ORDER_CFGS_VK =
ORDER_CFGS_REFINST =
ORDER_CCARD =
ORDER_TEXT =
ORDER_KEYS =
EXTENSIONIN =
PARTNERADDRESSES =
IF NOT v_vbeln IS INITIAL.
*Bapi Commit Work
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT =
IMPORTING
return = i_return2
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'
IMPORTING
RETURN =
ENDIF.
LOOP AT i_return1 . "INTO wa_return1.
WRITE:/ i_return1-message.
ENDLOOP.
FORM value_help .
CALL FUNCTION 'DSVAS_DOC_WS_FILENAME_GET_50'
EXPORTING
DEF_FILENAME = ' '
DEF_PATH = ' '
MASK = ',.,..'
MODE = 'O'
TITLE = ' '
IMPORTING
FILENAME = p_infile
EXCEPTIONS
INV_WINSYS = 1
NO_BATCH = 2
SELECTION_CANCEL = 3
SELECTION_ERROR = 4
OTHERS = 5.
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.
txt file data
order type salesorg distch divison materialno parter role
TA PB01 01 00 000000000000000852 WE
Partner no
8101000000Hi Neerja,
you can reffer this sample code. It may not be complet soluation for your poblem,
but you will get some idea.
*& Report ZBAPI_SALESORDER_CREATE
*& Author : Karthik
REPORT ZBAPI_SALESORDER_CREATE.
data : ORDER_HEADER_IN like BAPISDHD1.
data : ORDER_ITEMS_IN like BAPISDITM occurs 0 with
header line.
data : RETURN like BAPIRET2 occurs 0 with header line.
data : ORDER_PARTNERS like BAPIPARNR occurs 0 with
header line.
DATA : ORDER_KEYS LIKE BAPISDKEY OCCURS 0 WITH HEADER
LINE.
data : ORDER_SCHEDULES_IN like BAPISCHDL occurs 0 with
header line.
data : BEGIN OF TAB OCCURS 0,
SRNO(4),
DOC_TYPE like ORDER_HEADER_IN-dOC_TYPE,
SALES_ORG LIKE ORDER_HEADER_IN-SALES_ORG,
DISTR_CHAN LIKE ORDER_HEADER_IN-DISTR_CHAN,
DIVISION like ORDER_HEADER_IN-DIVISION,
REQ_DATE_H(10),
PURCH_DATE(10),
PMNTTRMS LIKE ORDER_HEADER_IN-PMNTTRMS,
PURCH_NO_C LIKE ORDER_HEADER_IN-PURCH_NO_C,
ITM_NUMBER like BAPISDITM-ITM_NUMBER,
CUST_MAT22 LIKE ORDER_ITEMS_IN-CUST_MAT22,
PLANT LIKE ORDER_ITEMS_IN-PLANT,
TARGET_QTY LIKE ORDER_ITEMS_IN-TARGET_QTY,
PARTN_ROLE LIKE ORDER_PARTNERS-PARTN_ROLE,
PARTN_NUMB LIKE ORDER_PARTNERS-PARTN_NUMB,
END OF TAB.
data: itab1 like alsmex_tabline occurs 0 with header
line.
DATA: gd_currentrow type i.
data : PURCHASEORDER like ekko-ebeln.
Data: tot_rec type i, "Total Records
gd_update type i, "Main Table Increement Counter
gd_lines type i, "Success Table increement Counter
w_textout like t100-text. "VARIABLE TO GET ERRORLOG
data : begin of it_success occurs 0,
SALESDOCUMENT LIKE BAPIVBELN-VBELN, "PROJECT
end of it_success.
data : begin of it_error occurs 0,
srno(4),
err_msg(73) TYPE c, "TO RETREIVE ERROR MESSAGES
end of it_error.
data : srno(4).
DATA : SALESDOCUMENT LIKE BAPIVBELN-VBELN.
selection-screen begin of block b1 with frame.
skip 3.
parameter:p_infile like rlgrap-filename obligatory.
skip 3.
selection-screen end of block b1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_infile.
PERFORM value_help.
start-of-selection.
call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
filename = p_infile
i_begin_col = '1'
i_begin_row = '2' "Do not require
headings
i_end_col = '22'
i_end_row = '10000'
TABLES
intern = itab1
EXCEPTIONS
inconsistent_parameters = 1
upload_ole = 2
others = 3.
if sy-subrc <> 0.
message e010(zz) with text-001. "Problem uploading
Excel Spreadsheet
endif.
*perform open_group.
sort itab1 by row col.
Get first row retrieved
read table itab1 index 1.
Set first row retrieved to current row
gd_currentrow = itab1-row.
loop at itab1.
Reset values for next row
if itab1-row ne gd_currentrow.
append tab .
clear tab.
gd_currentrow = itab1-row.
endif.
SHIFT ITAB1-VALUE LEFT DELETING LEADING SPACE.
case itab1-col.
when '0001'.
TAB-SRNO = itab1-value.
when '0002'.
TAB-DOC_TYPE = itab1-value.
when '0003'.
TAB-SALES_ORG = itab1-value.
when '0004'.
TAB-DISTR_CHAN = itab1-value.
when '0005'.
TAB-DIVISION = itab1-value.
when '0006'.
TAB-REQ_DATE_H = itab1-value.
when '0006'.
TAB-PURCH_DATE = itab1-value.
when '0007'.
TAB-PMNTTRMS = itab1-value.
when '0008'.
TAB-PURCH_NO_C = itab1-value.
when '0009'.
TAB-ITM_NUMBER = itab1-value.
when '0010'.
TAB-CUST_MAT22 = itab1-value.
when '0011'.
TAB-PLANT = itab1-value.
when '0012'.
TAB-TARGET_QTY = itab1-value.
when '0013'.
TAB-PARTN_ROLE = itab1-value.
when '0014'.
TAB-PARTN_NUMB = itab1-value.
endcase.
endloop.
append tab.
clear tab.
sort tab by SRNO.
LOOP AT TAB.
concatenate tab-REQ_DATE_H+4(4)
tab-REQ_DATE_H2(2) tab-REQ_DATE_H0(2) into
tab-REQ_DATE_H.
concatenate tab-PURCH_DATE+4(4)
tab-PURCH_DATE2(2) tab-PURCH_DATE0(2) into
tab-PURCH_DATE.
SRNO = TAB-SRNO.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = tab-PARTN_NUMB
IMPORTING
OUTPUT = tab-PARTN_NUMB.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = tab-CUST_MAT22
IMPORTING
OUTPUT = tab-CUST_MAT22.
IF TAB-SRNO = SRNO.
ORDER_HEADER_IN-DOC_TYPE = TAB-DOC_TYPE.
ORDER_HEADER_IN-SALES_ORG = TAB-SALES_ORG.
ORDER_HEADER_IN-DISTR_CHAN = TAB-DISTR_CHAN.
ORDER_HEADER_IN-REQ_DATE_H = TAB-REQ_DATE_H.
ORDER_HEADER_IN-PURCH_DATE = TAB-PURCH_DATE.
ORDER_HEADER_IN-PMNTTRMS = TAB-PMNTTRMS.
ORDER_HEADER_IN-PURCH_NO_C = TAB-PURCH_NO_C.
ORDER_HEADER_IN-DIVISION = tab-DIVISION.
ORDER_ITEMS_IN-ITM_NUMBER = tab-ITM_NUMBER.
ORDER_ITEMS_IN-material = TAB-CUST_MAT22.
ORDER_ITEMS_IN-PLANT = TAB-PLANT.
APPEND ORDER_ITEMS_IN.
ORDER_PARTNERS-PARTN_ROLE = TAB-PARTN_ROLE.
ORDER_PARTNERS-PARTN_NUMB = TAB-PARTN_NUMB.
APPEND ORDER_PARTNERS.
ORDER_SCHEDULES_IN-ITM_NUMBER = tab-ITM_NUMBER.
ORDER_SCHEDULES_IN-REQ_QTY = tab-TARGET_QTY.
append ORDER_SCHEDULES_IN.
ENDIF.
AT END OF SRNO.
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
EXPORTING
SALESDOCUMENTIN =
ORDER_HEADER_IN = ORDER_HEADER_IN
ORDER_HEADER_INX =
SENDER =
BINARY_RELATIONSHIPTYPE =
INT_NUMBER_ASSIGNMENT =
BEHAVE_WHEN_ERROR =
LOGIC_SWITCH =
TESTRUN =
CONVERT = ' '
IMPORTING
SALESDOCUMENT = SALESDOCUMENT
TABLES
RETURN = RETURN
ORDER_ITEMS_IN = ORDER_ITEMS_IN
ORDER_ITEMS_INX =
ORDER_PARTNERS = ORDER_PARTNERS
ORDER_SCHEDULES_IN = ORDER_SCHEDULES_IN
ORDER_SCHEDULES_INX =
ORDER_CONDITIONS_IN =
ORDER_CONDITIONS_INX =
ORDER_CFGS_REF =
ORDER_CFGS_INST =
ORDER_CFGS_PART_OF =
ORDER_CFGS_VALUE =
ORDER_CFGS_BLOB =
ORDER_CFGS_VK =
ORDER_CFGS_REFINST =
ORDER_CCARD =
ORDER_TEXT =
ORDER_KEYS = ORDER_KEYS
EXTENSIONIN =
PARTNERADDRESSES =
IF SALESDOCUMENT <> SPACE.
commit work.
ADD 1 TO gd_update.
it_success-SALESDOCUMENT = SALESDOCUMENT.
append it_success.
CLEAR :SALESDOCUMENT,ORDER_HEADER_IN.
REFRESH : RETURN,ORDER_ITEMS_IN,ORDER_PARTNERS.
ELSE.
loop at return.
it_error-SRNO = tab-SRNO.
it_error-err_msg = return-MESSAGE .
Append it_error.
ENDLOOP.
CLEAR :SALESDOCUMENT,ORDER_HEADER_IN.
REFRESH : RETURN,ORDER_ITEMS_IN,ORDER_PARTNERS.
ENDIF.
endat.
endloop.
DESCRIBE TABLE it_success LINES gd_lines.
IF gd_lines GT 0.
Display result report column headings
PERFORM display_column_headings.
Display result report
PERFORM DISPLAY_SUCESS.
ENDIF.
IF SUCESS FAILS Display Error Report
DESCRIBE TABLE it_error LINES gd_lines.
IF gd_lines GT 0.
PERFORM errorheadings.
PERFORM errorreport.
ENDIF.
*& Form display_column_headings
text
FORM display_column_headings.
WRITE:2 ' Success Report '(014) COLOR COL_POSITIVE.
SKIP.
WRITE:2 'The following records inserted
successfully:'(013).
WRITE:/ sy-uline(15).
FORMAT COLOR COL_HEADING.
WRITE:/ sy-vline,
(10) 'Sales order'(004), sy-vline.
WRITE:/ sy-uline(15).
ENDFORM. "display_column_headings
*Subroutine to display SUCESS REPORT
FORM DISPLAY_SUCESS.
FORMAT COLOR COL_NORMAL.
LOOP AT it_success.
WRITE:/ sy-vline,
(10) it_success-SALESDOCUMENT, sy-vline.
CLEAR it_success.
ENDLOOP.
WRITE:/ sy-uline(15).
REFRESH: it_success.
FORMAT COLOR COL_BACKGROUND.
ENDFORM. "
DISPLAY_REPORT
*& Form errorreport
text
FORM errorreport.
LOOP AT it_error.
WRITE:/ sy-vline,
(10) it_error-SRNO, sy-vline,
(40) it_error-err_msg, sy-vline.
ENDLOOP.
WRITE:/ sy-uline(104).
REFRESH: it_error.
endform. "errorreport
*& Form ERRORHEADINGS
text
FORM ERRORHEADINGS.
SKIP.
WRITE:2 ' Error Report '(007) COLOR COL_NEGATIVE.
SKIP.
WRITE:2 'The following records failed during
update:'(008).
WRITE:/ sy-uline(104).
FORMAT COLOR COL_HEADING.
WRITE:/ sy-vline,
(10) 'ERROR.'(009), sy-vline.
WRITE:/ sy-uline(104).
FORMAT COLOR COL_NORMAL.
ENDFORM. "ERRORHEADINGS
**& Form value_help
text
--> p1 text
<-- p2 text
FORM value_help .
CALL FUNCTION 'DSVAS_DOC_WS_FILENAME_GET_50'
EXPORTING
DEF_FILENAME = ' '
DEF_PATH = ' '
MASK = ',.,..'
MODE = 'O'
TITLE = ' '
IMPORTING
FILENAME = p_infile
EXCEPTIONS
INV_WINSYS = 1
NO_BATCH = 2
SELECTION_CANCEL = 3
SELECTION_ERROR = 4
OTHERS = 5.
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. "value_help
Regards,
Amit. -
Problem in printing multiple line items
Hi,
i designed a SAPSCRIPT FORM.When i execute the t-code MB01 by giving PO which has multiple line items , output type is invisible.
But when i iexecute the t-code MB01 by giving PO which has single item , output type is visible and form is printing.
Do i need to copy the print program and make changes in there or if i change elements in the form will that helps in printing multiple line items.
thanks.HI,
wat i understand is u r trying to loop at a variable window .but tht is not suggestable.
write a loop in program lines. read the values in to different variables and the try printing them as text elements that will solve the problem.
or else in other way use a template and that can also solve the problem. -
Problem in dispalying the line no in particular format in the table footer
Hi,
i am facing a problem in dispalying line numbers in a particular format (expalined below) in the table view control(footer of table) of a RSS iView. The format is
X - Y / Z
where:
X refers to the number of the top article/link displayed
Y refers to the number of the lowest article/link displayed
Z refers to the total number of articles supplied by the news-feed.
i am able to dispaly line number in format X/Z, if someone have some idea please reply.
Thanks in advanceHi Deepak,
see Table View for the same question.
Hope it helps
Detlev
PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance! -
Two problems : areaChart along with Line and double y-axis in LineChart
Hi Friends,
This forum is very useful as we are getting lots of help from people who are trying out this new technology and giving/using help to/from others.I am developing a real time application in JavaFx in which I need to implement Charts using dynamic data coming from a server.
Now I am facing two types of problem which may be interrelated in some way.
Problem 1 :
I need to combine an areachart along with a line Chart.There is nothing in JavaFx like area-line Chart so should i go with all area charts and make the fill-color of area series transparent(is it possible to have transparent fill in area-chart ? by css ?) OR i should stack two charts one area and one line on top of one another making the background of either transparent(once again is it possible to have transparent background for a chart so that background chart/series is visible ?) OR any other suggestion ? Anyways I tried stacking using stackPane and it turned out to be ugly combination of misaligned charts :-(
Problem 2 :
I need to put two y-axis(i.e secondary axis) on the same chart but i am unable to find such feature with my best efforts.I know I can set the side of Axis using setSide method of Axis class but how can i put it both side simultaneously.Also is there a way to put different scales on these axis ? I mean is it possible to have two different series with drastic difference in bounds(data range) to be put on same chart by attaching them to different Y-axis on the same chart ?I don't think there is anything in the JavaFX library which matches exactly what you need.
You might be able to use some tips from the 3d pie chart I created at: https://gist.github.com/1485144. This demonstrates stacking multiple charts on top of each other, whilst removing rendundant details so it doesn't end up a jumbled mess and looking up items by their css tags and modifying them.
There is now excellent documentation on chart css at http://docs.oracle.com/javafx/2.0/charts/css-styles.htm#CIHGIAGE. If this doesn't get you all of the css hooks you need to dig out the details required from the chart, then you can unpack jfxrt.jar and search for caspian.css or you can recursively print the nodes in the chart which will tell you the type and style of each node. Armed with this information you could should then be able to stack the two charts you created on top of each other, align them correctly and strip away the info you don't need. To get the second y axis to the other side of the chart you could look it up by css in code, then do a translateX on it to so that it is translated by a bind to the width of the x axis. Seems doable, if a little fiddly.
You might be tempted to directly create an Axis yourself by creating an instance of http://docs.oracle.com/javafx/2.0/api/javafx/scene/chart/NumberAxis.html and laying it over your chart, but I was unable to get that to work (http://javafx-jira.kenai.com/browse/RT-18270) - even if you did so, you would have to manually set up the ranges and ticks as the chart library wouldn't handle that for you. Another way to create a Axis like thing is by creating a http://docs.oracle.com/javafx/2.0/api/javafx/scene/control/Slider.html, disabling user input on it and removing it's thumb via css.
My efforts at answering chart questions in the past sometimes ended up as "That's not what I need": Re: How to create PieChart like this?
Questions about charts are hard to answer without a link to an exact image of what the required chart is expected to look like. -
Problem in creating New line in --File writing(Urgent)
Hi all
I am facing a tipical problem.
I am writing a Text file using FileWriter and i am using "\n" for writing a new line,
but when i open notepad all are falling on a single line with a special char
(if i open the text file in some other editor vie wis very fine)
C-0-1@C-1-0@ C-2-1
@ is where i am writing new line.
but this king of writing is not supported by my third party tool to which i am sending the text file
as parameter..
Kindly any one provide me a solution.
Byenewlines differ between windows and linux/unix. Windows' new line character is somthing like "\n\m" where linux uses "/n". So to keep your program platform independent I would suggest using System.getProperty("line.separator") so your code might look like:
String s = "C-0-1" + System.getProperty("line.separator") + "C-1-0" + System.getProperty("line.separator") + "C-2-1";
//then write the string to the filethis will give you the appropriate newline character for the platform your program runs on. -
Outlook 2010 has problems dealing with in-line attachment (not an Exchange issue!)
Hi all...
Is there an official way to have this bug looked at?
(Note -- it is *not* the Exchange/PDF bug that has been semi-addressed with the very-recentInterim Update for Exchange 2007...)
If I set up Outlook 2010 to use an IMAP server account (not an Exchange account) and send that account a message from Apple's Mail.app program -- that contains an in-line attachment -- Outlook 2010 displays the e-mail incorrectly.
If I send e-mail using Apple Mail of the form:
<some text>
attachment (and in this case I've tried .pdf, .docx, .xls, etc. -- it seems not to matter what the attachment is...)
<additional text>
<signature>
Outlook 2010 displays the resulting e-mail with a problem:
The received e-mail will look like this
<some text>
then *two* attachments -- the attached file *and* an "Untitled Attachment" that contains the <additional text> and <signature> parts of the e-mail (!)
The reproducible bug (at least here) is that Outlook 2010 should display the remaining text after the in-line attachment within the *body* of the e-mail message.
Again, this is *not* the recent Exchange issue with .pdf files -- this is strictly an Outlook issue.
Any thoughts/help on this one?
- SteveHello,
In order to get a better understanding of your issue I have a few questions:
1: You mention that the sending client is an Apple mail application. Do you see this issue when sending from a non-Apple email client?
2: Which version of Apple Mail app are you using?
3: If you send the same mail to an Outlook 2007 or earlier version of Outlook do you see the same issue?
4: What is the format of the Email when being sent from the Apple mail client, is it HTML; Plain Text or Rich Text? Additionally, what happens if you send the same email but change the format.
5: If you send an Inline attachment to the Apple Mail application from Outlook 2010, what happens?
6: As per the Post you are attaching a single Inline attachment with text before and after the attachment before sending the email, but when you receive the mail in Outlook you get two attachments. Are these attachments still inline attachments?
7: The second file attachment; next to the remaining text and the signature does it contain any other text? Like some error added by the server?
9: Instead of .pdf, .docx, .xls file if you send an image as an inline attachment from the Apple mail application, then so you see the issue?
10: If you send the files as normal attachment not inline does everything work?
Below is an article which may be applicable to your issue although it pertains to an earlier version of Outlook:
‘Outlook renders inline message information as an attachment’
http://support.microsoft.com/kb/814111
I also came across a user who experience similar issue and they suggested, setting the apple mail application to Always insert attachment at the end of the message.
View->Attachments and select "Always Insert Attachments at End of Message
Let me know what the results are using that setting.
Do let me know if you have any queries regarding the same and I shall try my best to address it as far as possible.
Regards,
Harveyy - MSFT -
Problem associated with Command Line arguments
hi ,
I am not able to pass a file path as command line argument in java.
Actually i want to run a java program from the command prompt passing a file path . Something like this i tried to do , but its not working.
D:\VISHAL\src> java CopyFile C:\Documents and Settings\Administrator\Desktop\link.txt
where ,
CopyFile is the name of my class which i am going to run
C:\Documents and Settings\Administrator\Desktop\link.txt is the argument.
Can anyone tell me whether a java program accepts an argument like this, if yes please tell me the exact syntax..
Thanks
Vishal J
Message was edited by:
vishal_vjis there any other way of solving this?Y don't U try it out with the logic as mentioned
below it wud be the case if U r not going with
java CopyFile "C:\Documents and
Settings\Administrator\Desktop\link.txt" 1
String filepath = new String();
for(int i = 0; i < Arg.length; i++)
filepath.append(Arg);
File f = new File(filepath);
What???? This is a non-solution to a non-problem. First of all, you would be constructing a filename without spaces, when the real path contains spaces. Secondly, even if you did insert spaces it would not matter. What if the String (and it does not have to be a filename) contained tabs rather than spaces. The real (and really only) solution to the problem is to put quotes around the argument, for the exact reason stated in my last post.
Maybe you are looking for
-
Corrupted files on External HD - crashing iPhoto6
Hi I've been using a Maxtor One Touch II external FW HD for my iPhoto library. It had been working fine until I tried to download photos yesterday onto it. I tried to rebuild the library, but it kept hanging. The only way to shut down was to hold dow
-
Package org.jdesktop.layout does not exist?
I have created a project in Netbeans using the Java Project with Existing Ant Script and am trying to use the Netbeans GUI interface to develop my project, but even though I have created a folder that contains the swing-layout-1.0.3.jar and I no long
-
C++ do not support JNi && how to return the array from jni?
hi, 1.. I have created the Cpp file to implemement the native method but it seems that the native method can not complie rightly , it tells me follows error C2819: type 'JNIEnv_' does not have an overloaded member 'operator ->' c:\program files\micro
-
Foreign trade / Customs info
Hello experts, I have a problem with billing split. The scenario is the following: I have created a purchasing organization that belongs to a society called UMA. This purchasing organization has a plant (UMC) without any warehouse (at the moment, it
-
Handling sql query in jsp while extracing records from 3 tables
hi to one and all, i want to implement the sql query given below in jsp in execute query statement . the query is working in sql but not when implemented using jsp. please help me in resolving this. Query SELECT e.Department , e.ETitle , s.basic , s.