How to figure out which material documents should be deleted?
Hi,
I am creating a report that sums up material movement. But I meet a problem about reversal material documents.
In my report, I collect all the documents and delete all the document with field SMBLN is not empty. Code is like below.
MOVE it_mseg[] TO it_mseg2[].
LOOP AT it_mseg WHERE smbln <> ''.
LOOP AT it_mseg2 WHERE mblnr = it_mseg-smbln AND zeile = it_mseg-smblp.
it_mseg-del = 'X'.
MODIFY it_mseg.
it_mseg2-del = 'X'.
MODIFY it_mseg2.
ENDLOOP.
ENDLOOP.
LOOP AT it_mseg2 WHERE del = 'X'.
LOOP AT it_mseg WHERE mblnr = it_mseg2-mblnr AND zeile = it_mseg2-zeile.
it_mseg-del = 'X'.
MODIFY it_mseg.
ENDLOOP.
ENDLOOP.
DELETE it_mseg WHERE del = 'X'.
But sometimes users may cancel a material document, and later they may cancel the reversal document also.
Then there are 3 documents. In my report, all these 3 documents will be deleted.
Is there any method to only have the last document left and delete the others?
Thank!
Wesley
Thanks Dzed, it seems the code works succesfully, and I also figure out another code like below, it also works~
MOVE it_mseg[] TO it_mseg2[].
LOOP AT it_mseg.
LOOP AT it_mseg2 WHERE mblnr = it_mseg-mblnr AND zeile = it_mseg-zeile.
IF it_mseg2-del = 'Y'.
it_mseg-del = 'X'.
MODIFY it_mseg.
ENDIF.
ENDLOOP.
IF it_mseg-del = 'X'.
CONTINUE.
ENDIF.
LOOP AT it_mseg2 WHERE smbln = it_mseg-mblnr AND smblp = it_mseg-zeile.
it_mseg-del = 'X'.
MODIFY it_mseg.
it_mseg2-del = 'Y'.
MODIFY it_mseg2.
ENDLOOP.
ENDLOOP.
Similar Messages
-
How to figure out which tables are using Extensible Optimizer?
Hi guys,
I'm sure that there're several tables those are associated with Extensible Optimizer in my database, I can also find the Extensible Optimizer relevant type and the implementation of interface functions ODCIGetInterfaces, ODCIStatsTableFunction.
I'm curious to know is there a way to figure out which tables are associated with this Extensible Optimizer, does anyone have any clues?
Database: oracle 11.2
Thank you in advance.Hi,
Can you please check the below link.It may help you:
http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28425/ext_optimizer.htm
Best regards,
Rafi.
http://rafioracledba.blogspot.com -
How to find out which materialized views are running on the DB?
So I have a long list of MVs stored on the DB.
Is there a script to find out which MVs are being refreshed right now?
Help!
ThanksHi ,
You can use the following data dictionary view to get information on when Mview was last refreshed--
SQL> desc DBA_MVIEWS
Name Null? Type
OWNER NOT NULL VARCHAR2(30)
MVIEW_NAME NOT NULL VARCHAR2(30)
CONTAINER_NAME NOT NULL VARCHAR2(30)
QUERY LONG
QUERY_LEN NUMBER(38)
UPDATABLE VARCHAR2(1)
UPDATE_LOG VARCHAR2(30)
MASTER_ROLLBACK_SEG VARCHAR2(30)
MASTER_LINK VARCHAR2(128)
REWRITE_ENABLED VARCHAR2(1)
REWRITE_CAPABILITY VARCHAR2(9)
REFRESH_MODE VARCHAR2(6)
REFRESH_METHOD VARCHAR2(8)
BUILD_MODE VARCHAR2(9)
FAST_REFRESHABLE VARCHAR2(18)
LAST_REFRESH_TYPE VARCHAR2(8)
LAST_REFRESH_DATE DATE
STALENESS VARCHAR2(19)
AFTER_FAST_REFRESH VARCHAR2(19)
UNKNOWN_PREBUILT VARCHAR2(1)
UNKNOWN_PLSQL_FUNC VARCHAR2(1)
UNKNOWN_EXTERNAL_TABLE VARCHAR2(1)
UNKNOWN_CONSIDER_FRESH VARCHAR2(1)
UNKNOWN_IMPORT VARCHAR2(1)
UNKNOWN_TRUSTED_FD VARCHAR2(1)
COMPILE_STATE VARCHAR2(19)
USE_NO_INDEX VARCHAR2(1)
STALE_SINCE DATE
SQL> -
How do figure out which jtable entry is clicked/doubleclicked on
im using a jtable to display the return of items in an ldap directory. how does one know which item is clicked/doubleclicked on in order to, for instance, bring up another screen with only that info on it. and is there a way to now allow the table entries to be edited. when i doubleclick on the table currently, it lets me edit the cell.
thankswhen i doubleclick on the table currently, it lets me edit the cell.You need to override the isCellEditable(...) method of JTable or the TableModel and return false.
Then when you use a MouseListener the double click event will be passed to the MouseListener and not intercepted by the JTable.
You can use the getSelectedRow/Column methods of JTable. -
How to figure out which developer public and private keys to delete
Hello everyone,
In my Keychain Access utility, I have two iOS Developer public keys and two iOS Developer private keys. That was the result of a problem with setting up things for iOS development - I had to try it a second time in the Member Center part of the Apple developer website.
How do I assess whether a key is actually being used for anything?
I notice that the second private key has a disclosure triangle which reveals an iPhone Developer certificate underneath. The first private key has nothing like that.
The two public keys look identical.
Is it even necessary for me to do anything? I want to delete extra unused keys if they will cause a problem.
Thanks for any guidance.
ErikAliD wrote:
System view is user_dependencies.no INDEXES
SQL> select type, count(*) from user_dependencies group by type;
TYPE COUNT(*)
RULE 3
JAVA DATA 3131
PROCEDURE 551
OPERATOR 30
PACKAGE BODY 8175
PACKAGE 1193
RULE SET 13
TYPE BODY 567
TRIGGER 43
UNDEFINED 66
JAVA CLASS 21630
TYPE COUNT(*)
VIEW 13636
FUNCTION 405
TABLE 284
EVALUATION CONTXT 22
SYNONYM 8
TYPE 2267
17 rows selected.
SQL> show user
USER is "SYS"
SQL> -
How to figure out which albums contain a specific image?
Is there a way to click on a specific image and find out where else it is located (besides the master file location)? For example, let's say an image of your cousin is included in an album Birthdays and in another called Family. If I clicked on the master image, is there a way to see that it is included in the albums Birthdays and Family?
Thanks for your help!The link to the script in the post you referenced is no longer valid.
This should work Aperture: Search albums for a specific image
I have it installed as an Aperture Service but it will work as a regular script. -
How to figure out which universes they use for a massive number of reports?
Hi,
In Web Intelligence or CMS or by using any means, is there an easy way to generate a list that shows all reports and the universes they use? The reason I'm asking this question is that I want to clean up universes but I need to know which reports use which universes. With over 1000 reports in repository, it is not feasible to go into every report to see which universes it uses.
Thanks a lot.
JunThanks a lot.
The Query Builder does the trick: http://<CMS host name>:8080/businessobjects/enterprise115/adminlaunch/query/ie.jsp although it cannot provide the location of the reports but it does provide the name and owner of the reports.
The following blog helps on how to construct the Query Builder queries:
/people/ted.ueda/blog/2008/10/20/businessobjects-enterprise-sdk--relationship-queries
Thanks.
Jun -
Figuring out which JRadioButton is selected
Hey guys. I have a simple program that calculates tempurature in Fahrenheit, Celcius and Kelven.
There are 6 Radiobuttons in a ButtonGroup. I need to know how to get which radiobutton is selected.
Here is my code....I already have an action listener for the buttons that runs the code to do the calculations and display the answer, I just need to know how to figure out which radiobuton is selected.
Thanks!
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.text.DecimalFormat;
public class DegreeConverter extends JFrame{
JLabel lblFah, lblConversion,lblShowConversion;
JTextField getFah;
JButton btnConvert;
JRadioButton btnFahToCel, btnFahToKel,
btnCelToFah,btnCelToKel,
btnKelToFah, btnKelToCel;
ButtonGroup radioGroup;
public DegreeConverter(){
super("Degree Converter");
super.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JFrame.setDefaultLookAndFeelDecorated(true);
Container container1 = getContentPane();
SpringLayout layout = new SpringLayout();
container1.setLayout(layout);
lblFah = new JLabel("Enter Temperature:");
container1.add(lblFah);
getFah = new JTextField(5);
container1.add(getFah);
lblConversion = new JLabel("Conversion Answer:");
container1.add(lblConversion);
lblShowConversion = new JLabel("...");
container1.add(lblShowConversion);
btnConvert = new JButton("Convert");
btnConvert.addActionListener(
new ActionListener(){
public void actionPerformed(ActionEvent event){
String strFah = getFah.getText();
double dblFah = Double.parseDouble(strFah);
lblShowConversion.setText(Double.toString(convertDegrees(dblFah)));
container1.add(btnConvert);
btnFahToCel = new JRadioButton("Fahrenheit To Celcius", true);
container1.add(btnFahToCel);
btnFahToKel = new JRadioButton("Fahrenheit To Kelvin", true);
container1.add(btnFahToKel);
btnCelToFah = new JRadioButton("Celcius To Fahrenheit", true);
container1.add(btnCelToFah);
btnCelToKel = new JRadioButton("Celcius To Kelvin", true);
container1.add(btnCelToKel);
btnKelToFah = new JRadioButton("Kelvin To Fahrenheit", true);
container1.add(btnKelToFah);
btnKelToCel = new JRadioButton("Kelvin To Celcius", true);
container1.add(btnKelToCel);
radioGroup = new ButtonGroup();
radioGroup.add(btnFahToCel);
radioGroup.add(btnFahToKel);
radioGroup.add(btnCelToFah);
radioGroup.add(btnCelToKel);
radioGroup.add(btnKelToFah);
radioGroup.add(btnKelToCel);
//layout for btnFahToCel
layout.putConstraint(SpringLayout.WEST, btnFahToCel,
5,
SpringLayout.WEST, container1);
layout.putConstraint(SpringLayout.NORTH, btnFahToCel,
5,
SpringLayout.NORTH, container1);
//layout for btnFahToKel
layout.putConstraint(SpringLayout.WEST, btnFahToKel,
5,
SpringLayout.WEST, container1);
layout.putConstraint(SpringLayout.NORTH, btnFahToKel,
5,
SpringLayout.SOUTH, btnFahToCel);
//layout for btnCelToFah
layout.putConstraint(SpringLayout.WEST, btnCelToFah,
5,
SpringLayout.WEST, container1);
layout.putConstraint(SpringLayout.NORTH, btnCelToFah,
5,
SpringLayout.SOUTH, btnFahToKel);
//layout for btnCelToKel
layout.putConstraint(SpringLayout.WEST, btnCelToKel,
5,
SpringLayout.WEST, container1);
layout.putConstraint(SpringLayout.NORTH, btnCelToKel,
5,
SpringLayout.SOUTH, btnCelToFah);
//layout for btnKelToFah
layout.putConstraint(SpringLayout.WEST, btnKelToFah,
5,
SpringLayout.WEST, container1);
layout.putConstraint(SpringLayout.NORTH, btnKelToFah,
5,
SpringLayout.SOUTH, btnCelToKel);
//layout for btnKelToCel
layout.putConstraint(SpringLayout.WEST, btnKelToCel,
5,
SpringLayout.WEST, container1);
layout.putConstraint(SpringLayout.NORTH, btnKelToCel,
5,
SpringLayout.SOUTH, btnKelToFah);
//layout for lblFah
layout.putConstraint(SpringLayout.WEST, lblFah,
15,
SpringLayout.EAST, btnFahToCel);
layout.putConstraint(SpringLayout.NORTH, lblFah,
5,
SpringLayout.NORTH, container1);
//layout for getFah
layout.putConstraint(SpringLayout.WEST, getFah,
5,
SpringLayout.EAST, lblFah);
layout.putConstraint(SpringLayout.NORTH, getFah,
5,
SpringLayout.NORTH, container1);
//layout for lblConversion
layout.putConstraint(SpringLayout.WEST, lblConversion,
22,
SpringLayout.EAST, btnFahToKel);
layout.putConstraint(SpringLayout.NORTH, lblConversion,
5,
SpringLayout.SOUTH, lblFah);
//layout for lblShowConversion
layout.putConstraint(SpringLayout.WEST, lblShowConversion,
5,
SpringLayout.EAST, lblConversion);
layout.putConstraint(SpringLayout.NORTH, lblShowConversion,
5,
SpringLayout.SOUTH, lblFah);
//layout for btnConvert
layout.putConstraint(SpringLayout.WEST, btnConvert,
15,
SpringLayout.EAST, btnFahToCel);
layout.putConstraint(SpringLayout.NORTH, btnConvert,
5,
SpringLayout.SOUTH, lblConversion);
//layout for container
layout.putConstraint(SpringLayout.EAST, container1,
50,
SpringLayout.EAST, getFah);
layout.putConstraint(SpringLayout.SOUTH, container1,
5,
SpringLayout.SOUTH, btnKelToCel);
pack();
setVisible(true);
}// end constructor
public static void main(String args[]){
DegreeConverter application = new DegreeConverter();
public double convertDegrees( double fah){
//currently there is only one calculation here.. I need to figure out
//how to get which radiobutton is selected so i can do a select case
//or if/else here to do the appropriate calculations.
DecimalFormat twoDigits = new DecimalFormat("00");
String celcius;
double returnCelcius;
celcius = twoDigits.format(5.0/9.0 * (fah - 32));
returnCelcius = Double.parseDouble(celcius);
return returnCelcius;
}//end convertDegrees
}//end classSwing related questions should be posted in the Swing forum.
1) Test each button
If (button1.isSelected() )
else if (button2.isSelected() )
.... -
Anyone know how I can figure out which of my family's 5 Apple devices was used to purchase a specific song via iTunes ? We all have the same Apple ID/account which makes it tricky... Thanks!
valfromedina wrote:
What I was afraid of. Thanks. Seems like someone at Apple should be figuring this out. Would be nice to link each purchase to a specific device.
That would not be practical or probably even possible since one of the features of recent versions of iTunes and the iTunes Store is to allow new purchases to be automatically downloaded to every device registered to your Apple ID when something is purchased. If you want purchases linked to specific devices, each user should have his or her own iTunes Store account.
Regards. -
I'm trying to install OEM SR 2.1: Windows 95B in Qemu... How do I figure out which brand of CD-ROM drive Qemu emulates since I have three different drive specific boot disks...?
Not exactly...; all MS produced Win9X/ME install CDs are ISO-9660 & maybe even Joliet too... The really confusing part is that not all Windows 98 SE full install CDs are even bootable in the first place (they tend to only ship one if the PC is capable of booting directly from its optical drive...; the vast majority of PCs have to use the chain loading method due to buggy, poorly written, outdated BIOSes...; etc.). OEM SR 2.1/Windows 95B is really quite special & innovative for its time in that it was the first Service Release of Windows 95 to support larger HDs via FAT32 which back then was still brand new: i.e.: exciting technology & it still has proven to be quite useful & versatile since most flash memory storage devices come pre-formatted FAT32.
There's also a hidden X:\Usbsupp folder on the CD that contains the MS USB 1.1 supplement patches/upgrader: a common mis-nomer is that you don't need to install it unless your PC has USB 1.1 ports. Even without USB 1.1 ports the upgrades to C:\Windows\system make it a lot less buggy, more secure & stable. For anyone else that enjoys emulating OEM SR 2.1 there's also a great unofficial SP 1 for it which has so many useful patches in it I'm considering integrating it into all of my install CDs...
Unfortunately I've found that getting it to run decently requires tracking down a bevy of essential but according to MS's not releasing them in patch form optional DLL upgrades... I guess not all machines are that unreliable but better to have them...; just in case you encounter a PC with a buggy BIOS that has hardware coniptions and/or ACPI/APM bugs. -
How can if figure out which contacts are in both iCloud and on my Mac?
I keep contacts on my Mac and on iCloud. I want to see which ones are in both databases. Some of them automatically "linked" and others did not. The search for showing contacts that are both a member of "my Mac" and a member of "iCloud" does not seem to work. I also want to figure out which contacts are not in a group and this has been difficult as well.
If you change your preferences so that the defaul is not iCloud then you get two sections like this:
When I don't have it set to On My Mac then I only get one section because all of my cards are in the cloud. -
How to figure out suitable Enhancement Option/point
Hi All,
I have to limit creation of vendor for a particularly one user based on Country Code.
For ex
if sy-uname eq 'XYZ'.
IF LFA1-NAME1 NE 'US'.
ERROR MESSAGE...
ENDIF.
ENDIF.
I know how to do that user user exits and was trying to figure out how can i achieve this using enhancement frame work in ECC 6.0
I found all below Explicit Enhancement Points/Sections when i searched in Pragram SAPMF02K (xk01)
If you just post the relevant coe, it has a better chance of formatting.
MY QUESTIONS ARE
1) How should i figure out which enhancement point i should use for particular issue (When the user is going from Vendor Address to Vendor control Screen while creating the vendor. It should an error mess if the user is using wrong vendor code?
Thanks in advance
Venki
Edited by: venki gundla on May 31, 2009 10:05 PM
Edited by: venki gundla on May 31, 2009 10:16 PM
Edited by: Rob Burbank on May 31, 2009 6:37 PMHi All,
For some reason ,every thing is continous. I know it sometimes irritating but i couldn't find a way to post it
Line by line.
Actually
MY QUESTIONS ARE 1) How should i figure out which enhancement point i should use for particular issue (When the user is going from Vendor Address to Vendor control Screen while creating the vendor. It should throw an error mess if the user is using wrong vendor country name than he is authorized to?
Thanks
Venki -
How to find whether a material document(MSEG-MBLNR) is reversed or not
Hi All,
How can we identify a material document which is created by MB1B transaction is reversed or not. is there any field like reversal indicator in any material document table.
Regards
RamanaHi Ramana,
Check MBSM Transaction.
If the Material document is reversed, and if their is some linkage between the Material document and its reversal document, you will get in this transaction.
generally only those material document have reversal linkage which are reversed through MBST Transaction.
Say Generated Material Document 12345 was reversed using MBST Transaction and its reversal document number is 12346. then
Check the MSEG Table with the MBLNR value 12346. You will find their is one more field 'SMBLN' which shows your original doc i.e 12345.
Just check it out in your test server.
Regards,
S Anand -
How to find out which BR that is the problem when running CmdLnLauncher.bat
Hi there
Trying to run a sequence using CmdLnLauncer, and it starts great. It starte calculating but then throws this error.
"2012-09-04 15:21:24,790 FATAL main com.hyperion.hbr.cmdlnlauncher.ProgressMonito
r - Exception:
Execution ended with error.
Error Code: EXE002
Error Args: [Ljava.lang.Object;@2f0d54
ClassName: com.hyperion.hbr.excp.ExecutionException
Exception (1200497): Error parsing formula for [FIX STATEMENT] (line 16): unknow
n member name [@_NULL] in function [@IDESCENDANTS]
ClassName: java.lang.Exception
2012-09-04 15:21:24,790 WARN main com.hyperion.hbr.cmdlnlauncher.ProgressMonitor
- Execution ended with error."
How do I figure out which BR is the problem? I can't seem to find the rule it is refering to, as theHave a search for hbrlaunch.log as it might hold the answer, location can depend on version and OS
or another option to enable business rule auditing in Planning and then check the HSP_AUDIT_RECORDS table
Cheers
John
http://john-goodwin.blogspot.com/ -
How to find out which server is running on which port
hi all,
how to find out which server is running on which port, i want to know both
from front end and backend?
thanks and regards
srikanthThe best source to get all the ports you have is the Context Files.
All ports are defined in the Context Files through "AutoConfig Variable". You can get the list of those variables by referring to the following note under "What is the port pool? What if I want to give a specific value to a Server Port?"
Note: 216664.1 - FAQ: Cloning Oracle Applications Release 11i
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=216664.1
You can also get that list via OAM.
Referring to the installation log file should also be helpful (Unless you have changed any of the ports after the installation).
Maybe you are looking for
-
Windows Server TechNet Guru News: October Winners Announced
All the votes are in! And below are the results for the TechNet Guru Awards, October 2014 !!!! For a full list of winners, see the full blog post, as runners up had to be removed from this post to fit the forum max length restrictions. BizTalk Tech
-
How to index a network drive so spotlight can search there as well
Now i like the speed of the search for Indexed drives but it is useless on my network if i am looking for a special document which is backup on our network spotlight does not find one single document any other search options or tool available.
-
Modification on selection screen of report
Hello guys, I have a requirement where in i need to modify the initial selection screen as per clients requirement. The scenario is as follows: Suppose 'EMPLOYEE' and 'PORTFOLIO' are two of the fields of a cube on which the report will be run. Now su
-
REPORT-TOTAL GR VALUE FOR DOC TYPES MONTHWISE
Dear Experts, Please help me out for finding how to see the total value of GR for doc types NB and the Assets monthwise..
-
How to address message to the specific node of the ESB cluster
Hi! We are running ESB on two node active-active cluster configuration. We use custom adapter to communicate with customer legacy system over Socket connection. The point is, that we need to transfer large amount of data from our database into custom