Another problem variation on the "using terms from"
Using either Script Editor.app or Script Debugger, the following pasted into the editor window works:
set AppName2 to "Finder"
set WinName2 to "Photos"
tell application AppName2
set WinBnds to bounds of window WinName2
end tell
(as long as there is a window "Photos" open)
BUT
if the very same code appears, isolated, in a handler of a script, there's a "can't make bounds into type reference" error. None of the tricks discussed earlier (using terms from) changes that.
So I assume there must be some special approach for doing this within a handler. I also assume the problem is to somehow pass the terms of Finder.app to the handler. If so, how might that be done?
(In this test, AppName2 and WinName2 are being defined as shown, in the handler)
Hello Noaks,
My first and only guess is that you're using a repeat loop in the form — 'repeat with loopVariable in <list>' — and using the loopVariable directly without de-referencing it. This sort of loopVariable is indeed 'a reference to item k of <list>', not the 'item k of <list>' itself, and it will cause problem when used directly in equality test and also it may cause error -1700 when used directly in application's object specifier:
-1700 errAECoercionFail Data could not be coerced to the requested descriptor type
-1700 errOSACantCoerce A value can't be coerced to the desired type.
The solution is to de-reference it by getting its 'contents' explicitly.
E.g., run the following code with and without the line marked with '-- # required' and see the results. Here it's assumes there're at least two Finder windows open.
--SAMPLE CODE
tell application "Finder"
set {n1, n2} to name of windows
end tell
return getBounds("Finder", n1, n2)
on getBounds(appn, n1, n2)
set rr to {}
tell application appn
repeat with n in {n1, n2}
--set n to n's contents -- # required
try
set end of rr to {name, bounds} of window n
on error errs number errn from erob
set end of rr to {errs, errn, erob}
end try
end repeat
end tell
return rr
end getBounds
--END OF SAMPLE CODE
cf.
ASLG > Control Statements > repeat Statements > repeat with loopVariable (in list)
http://developer.apple.com/documentation/AppleScript/Conceptual/AppleScriptLangG uide/
If this is not the case, I have no idea about what is going on in your script.
Cheers,
H
Similar Messages
-
Problem in getting the database connection from a connection pool
Hai All,
I am facing a problem in getting the database connection from a connection pool created on weblogic server 8.1.
I am using the Oracle database 8.1.7.
I have configured my connection pool, datasource and JNDI in weblogic.
In my java program i have the following code to retrieve the connection.
import java.sql.*;
import java.util.Hashtable;
import javax.naming.Context;
import javax.naming.InitialContext;
class jdbcshp1 {
public static void main(String[] args) {
Connection connection = null;
try {
Hashtable ht = new Hashtable();
ht.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory"); // Wanna get rid of this.
ht.put(Context.PROVIDER_URL,"t3://localhost:7001"); // wanna get rid of this.
// Get a context for the JNDI look up
Context ctx = new InitialContext(ht);
javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup ("myjndi1");
//Create a connection object
connection = ds.getConnection();
The above code is working fine but, the two ht.put statements are creating problem.
The problem is, after converting the application into WAR file it can be deployed
on any machine or different port on same machine. My application fails if its deployed on
weglogicserver which is at different port.
Is there any way that i can get rid of those ht.put statements or any other way to solve the problem.
any help is appreciated.
Thanks in advance
Pooja.Hai All,
Firstly, thanks for ur reply.
Even i have seen some code which uses context constructor with out any parameter and works fine.
i dont understand why its not working for my code.
When i remove those ht.put code and use context constructor with out any parameter, it giving an error.
Context ctx = new InitialContext();
javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup ("ocjndi");
connection = ds.getConnection();The error is as follows:
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
the above error is forcing me to include those code but if the port number is changed the code will not work. Plz let meknow if some setting have to be made.
I appreciate all ur valuable help.
Thanks once again.
Pooja. -
in iPhoto, I want to copy certain photos in an event and then have the copies in another event WITHOUT removing the original photos from their original event; how to do that?
The only way to do that is to export the image to a new file and then re-import it.
It's not really the intended way of working as it uses twice the disk space and is inefficient.
Use Albums instead. A Photo can be in any number of albums and use no extra disk space as it just simply references the image in the Library. Albums can be sorted any way you want - including manaually - and can have image from anywhere in the Library just by drag and drop. -
Problem by transporting the message mapping from PI 7.0 to PI 7.1
Hi Everyone,
by transporting the message mapping from PI 7.0 to PI 7.1 i have got the following problem.
"Source code has syntax error:
K:\usr\sap\E71\DVEBMGS00\j2ee\cluster\serve......
package udfpool does not exist
import udfpool.*;
i have used a UDF in my message mapping.
This UDF calls for a method of a java class, which is imported as a .jar file with this message mapping.
this message mapping works very well on PI 7.0,
but doesn't work any more on PI 7.1 because of the problem described above.
anyone can help me out of this problem?
thanks!
zchi,
but did you import the jar archive to 7.1 first?
Regards,
Michal Krawczyk
http://mypigenie.com XI/PI FAQ -
the same with the following description from another question:
"How can I display a total on top of each column on a stacked column chart (using
reporting services 2008)? If I use Data Labels I can display the
values for each part of the stack on a stacked column, but I want to be display the total.
For Example: If I have stacked column on chart with a value of 10 for the 1st stack, 20 for the 2nd stack,
and 20 again for the 3rd stack - I want to display 50 (the SUM total) as the data label on top of the entire column..."
and a solution for this would create a new column named SUM(category group), this can be done with data source from SQL server, but my data is from SharePoint site list. its query seems can't be changed which means I can't add a SUM column.
what should I do with this? Can anyone give me a hand?
thank you very much.Hi sophiexu,
If we want to display a total for each column on the top of a stacked chart, we can use a matrix control to display the column total value to work around this issue.
The following thread about how to simulate chart legend is for your reference:
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/cfb4fa19-b2ba-426a-804b-b5ea83d70d62/ssrs-2008-chart-legend-missing-customitems-property
Hope this helps.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Problem of running the jump query from the result line
Dear expert,
I have a problem when running a jump query from the result line. Apparently, the values of the caracteristics haven't been sent to the jump target. However, the configuration in RSBBS seems to be good as the jump works well from the other lines.
Does anyone have some ideas on that?
Thanks in advance!Hi,
If you are supposed to bring across characteristic values to your target, then you will not be able to jump from the result line. The configuration expects that the values of the characteristic marked as being used in the jump are filled with unique values. When you use the result line as a source for your jump, the values in the result line will most likely be based on the sum of multiple characteristic values.
Hth,
-Jacob -
Problem in accessing the standard transaction from Portal through RFC
Below is the error we are getting when we run RFC (which has P60) from the portal(JAVA webdynpro) which inturn uses BDC to get the spool id from the standard p60(RPCEOYG0)..
Msgid "00"
Msgno "359"
Msgtx "The transaction was terminated by the user".
But if i keep the debugger inside the RFC after the call_transaction and if I press F8 then I am getting the correct output. Could some one tell me the reason behind this ?
thanks,
Prashanth J RHi,
It sounds to me like the BDC or some other component being called from your Z function module requires some sort of dialog interface (maybe an "Are you sure?" type message).
When calling RFC from Web Dynpro, you should ensure that at no point in the call stack does it try to perform any dialog functions (messages, pop-up box, display screens).
You mention that you BDC does a CALL TRANSACTION at some point, you should ensure that this isn't executed when you are calling by RFC from a Web Dynpro.
Your Z function module should be able to execute from start to finish, returning the results without any dialog interaction.
I might be wrong, but it sounds similar to a problem we had a few years ago where someone had coded an "Are you sure?" message into a function module that was called from a stadard R/3 dialog screen as well as Web Dynpro in the Portal, and it broke the portal based stuff.
Cheers,
Chris -
(Another) problem with custom painting using JApplet and JPanel
Hi all,
I posted regarding this sort of issue yesterday (http://forums.sun.com/message.jspa?messageID=10883107). I fixed the issue I was having, but have run into another issue. I've tried solving this myself to no avail.
Basically I'm working on creating the GUI for my JApplet and it has a few different JPanels which I will be painting to, hence I'm using custom painting. My problem is that the custom painting works fine on the mainGUI() class, but not on the rightGUI() class. My code is below:
import javax.swing.*;
import javax.swing.border.*;
import java.awt.*;
import java.awt.event.*;
import java.awt.image.*;
import java.io.*;
import javax.imageio.*;
public class TetrisClone extends JApplet {
public void init() {
setSize( 450, 500 );
Container content = getContentPane();
content.add( new mainGUI(), BorderLayout.CENTER );
content.add( new rightGUI() , BorderLayout.LINE_END );
class mainGUI extends JPanel {
// Main bit where blocks fall
public mainGUI() {
setBackground( new Color(68,75,142) );
setPreferredSize( new Dimension( 325, 500 ) );
validate();
public Dimension getPreferredSize() {
return new Dimension( 450, 500 );
public void paintComponent( Graphics g ) {
super.paintComponent(g);
// As a test. This shows up fine.
g.setColor( Color.black );
g.fillRect(10,10,100,100);
g.setColor( Color.white );
g.drawString("Main",45,55);
class rightGUI extends JPanel {
BufferedImage img = null;
int currentLevel = 0;
int currentScore = 0;
int currentLines = 0;
public rightGUI() {
// The right panel. Has quite a few bits. Starts here..
FlowLayout flow = new FlowLayout();
flow.setVgap( 20 );
setLayout( flow );
setPreferredSize( new Dimension( 125, 500 ) );
setBackground( new Color(27,34,97) );
setBorder( BorderFactory.createMatteBorder(0,2,0,0,Color.black) );
// Next block bit
JPanel rightNext = new JPanel();
rightNext.setPreferredSize( new Dimension( 100, 100 ) );
//rightNext.setBackground( new Color(130,136,189) );
rightNext.setOpaque( false );
rightNext.setBorder( BorderFactory.createEtchedBorder(EtchedBorder.LOWERED) );
Font rightFont = new Font( "Courier", Font.BOLD, 18 );
// The player's playing details
JLabel rightLevel = new JLabel("Level: " + currentLevel, JLabel.LEFT );
rightLevel.setFont( rightFont );
rightLevel.setForeground( Color.white );
JLabel rightScore = new JLabel("Score: " + currentScore, JLabel.LEFT );
rightScore.setFont( rightFont );
rightScore.setForeground( Color.white );
JLabel rightLines = new JLabel("Lines: " + currentLines, JLabel.LEFT );
rightLines.setFont( rightFont );
rightLines.setForeground( Color.white );
JPanel margin = new JPanel();
margin.setPreferredSize( new Dimension( 100, 50 ) );
margin.setBackground( new Color(27,34,97) );
JButton rightPause = new JButton("Pause");
try {
img = ImageIO.read(new File("MadeBy.gif"));
catch (IOException e) { }
add( rightNext );
add( rightLevel );
add( rightScore );
add( rightLines );
add( margin );
add( rightPause );
validate();
public Dimension getPreferredSize() {
return new Dimension( 125, 500 );
public void paintComponent( Graphics g ) {
super.paintComponent(g);
g.setColor( Color.black );
g.drawString( "blah", 425, 475 ); // Doesn't show up
g.drawImage( img, 400, 400, null ); // Nor this!
System.out.println( "This bit gets called fine" );
}Any help would be greatly appreciated. I've read loads of swing and custom painting tutorials and code samples but am still running into problems.
Thanks,
Tristan PerryMany thanks for reminding me about the error catching - I've added a System.out.println() call now. Anywhoo, the catch block never gets run; the image get call works fine.
My problem was/is:
"My problem is that the custom painting works fine on the mainGUI() class, but not on the rightGUI() class. My code is below:"
I guess I should have expanded on that. Basically whatever I try to output in the public void paintComponent( Graphics g ) method of the rightGUI class doesn't get output.
So this doesn't output anything:
g.drawString( "blah", 425, 475 ); // Doesn't show up
g.drawImage( img, 400, 400, null ); // Nor this!
I've checked and experimented with setOpaque(false), however this doesn't seem to be caused by any over-lapping JPanels or anything.
Let me know if I can expand on this :)
Many thanks,
Tristan Perry
Edited by: TristanPerry on Dec 10, 2009 8:40 AM -
HT1904 Is anybody else having problems agreeing to the new terms in the App Store??
Is anybody having problems with the App Store?
I am having the same issue....it was working just fine, and all of a sudden it popped up with the new terms, and it won't fully process when I hit the agree button.
-
Problem in calling webservice using https from livecycle designer
I want to call a webservice written in .net(c#) using https from livecycle designer.I can call webservice using http ,but when i try with https it is failing.If there any special configuration have to do in server for this ?I have already put crossdomain in server.
Waiting for your reply
thank'sHow did you call from LC? Please help me out either one is fine to me http or https
Srujan -
i see that after 3 month from the purchase of my iphone 5 the body color from where we handle the phone while talking in getting color out from that side. please suggest me what should i do
hello abhishek,
if the issue was from beginning (dead on arrival) you can call the apple hotline and they can create a replacment for you.
but if the issue wasnt from beginning than it is a cosmetical issue, cosmetical issues are not covered by the apple warranty. than you should make an appointment in an apple retail store and hope that the workers there replace that device. -
Problem in accessing the media files from another server
Currently I am working in a project with streaming video on demand and using FMS 4.5.
Let’s say the FMS is installed on one machine say ‘121.123.35.34’ and there is another server ‘100.54.88.222’ where all the media files belong. Now we need to point to this third server to play videos from FMS.I have done the below changes:
In the fms.ini file: set the VOD_DIR2 = \\100.54.88.222\myvideos
In the application.xml: Added the stream: <Streams>/hr;${VOD_DIR2}</Streams>
From my application accessing the path of flv as:source= “rtmp:// 121.123.35.34:1935/vod/hr/test” . Not able to access the video.
Note: If I will point to say ‘C:hrvideos’ in VOD_DIR2, then I am able to access the videos using the same URL.
I also tried mapping the shared path to the FMS machine and then given the mapped drive path in the VOD_DIR2, but this also doesn’t work.
Please let me know:
If we need to configure any other parameter to stream videos from another server.
VOD_COMMON_DIR: I modified this similar TO VOD_DIR to location 'C:hrvideos', I am able to stream the videos using rtmp, but not abl eto stream with http.
Please let me know can we stream using http also as we need this to run f4m manifest file.
http://121.123.35.34:8134/vod/hr/sample.mp4.
http://121.123.35.34:8134/vod/hr/sample.f4m
Thanks,
AnjaliHi Shiven,
I followed the steps suggested by you:
1) Changed the stream:
<Streams>/hr;${VOD_DIR2}</Streams> to<Streams>/;${VOD_DIR2}</Streams>
But not able to access the video with rtmp:// 121.123.35.34:1935/vod/test
2) For http streaming, changes the HttpStreamingContentPath in hds-vod in the httpd config file, and tried to stream the video like:
http:// 121.123.35.34:8134/vod/test.mp4 or
http:// 121.123.35.34:8134/hds-vod/test.mp4
But not able to load the video.
Please suggest?
Thanks & Regards,
Anjali Rawat -
Problem about replicate the vendor master from R/3 to SRM5.0
Hi guys,
I have vendor in R/3 backend system.And the vendor data has been customized.We have added some customize fields to the table LFA1 which is not exist in the standard R3 system.
Now,
I want to replicate all vendor information to SRM5.0 include these customized fields.I have tried t-cd: BBPGETVD&BBPUPDVD.But it only copy the standard fields.
Then I searched the web and found some information said that at SRM side I should use eewb to make extension for vendor in SRM and create instance for the BAdI:BBP_GET_VMDATA_CF and do some coding in the method GET_DATA & UPDATE_DATA.
At the R/3 side I should create a instance for the BAdI:BBP_MAP_VMDATA_CF and do some coding in the method MAP_DATA.
So at the SRM side I used eewb and it generated some function:
ZZSER_BUPA_DTL_ADD
ZZSER_BUPA_DTL_CHANGE
ZZSER_BUPA_DTL_REMOVE
ZZSER_BUPA_GET
And I created a instance for the BAdI:BBP_GET_VMDATA_CF.
At the R/3 side I created a instance for the BAdI:BBP_MAP_VMDATA_CF.
My problem is
1.I don't how to use those functions(generated by eewb) in the method GET_DATA & UPDATE_DATA.
2.I don't know what should I do to the method MAP_DATA(R/3 side)
3.When will these instance be called?It seems that the t-cd BBPGETVD &BBPUPDVD won't find the BAdI's instance(I didn't find any code such as cl_exithandler=>get_instance in the programe BBP_VENDOR_GET_DATA which is for t-cd BBPGETVD&BBPUPDVD)
4.If there is a solution to the problem 1-3 and all has been done, then from where should the import parameter IT_LFA1(in R/3's BAdi BBP_MAP_VMDATA_CF) get its value?
Can anyone who are familiar with these BAdI help me? Thanks in advance.Hi
<u>Which R/3 and SRM versions are you using ?</u>
<b>Vendor Master Extension in SRM</b>
<u>Vendor Master Extension in SRM</u>
<b>Look for the OSS Note for more details.</b>
Note 675800 - Business partner enhancement SRM on maintenance screen
<u>Please See this thread for creating customer fields in BBPMAININT Transaction.</u>
Re: Adding new fields in VEndor master data in EBP
Do let me know.
Regards
- Atul -
Script- problem in printing the values in from internal table
Hi all,
I have a requiremnt that i for a particular document no there are number of invoices are there. i.e for a single document no there are 20 invoices in that. i shoudl display the invoice number , invoice date, invoice amount , number of days of intrest , start date of interest, end date of interest and intrest amount.
The problem is i should take the invoice number, invoice date, number of days from TABLE <b>BSEG</b> and inovice amount and start date, end date from table<b> INTITIT</b>. for a particular document number there are diffent invoce numbers in both the table.
i can display everthing but the prob is with invoice amount. it is repating only one values is displying in the ouput. The invoice number in INTITIT Is not changing. I have to write the syntax for that .Please help me The value in Bseg is chaing as per given syntax shown below.
data: begin of hbseg occurs 10.
include structure hsortp.
include structure bseg.
data: end of hbseg.
data: begin of hsortp,
sortp1 like sortp1,
sortp2 like sortp2,
sortp3 like sortp3,
sortp4 like sortp4,
sortp5 like sortp5,
EKVBD LIKE KNB1-EKVBD,
end of hsortp.
loop at hbseg.
WHERE BUKRS = SAVE_BUKRS.
save_bukrs = hbseg-bukrs.
if ( hbseg-kunnr = save_kunnr
and not save_kunnr is initial )
or ( hbseg-lifnr = save_lifnr
and not save_lifnr is initial ).
clear bseg.
move-corresponding hbseg to bseg.
*bseg = bseg.
if bkpf-waers ne *bkpf-waers.
perform curr_document_convert_bseg
using
bkpf-budat
*bkpf-waers
*bkpf-hwaer
bkpf-waers
changing
bseg.
if not bseg-pycur is initial.
alw_waers = bseg-pycur.
perform currency_get_subsequent
using
save_repid
bkpf-budat
bkpf-bukrs
changing
alw_waers.
if alw_waers ne bseg-pycur.
bseg-pycur = alw_waers.
perform convert_foreign_to_foreign_cur
using
bkpf-budat
*bkpf-waers
*bkpf-hwaer
bseg-pycur
changing
bseg-pyamt.
endif.
endif.
endif.
perform fill_waehrungsfelder_bseg.
perform fill_waehrungsfelder_bseg_2.
if bseg-sgtxt(1) ne '*'.
bseg-sgtxt = space.
else.
bseg-sgtxt = bseg-sgtxt+1.
endif.
clear save_bschl.
clear save_umskz.
clear tbslt.
save_bschl = bseg-bschl.
save_umskz = bseg-umskz.
perform read_tbslt.
ADDING VARIBLE V_GSALDF BY SUNIL 5.11.07******
v_gsaldf = rf140-gsaldf + rf140-wrshb.
rf140-gsaldf = v_gsaldf.
clear v_gsaldf.
SUNIL *********************
*rf140-gsaldf = *rf140-gsaldf + *rf140-wrshb.
if xmultk is initial
and xactiv is initial
and linecnt = '1'
and not xumsst is initial
and not save_xumstn is initial.
if bkpf-bstat = 'V'.
perform read_vbset.
else.
perform read_bset.
endif.
describe table hbset lines linecnt.
if linecnt = '1'.
loop at hbset.
move-corresponding hbset to bset.
*bset = bset.
if bkpf-waers ne *bkpf-waers.
perform curr_document_convert_bset
using
bkpf-budat
*bkpf-waers
*bkpf-hwaer
bkpf-waers
changing
bset.
endif.
clear rf140-msatz.
clear rf140-vtext.
save_ktosl = bset-ktosl.
perform read_t687t.
rf140-msatz = bset-kbetr / 10.
*rf140-msatz = rf140-msatz.
rf140-vtext = save_vtext.
*rf140-vtext = rf140-vtext.
if bset-shkzg = 'H'.
rf140-mwshb = bset-fwste.
*rf140-mwshb = *bset-fwste.
rf140-mdshb = bset-hwste.
*rf140-mdshb = *bset-hwste.
else.
rf140-mwshb = 0 - bset-fwste.
*rf140-mwshb = 0 - *bset-fwste.
rf140-mdshb = 0 - bset-hwste.
*rf140-mdshb = 0 - *bset-hwste.
endif.
exit.
endloop.
rf140-wrshb = rf140-wrshb - rf140-mwshb.
*rf140-wrshb = *rf140-wrshb - *rf140-mwshb.
rf140-dmshb = rf140-dmshb - rf140-mdshb.
*rf140-dmshb = *rf140-dmshb - *rf140-mdshb.
endif.
endif.
*****************Begin of Change by Karthikeyan J********************
i_count = i_count + 1.
clear rf140-element.
clear: it_bseg, i_wrbtr,i_totday,i_tempday,i_day,i_bday.
comparing with fields belnr AND SELECT * FROM INTITIT added by sunil 3.11.07*********
select single * from bseg into
corresponding fields of it_bseg where belnr = bseg-rebzg anD GJAHR = BSEG-GJAHR.
select single * from intitit into corresponding fields of it_intitit where gjahr = bseg-gjahr and belnr_to = bseg-belnr and buzei = '2' OR BELNR = INTITIT-BELNR .
added by Jayshree on 09/01/2007
MOVE ' ' TO it_kna1-name1.
SELECT SINGLE name1
INTO CORRESPONDING FIELDS OF it_kna1
FROM ( vbpa AS a INNER JOIN kna1 AS b ON akunnr = bkunnr )
WHERE a~vbeln = it_bseg-vbeln
AND a~parvw = 'zd'.
SELECT SINGLE fkdat
INTO CORRESPONDING FIELDS OF it_kna1
FROM vbrk
WHERE vbrk~vbeln = it_bseg-vbeln.
added by Jayshree on 01/02/2007
CONCATENATE it_kna1-fkdat6(2) it_kna1-fkdat4(2) it_kna1-fkdat+2(2)
INTO vfkdat SEPARATED BY '.'.
CONCATENATE it_bseg-augdt6(2) it_bseg-augdt4(2) it_bseg-augdt+2(2)
INTO vaugdt SEPARATED BY '.'.
i_wrbtr = i_wrbtr + it_bseg-wrbtr.
added as on 29.06.2007 by jayshree again transport on 21.07.2007
tot_wrbtr = tot_wrbtr + i_wrbtr.
i_totday = it_bseg-zbd1t + it_bseg-zbd2t + it_bseg-zbd3t.
CALL FUNCTION 'fima_date_create'
EXPORTING
i_date = it_bseg-zfbdt
I_FLG_END_OF_MONTH = ' '
I_YEARS = 0
I_MONTHS = 0
i_days = i_totday
I_CALENDAR_DAYS = 0
I_SET_LAST_DAY_OF_MONTH = ' '
IMPORTING
e_date = i_bday
E_FLG_END_OF_MONTH =
E_DAYS_OF_I_DATE =
added by JAYSHREE 01.02.2007
CONCATENATE i_bday6(2) i_bday4(2) i_bday+2(2)
INTO vbday SEPARATED BY '.'.
i_day = it_bseg-augdt - i_bday.
CALL FUNCTION 'HR_HK_DIFF_BT_2_DATES'
EXPORTING
date1 = it_bseg-zfbdt
date2 = it_bseg-augdt
OUTPUT_FORMAT = '01'
IMPORTING
YEARS =
MONTHS =
DAYS = i_day
EXCEPTIONS
INVALID_DATES_SPECIFIED = 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.
*added by sunil 5.11.07 ***********
*read table it_intitit with key BELNR_TO = BSEG-BELNR .
*LOOP AT IT_INTITIT.
rf140-element = '521'.
CALL FUNCTION 'write_form'
EXPORTING
window = 'main'
element = '521'
EXCEPTIONS
window = 1
element = 2.
IF sy-subrc = 1.
window = 'main'.
PERFORM message_window.
ENDIF.
IF sy-subrc = 2.
window = 'main'.
ereignis = '521'.
PERFORM message_element.
ENDIF.
IF save_xumstn IS INITIAL.
*-------Umsatzsteuer -
IF xactiv IS INITIAL.
save_waers = rf140-waers.
PERFORM tax_data.
CLEAR taxlines.
DESCRIBE TABLE atax LINES taxlines.
IF NOT taxlines IS INITIAL.
LOOP AT atax.
CLEAR ereignis.
CLEAR rf140-msatz.
CLEAR rf140-vtext.
rf140-msatz = atax-msatz.
*rf140-msatz = atax-msatz.
rf140-vtext = atax-vtext.
*rf140-vtext = atax-vtext.
*******begin of change by karthikeyan on 10.03.06*********************
IF sy-tabix = '1'.
ereignis = '522'.
v_stax = rf140-msatz * rf140-gsaldf / 100.
ELSE.
ereignis = '523'.
v_ecs = rf140-msatz * v_stax / 100.
v_total = rf140-gsaldf + v_stax + v_ecs.
ENDIF.
CALL FUNCTION 'hr_in_chg_inr_wrds'
EXPORTING
amt_in_num = v_total
IMPORTING
amt_in_words = v_spell
EXCEPTIONS
DATA_TYPE_MISMATCH = 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.
***************************end of change******************************
CLEAR rf140-element.
rf140-element = ereignis.
IF NOT ereignis IS INITIAL.
CALL FUNCTION 'write_form'
EXPORTING
window = 'main'
element = ereignis
EXCEPTIONS
window = 1
element = 2.
IF sy-subrc = 1.
window = 'main'.
PERFORM message_window.
ENDIF.
IF sy-subrc = 2.
window = 'main'.
PERFORM message_element.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
'521' is the element name in the main window where i should display the values. before select qurey the values are coming in the bseg but not in table INTITIT. Belnr is the document no with ref to that
there are number of invoices nos. so in both the tables it is selecting single value and displaying but in bseg the invoice number is getting refreshed and new number is coming in that place i.e in field bseg-rebzg but in INTITIT in belnr only it is taking single value it is not getting refreshed.
move-corresponding hbseg to bseg.
*bseg = bseg.
if bkpf-waers ne *bkpf-waers.
this is the syntax whr the values in bseg are getting refresh and new invoice number is selecting.
How to write the syntax for INTITIT? As per invoice number it is giving new values.
The invoice number in Bseg is different campare to in table INTITIT. in output is shoud show the fields as follows
it_besg-rebzg(invoice number of besg) it_besg-zuonr(invoice date) INTITIT-INT_BASAMT(base amount) i_day (no of days ) INTITIT-INT_BEGIN (INTREST START DATE) INTITIT-INT_end(INTREST END DATE) rf140-wrshb(INTREST AMOUNT).
THE VALUE OF IT_BESG-REBZG IS CHANGING BUT THE VALUE IN INTITIT-BELNR ( INVOICE NUMBER) IS NOT CHANGING THAT IS WHY IT IS SHOWING
ONLY SINGLE RECORD.
for both the table documet no is same. in besg-belnr is the document no. in intitit-BELNR_TO is the document no.
here in bseg-rebzg is chaning but in INTITIT-BELNR IS not changing.
If i take loop at INTITIT. ALL the values are repating so i am unable to take loop. so i want to write
a syntax such that intitit-belnr should be refreshed and also for every loop it shoud take new invoice no.
Please help me out it is very urgent.
<b>USEFUL ANSWERS WILL BE REWARDED.</b>
regards,
Sunil kumar.assumption: some mistake in ur posting that, How belnr and date r same for both header records, so i guess, either one is different.
try with AT NEW - ENDAT.
AT NEW belnr.
here use looping, READing of ur itabs.---> so, u need to build couple of itabs to move forth and back.
ENDAT.
pls. note that, when u use this AT NEW all the CHAR fileds of itab wuld show as STARS **.....so, this is the necessity behind building new itabs.
thanq
Edited by: SAP ABAPer on Dec 30, 2008 6:24 PM -
Having problem connecting to the livecache server from APO instance
Could not able to connect to the live cache server from the APO server after installing both the instances separately on two different systems, while using the T-code LC10 to make a connection from APO DDIC login its displaying the following message
""timeout during allocate / CPI-C error CM_PRODUCT_SPECIFIC_ERROR ""
after entering the Livecache name and Livecache hostname correctly in the livecache integration..both the instance are on the same network and able to ping each other with the hostname and IP addressess..
It will be great if somebody help me in solving the problem..
Thanks in Advance
Srikanthis this query resolved at your end? or you still looking for ans.
Maybe you are looking for
-
Terminal mass rename of files to remove illegal Linux characters
Hi there! I have hundreds of gigabytes of files I need to copy over to a new Linux server. Unfortunately, Linux does not allow some filename characters that Mac OS X uses. How can I go through an entire directory and change any file or folder that us
-
Hi, I've been trying to call BT Broadband Support for the past few days to follow up a case.. all I seem to be getting is "Sorry, our helpdesk is closed" when apparently it's a 24/7 line. I work days, so it's easier for me to call of a night but unfo
-
I got cheat from itunes store what can I do
This morning I want buy an app and this app's price just around 1 pound but after I purchase I have receive some email from itunes store it shows I am already pay about 132 pound for that app!!!!What can I do now..
-
Deploying Doc/Lit WS generated by JDev 10.1.3 to iAS 10.1.2
Hi, I am trying to publish a package as a Document/literal web service using JDeveloper10.1.3. When I deploy the .ear file so generated to Oracle Application Server v10.1.2.0.0, I get the following error: Deployment failed: Nested exception Resolutio
-
Hello Everyone When you come acroSs the circular reference problem how do we overcome this in a CONNECT BY SQL statement. ORA-01436: CONNECT BY loop in user data Thanks in advance Vinny.