Doubt on LIST

Hi,
I'm new to applescript. I have a doubt regarding list.
in my script i get number of  items  as list. say: {"hello","hello1","hello2","hello3".............. "hello50"}
i want to store list items from "hello3" to hello10 in another list,  but the item position might change with each run. can we use item name?
set eg to item "hello3" thru hello10"

As tw says, you can't do this directly, but it's not hard to workaround. A simple handler to seach the list for the target item should suffice, like this (note: there's no error checking in this example, so you'd need to decide how to handle cases where the expected item doesn't appear):
set theList to {"hello1", "hello2", "hello3", "hello4", "hello5", "hello6", "hello7", "hello8", "hello9"}
set s to findInList("hello3", theList)
set en to findInList("hello7", theList)
set subList to items s through en of theList
on findInList(theItem2Find, theList)
          repeat with i from 1 to count (theList)
                    if item i of theList = theItem2Find then return i
          end repeat
          return 0
end findInList
The concept is pretty simple - pass in an item to search for in a given list and the findInList() handler walks through the list until it finds a matching item, at which point it returns the index. If the value isn't found it returns 0, but you can change this behavior. Once you've found the two indexes it's easy to select the sub-list.

Similar Messages

  • Doubts in LIST box

    Hi All.
    I have to do the validation for selection screen input screen like input1,input2,input3 and input4.All are list box . Based on input1 have to display content in list box of input2 .so while capturing value from input1 , am getting * instead of 10 (1 means first value in search help,2 means second value in search help  and 10 means 10th record of list box).
    How to resolve this issue?
    Please help me
    Regards.
    jay

    Try FM : DYNP_VALUES_READ

  • Regarding list having Check Boxes

    Hello All,
    I have a doubt regarding list having check boxes.
    I have a table having five values in rows.How to display that list having those 5 values along with check boxes.
    And i need to select only one particular check box.
    Please reply as soon as possible

    hi there,
    check this code.
    REPORT ZP5 no standard page heading.
    tables mara.
    *data: mark1 type c.
    data: begin of itab occurs 0,
          mark1(1),
          matnr like mara-matnr,
          werks like marc-werks,
          end of itab.
    select-options :so_matnr for mara-matnr.
    start-of-selection.
          select matnr
                 werks
                 from marc
                 into corresponding fields of table itab
                 up to 10 rows
                 where matnr in so_matnr
                 order by matnr .
                 loop at itab.
                 write:/ itab-mark1 as checkbox,
                         itab-matnr,
                         itab-werks.
                 endloop.
    regards,
    vikky.

  • WAD Report -Chart Type Line Diagram!!

    Hi All,
    I have a doubt in listing the Y axis value with a value of 2000 in addition for each category
    like 0,2000,4000,6000,etc till 20000.
    But I tried many way...But I culd able to achieve max..till 10,000.If i use 20,000..I get a value of 2500 for each category not 2000...
    pls,Could anyone help me ???

    Hi,
    This is possible...
    Edit your chart in WAD-> goto chart designer -> Goto value axis and change its properties as follows:
    Remove maximum automatic in this and change the maximum value to 20000, in your case.
    Get into Line properties....
    Get into Major Ticks->Remove the automatic and Change the number of ticks to 11, you will see the 2000 mark on the left.
    Now run your chart and you will see a bigger chart....
    Have fun !!:-)
    Cheers,
    Emmanuel.

  • Bankruptcy FAQs

    This information is not legal advice and I am not a lawyer. Always seek a reputable bankruptcy lawyer to answer your questions prior to filing.
    - Tuscani
    Should I file Bankruptcy?
    A person should file a bankruptcy if, and only if, he or she can’t pay bills as they come due or is about to lose property or have property attached by the Court. Very few people lose any property when they file bankruptcy.
    Filing a bankruptcy is generally better than having a foreclosure on your credit record. A person will often be able to rebuild credit and buy a house within 2 years after a bankruptcy. A repossession can do more damage to your credit, and it may take much, much longer to recover. Government regulations may forever keep you from financing a home with the VA or FHA if you have a repossession for a home, but allows financing 2 years after bankruptcy. Only 7 magical items may not be bankrupted: Child Support and Alimony; taxes less than 3 years old; federally guaranteed student loans; debts due to fraud; debts due to drunk driving; debts due to intentional injuries; and criminal restitution. There are many exceptions to even these. A driver’s license can be reinstated by filing, if you lost your license because of unpaid damages for an auto accident. When in doubt, always list the debt when filing: It may be bankruptable due to an exception.
    What does it cost to file bankruptcy?
    After October 2005, Court costs are about$300 for a Chapter 7 and $275 for a Chapter 13. After October 2005 Chapter 7 attorney fees run about $1000 plus any filing fees. Chapter 13 Attorney fees are set by the Court.
    What happens when I file?
    When you file a bankruptcy, a Court order goes into effect immediately stopping all collection activity. This includes stopping foreclosures, attachments, garnishments, and Creditors calling you. The sooner you come in to the law office, the sooner you can get relief—and the more you can save from Creditors. You will have a 341 hearing within about 4 to 6 weeks after the bankruptcy is filed. When the bankruptcy is finally over, a discharge is issued. This is a final and permanent order to stop all collection activity and declaring the debts to be non collectable. Bankruptcy does not normally get rid of a security interest that you gave to a Creditor such as a mortgage or a standard car lien, but it does make you not liable for the debt.
    Can I plan my bankruptcy?
    Of course! Good planning is why you read this thread and allows you to save more money and property. Just like taking proper tax exemptions. There is nothing illegal or improper with properly taking the exemptions.
    Which bankruptcy is right for me: Chapter 13 or Chapter 7?
    A Chapter 13 is like a bill consolidation loan, and you normally file it to keep property and stop foreclosures. A Chapter 7 is used to completely wipe out unsecured debts and to get rid of secured debts for property you don't want to keep. Both will stop garnishments and Creditor harassment. If you earn more than the average wage for your state and size of family you will normally be required to file a Chapter 13.
    Chapter 13 cases are becoming more popular. Over 95% of all Chapter 13 cases used to fail because they became unaffordable. But now 10 and 20% repayment plans are being approved in Chapter 13 cases and they are now more successful. After 10-2005 plans below 10% will be common. Often an attorney may want to file a Chapter 13 because he or she will earn more than he would in a Chapter 7, but you will usually profit far more from filing a Chapter 7. Usually, the only times you will want to file a Chapter 13 are 1) when you have already filed a Chapter 7 and can't file another one or 2) if you have so much property and equity that a Chapter 13 is necessary to keep that property.
    You may have to file a Chapter 13 if you have so much income (after you pay your normal monthly living expenses) that you can repay something to your debts. A Chapter 13 can no longer be used for special purposes, such as to debts due to fraud. But can repay child support, repay student loans, or protect a co-signer. The fortunate thing about virtually all Chapter 7 cases is that the Debtor’s assets are normally exempt, so there are rarely any assets to liquidate.  Each state has different rules for what property can be kept.
    Why file a Chapter 7?
    If you have substantial unsecured debts you may want to file a Chapter 7. You may also want to file a Chapter 7 if you want to surrender property and not owe for it. You can usually keep all your property in a Chapter 7, because you won't have enough equity in any property to exceed the exemptions allowed.
    Why file a Chapter 13?
    You may want to file a Chapter 13 if you have secured debts and are threatened with foreclosure or repossession, if you filed a Chapter 7 less than 6 years ago, if you wish to protect your cosigner, or if you have debts that are not dischargeable in a Chapter 7 but are payable in a Chapter 13. Child support can be paid first in a Chapter 13 before secured creditors giving you the advantage of not losing a car or property but having all of your payments go to child support at the start of the case.
    Can I convert from a Chapter 13 to a 7 or from a 7 to a 13?
    Yes they can be converted. Few people convert from a 7 to a 13. However if you earn over 60-70,000 you have a strong chance that the US attorney’s office will file a 707 b motion that may force you into a 13. If you file a Chapter 13 you have a good chance that you will have to convert from a 13 to a 7. Over 3-5 years, you are very likely to miss payments and have the Chapter 13 dismissed (or have to refile). Some Chapter 13 cases are never finished and are converted into Chapter 7 cases. If you are close to completing the plan, you may be granted a hardship discharge. Plans can also be later modified if incomes change.
    What is a Chapter 20? What is a Chapter 26?
    Some people file a Chapter 7 to wipe out unsecured debts and then file a Chapter 13 to keep their property. This is jokingly referred to as a “Chapter 20”. Filing a “Chapter 20” can be the intelligent and affordable way to file a Chapter 13 later. Filing a Chapter 7 and then a Chapter 13 to obtain the benefits of both is very effective in stopping a foreclosure. A “Chapter 26” refers to filing back-to-back Chapter 13 cases. You would do this to pay debts that can’t be paid in 5 years by just one Chapter 13. In a sense, you are “extending” your repayment time by filing two Chapter 13s. These forms of filing are no longer available after 10-2005.
    How long will bankruptcy take?
    It will take about 3 to 4 months for a Chapter 7 to be final. (You will get a letter within 10 days of filing, telling you the time and date of the 341 hearing. This hearing will be held about 4 to 6 weeks after you file.) A Chapter 13 will take as long as the repayment plan takes. If you file after 10-2005 before getting a discharge you will attend a hearing.
    What are the most common mistakes I can make when filing?
    Not showing up for your hearing and not listing all of your debts. Fail to show up at the hearing, and your case is dismissed. Fail to list a debt, and you continue to owe it. Also people often have too much in a checking account when they file or a tax refund coming. The best policy is to list all your debts and assets. Always list every debt, even if you think it is nondischargeable, it may be discharged anyway. Even include last month’s utilities.
    How do I qualify for bankruptcy? Can I not be approved?
    You qualify for bankruptcy if either your outgo exceeds your income or your liabilities exceed your assets. You basically have to be a US citizen, reside in the state you file in, and not have filed within certain time periods (you can’t file two Chapter 7s within 8 years of each other).
     What if the Court does not approve my Chapter 13 or Chapter 7?
     If there is anything wrong with your Chapter 13 or Chapter 7 bankruptcy it will usually be changed and amended. Of course, it is less costly and time-consuming to do it right the first time. If you earn so much money that you can afford a Chapter 13, you will be forced to change it from a Chapter 7 to a Chapter 13. Repayment plans often are amended.
    How often can I file?
    You can file a Chapter 7 8 years after you filed your last Chapter 7 the time used to be 6 before 10-2005. The time is measured from the time of filing your first case to the time of filing of your second case. You can file Chapter 13s 2 years after a Chapter 13 discharge. You can file a Chapter 7 4 years after a Chapter 13. You can only have one bankruptcy going on at a time.
    If I file does it mean my old bad debts are erased from my credit report?
    NO!
    What is reported is that you had a debt and that a bankruptcy was filed. Bankruptcy does not give you a good credit record or “repair” your credit record automatically. You repair your credit by paying your debts on time after the bankruptcy.
    Can I file without an Attorney?
    Yes. You can file a bankruptcy yourself, and this is called “filing pro se”. You can also do dentistry on yourself, but I wouldn’t recommend it. Doing your own case is a very bad idea. This thread alone won’t give you the knowledge you need to file on your own. Use this thread to educate yourself, so you can find a good Attorney and discuss the issues.
    As an example, if you file a reaffirmation and represent yourself, it must be approved in a hearing by the Judge, and that will mean extra hearings and time for you. Considering the time and risk involved, I recommend you use an Attorney. You may lose far more in Court than what the Attorney would have cost—plus there is the extra time and effort on your part doing the work.
    What about a Bankruptcy Mill?
    Filing a bankruptcy through a Bankruptcy Mill or paralegal may be even worse than doing it yourself and they often charge as much as the attorney. Many people have lost thousands of dollars with these businesses—through intentional scams or just plain bad work. Non-Attorney bankruptcy petition preparers are barred by law from providing you with any legal advice. In enacting legislation governing bankruptcy petition preparers, Congress stated: “These preparers lack the necessary legal training and ethics regulation to provide [legal advice and legal services] in an adequate and appropriate manner. These services may take unfair advantage of persons who are ignorant of their rights both inside and outside the bankruptcy system.”
    The bankruptcy petition preparer's role is limited by law solely to typing. Unlike an Attorney, a bankruptcy petition preparer can not help you understand the law, advise you how to answer questions, assist you in planning, or be in Court. Federal law requires that bankruptcy petition preparers sign any documents they prepare; print on the document their name, address, and social security number; and furnish you with a copy of the document.
    A bankruptcy petition preparer may not sign any document on your behalf, may not use the word “legal” or any similar term in any advertisement, and may not receive any payment from you for Court fees. The bankruptcy petition preparer is also required to disclose to the Court the amount of any fee you pay. Beware of any bankruptcy petition preparer who does not comply with these requirements an emergency, even the filing fee can be paid in payments to the Court.
    What paperwork do I need to bring to my Attorney?
    Bring the names, amounts, account numbers and proper addresses of all of your Creditors. You may estimate the amounts. After 10-2005 you must have the account numbers. Credit bureau reports normally don't have the addresses on them. If you have gotten a Credit bureau report before filing, you still have to get the addresses.
    Can I file jointly with my spouse? Does my spouse have to file or sign if I want to file individually?
    Yes, you can file jointly. No, your spouse doesn't have to file but, if most of your debts are joint debts, he or she may want to. There is no need for a spouse to file if the debts are not in his or her name. If you are filing a Chapter 7, and the bills are also in your spouse’s name, he or she generally should file to be protected. (Cosigners are protected in a 13 with 100% plans, but are not in a Chapter 7.) There should be no additional charge for a spouse filing, but some firms charge extra. The only extra work to do in a joint filing is adding an additional name and social security number to the petition.
    Will it affect my spouse’s credit? Is he/she responsible for my credit cards if he/she is an authorized user?
    No, filing will not affect your spouse's individual credit, but if he or she is a co-signer on any debt that is not paid that will affect him or her. The fact that you filed bankruptcy does not appear on a spouse's credit report unless he or she also files bankruptcy. Unless your spouse has signed to be legally responsible, they are not responsible. However, many credit card companies will argue that she is responsible. They may even put a “no pay” on her credit report if the amount is unpaid; however, she may ask any credit reporting service to correct that.
    If she does so, the credit card company will have to show that she signed for it. If they can’t, it will be removed from her credit report file. In other words, the credit card collectors may try to collect from her by claiming she is liable, but she really is not. If they damage her credit record, it may be grounds for a lawsuit. Credit is normally granted based on a score from your past payment history, the amount of debt that you owe, the length of time you have been repaying present credit, if you have opened credit recently, and the types of credit accounts you have.
    Will my co-signers be protected?
    Co-signers are protected only in a Chapter 13 to the extent that the plan pays the full amount of the co-signed debt. If the plan pays the debt completely, the co-signer is protected, but it will be listed in his or her credit record as being paid late. The Creditor may ask the cosigner for any remaining portion of the debt if it not paid completely. In a Chapter 7, the co-signer will have some small protection regarding the collateral during the proceeding, but only because the Creditor can’t go against the property of the estate. After a Chapter 7 is over, the Creditor will proceed against the co-signer personally.
    Can I file a personal bankruptcy and not have it affect my business?
    If you own your own business, the business is a part of your assets. If it is worth very much, it may be property of the Court. If your business files bankruptcy, it won’t affect you because the business does not own you.
    Can Bankruptcy stop foreclosures, wage assignments, help me get my license back from an uninsured accident, stop evictions, a judgment, or remove a lien?
    Yes.
    What will happen to my bills?
    When you file a bankruptcy, a Court order goes into effect that keeps Creditors from legally collecting from you. When you are discharged (i.e., the bankruptcy is final), the Creditor "charges off" the debt and gets a tax deduction for the loss. The bill is not paid, and the debt shows up as a bankruptcy charge-off on your credit report. Some Creditors will attempt to get around the law and will continue attempts to collect after the bankruptcy is filed. They can be sued for this, but you need to prove they did it. One of the best methods is to record their call and then surprise them in Court with it when they deny ever making the call. Most Creditors that ignore the law will never send you letters or anything on paper after you file, but they may make phone calls hoping that you will pay anyway.
    What if I keep getting bills?
    You will continue to get some bills from bankrupted debts after you file. What happens is that the Bankruptcy Court sends out notices to the addresses that you give to them (that is why correct addresses are so important), but some Creditors never get these notices and continue to bill you. You should make copies of your hearing notice. If you get a bill from a Creditor, send them a copy of the bill and the notice. Some Creditors will continue to send bills even if they receive notice. It may be that their computer can’t stop sending out the bills, or they may simply be ignoring the stay hoping that you will pay anyway. You can file a motion for contempt with the judge, and you may also be able to sue for a violation of the Fair Debt Collections Practices Act.
    Do I have to pay my bills during the Chapter 7 or 13?
    No. Don’t pay any bill until after you file a Chapter 7 until you have negotiated with the creditor to keep the property. Don’t pay any payment in a Chapter 13 unless it is the regular monthly mortgage payment or car payment, and the 13 was filed to catch up the arrearage. A stay is a federal Court order to stop. If the item is secured, your overdue payments will continue to add up while you don’t pay on the item. However, the Creditor can't take the collateral until the stay is terminated. If no reaffirmation is filed within 45 days after the bankruptcy is filed the stay terminates and the bank can take the car.
    The Creditor may also file a motion to terminate the stay after the bankruptcy is filed. Bankruptcy stops your obligation to pay, but the Creditor still has a lien and rights in the property. You often quit paying for items when you file so that you have time to decide if you want to workout a repayment, redeem, or surrender. I have rarely ever had a bank refuse to agree to repayment, but you don’t want to make payments if they aren't going to let you keep the property. Singing a reaffirmation will make you liable for any deficiency if you have it repossessed later. In some rare cases, with people who are never going to repay, the bank may refuse to reaffirm. Some credit unions may refuse to keep a car or mortgage unless you also repay their credit cards. In cases like this, you may want to redeem property instead. That is why you don’t want to make payments just before or after you file. You can take the time to negotiate your options. You don’t have to be caught up on your payments to reaffirm, but some banks may request it—and all of them want it.
    Who notifies the Creditors and bill collectors?
    After the bankruptcy petition is filed, the Court mails a notice to all the Creditors listed in the schedules. This usually takes 1-2 weeks.
    Do I have to go to Court?
    Not exactly, but you will have to attend a hearing presided over by the bankruptcy Trustee. This hearing is called the 341 Hearing (Meeting of Creditors). At this hearing, the Trustee (who is an Attorney) will ask questions, under oath, regarding the content of your bankruptcy papers, assets, debts, and other matters. It is very much like a deposition, not like a trial. If you can’t attend (example: if you are in the service overseas), you can answer the questions by Affidavit. The Trustee is not the judge. He is there to take any assets from you, if he can, and to check the accuracy of your paperwork. The Trustee represents the banks—not you. In a Chapter 13 you will have a second hearing to get your discharge if your case was filed after October 2005. In this hearing you must show that you are no charged or convicted of a crime of fraud or further behind in support.
    Where is my 341 hearing?
    Your 341 hearing is always at the Federal Court closest to you.
    What do I wear to the hearing?
    Don’t wear cut-offs or jeans with holes in them and don’t wear sandals. Suits are not required, but dress properly for a hearing in Federal Court. Children are not supposed to be in the hearing room. Do not borrow and wear flashy jewelry. This is not the time to brag about how rich you are or how much you own. The Trustee is looking for assets to take from you. He is not your friend. He represents the persons that you owe. You must report what you own and it’s real value, but don’t brag about your income and how much your car is worth—especially if you don’t have any.
    When should I file tax returns if I am going to file bankruptcy? If I file in December do I keep my refund?
    If you are considering filing a bankruptcy, you must file your tax returns. No file returns…. no file bankruptcy. If you can get your refund before you file. If you do and spend it, you will keep your refund no matter how much it is. If you get your refund after you file bankruptcy, and the refund is over the exemption, you may lose part of your refund. File a quick refund if you have to or apply any refund amount to next year’s tax debt. If you are considering filing in the later part of the year, file before December. If you file in January, you may have to wait for some time after you get your refund back. You will be asked when you got your refund and how you spent it if you got a large refund.
    Message Edited by Tuscani on 10-01-2007 12:47 PM

    Can I pay some Creditors and not others in a Chapter 13?
    You can’t (shouldn’t) discriminate and pay one unsecured Creditor class differently than other unsecured Creditors in that class. However Secured unsecured and priority debts are paid differently.
    Should I try a Debt Counseling Service instead of filing bankruptcy? How do Debt Counseling services work?
    "Debt Counseling Services" are often high-interest loan companies. Other times, they are agencies that pocket 10-50% of the monthly money that you pay to them as fees for their "counseling". Most of these services will combine your bills and send a partial payment to each bill that you owe. Your credit will be listed by the credit card companies as delinquent for sending in partial payments, and the reduced amounts sent in may not even cover the interest that a debt charges.
    These "Counseling Services" are often simply rip-offs that pretend to be charities or helping agencies. If you pay a debt counseling service $100 a month, what happens is that they take up to $40 for themselves and then send your Creditors $60. Your bills fall even farther behind. Eventually, Creditors file lawsuits and you are forced into bankruptcy anyway. Very few of these "repayment plans" work and over 90% fail, leaving you worse off.
    Another scam is that some debt counseling companies will charge thousands of dollars by promising to find you a consolidation loan as a loan broker or mortgage broker. These loans end up being at a high-interest rate or they pocket your money and never give you the loan. Others strip the equity from your home. Whatever method used, "Debt Counseling Services" are often scams meant to take your money when you are already in trouble.
    Also be wary of using services that claim to “repair” your credit file. Some may attempt to create a new credit file by getting a new social security number. Changing your identity is a felony, especially if you steal another person’s identity. Creating a false identity and using it may also be a felony.
    Admin note:  Please also be aware of the following excellent information provided by National Foundation for Credit Counseling on what to look for when considering credit counseling:
    How to Select a Legitimate Credit Counseling Agency 
    The last thing a consumer needs when struggling financially is to fall into the hands of an unscrupulous credit counseling agency.  If you’re considering using a credit counselor, shop around, and ask each agency the following questions.  More importantly, be certain that you are comfortable with their answers before you book that first appointment.  A legitimate agency is always more interested in your bottom line than theirs.
    Is the agency affiliated with a national body such as the National Foundation for Credit Counseling (NFCC) that requires strict quality, financial and ethical standards for membership?  Examples of such requirements are annual audits by an independent CPA, written action plans provided to each consumer, and consumers provided with statements at least quarterly.
    Is the agency accredited by an independent third party?  Self-accreditation is not the answer you want.  An example of a reputable third party accreditating body is the Council on Accreditation (COA).  Such accreditation signifies that appropriate checks and balances are in place to protect you, the consumer.
    Is the agency a 501(c)(3) nonprofit community organization?  Being a nonprofit does not guarantee that the agency is legitimate, but it is a step in the right direction.
    What is the composition of their Board of Directors?  Board members should not be paid by the agency, should not be family members or friends, but should represent a wide cross-section of the community and civic interests.
    What services does the agency offer?  A wide-range of services is a good sign.  This could include: budget counseling for those who are not in debt; debt counseling for those who may need professional assistance digging out; housing counseling for pre-rental, pre-purchase, first-time homebuyer, reverse mortgage, and foreclosure prevention; and the mandated bankruptcy pre-filing counseling and pre-discharge education.
    What are the fees associated with the services provided?  The agency should be forthcoming about fees, and no fee should be assessed prior to the service being provided.  Be wary if the agency says their fees are voluntary.  Any set-up fee or monthly fee should be reasonable, usually defined as $50 or less, with monthly fees in the $25 range.  The agency should be willing to waive all fees in cases of true hardship.
    What delivery options are available to you for counseling?  Does the agency offer in-person counseling?  Counseling by phone?  Internet counseling?  Is the channel that’s most appealing to you offered?
    Is the counselor assigned to you a Certified Consumer Credit Counselor?  You want someone qualified assisting you with your critical financial decisions.  NFCC certification means that the counselor has passed a rigorous battery of tests measuring their financial knowledge.
    Does the agency provide educational classes or workshops?  Are any of these tools offered online?  Is there a fee to attend?  The absence of any true education offered to the general public is a red flag.
    Will the agency work with all of your creditors?  Some agencies only work with creditors who agree to make a payment to them.  A legitimate agency will take a holistic approach to solving your financial distress.
    Is there a minimum amount of debt required to be counseled?  True credit counseling agencies will work with you regardless of how large or how small your debt may be.
    What debt relief options are offered?  If the only tool is the Debt Management Plan (DMP), keep shopping.  A DMP is a useful tool, and is often the appropriate resolution.  However, each consumer’s situation is different, thus the solution should be customized to fit their specific needs.  A one-size-fits-all approach signals that you should continue your search.
    Are the counselors compensated for writing DMPs?  Any such incentive is not a part of a legitimate agency’s pay to their counselors.
    How long will your counseling session last?  Don’t be tempted by “drive-by” counseling.  A counselor simply cannot do an adequate intake of your income, expenses and debts in a short amount of time.  An initial session length of at least one-hour is standard.
    If you go on a Debt Management Plan, how soon after receipt of your monthly payment will it be disbursed to creditors?  The success of a DMP depends on timely, consistent payments to creditors.
    What happens to your first payment?  Believe it or not, some agencies keep the consumers first payment and consider it a donation.  Be sure to ask about this.
    Will the full amount of your payment be disbursed to your creditors?  The full amount should go toward the repayment of your debts, with no portion going into the agency’s pocket.
    How will your deposits be protected?  Ask for written evidence that the agency is bonded or insured to protect the consumer from fraud or the agency’s own financial difficulties.
    As a final step, check with the Better Business Bureau and your state’s Attorney General to see if there are unresolved complaints about the provider you are considering.  Anyone can file a complaint.  What is relevant is how the agency resolved it.
    Legitimate credit counseling agencies counsel and financially educate millions of consumers each year, making financial stability a reality in their lives.  It all starts with selecting the right agency.  Asking the above questions, and receiving the right answers, will ensure that your credit counseling experience is a positive one.
    How long should I keep a copy of my Bankruptcy?
    You should keep a copy of your bankruptcy, with your tax papers, for at least 7 years. You will need them for any mortgage application but they are now filed electronically and available for download at any bankruptcy attorney’s office if you filed after October 2002. You are only required to keep receipts 3 years by the tax department—after 3 years they have the burden of proof—but keep tax and bankruptcy records for 7 years anyway.
    When will I be able to get credit again?
    Normally, you will qualify for a home mortgage at normal rates within 2 years if you let your home go back in foreclosure you will qualify in 3 years after the discharge of your bankruptcy. You will be able to get other credit within 6 months to a year. Your ability to get credit is based on your income and your history of repayment, as well as the security you offer. You should be able to purchase a car or house if you reaffirm one or two debts and pay for them on time after your discharge. You always have to be able to afford what you are buying on credit or meet credit standards. You will have to reestablish your credit by paying on time after your filing.
    Will my employer and landlord find out about my bankruptcy?
    Bankruptcy petitions are public records; however, under normal circumstances, no one will know you filed a bankruptcy petition unless you tell them. Chapter 13 Debtors are often required to make payments through wage garnishment, which means the employer will learn about the bankruptcy.
    Will this affect my getting an apartment?
    Many of the larger apartment complexes are owned by banks, and banks tend to grant leases according to credit bureau reports. This may affect you. Small landlords will call former landlords and may not check credit reports.
    Can employers discriminate or fire me?
    Generally no. There is an antidiscrimination section of the Bankruptcy Code that prevents employers or the state from denying you licenses or discriminating against you when hiring. But do yourself a favor: Keep it to yourself. They generally won’t know unless you tell them.
    Are there bankruptcy crimes?
    Yes. Criminal statutes related to bankruptcy can be found at 18 U.S.C. sections 151 to 157. Examples of bankruptcy crimes are knowingly and fraudulently concealing assets, lying under oath or on bankruptcy schedules, and knowingly and fraudulently filing a false proof of claim. Bankruptcy fraud can also be used to support a RICO claim. Bankruptcy crimes are often the result of claiming you don’t own property that you do own or that has been transferred to conceal it from the Court.
    Do I have to disclose all of my assets?
    Yes. If you knowingly and fraudulently conceal an asset from the Court, you have committed a felony and you can be fined up to $5000, imprisoned for up to five years, or both. However, this is rare and normally comes up in only the worst cases. In addition, the Court can deny discharge, or dismiss or convert your bankruptcy proceeding.
    Can I run up charges on my credit cards just before filing?
    The official answer is “No”. Many people do make some minor charges on their charge cards just before filing. Charges of over $1000 on any one card within 90 days before filing are presumed to be fraudulent and non-dischargeable. Luxury items of 500 within 90 and Cash advances of 750 within 70 days are non dischargeable. Charges to an account more than 90 days before filing are presumed proper regardless of the amount. But the rule that you can’t charge within 90 days of filing isn’t written in stone there are 12 factors that the judge will use to determine if it is fraudulent.
    There is no reason to pay any further on debts that you are planning to avoid in bankruptcy. Normally, you should file as soon as you can, but it won’t matter if you pay the bills or not before you file. It doesn’t matter if you owed $10,000 or $10,000,000 before you filed or whether or not you paid on time before you file bankruptcy.
    Message Edited by Barry on 07-11-2008 12:28 PM

  • Plant Maintenance - Doubts in Task List Creation

    Hai,
    This is the first time that I am doing some configuration regaring Plant Maintenance Module.
    Scenario:
    There is an equipment which has a Plan for maintenance. Support there are 8 maintenance activities which have to be carried for that equipment in an year. Each of this activity will be carried out in different periods. Some of them will have to be done once in a year. Some may be done once in 6 months.
    But all the acitivities will not be carried out at the same time.
    Can anyone tell me how this can done?. Should we create separate Task Lists for all the 8 activities and subseqently create a Maintenance Plan for each of them or Create one single Task List which has all the 8 activities by giving Operation nos. In th second case how to create Maintenance Plan for each of the individual Line item in a Task List and how can it be linked.
    In the first case can a single Task list be incremented by a Group Counter which can have the individual operation so that a Maintenance Plan can be created for individual Task List incremented by a Group Counter.
    In both the cases can someone give me the procedure.
    Please throw some light on this subject.
    Regards,
    R. Vijayakumar

    Dear Vijaykumar,
    Jus follow the below steps..
    Step-1 
    T-code IP11, Create maintenance Startegy with all required frequencies like 1, 2 3 4 u2026 12 months
    Step-2
    In T-Code IA01, On general header view  screen .Enter the datas like Work center, usage, status. Select ur required Maintenance Strategy which u already created.
    GO to  operation tab , enter ur list of operations one by one (all 8 operations).
    Select all operations and click Mntpack icon on bottom of screen , On package overview screen u can able to select different operation at different frequencies jus tick box and save
    Step-3
    In T-Code IP42, select the maint strategy which u have assigned already and fill required details and select Task list which u have created in previous step (link is available in bottom screen) & Save.
    Step-4
    In T-Code IP10, schedule the  Maintenance Plan
    Now you will get the Maintenance orders automaticaly  based on package u defined and schedule date.
    Revert back me in case if u have any doubt on this cycle. Else close this thread.
    Regards,
    Gunak

  • Doubt in hiding columns in ALV list

    Hi Experts ,
                          I am working on block ALV list . I need to hide certain columns  in the list based on condition . For example : ALV structure has fields such MATNR    MEINS    MBRSH   MTART
    For a particular material if  ITAB-MEINS EQ C_SPACE . Then the column - MEINS should be hidden for particular material record.
    Could anyone suggest me code for this logic .
    Thanks ,
    Kumaran.C

    Hi Rajnesh ,
                           Thanks for that reply , But one doubt .
    Should we have to loop the ITAB before creating the feildcatalog ?
    say for ex :
    loop at itab.
    if itab-meins eq c_space.
      fieldcatalog-fieldname = 'MEINS'.
      fieldcatalog-selfield_m = 'UOM'.
      fieldcatalog-col_pos    = 3.
      fieldcatalog-no_out     = 'MEINS'.
    append fieldcatalog from fieldcatalog.
    end if.
    endloop.
    is this the way to code the above logic , pls explain .
    Thanks,
    Kumaran.C

  • Some doubts in copy control from billing doc to invoice list

    Dear all,
    The value of allocation number in FI doc can be customized as:  A (PO number), B (Sales order num.), etc.
    But how can I make it to be assigned an alternative value (for example, we have do an add-on "invoice" then we hope our invoice no. be assigned here)? Is there an exit to do so? or how this happen (especially when SO's billed, then the FI doc has been generated already.) or  how a creation of invoice list will changed the value of allocation number in former FI doc created by billing before?
    Thanks to all,
    James

    Hi, thanks for you reply.
    The business scenario as following:
    The users create SO. Then post it (VF01) (billing doc and accounting doc. SO and billing is one-one relationship). But at this time, users doesn't generated the customized invoice to customer (also the customer may like to be invoiced with different SO). In order to do this, the user should do invoice list (VF21) to include former billing doc. At this moment, we hope we can update the allocation value in FI doc generated by billing before.
    SO->Billing (FI doc generated) ->invoice list (Hope can update some fields in the FI doc).

  • Reuse alv hierseq list display pgm doubt

    can anyone tell me s my coding s write or not becos in the report output i cannot view the line item details but it s gettign populated in the itab
    REPORT ZTEST_1.
    TABLES: KNB1,BSID.
    TYPE-POOLS: SLIS.
    *TYPES:BEGIN OF TYP_OUTPUT.
    INCLUDE STRUCTURE ZRFPOSXEXT.
    *TYPES:END OF TYP_OUTPUT.
    TYPES:BEGIN OF TYP_BSEG,
    bukrs like bsid-bukrs,
    kunnr like bsid-kunnr,
    zuonr like bsid-zuonr,
    belnr like bsid-belnr,
    bldat like bsid-bldat,
    xblnr like bsid-xblnr,
    blart like bsid-blart,
    dmbtr like bsid-dmbtr,
    aufnr like bsid-aufnr,
    vbel2 like bsid-vbel2,
    posn2 like bsid-posn2,
    END OF TYP_BSEG.
    TYPES:BEGIN OF TYP_VBRP,
    VBELN LIKE VBRP-VBELN,
    AUBEL LIKE VBRP-AUBEL,
    AUPOS LIKE VBRP-AUPOS,
    VKGRP LIKE VBRP-VKGRP,
    TDNAME LIKE STXH-TDNAME,
    TDLINE LIKE TLINE-TDLINE,
    END OF TYP_VBRP.
    data: wa_vbrp type typ_vbrp.
    DATA:
    *GT_HEADER_TABLE TYPE TYP_OUTPUT OCCURS 0 WITH HEADER LINE,
    GT_ITEM_TABLE TYPE TYP_VBRP OCCURS 0 WITH HEADER LINE.
    DATA: IT_BSEG TYPE TYP_BSEG OCCURS 0 WITH HEADER LINE.
    Define fieldcatalog
    DATA: GT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
    Callback program
    DATA: G_REPID LIKE SY-REPID.
    List layout description
    DATA: GS_LAYOUT TYPE SLIS_LAYOUT_ALV.
    Group order criterium
    DATA: GS_KEYINFO TYPE SLIS_KEYINFO_ALV.
    Layout *
    Definition for field choice screen **
    GS_LAYOUT-HEADER_TEXT = 'HEADER'.
    GS_LAYOUT-ITEM_TEXT = 'ITEM'.
    GS_LAYOUT-DEFAULT_ITEM = 'X'.
    Initialization fieldcatalog ***
    G_REPID = SY-REPID.
    PERFORM FIELDCAT_INIT USING GT_FIELDCAT[].
    Data selection ***
    PERFORM SELECT_DATA.
    Define keyinfo as sort group definition ***
    CLEAR GS_KEYINFO.
    GS_KEYINFO-HEADER01 = 'BELNR'. "idenify header and item
    GS_KEYINFO-ITEM01 = 'VBELN'.
    Call function to list display (hier-seq) ***
    CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = G_REPID
    IS_LAYOUT = GS_LAYOUT
    IT_FIELDCAT = GT_FIELDCAT[]
    I_TABNAME_HEADER = 'GT_HEADER_TABLE'
    I_TABNAME_HEADER = 'IT_BSEG'
    I_TABNAME_ITEM = 'GT_ITEM_TABLE'
    I_STRUCTURE_NAME_HEADER = <STRUCTURE_NAME_HEADER>
    I_STRUCTURE_NAME_ITEM = <STRUCTURE_NAME_ITEM>
    IS_KEYINFO = GS_KEYINFO
    TABLES
    T_OUTTAB_HEADER = GT_HEADER_TABLE
    T_OUTTAB_HEADER = IT_BSEG
    T_OUTTAB_ITEM = GT_ITEM_TABLE
    EXCEPTIONS
    PROGRAM_ERROR = 1.
    FORMS ***
    FORM FIELDCAT_INIT USING RT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
    DATA: LS_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
    Deviations of group fields to be merged *
    Initialize group field(s) of header table **
    CLEAR LS_FIELDCAT.
    ls_fieldcat-col_pos = 1.
    LS_FIELDCAT-TABNAME = 'IT_BSEG'.
    LS_FIELDCAT-FIELDNAME = 'BLART'.
    LS_FIELDCAT-KEY = 'X'. " sets key field
    LS_FIELDCAT-SELTEXT_M = 'DOC TYPE'.
    LS_FIELDCAT-OUTPUTLEN = 2.
    APPEND LS_FIELDCAT TO gt_fieldcat.
    CLEAR LS_FIELDCAT.
    ls_fieldcat-col_pos = 2.
    LS_FIELDCAT-TABNAME = 'IT_BSEG'.
    LS_FIELDCAT-FIELDNAME = 'BLDAT'.
    LS_FIELDCAT-KEY = 'X'. " sets key field
    LS_FIELDCAT-SELTEXT_M = 'DOC DATE'.
    LS_FIELDCAT-OUTPUTLEN = 8.
    APPEND LS_FIELDCAT TO gt_fieldcat.
    CLEAR LS_FIELDCAT.
    ls_fieldcat-col_pos = 3.
    LS_FIELDCAT-TABNAME = 'IT_BSEG'.
    LS_FIELDCAT-FIELDNAME = 'BELNR'.
    LS_FIELDCAT-KEY = 'X'. " sets key field
    LS_FIELDCAT-SELTEXT_M = 'ACC DOC NO'.
    LS_FIELDCAT-OUTPUTLEN = 10.
    APPEND LS_FIELDCAT TO gt_fieldcat.
    CLEAR LS_FIELDCAT.
    ls_fieldcat-col_pos = 4.
    LS_FIELDCAT-TABNAME = 'IT_BSEG'.
    LS_FIELDCAT-FIELDNAME = 'XBLNR'.
    LS_FIELDCAT-KEY = 'X'. " sets key field
    LS_FIELDCAT-SELTEXT_M = 'REFERENCE'.
    LS_FIELDCAT-OUTPUTLEN = 16.
    APPEND LS_FIELDCAT TO gt_fieldcat.
    CLEAR LS_FIELDCAT.
    ls_fieldcat-col_pos = 5.
    LS_FIELDCAT-TABNAME = 'IT_BSEG'.
    LS_FIELDCAT-FIELDNAME = 'ZUONR'.
    LS_FIELDCAT-KEY = 'X'. " sets key field
    LS_FIELDCAT-SELTEXT_M = 'ASSGNMENT NO'.
    LS_FIELDCAT-OUTPUTLEN = 19.
    APPEND LS_FIELDCAT TO gt_fieldcat.
    CLEAR LS_FIELDCAT.
    ls_fieldcat-col_pos = 6.
    LS_FIELDCAT-TABNAME = 'IT_BSEG'.
    LS_FIELDCAT-FIELDNAME = 'DMBTR'.
    LS_FIELDCAT-KEY = 'X'. " sets key field
    LS_FIELDCAT-SELTEXT_M = 'AMT N LOC CURR'.
    LS_FIELDCAT-OUTPUTLEN = 13.
    APPEND LS_FIELDCAT TO gt_fieldcat.
    Initialize keyfield(s) of item table **
    CLEAR LS_FIELDCAT.
    ls_fieldcat-col_pos = 7.
    LS_FIELDCAT-TABNAME = 'GT_ITEM_TABLE'.
    LS_FIELDCAT-FIELDNAME = 'AUPOS'.
    LS_FIELDCAT-TECH = 'X'. " sets technical field
    LS_FIELDCAT-SELTEXT_M = 'LINE ITEM'.
    LS_FIELDCAT-OUTPUTLEN = 6.
    APPEND LS_FIELDCAT TO gt_fieldcat.
    CLEAR LS_FIELDCAT.
    ls_fieldcat-col_pos = 8.
    LS_FIELDCAT-TABNAME = 'GT_ITEM_TABLE'.
    LS_FIELDCAT-FIELDNAME = 'TDLINE'.
    LS_FIELDCAT-TECH = 'X'. " sets technical field
    LS_FIELDCAT-SELTEXT_M = 'OI NOTES'.
    LS_FIELDCAT-OUTPUTLEN = 132.
    APPEND LS_FIELDCAT TO gt_fieldcat.
    Hidden field(s) of tables (header and/or item) **
    CLEAR LS_FIELDCAT.
    ls_fieldcat-tabname = '<header/item_table_name>'.
    LS_FIELDCAT-FIELDNAME = '<GROUP_FIELD_NAME>'.
    LS_FIELDCAT-NO_OUT = 'X'. "sets hidden field
    APPEND LS_FIELDCAT TO RT_FIELDCAT.
    ENDFORM. "fieldcat_init
    FORM SELECT_DATA.
    data: begin of wa_olino,
    tdname like stxh-tdname,
    tdline like tline-tdline,
    end of wa_olino.
    data: it_olino like wa_olino occurs 0 with header line.
    data: begin of wa_stxh,
    tdname like stxh-tdname,
    end of wa_stxh.
    data: it_stxh like wa_stxh occurs 0 with header line.
    data: begin of wa_lines.
    include structure ztline.
    data: end of wa_lines.
    data: IT_LINES LIKE wa_lines OCCURS 0 WITH HEADER LINE.
    select bukrs kunnr zuonr belnr bldat xblnr blart dmbtr aufnr vbel2
    posn2
    from bsid
    into table it_bseg
    where kunnr in so_wlkun
    and bukrs in so_wlbuk.
    select vbeln aubel aupos vkgrp
    from vbrp
    into table gt_item_table
    for all entries in it_bseg
    where vbeln = it_bseg-belnr.
    sort gt_item_table by aubel aupos.
    loop at gt_item_table into wa_vbrp.
    concatenate wa_vbrp-aubel wa_vbrp-aupos into wa_olino-tdname.
    wa_vbrp-tdname = wa_olino-tdname.
    modify gt_item_table from wa_vbrp.
    append wa_olino to it_olino.
    endloop.
    select tdname from stxh into corresponding fields of table it_stxh
    for all entries in it_olino
    where tdobject = 'VBBP'
    and tdname = it_olino-tdname
    and tdid = '0002'
    and tdspras = 'EN'.
    data: j type i,k_lines type i..
    sort it_stxh by tdname.
    *sort it_output by tdname.
    describe table GT_ITEM_TABLE lines k_lines.
    *loop at it_output into wa_output. "where blart = '1Z'.
    loop at gt_item_table into wa_vbrp.
    loop at it_stxh where tdname = wa_vbrp-tdname.
    read table it_stxh.
    CALL FUNCTION 'ZREAD_TEXT_1'
    EXPORTING
    CLIENT = SY-MANDT
    ID = '0002'
    LANGUAGE = SY-LANGU
    NAME = IT_STXH-tdname
    OBJECT = 'VBBP'
    ARCHIVE_HANDLE = 0
    LOCAL_CAT = ' '
    IMPORTING
    HEADER =
    TABLES
    LINES = IT_LINES
    EXCEPTIONS
    ID = 1
    LANGUAGE = 2
    NAME = 3
    NOT_FOUND = 4
    OBJECT = 5
    REFERENCE_CHECK = 6
    WRONG_ACCESS_TO_ARCHIVE = 7
    OTHERS = 8
    *data: I type i.
    if sy-subrc = 0.
    loop at it_lines.
    it_lines-tdname = wa_vbrp-tdname.
    modify it_lines. "from wa_lines.
    endloop.
    loop at it_lines.
    *i = sy-tfill.
    wa_vbrp-tdline = it_lines.
    if sy-tabix = 1.
    modify gt_item_table from wa_vbrp.
    else.
    append wa_vbrp to gt_item_table.
    endif.
    clear it_lines-tdline.
    endloop.
    endif.
    endloop.
    if sy-tabix = k_lines.
    exit.
    endif.
    endloop.
    sort it_olino by tdname.
    ENDFORM. " select_data

    Hi,
    Go thru the following Example program. It can solve ur problem..
    *& Report         : ZASSG_ALV_JAYARAM3
    *& Title          : Hierarchical sequential ALV report
    *& Author         :
    *& Created on     : *& Request        :
    *& Desription     : Generates a Hierarchial sequental ALV report to list
                      out Billing details.
    *&                     Modification Log
    *& Mod #    Author               Date         Requested by
    *&       Reason for Change
    *& 00 #
    REPORT ZASSG_ALV_JAYARAM3 NO STANDARD PAGE HEADING
                                         LINE-SIZE 132
                                         LINE-COUNT 64
                                        MESSAGE-ID Z00.
    *..Type Definitions for ALV Report
    TYPE-POOLS SLIS.
    Table/Structure declarations.                                        *
    TABLES : VBRK,   " Billing: Header Data
             VBRP,   " Billing: Item Data
             T001,   " Comapny Codes
             TVKOT,  " Sales Organizations: Texts
             MAKT.   " Material Descriiptions
    *.. Internal Tables declaration                                        *
    *----- Internal table to store billing docs which are not cancelled
    DATA : BEGIN OF IT_VBRK OCCURS 0,
             VBELN LIKE VBRK-VBELN,    " Billing document
             WAERK LIKE VBRK-WAERK,    " SD document currency
             VKORG LIKE VBRK-VKORG,    " Sales organization
             VTEXT LIKE TVKOT-VTEXT,   " Sales organization text
             FKDAT LIKE VBRK-FKDAT,    " Billing date
             BUKRS LIKE VBRK-BUKRS,    " Company Code
             BUTXT LIKE T001-BUTXT,    " Company Code text
             NETWR LIKE VBRK-NETWR,    " Net value in document currency
           END OF IT_VBRK.
    *-----Internal table to stroe ITEM DETAILS
    DATA: BEGIN OF IT_VBRP OCCURS 0,
           VBELN2 LIKE VBRP-VBELN,     " Billing document
            POSNR LIKE VBRP-POSNR,     " Billing item
            FKIMG LIKE VBRP-FKIMG,     " Actual billed quantity
            VRKME LIKE VBRP-VRKME,     " Sales unit
            NETWR LIKE VBRP-NETWR,     " Net value of the billing item
            MATNR LIKE VBRP-MATNR,     " Material number
            ARKTX LIKE VBRP-ARKTX,     " Short text for sales order item
    END OF IT_VBRP.
                       Variable / Flag Declerations                      *
    DATA : FG_COLOR    VALUE ' ',  " FLAG TO CHANGE THE COLOR OF THE RECORD
           FG_NO_DATA  VALUE ' '.  " FLAG TO CHECK THE DATA
    DATA : V_REPID   TYPE SYREPID.
                         ALV Type declaration                            *
    DATA : IT_FIELDCAT TYPE STANDARD TABLE OF
                       SLIS_FIELDCAT_ALV  WITH HEADER LINE.
    DATA : IT_SORT TYPE SLIS_T_SORTINFO_ALV,
           WA_SORT TYPE SLIS_SORTINFO_ALV.
    DATA : IT_EVENT TYPE SLIS_T_EVENT,
           WA_EVENT LIKE LINE OF IT_EVENT.
    DATA : IT_HEADINGS TYPE STANDARD TABLE OF
                       SLIS_LISTHEADER WITH HEADER LINE.
    DATA : WA_LAYOUT TYPE SLIS_LAYOUT_ALV.
    DATA : WA_KEYINFO TYPE SLIS_KEYINFO_ALV.
    Selection Screen.                                                    *
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS :  S_VBELN FOR VBRK-VBELN,            " Billing doc no
                      S_FKDAT FOR VBRK-FKDAT OBLIGATORY, " Billing date
                      S_MATNR FOR VBRP-MATNR.            " Material no
    SELECTION-SCREEN END OF BLOCK B1.
    Event:Initialization                                                 *
    INITIALIZATION.
      V_REPID = SY-REPID.
      S_FKDAT-LOW  = SY-DATUM - 200.
      S_FKDAT-HIGH = SY-DATUM.
      APPEND S_FKDAT.
    AT Selection Screen.                                                 *
    AT SELECTION-SCREEN.
      PERFORM VALIDATE_VBELN.
      PERFORM VALIDATE_MATNR.
    Event: Start-of-Selection                                            *
    START-OF-SELECTION.
      PERFORM GET_VBRK_DATA.
      PERFORM GET_VBRP_DATA.
    Event: End-of-Selection                                            *
    END-OF-SELECTION.
      PERFORM GET_EVENTS.
      PERFORM FIELDCATALOG.
      PERFORM LIST_DISPLAY.
                             FORM DEFINITIONS                            *
    *&      Form  list_display
          text
    -->  p1        text
    <--  p2        text
    FORM LIST_DISPLAY.
      WA_LAYOUT-INFO_FIELDNAME = 'COLOR'.
      WA_LAYOUT-TOTALS_TEXT = 'GRAND TOTAL'.
      WA_LAYOUT-ZEBRA = 'X'.
      WA_LAYOUT-KEY_HOTSPOT = 'X'.
      WA_KEYINFO-HEADER01 = 'VBELN'.
      WA_KEYINFO-ITEM01 = 'VBELN2'.
      CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
        EXPORTING
       I_INTERFACE_CHECK              = ' '
          I_CALLBACK_PROGRAM             = V_REPID
       I_CALLBACK_PF_STATUS_SET       = ' '
       I_CALLBACK_USER_COMMAND        = ' '
          IS_LAYOUT                      = WA_LAYOUT
          IT_FIELDCAT                    = IT_FIELDCAT[]
       IT_EXCLUDING                   =
       IT_SPECIAL_GROUPS              =
          IT_SORT                        = IT_SORT
       IT_FILTER                      =
       IS_SEL_HIDE                    =
       I_SCREEN_START_COLUMN          = 0
       I_SCREEN_START_LINE            = 0
       I_SCREEN_END_COLUMN            = 0
       I_SCREEN_END_LINE              = 0
       I_DEFAULT                      = 'X'
       I_SAVE                         = ' '
       IS_VARIANT                     =
       IT_EVENTS                      =
       IT_EVENT_EXIT                  =
          I_TABNAME_HEADER              = 'IT_VBRK'
          I_TABNAME_ITEM                = 'IT_VBRP'
       I_STRUCTURE_NAME_HEADER        =
       I_STRUCTURE_NAME_ITEM          =
          IS_KEYINFO                    = WA_KEYINFO
       IS_PRINT                       =
       IS_REPREP_ID                   =
       I_BUFFER_ACTIVE                =
       I_BYPASSING_BUFFER             =
    IMPORTING
       E_EXIT_CAUSED_BY_CALLER        =
       ES_EXIT_CAUSED_BY_USER         =
        TABLES
          T_OUTTAB_HEADER               = IT_VBRK
          T_OUTTAB_ITEM                 = IT_VBRP
    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.                    " list_display
    *&      Form  fieldcatalog
          text
    -->  p1        text
    <--  p2        text
    FORM FIELDCATALOG.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
       EXPORTING
          I_PROGRAM_NAME             = V_REPID
          I_INTERNAL_TABNAME         = 'IT_VBRK'
      I_STRUCTURE_NAME             =
      I_CLIENT_NEVER_DISPLAY       = 'X'
          I_INCLNAME                 = V_REPID
      I_BYPASSING_BUFFER           =
      I_BUFFER_ACTIVE              =
        CHANGING
          CT_FIELDCAT                = IT_FIELDCAT[]
       EXCEPTIONS
         INCONSISTENT_INTERFACE      = 1
         PROGRAM_ERROR               = 2
         OTHERS                      = 3
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    *..Changing the fieldcatlog as required
      LOOP AT IT_FIELDCAT.
        CASE IT_FIELDCAT-FIELDNAME.
          WHEN 'VBELN'.
            IT_FIELDCAT-SELTEXT_L = 'Billing doc no'.
            IT_FIELDCAT-SELTEXT_M = 'Bill No'.
            IT_FIELDCAT-SELTEXT_S = 'Bill'.
            IT_FIELDCAT-OUTPUTLEN = '15'.
            MODIFY IT_FIELDCAT TRANSPORTING SELTEXT_L
                                            SELTEXT_M
                                            SELTEXT_S
                                            OUTPUTLEN
                                      WHERE FIELDNAME = 'VBELN'.
          WHEN 'WAERK'.
            IT_FIELDCAT-SELTEXT_L = 'SD document Currency'.
            IT_FIELDCAT-SELTEXT_M = 'Document Currency'.
            IT_FIELDCAT-SELTEXT_S = 'Currency'.
            IT_FIELDCAT-OUTPUTLEN = '15'.
            MODIFY IT_FIELDCAT TRANSPORTING SELTEXT_L
                                            SELTEXT_M
                                            SELTEXT_S
                                      WHERE FIELDNAME = 'WAERK'.
          WHEN 'VKORG'.
            IT_FIELDCAT-SELTEXT_L = 'Sales Organisation'.
            IT_FIELDCAT-SELTEXT_M = 'Sales Org'.
            IT_FIELDCAT-SELTEXT_S = 'S,Org'.
            IT_FIELDCAT-OUTPUTLEN = '15'.
            MODIFY IT_FIELDCAT TRANSPORTING SELTEXT_L
                                            SELTEXT_M
                                            SELTEXT_S
                                      WHERE FIELDNAME = 'VKORG'.
          WHEN 'VTEXT'.
            IT_FIELDCAT-SELTEXT_L = 'Sales Organisation Name'.
            IT_FIELDCAT-SELTEXT_M = 'Sales Org Text'.
            IT_FIELDCAT-SELTEXT_S = 'S,Org'.
            IT_FIELDCAT-OUTPUTLEN = '30'.
            MODIFY IT_FIELDCAT TRANSPORTING SELTEXT_L
                                            SELTEXT_M
                                            SELTEXT_S
                                      WHERE FIELDNAME = 'VTEXT'.
          WHEN 'FKDAT'.
            IT_FIELDCAT-SELTEXT_L = 'Billing Date'.
            IT_FIELDCAT-SELTEXT_M = 'Bill.Date'.
            IT_FIELDCAT-SELTEXT_S = 'BDate'.
            IT_FIELDCAT-OUTPUTLEN = '15'.
            MODIFY IT_FIELDCAT TRANSPORTING SELTEXT_L
                                            SELTEXT_M
                                            SELTEXT_S
                                      WHERE FIELDNAME = 'FKDAT'.
          WHEN 'BUKRS'.
            IT_FIELDCAT-SELTEXT_L = 'Company Code'.
            IT_FIELDCAT-SELTEXT_M = 'Company'.
            IT_FIELDCAT-SELTEXT_S = 'Comp'.
            IT_FIELDCAT-OUTPUTLEN = '15'.
            MODIFY IT_FIELDCAT TRANSPORTING SELTEXT_L
                                            SELTEXT_M
                                            SELTEXT_S
                                      WHERE FIELDNAME = 'BUKRS'.
          WHEN 'BUTXT'.
            IT_FIELDCAT-SELTEXT_L = 'Company Name'.
            IT_FIELDCAT-SELTEXT_M = 'Comp Text'.
            IT_FIELDCAT-SELTEXT_S = 'Comp'.
            IT_FIELDCAT-OUTPUTLEN = '25'.
            MODIFY IT_FIELDCAT TRANSPORTING SELTEXT_L
                                            SELTEXT_M
                                            SELTEXT_S
                                      WHERE FIELDNAME = 'BUTXT'.
          WHEN 'NETWR'.
            IT_FIELDCAT-SELTEXT_L = 'Net value in docu currency'.
            IT_FIELDCAT-SELTEXT_M = 'Net value in currency'.
            IT_FIELDCAT-SELTEXT_S = 'Net Value'.
            IT_FIELDCAT-OUTPUTLEN = '20'.
            IT_FIELDCAT-DO_SUM    = 'X'.
            MODIFY IT_FIELDCAT TRANSPORTING SELTEXT_L
                                            SELTEXT_M
                                            SELTEXT_S
                                            DO_SUM
                                      WHERE FIELDNAME = 'NETWR'.
        ENDCASE.
      ENDLOOP.
      PERFORM FIELDCAT_SECLIST.
    ENDFORM.                    " fieldcatalog
    *&      Form  sort_tab
          text
    -->  p1        text
    <--  p2        text
    FORM SORT_TAB.
      CLEAR WA_SORT.
      WA_SORT-FIELDNAME = 'VBELN'.
      WA_SORT-SPOS = '1'.
      WA_SORT-UP = 'X'.
      WA_SORT-SUBTOT = 'X'.
      APPEND WA_SORT TO IT_SORT.
    ENDFORM.                    " sort_tab
    *&      Form  get_events
          text
    -->  p1        text
    <--  p2        text
    FORM GET_EVENTS.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
           EXPORTING
                I_LIST_TYPE     = 1
           IMPORTING
                ET_EVENTS       = IT_EVENT
           EXCEPTIONS
                LIST_TYPE_WRONG = 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.
      READ TABLE IT_EVENT INTO WA_EVENT WITH KEY NAME = 'TOP_OF_PAGE'.
      WA_EVENT-FORM = 'DISPLAY_HEADER'.
      MODIFY IT_EVENT FROM WA_EVENT INDEX SY-TABIX.
    ENDFORM.                    " get_events
    *&      Form  DISPLAY_HEADER
          text
    -->  p1        text
    <--  p2        text
    FORM DISPLAY_HEADER.
      WRITE : /3   'Date : ',
               10  SY-DATUM USING EDIT MASK '__/__/____',
               35  'Intelligroup Asia Pvt. Ltd',
               80  'Time : ',
               90  SY-UZEIT,
              /3   'User : ',
               10  SY-UNAME,
               30  SY-TITLE,
               80  'Page  : ',
               90 SY-PAGNO.
    ENDFORM.                    " DISPLAY_HEADER
    *&      Form  VALIDATE_VBELN
          text
    -->  p1        text
    <--  p2        text
    FORM VALIDATE_VBELN.
    Validating Billing doc no
      SELECT VBELN
        INTO VBRK-VBELN
       UP TO 1 ROWS
        FROM VBRK
       WHERE VBELN IN S_VBELN.
      ENDSELECT.
      IF SY-SUBRC NE 0.
        MESSAGE E010. " Invalid billing doc no
      ENDIF.
    ENDFORM.                    " VALIDATE_VBELN
    *&      Form  VALIDATE_MATNR
          text
    -->  p1        text
    <--  p2        text
    FORM VALIDATE_MATNR.
    Validating material no
      SELECT MATNR
        INTO VBRP-MATNR
       UP TO 1 ROWS
        FROM VBRP
       WHERE MATNR IN S_MATNR.
      ENDSELECT.
      IF SY-SUBRC NE 0.
        MESSAGE E018.    " Invalid material number
      ENDIF.
    ENDFORM.                    " VALIDATE_MATNR
    *&      Form  GET_VBRK_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM GET_VBRK_DATA.
    To get Billing doc detials based on selections
      SELECT V~VBELN
             V~WAERK
             V~VKORG
             V~FKDAT
             V~BUKRS
             V~NETWR
             T~VTEXT
             C~BUTXT
        INTO CORRESPONDING FIELDS OF TABLE IT_VBRK
        FROM VBRK AS V
       INNER JOIN VBRP AS P
          ON VVBELN = PVBELN
       INNER JOIN TVKOT AS T
          ON VVKORG = TVKORG
       INNER JOIN T001 AS C
          ON VBUKRS = CBUKRS
       WHERE V~VBELN IN S_VBELN
         AND V~FKDAT IN S_FKDAT
         AND P~MATNR IN S_MATNR.
      SORT IT_VBRK.
      DELETE ADJACENT DUPLICATES FROM IT_VBRK COMPARING VBELN.
      IF SY-SUBRC NE 0.
        FG_NO_DATA = 'X'.
      ENDIF.
    ENDFORM.                    " GET_VBRK_DATA
    *&      Form  GENERATE_SECLIST
          text
    -->  p1        text
    <--  p2        text
    FORM GENERATE_SECLIST USING R_UCOMM     LIKE SY-UCOMM
                                RS_SELFIELD TYPE SLIS_SELFIELD.
      CASE R_UCOMM.
        WHEN '&IC1'. "DOUBLE CLICK
          READ TABLE IT_VBRK INDEX RS_SELFIELD-TABINDEX.
      ENDCASE.
    ENDFORM.                    " GENERATE_SECLIST
    *&      Form  FIELDCAT_SECLIST
          text
    -->  p1        text
    <--  p2        text
    FORM FIELDCAT_SECLIST.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
         EXPORTING
            I_PROGRAM_NAME           = V_REPID
            I_INTERNAL_TABNAME       = 'IT_VBRP'
      I_STRUCTURE_NAME             =
      I_CLIENT_NEVER_DISPLAY       = 'X'
            I_INCLNAME               = V_REPID
      I_BYPASSING_BUFFER           =
      I_BUFFER_ACTIVE              =
          CHANGING
            CT_FIELDCAT              = IT_FIELDCAT[]
         EXCEPTIONS
           INCONSISTENT_INTERFACE    = 1
           PROGRAM_ERROR             = 2
           OTHERS                    = 3
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    *..Changing the fieldcatlog as required
      LOOP AT IT_FIELDCAT.
        CASE IT_FIELDCAT-FIELDNAME.
          WHEN 'VBELN2'.
             IT_FIELDCAT-NO_OUT = 'X'.
             IT_FIELDCAT-KEY = SPACE.
             MODIFY IT_FIELDCAT TRANSPORTING NO_OUT
                                             KEY
                                      WHERE FIELDNAME = 'VBELN2'.
          WHEN 'POSNR'.
            IT_FIELDCAT-SELTEXT_L = 'Billing Iem no'.
            IT_FIELDCAT-SELTEXT_M = 'Bill Item No'.
            IT_FIELDCAT-SELTEXT_S = 'Item No'.
            IT_FIELDCAT-OUTPUTLEN = '15'.
            MODIFY IT_FIELDCAT TRANSPORTING SELTEXT_L
                                            SELTEXT_M
                                            SELTEXT_S
                                            OUTPUTLEN
                                      WHERE FIELDNAME = 'POSNR'.
          WHEN 'FKIMG'.
            IT_FIELDCAT-SELTEXT_L = 'Actual billed quantity'.
            IT_FIELDCAT-SELTEXT_M = 'Billed Quantity'.
            IT_FIELDCAT-SELTEXT_S = 'Bill.Qty'.
            IT_FIELDCAT-OUTPUTLEN = '15'.
            MODIFY IT_FIELDCAT TRANSPORTING SELTEXT_L
                                            SELTEXT_M
                                            SELTEXT_S
                                      WHERE FIELDNAME = 'FKIMG'.
          WHEN 'VRKME'.
            IT_FIELDCAT-SELTEXT_L = 'Sales Unit'.
            IT_FIELDCAT-SELTEXT_M = 'Sale unit'.
            IT_FIELDCAT-SELTEXT_S = 'S.Unit'.
            IT_FIELDCAT-OUTPUTLEN = '15'.
            MODIFY IT_FIELDCAT TRANSPORTING SELTEXT_L
                                            SELTEXT_M
                                            SELTEXT_S
                                      WHERE FIELDNAME = 'VRKME'.
          WHEN 'NETWR'.
            IT_FIELDCAT-SELTEXT_L = 'Net value in docu currency'.
            IT_FIELDCAT-SELTEXT_M = 'Net value in currency'.
            IT_FIELDCAT-SELTEXT_S = 'Net Value'.
            IT_FIELDCAT-OUTPUTLEN = '20'.
            IT_FIELDCAT-DO_SUM    = 'X'.
            MODIFY IT_FIELDCAT TRANSPORTING SELTEXT_L
                                            SELTEXT_M
                                            SELTEXT_S
                                            DO_SUM
                                     WHERE FIELDNAME = 'NETWR'.
          WHEN 'MATNR'.
            IT_FIELDCAT-SELTEXT_L = 'Material Number'.
            IT_FIELDCAT-SELTEXT_M = 'Mat. Number'.
            IT_FIELDCAT-SELTEXT_S = 'Mat. No'.
            IT_FIELDCAT-OUTPUTLEN = '30'.
            MODIFY IT_FIELDCAT TRANSPORTING SELTEXT_L
                                            SELTEXT_M
                                            SELTEXT_S
                                      WHERE FIELDNAME = 'MATNR'.
          WHEN 'ARKTX'.
            IT_FIELDCAT-SELTEXT_L = 'Text for sales order item'.
            IT_FIELDCAT-SELTEXT_M = 'Sale Order Text'.
            IT_FIELDCAT-SELTEXT_S = 'SO Item text'.
            IT_FIELDCAT-OUTPUTLEN = '30'.
            MODIFY IT_FIELDCAT TRANSPORTING SELTEXT_L
                                            SELTEXT_M
                                            SELTEXT_S
                                      WHERE FIELDNAME = 'ARKTX'.
        ENDCASE.
      ENDLOOP.
    ENDFORM.                    " FIELDCAT_SECLIST
    *&      Form  GET_VBRP_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM GET_VBRP_DATA.
      SELECT VBELN
             POSNR
             FKIMG
             VRKME
             NETWR
             MATNR
             ARKTX
        INTO TABLE IT_VBRP
        FROM VBRP
         FOR ALL ENTRIES IN IT_VBRK
       WHERE VBELN EQ IT_VBRK-VBELN.
    ENDFORM.                    " GET_VBRP_DATA

  • ABAP list display doubt

    Hi ABAP guru's,
            I have a new requirement , in report i have Two internal tables populated with data . when iam executing program. data  in the first internal table should be displayed ( suppose 1st internal table  has 10 records). In the output list screen i kept one button in toolbar . buy pressing that i need second internal table should be displayed from next line. that is second internal table should be displayed from (suppose )11th line of same list output.
           2nd internal table should not displayed immediatley after executing program. once i press button in toolbar. 2nd internal table should be displayed below the first internal table.
                  please reply soon.
    Points guaranteed. 
    Thanks®ards,
    Hemanth.

    Hi atish ,
                Thanks for quick reply, but my requirement is not that, I should not go to secondary list , i have to display the 2nd internal table in the same list. below the the 1st internal table but after i push the button in menu.
                      I hope someone reply's the my query. points are gauranteed.
    Thanks&regards,
    Hemanth

  • Doubt in block list display

    hi all,
    in my object i have displayed the output using alv block list ... when i print that one i am geting each block in seperate page ... but i need to print all in a single page ... please help me out in solving this
    thanks in advance
    lokesh

    Hi Lokesh,
    Refer the sample code:
    CLEAR w_event.
      w_event-name = slis_ev_top_of_page.
      w_event-form = 'TOP_OF_PAGE'.
      APPEND w_event TO i_events1.
      CLEAR w_event.
      w_event-name = slis_ev_top_of_page.
      w_event-form = 'XTOP_OF_PAGE'.
      APPEND w_event TO i_events2.
    DATA: lv_repid LIKE sy-repid.
      lv_repid = sy-repid.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
           EXPORTING
                i_callback_program       = lv_repid
                i_callback_user_command  = 'USER_COMMAND'
                i_callback_pf_status_set = 'PF_STATUS'.
    *-- Vendor Schedule List
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
           EXPORTING
                it_fieldcat = i_field_cat1
                is_layout   = w_lay_out1
                i_tabname   = '<I_TABLE>'
                it_events   = i_events1
           TABLES
                t_outtab    = <i_table>.
    *-- Error Lsit display
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
           EXPORTING
                it_fieldcat = i_field_cat2
                is_layout   = w_lay_out2
                i_tabname   = 'I_ERROR'
                it_events   = i_events2
           TABLES
                t_outtab    = i_error[].
      w_print-reserve_lines = 2.
      w_print-no_print_listinfos = c_x.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
           EXPORTING
                is_print = w_print.
    ENDFORM.                    " f0504_create_list
    Reward points if this Helps.
    Manish

  • Doubt in population of Hirarchical Tree List

    Hai Friends,
    I have Departments like IT,Sales,Market,Accounts in Employee Table.
    I have to populate employee names of all employees department wise in the
    Hirarchical Tree List.
    Initial Hirarchical Tree List
    =============================
    +IT
    +Sales
    +Marketing
    +Acctounts
    When Hirarchical Tree List expands
    ===================================
    - IT
    name1
    name2
    name3
    -Sales
    name1
    name2
    name3
    -Marketting
    name1
    name2
    name3
    -Accounts
    name1
    name2
    name3
    I tried with the code (copied from Forms Help ...) but when i run the form
    I am getting
         FRM-47321 Error(Data used to populate tree is invalid)
    CAN U GIVE CORRECT SOLUTION ..... URGEMT
    i need this population when ever form runs.(when-new-form-instance trigger of form)

    hi madhava,
    see below example:
    1) Start up Form Builder.
    2) Create a form (for example, hiertree).
    3) Create a block manually (for example, block).
    4) Create a canvas and go to the Layout Editor.
    5) Click on the hierarchical tree iconic button and click and drag
    it onto the canvas. This creates a tree item called, for example,
    TREE4.
    6) Create a record group (for example, RECORD_GROUP6) with the
    following code:
    SELECT 1, LEVEL, ENAME, NULL, TO_CHAR(EMPNO)
    FROM EMP
    CONNECT BY PRIOR EMPNO = MGR
    START WITH JOB = 'PRESIDENT'
    7) Go to the property palette of the record group and set the
    property "Record Group Fetch Size" to, for example, 20.
    8) Go to the property palette of the tree item, and select the name
    of the record group under the "Record Group" property.
    9) Go back to the Object Navigator and create a
    WHEN-NEW-BLOCK-INSTANCE trigger with the following code:
    DECLARE
    HTREE ITEM;
    V_IGNORE NUMBER;
    BEGIN
    --TO FIND THE TREE ITSELF.
    HTREE := FIND_ITEM('BLOCK.TREE4');
    V_IGNORE := POPULATE_GROUP('RECORD_GROUP6');
    --TO SET THE RECORD GROUP AND CAUSE THE DATA TO DISPLAY
    FTREE.SET_TREE_PROPERTY(HTREE, FTREE.RECORD_GROUP,
    'RECORD_GROUP6');
    END;
    10) Compile and run the form. Your tree with the information is
    displayed.
    Madhava guess me whom i am?
    good luck

  • Access-list Doubt

    Hi,
    my core switch have total no.of 12 vlans from vlan 1 -12.ip range 192.168.1.0 -192.168.12.0/252
    my requirement is all vlan only communicate with VLAN 1 , not with each other.
    Can someone guide me to configure ACL for this scenarioa.

    If your switch supports vrf, you'd be better going with that. If not, you'll need an acl for every vlan svi. That's going to be very hard to maintain.
    ip access-list ext 102
    permit ip 192.168.2.0 0.0.0.255 192.168.1.0 0.0.0.255
    deny ip any any
    int vlan 2
    ip access-group 102 in
    ip access-list ext 103
    permit ip 192.168.3.0 0.0.0.255 192.168.1.0 0.0.0.255
    deny ip any any
    int vlan 2
    ip access-group 103 in
    Etc...
    HTH,
    John
    *** Please rate all useful posts ***

  • How to find out the list of patches applied without using inventory?

    Hi,
    I have been asked this question once.
    How will you find out the list of patches applied to Oracle Database Home without using commands like opatch lsinventory -detal etc...
    I think registry$history is a view from where we can find out the list of patches applied.
    But I think it will not include all the bug fixes,stand alone or one-off patches.It will mainly list out the CPU patches applied(correct me if I am wrong).
    Thanks,
    Rushi

    Hi;
    Thanks Helios,
    Your welcome
    Could you tell me how do you all senior people manage to find metalink note for almost everything?There is nothing special, For me I just make more search at metalink than googling so after sometimes you started to notice which note could be related wiht issues more clearly.. Just keep searching at metalink and focus what you are searching only.. ;)
    If you could guide me I can do it my self and stop bothering you for some silly doubts.You dont bother me and also I belive the other forum users ;) We are also learning new information wiht user questions ;)
    Regard
    Helios

  • How to populate list in tree view  dynamically

    Hi,
    I am new to  Indesign Plugin creation.
    I want to create list in tree view dynamically.
    I tried wlistboxcomposite sdk sample in indesign cs4.
    I have some doubts in this.
    1. Can i write my own method in  WLBCmpTreeViewAdapter class because it's implements ListTreeViewAdapter
    If it's possible how can i call this method.
    2. In this example they populating static string in constructor like this
    WLBCmpTreeViewAdapter::WLBCmpTreeViewAdapter(IPMUnknown* boss):ListTreeViewAdapter(boss){
    K2Vector<PMString> lists;
    for (int32 i = 0; i< 12; i++){PMString name(kWLBCmpItemBaseKey);name.AppendNumber(i+1);name.Translate();lists.push_back(name);}
    InterfacePtr<IStringListData> iListData(this, IID_ISTRINGLISTDATA);}
    and this list is populating on loading time but my requirement is i have one button "get list" after clicking this button i have to populate the list, how can
    i achieve this.
    Pls do needful.
    Thanks
    Arun

    The TreeViewAdaptor is responsible for mapping your custom data to the tree view itself.  I almost always start by making it return some fixed number of objects with names "item 1" etc. That way you get the tree view working first.
    Then, after you get it laid out and displaying properly, you can worry about using real data.  At that point, you have your adaptor return the actual number of items in your list and each individual item.  Then you can populate your list when you push your button and then invalidate the IControlView of the tree view widget to cause it to redraw.  At that point your adaptor will get called and your data should appear.
    Jon
    "Expert for hire"

Maybe you are looking for