While creating sto i need to create a vat condition type.

Hi friends.
I am creating a STO mm-pricing procedure.
Supplying plant: goa
Receiving plant: UK
I need to create a condition type for VAT 17.5%. to be paid at customs .subsequently refund will be received on assessable value ( Base value).
Hence it is not to be inventorised.
Please give me steps how to configure. and from which condition type to be copied.
Thanks
sitaram

Hi,
What is the taxation procedure you are using ( Taxinn or Taxinj ).
Why do you feel it is different from the regular purchase.
If it is of Taxinj, maintain the same Tax code which comprises of VAT as 17.5% under the invoice tab of PO.
If it is of TAXINN, then maintain conditions for JVRD ie deductable VAT condiiton.
Regards,
DilL

Similar Messages

  • While Sales Order Change , need to create Billing plan Item wise

    Hi ,
    We are using BAPI_SALESORDER_CHANGE for changing item category as well as parallely need to create billing plan item details (FPLT-FKDAT, FPLT-AFDAT, FPLT-NFDAT), Hence Please tell me the Procedure.
    Example: Billing Plan is Depending on Item Category, In my scenario , initially Item category do not have Billing Plan Tab, When we go for BAPI_SALESORDER_CHANGE for changing Item Category to Supported Billing Plan, So How can we update (FPLT-FKDAT, FPLT-AFDAT, FPLT-NFDAT) in Billing Plan Tab for every sales order item.
    Regards
    Jana

    Hi Ravi,
    Can You explain in detail.
    Regards
    Jana

  • WBS element need not to capture specific condition type value in Po

       Hi Gurus,
    example
    we have 2 PO document types a) consignment PO b) standard PO
    if in Consignment PO condition values are
    Basi Value
    100
    Excise
    10
    E cess
    2
    CVD
    4
    Total
    116
    Total = 116 this value goes to WBS commitment line item
    a) but in consignment PO has to be value 116 , and in WBS commitment line items capture only 112 only CVD value 4 need not be capture in wbs commitment line items
    b) standard PO & wbs commitment line items need to be capture 116 only
    so please can any one give solution

    Hi,
    As I know, there is not any standard functionality for excluding commitments for certain condition type. On the other hand, you can make that line item as free issue if you dunno want to generate commitments.
    Also let other experts comment on this.
    Regards
    Shishir

  • STO-PO-Vendor (supplying Plant) pickup in condition Type (Freight)

    Hi,
    I am doing STO PO, system is automatically picking the vendor code (supplying Plant) in condition type (Freight) in condition tab.
    I want to system should not pick the vendor code in condition type (freight). It should be shows blank.
    Please guide me.
    Regards,
    Devendra

    Hi,
    Check transaction variant  is used which inturn you cretae STO PO, system is automatically picking the vendor code (supplying Plant).
    NOTE:Transaction variants  is used for to hide fields, menu functions, screens, to supply individual fields with default values or to change the ready for input status of one or more fields.Check in T.code: SHD0
    Regards,
    Biju K

  • Create source structure -Need to create flat file or table?

    Hi All,
    Can any one let me know what needs to be created?? it should be flat file or a table on the data base?
    I am going to reecive flat files from the source system??
    If it is a flat file then is there any way to create flat file structure in the DS using SQL query statements?
    Thanks
    Rajeev

    you can create table same as file structure and use the table instead, but how are you going to populate the table with the data from flat file ? you will need some application to do that, you can do this is DS by creating a file format and using the source file as input for that file format and create a template table as target for the database datastore to wihch you want to load data from this source file, and use that table as source in other dataflows
    you can also create the table with the same structure in the database and import that in Datastore and use that as target for the source file

  • Need to Create a Check for Plant in WBS & Plant in Network

    Dear Guru's,
    While creating Project (CJ01) my users are creating in a Plant, and while creating network for the same project/WBS, they are using different Plant Code.
    Since my Profit center is related to the plant in CJ01,
    and because of wrong Plant in network, all my PR/ PO is going in a different Profit center, which is creating a huge problem while auditing.
    I need to Create a Check for Plant in WBS & Plant in Network...!!
    Kindly suggest me the ways to do it and how to do it...

    Hi Deepa,
    The Check you are trying to create between Plant defined at Project def and network level that should be same can be achieved through validation at the network level by using a user exit at network level.
                    While creating the network you can change the plant value not equal to the value at proj def/network profile may be one of the reason is since the network type is defined for more than one plant (OPUV).
                    While creating validations at network level we do not have the option of setting the prerequisite/check  using WBS or Proj def fields (i.e. PROJ-, PRPS- fields)    so we need to create a user exit at the network level.
    I am not sure but logically u can have a user exit for both prerequisite and check steps of the validation.
    You need to create the user exit in program ZGGBR000.
    Please take help from your Abaper for the same.
    OPSI-Network header-Validation- Step - Prerequisite u2013 Check u2013 Message.
    Prerequisite
    If Proj Profile = u2018XXXu2019 and Network Profile = u2018XXu2019 (or as per your logic if need be use a exit)
    CHECK.
    PROJ-WERKS = CAUFVD-WERKS   (This logic needs to be defined in user exit and set the same user exit at the check.)
    Once you define the user exit in ZGGBR000, it will be available in the tab u2018exitsu2019 at the Prerequisite and Check levels.
    The name of the form pool (e.g., ZGGBR000) that contains your user exit must be stored in table T80D.
    It is important that you make declare the code generation program for your user exit; how many and what type of parameters you are using for the user exit. You do this by entering your newly defined user exits in the form routine GET_EXIT_TITLES. Found in program ZGGBR000.
    Check with your Abaper to check on all the aboveu2026
    Message:
    Plant at Network level should be same as at Project def level.
    Hope it helps you,All the best..
    Regards
    Vinayak.

  • Needs maintain Quality testing condition type in order

    Hi,
    There is  a scenario for maintaining the quality testing charges after PGI. in cash sales customer. after they are updating in the invoice. so there is difference in order value and invoice value,
    This difference needs to avoid.
    This condition type (like ZQTC) needs to indicate the user at the time of sales order processing.
    Please help me for configure the same,
    Note: this condition type should be maintained only for Quality testing charges applicable for cash sale customer.
    Thanks and Best regards,
    Muralidharan S
    9841381700.

    resolved by self

  • Delivery quantity need not be exceed, After creating STO-PO in TCODE  VL02N

    Hello Gurus,,
    Greetings!!!!
    Tcode- VL02N...
    While we do PGI / SAVE after the changing the delivery quantity in Tab "Picking", it need to be checked that delivery quantity not be exceed then quantity entered while STO PO has been created for that particular PO.
    Means, in transaction VL02n  when we changes the Delivery quantity of tab "Picking" it should be equal or less then PO quantity,...
    When user put more picking quantity then it shows error that "it has been exceed" and it is working properly as well......
    But Problem I do have that user increase the Delivery quantity and put the picking quantity in terms of it so system is accepting this things..... but the Stock transport Order (STO) of that particular Purchase Order quantity is same as when created....
    And the requirement is that it is not increased then STO PO quantity.....
    So please please help to find out this solution whether this is solved using  BAdI or USER_EXIT....or any other solution please gurus ....I am facing this problem since long but can not find the solution ....I dont have that much experince in SAP-ABAP

    Hi,
    See Note 415716 - User exits in delivery processing. I think that USEREXIT_READ_DOCUMENT can work for your requirement. The question is fix a good filter to avoid problems in performance. For instance:
    CHECK ylikp-lfart = 'NL'.
    CHECK  t180-trtyp = 'V' .   "ONLY CHANGE
    and so on.
    Set the check:
    IF xlips-lfimg > ylips-lfimg.
      MESSAGE e(xxx)yy with....
    ENDIF.
    Remember check the UoM. If you don't have experience with ABAP, look for an ABAPer.
    If you don't have experience with userexits, please read carefully notes 381348 Using user exit, customer exit, VOFM in SD and 178328 Problems due to incorrect user exits in SD.
    I hope this helps you
    Regards
    Eduardo

  • Exit/ BAdi to change delivery priority in ME21n while creating STO

    Hi,
    I'm trying to create STO through transaction ME21N. After entering the header data and material no. when i press enter i'm able to see the item level data. Here in item details, under tab 'Shipping' there is a field 'Delivery priority'. I want to influence this field. Is there any user exit / BAdi available that can be used to modify this field when i press enter after entering the header data and material??( i.e. Before Save).
    I have tried creating implementation in BAdi 'ME_PROCESS_PO_CUST'. But during testing control was not stopping at the break-point.
    Please suggest me solution to this problem.

    Hi
    Create an Implementation ME_PROCESS_PO_CUST  (like   Z_ME_PROCESS_PO_CUST) and check the method
    IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM     Processing of Item Data
    and keep a break-point   u have SET_SHIPPING_DATA  and GET_SHIPPING_DATA Methods
    INterface Name  :::IF_PURCHASE_ORDER_ITEM_MM
    EKPV--LPRIO  for Delivery Priority
    surya

  • Not able to create STO with serial assignment for returning defective goods

    Hi all,
    I am facing problem while creating STO (641 movement) for returning defective engines which are manufactured at client plant.
    The actual problem is:
    My client manufactures engine with serial no. profile attached.The steps which is followed is (all the movements are reflected in Equipment master ie03 )
    1. They create Stock using Assy. Back flush (131 movement)
    2. They do Sloc transfer using 311 movement.
    3. They send the engines to other plant by raising STO (641 movement)
    4. The Receiving Plant is doing GR (101 movement) using Tcode migo and while doing GR they delete the Serial no attached to the particular engine against material manually.
    5. Everything was going fine till some days before some engines were found defective, now they want to raise return STO against the sending plant to send back those defective engines.
    I had simulated the same case in QA client, but after GR when i am trying to raise return STO by attaching serial no. it is throwing error like check Equipment status i had tried all one but nothing worked.
    Your fast and reliable solutions needed.
    Thanks and Regards,
    Amar

    Hi,
    For converting PR to PO in the configuration you need to first set up which PR Document Type can be converted to which PO type.
    You can check if the PR Doc type is assigned to PO doc type here
    SPRO-IMG-Materials Management-Purchasing-Purchase Order(Purchase requisition)-Define Document Types
    And if you need to prevent the referencing of PR for PO creation then you assign parameter EFB to the user role. This is done by BASIS.
    You can whether your role has been assigned to any of the parameters. Ask you basis team to find this out .Tell the basis team your User ID and ask them which Parameter is assigned to your role. Give them the following configuration path if need
    SPRO-IMG-MM-Purchasing-Authorisation Managment-Define Function Authorisation for Buyers
    Regards,
    Niranjan

  • New to Mac - do I need to create a start-up disc?

    Hi
    I've recently switched over to an iMac from PC - I've worked with macs but I didn't have to deal with back-ups myself (they were all networked)
    I have an external HDD which uses Time Machine to back-up - I did hope to use that as back-up and keep a stash of stock photos (large file!) on there too but I've heard that it's not a good idea to do that (even if I partitioned the drive)
    My main issue is that I've heard that the back-ups cannot be used as a 'start-up' disc in case something happens to the iMac - so can someone let me know how I should go about doing this? (I didn't get any discs with the iMac so what do I do if something does happen?)
    and while I'm asking questions... do you think I should get another external HDD? one to use for photo storage etc (I work professionally with Photography so they are large files) and then use the other for time-machine?
    can you use a smaller sized HDD for time-machine? (the external drive I have now is 500GB -
    Model Name: iMac
    Model Identifier: iMac8,1
    Processor Name: Intel Core 2 Duo
    Processor Speed: 2.8 GHz
    Memory: 4 GB
    Hard Drive 320GB

    I've moved over from a PC to a MBP since May, and have dealt with similar backup issues concerning backups of software projects (also large files) daily. So I can share my thoughts and experience here.
    1) I would keep the photo file originals on a separate external USB HDD (not the Time Machine backup) with Read-Only attribute. When I copy files from my Mac to an external disk drive, I think it automatically takes on an archive attribute (read-only). With Leapord 10.5, I think that drive can even be in NTFS format (as used by Windows XP & Vista).
    Since HDD eventually fails, I would, over time, back up these high resolution photos on Dual density (8GB) DVDs.
    Because it'll probably take too many DVDs to back up al the photos, an easier option is to purchase an external backup drive systems that automatically back up a copy of your data on its own separate physical HDD package inside the same box. At the minimum, the box would actually contain two identical size HDD, but you get to use only one. The second drive is for the automatic backup. These boxes are called RAIDs, and a decent one will notify you when it detects a disk error on any one of the two drives so you can preventively replace the faulty drive to give your data full protection. The best I've seen cost $800 list for a TeraByte of protected disk storage. This box actually uses multiple data redundancy schemes to give you flexibility in buying HDDs as your need grows, but you do need to start with at least two drives for data protection. See...
    http://www.drobo.com/WheretoBuy/Index.html
    A review of its abilities and limitations was published on ZDNet..
    http://blogs.zdnet.com/Ou/?p=508
    The author of the review called himself his first review harsh, and I agree since the limitations was due to physics and user selection of disk drives that were installed, no design.
    2) For any photo files that I am manipulating daily, I would keep them on my Mac so that Time Machine so that every revision I make is backed up.
    As far as whether you need to create a start-up disk, I believe the answer is no. From Apples own online documentation, you can recovering your Mac installation from Time Machine. I understand that if you allow Time Machines to back up up everything (default setting), the procedure to full system recovery is:
    1) Reformat the boot disk and restore MacOS X from the CDs that came with the computer.
    2) Connect the external Time Machine backup drive, bring up Time Machine and restore. You can find the details by searching the Time Machine discussions. I saw some users even tried the procedure out for real.
    I've consider using one of the many backup software to back up a full disk image of my Mac, so I re-install my Mac with that disk image. The problem with this is it's a duplicating backup scheme: twice the amount of work and cost. And when the mac crashes, which one backup do I use?

  • Need to create a driver class for a program i have made...

    hey guys im new to these forums and someone told me that i could get help on here if i get in a bind...my problem is that i need help creating a driver class for a program that i have created and i dont know what to do. i need to know how to do this is because my professor told us after i was 2/3 done my project that we need at least 2 class files for our project, so i need at least 2 class files for it to run... my program is as follows:
    p.s might be kinda messy, might need to put it into a text editor
    Cipher.java
    This program encodes and decodes text strings using a cipher that
    can be specified by the user.
    import java.io.*;
    public class Cipher
    public static void printID()
    // output program ID
    System.out.println ("*********************");
    System.out.println ("* Cipher *");
    System.out.println ("* *");
    System.out.println ("* *");
    System.out.println ("* *");
    System.out.println ("* CS 181-03 *");
    System.out.println ("*********************");
    public static void printMenu()
    // output menu
    System.out.println("\n\n****************************" +
    "\n* 1. Set cipher code. *" +
    "\n* 2. Encode text. *" +
    "\n* 3. Decode coded text. *" +
    "\n* 4. Exit the program *" +
    "\n****************************");
    public static String getText(BufferedReader input, String prompt)
    throws IOException
    // prompt the user and get their response
    System.out.print(prompt);
    return input.readLine();
    public static int getInteger(BufferedReader input, String prompt)
    throws IOException
    // prompt and get response from user
    String text = getText(input, prompt);
    // convert it to an integer
    return (new Integer(text).intValue());
    public static String encode(String original, int offset)
    // declare constants
    final int ALPHABET_SIZE = 26; // used to wrap around A-Z
    String encoded = ""; // base for string to return
    char letter; // letter being processed
    // convert message to upper case
    original = original.toUpperCase();
    // process each character of the message
    for (int index = 0; index < original.length(); index++)
    // get the letter and determine whether or not to
    // add the cipher value
    letter = original.charAt(index);
    if (letter >='A' && letter <= 'Z')
    // is A-Z, so add offset
    // determine whether result will be out of A-Z range
    if ((letter + offset) > 'Z') // need to wrap around to 'A'
    letter = (char)(letter - ALPHABET_SIZE + offset);
    else
    if ((letter + offset) < 'A') // need to wrap around to 'Z'
    letter = (char)(letter + ALPHABET_SIZE + offset);
    else
    letter = (char) (letter + offset);
    // build encoded message string
    encoded = encoded + letter;
    return encoded;
    public static String decode(String original, int offset)
    // declare constants
    final int ALPHABET_SIZE = 26; // used to wrap around A-Z
    String decoded = ""; // base for string to return
    char letter; // letter being processed
    // make original message upper case
    original = original.toUpperCase();
    // process each letter of message
    for (int index = 0; index < original.length(); index++)
    // get letter and determine whether to subtract cipher value
    letter = original.charAt(index);
    if (letter >= 'A' && letter <= 'Z')
    // is A-Z, so subtract cipher value
    // determine whether result will be out of A-Z range
    if ((letter - offset) < 'A') // wrap around to 'Z'
    letter = (char)(letter + ALPHABET_SIZE - offset);
    else
    if ((letter - offset) > 'Z') // wrap around to 'A'
    letter = (char)(letter - ALPHABET_SIZE - offset);
    else
    letter = (char) (letter - offset);
    // build decoded message
    decoded = decoded + letter;
    return decoded;
    // main controls flow throughout the program, presenting a
    // menu of options the user.
    public static void main (String[] args) throws IOException
    // declare constants
    final String PROMPT_CHOICE = "Enter your choice: ";
    final String PROMPT_VALID = "\nYou must enter a number between 1" +
    " and 4 to indicate your selection.\n";
    final String PROMPT_CIPHER = "\nEnter the offset value for a caesar " +
    "cipher: ";
    final String PROMPT_ENCODE = "\nEnter the text to encode: ";
    final String PROMPT_DECODE = "\nEnter the text to decode: ";
    final String SET_STR = "1"; // selection of 1 at main menu
    final String ENCODE_STR = "2"; // selection of 2 at main menu
    final String DECODE_STR = "3"; // selection of 3 at main menu
    final String EXIT_STR = "4"; // selection of 4 at main menu
    final int SET = 1; // menu choice 1
    final int ENCODE = 2; // menu choice 2
    final int DECODE =3; // menu choice 4
    final int EXIT = 4; // menu choice 3
    final int ALPHABET_SIZE = 26; // number of elements in alphabet
    // declare variables
    boolean finished = false; // whether or not to exit program
    String text; // input string read from keyboard
    int choice; // menu choice selected
    int offset = 0; // caesar cipher offset
    // declare and instantiate input objects
    InputStreamReader reader = new InputStreamReader(System.in);
    BufferedReader input = new BufferedReader(reader);
    // Display program identification
    printID();
    // until the user selects the exit option, display the menu
    // and respond to the choice
    do
    // Display menu of options
    printMenu();
    // Prompt user for an option and read input
    text = getText(input, PROMPT_CHOICE);
    // While selection is not valid, prompt for correct info
    while (!text.equals(SET_STR) && !text.equals(ENCODE_STR) &&
    !text.equals(EXIT_STR) && !text.equals(DECODE_STR))
    text = getText(input, PROMPT_VALID + PROMPT_CHOICE);
    // convert choice to an integer
    choice = new Integer(text).intValue();
    // respond to the choice selected
    switch(choice)
    case SET:
         // get the cipher value from the user and constrain to
    // -25..0..25
    offset = getInteger(input, PROMPT_CIPHER);
    offset %= ALPHABET_SIZE;
    break;
    case ENCODE:
    // get message to encode from user, and encode it using
    // the current cipher value
    text = getText(input, PROMPT_ENCODE);
    text = encode(text, offset);
    System.out.println("Encoded text is: " + text);
    break;
    case DECODE:
    // get message to decode from user, and decode it using
    // the current cipher value
    text = getText(input, PROMPT_DECODE);
    text = decode(text, offset);
    System.out.println("Decoded text is: " + text);
    break;
    case EXIT:
    // set exit flag to true
    finished = true ;
    break;
    } // end of switch on choice
    } while (!finished); // end of outer do loop
    // Thank user
    System.out.println("Thank you for using Cipher for all your" +
    " code breaking and code making needs.");
    }

    My source in code format...sorry guys :)
       Cipher.java
       This program encodes and decodes text strings using a cipher that
       can be specified by the user.
    import java.io.*;
    public class Cipher
       public static void printID()
          // output program ID
          System.out.println ("*********************");
          System.out.println ("*       Cipher      *");
          System.out.println ("*                   *");
          System.out.println ("*                          *");
          System.out.println ("*                   *");
          System.out.println ("*     CS 181-03     *");
          System.out.println ("*********************");
       public static void printMenu()
          // output menu
          System.out.println("\n\n****************************" +
                               "\n*   1. Set cipher code.    *" +
                               "\n*   2. Encode text.        *" +
                               "\n*   3. Decode coded text.  *" +
                               "\n*   4. Exit the program    *" +
                               "\n****************************");
       public static String getText(BufferedReader input, String prompt)
                                           throws IOException
          // prompt the user and get their response
          System.out.print(prompt);
          return input.readLine();
       public static int getInteger(BufferedReader input, String prompt)
                                           throws IOException
          // prompt and get response from user
          String text = getText(input, prompt);
          // convert it to an integer
          return (new Integer(text).intValue());
       public static String encode(String original, int offset)
          // declare constants
          final int ALPHABET_SIZE = 26;  // used to wrap around A-Z
          String encoded = "";           // base for string to return
          char letter;                   // letter being processed
          // convert message to upper case
          original = original.toUpperCase();
          // process each character of the message
          for (int index = 0; index < original.length(); index++)
             // get the letter and determine whether or not to
             // add the cipher value
             letter = original.charAt(index);
             if (letter >='A' && letter <= 'Z')          
                // is A-Z, so add offset
                // determine whether result will be out of A-Z range
                if ((letter + offset) > 'Z') // need to wrap around to 'A'
                   letter = (char)(letter - ALPHABET_SIZE + offset);
                else
                   if ((letter + offset) < 'A') // need to wrap around to 'Z'
                      letter = (char)(letter + ALPHABET_SIZE + offset);
                   else
                      letter = (char) (letter + offset);
             // build encoded message string
             encoded = encoded + letter;
          return encoded;
       public static String decode(String original, int offset)
          // declare constants
          final int ALPHABET_SIZE = 26;  // used to wrap around A-Z
          String decoded = "";           // base for string to return
          char letter;                   // letter being processed
          // make original message upper case
          original = original.toUpperCase();
          // process each letter of message
          for (int index = 0; index < original.length(); index++)
             // get letter and determine whether to subtract cipher value
             letter = original.charAt(index);
             if (letter >= 'A' && letter <= 'Z')          
                // is A-Z, so subtract cipher value
                // determine whether result will be out of A-Z range
                if ((letter - offset) < 'A')  // wrap around to 'Z'
                   letter = (char)(letter + ALPHABET_SIZE - offset);
                else
                   if ((letter - offset) > 'Z') // wrap around to 'A'
                      letter = (char)(letter - ALPHABET_SIZE - offset);
                   else
                      letter = (char) (letter - offset);
             // build decoded message
             decoded = decoded + letter;
          return decoded;
       // main controls flow throughout the program, presenting a
       // menu of options the user.
       public static void main (String[] args) throws IOException
         // declare constants
          final String PROMPT_CHOICE = "Enter your choice:  ";
          final String PROMPT_VALID = "\nYou must enter a number between 1" +
                                      " and 4 to indicate your selection.\n";
          final String PROMPT_CIPHER = "\nEnter the offset value for a caesar " +
                                       "cipher: ";
          final String PROMPT_ENCODE = "\nEnter the text to encode: ";
          final String PROMPT_DECODE = "\nEnter the text to decode: ";
          final String SET_STR = "1";  // selection of 1 at main menu
          final String ENCODE_STR = "2"; // selection of 2 at main menu
          final String DECODE_STR = "3"; // selection of 3 at main menu
          final String EXIT_STR = "4";  // selection of 4 at main menu
          final int SET = 1;            // menu choice 1
          final int ENCODE = 2;         // menu choice 2
          final int DECODE =3;          // menu choice 4
          final int EXIT = 4;           // menu choice 3
          final int ALPHABET_SIZE = 26; // number of elements in alphabet
          // declare variables
          boolean finished = false; // whether or not to exit program
          String text;              // input string read from keyboard
          int choice;               // menu choice selected
          int offset = 0;           // caesar cipher offset
          // declare and instantiate input objects
          InputStreamReader reader = new InputStreamReader(System.in);
          BufferedReader input = new BufferedReader(reader);
          // Display program identification
          printID();
          // until the user selects the exit option, display the menu
          // and respond to the choice
          do
             // Display menu of options
             printMenu(); 
             // Prompt user for an option and read input
             text = getText(input, PROMPT_CHOICE);
             // While selection is not valid, prompt for correct info
             while (!text.equals(SET_STR) && !text.equals(ENCODE_STR) &&
                     !text.equals(EXIT_STR) && !text.equals(DECODE_STR))       
                text = getText(input, PROMPT_VALID + PROMPT_CHOICE);
             // convert choice to an integer
             choice = new Integer(text).intValue();
             // respond to the choice selected
             switch(choice)
                case SET:
                // get the cipher value from the user and constrain to
                   // -25..0..25
                   offset = getInteger(input, PROMPT_CIPHER);
                   offset %= ALPHABET_SIZE;
                   break;
                case ENCODE:
                   // get message to encode from user, and encode it using
                   // the current cipher value
                   text = getText(input, PROMPT_ENCODE);
                   text = encode(text, offset);
                   System.out.println("Encoded text is: " + text);
                   break;
                case DECODE:
                   // get message to decode from user, and decode it using
                   // the current cipher value
                   text = getText(input, PROMPT_DECODE);
                   text = decode(text, offset);
                   System.out.println("Decoded text is: " + text);
                   break;
                case EXIT:
                   // set exit flag to true
                   finished = true ;
                   break;
             } // end of switch on choice
          } while (!finished); // end of outer do loop
          // Thank user
          System.out.println("Thank you for using Cipher for all your" +
                             " code breaking and code making needs.");
    }

  • What is the need of creating partner functions for sales document type.

    Hi SAP (SD-GURUS),
    Actually we create partner functions  before creating customer ex: sold to party, ship to party, bill to party, and payer.
    These partner functions are going to be copied into sales order while processing sales order.
    Again what is the need of creating partner functions for sales document type.
    Thanks&Regards
    sreenivas peruru

    There are some Partners you could enter at Sales ORder Level. E.g. Sales Person, Employee Responsible, Forwarding Agent, Broker, etc.
    Thus these partner Determination need to be carried out at Sales Order Level & not at Customer Master level.
    So we have to configure partner Determination for various levels e.g. Customer Master, Sales Order, Delivery level etc...
    Hope this helps...
    THanks,
    Jignesh Mehta

  • solved pls help needed in creating template

    hi frs
    i have created a template need some modification to be done my xml output looks like below
    off            hours              q1           q2          q3         avg
    aaa          10                    1            2            3            2
    bbb          20                    2            4             0           3i have done everything but my doubt is while creating avg
    to get average i used the following code
    <?(xdoxslt:get_variable($_XDOCTX,'Q1_COUNT')+xdoxslt:get_variable($_XDOCTX,'Q2_COUNT')+xdoxslt:get_variable($_XDOCTX,'Q3_COUNT') 
    +xdoxslt:get_variable($_XDOCTX,'Q4_COUNT')) div 3?> i have used div 3 but my requirement is like if any thing is 0 for ex if q1= 2 and q2=4 and q3=0 then my formula for avg is like below
    <?(xdoxslt:get_variable($_XDOCTX,'Q1_COUNT')+xdoxslt:get_variable($_XDOCTX,'Q2_COUNT')+xdoxslt:get_variable($_XDOCTX,'Q3_COUNT') 
    +xdoxslt:get_variable($_XDOCTX,'Q4_COUNT')) div 2?> like wise if we have values like q1=1 ,q2=0 ,q3=0
    then
    <?(xdoxslt:get_variable($_XDOCTX,'Q1_COUNT')+xdoxslt:get_variable($_XDOCTX,'Q2_COUNT')+xdoxslt:get_variable($_XDOCTX,'Q3_COUNT') 
    +xdoxslt:get_variable($_XDOCTX,'Q4_COUNT')) div 1?>how to get it.
    pls help.
    thanks
    basa
    Message was edited by:
    Badsha
    Message was edited by:
    Badsha
    Message was edited by:
    Badsha

    Hi,
    I dont know the solution for this, but heres a work arround
    //create new label some where else in the excel sheet as shown below
    Label lblcmbdata;
    for(int i=0; i<1000; i++)
                 lblcmbdata = new Label(75, i, (i+1)+" satish", format);
                 sheet1.addCell(lblcmbdata);
    }//set the validation range as shown below
    writableCellFeature.setDataValidationRange(75,0,75,1000);
    Label cmb = null;
    cmb = new Label(0, 1, "Select",format);
    cmb.setCellFeatures(writableCellFeature);
    sheet.addCell(cmb);this will create a combo list with 1000 values
    also you can keep the data to be populated in the different sheet in same workbook by creating a named range as below
    workbook.addNameArea("cmbdata", sheet1, 0, 0, 0, 1000);
    // then fill the data in sheet1
    Label lblcmbdata;
    for(int i=0; i<1000; i++)
                    lblcmbdata = new Label(0, i, (i+1)+" satish", format);
                    sheet1.addCell(lblcmbdata);
    //set the validation named range as below
    writableCellFeature.setDataValidationRange("cmbdata");
    Label cmb = null;
    cmb = new Label(0, 1, "Select",format);
    cmb.setCellFeatures(writableCellFeature);
    sheet.addCell(cmb);Thanks and Regards
    Satish

  • Help needed for creating 1 invoice for 2 different material types.

    Dear, Gurus
    I really need help here I have spent 3 days cracking my head trying to solve the problem. Problem is client was creating invoice with reference to order and while invoice was being made it would cause an invoice split. The materials involved are Trading Good and Service Material. They would like only 1 invoice. Note nothing was different except material group and item cat. of the material. payment terms billing dates partners everything is same.
    Current item config for Trading Good material is ZMPI-project item cat.
    Copying requirements   023  Item ord.ref. w/o AZ        Billing quantity     A
    Data VBRK/VBRP         000                                           Pos./neg. quantity   +
                                                                                    Pricing type         K
                                                                                    PricingExchRate type
                                                                                    Price source
    Current item config for service Material is TAD-Service
    Copying requirements   002  Item/order-related          Billing quantity     A
    Data VBRK/VBRP         001  Inv.split (sample)            Pos./neg. quantity   +
                                                                                    Pricing type         G
                                                                                    PricingExchRate type
                                                                                    Price source
    I was told to change Data VBRK/VBRP to 003 One Invoice which I did in both of these item cat. and yes they worked perfectly but at time of creating the invoice for service material the qty that showed was 11. Note: In sales order it is 1 qty. So I went back into the config of item cat TAD and changed copying requirement to 023 instead of 002 but nothing changed. Seems a qty of 10 is referencing something else which I have no idea what or where it is picking this up from. Just to see or test things I went into the sales order and tried changing the service material qty then a weird popup appears and says service order 12344456 has been blocked. (Seriously I have no idea why this would happen or should be existing at all.) Even if for some reason it is being referenced the service order that is existing is qty 1.
    I really really do need help and if someone can help me that would be god sent.
    Regards, Ali

    You did not mention what value is maintained in the field billing quantity in the copy control->Item settings. Check for the service item, what value is assigned. Put value A and re-test.
    Note that whenever you change any settings in configuration side, you need to create a new documents to test the results of the settings. You should not use the existing documents.
    When you say the document is blocked, then check the status of the sales order to find the reason for blocking (like credit block, approval etc)..
    Regards,

Maybe you are looking for

  • Set password for messaging lumia 800

    hi, i have a nokia lumia 800 with windows phone 7.8. there is a way or application that can set password for messaging, when I or another person want to acces "messaging" it must to insert password, a pin with 4 digits for example. thank you! Solved!

  • ORA-01652 due to a SELECT DISTIINCT...ORDER BY

    Hi all, the query below fill my 32GB temporary tablespace and I get an ORA-01652. SELECT DISTINCT x.nuaud, TO_CHAR (x.times, 'DD/MM/YY HH24:MI'), x.inde1,                 x.inde2, x.inde3, x.inde4, NVL (y.litab, '????'),                 NVL (x.useru,

  • Illustrator 3D Revolve  - getting only black 3D

    After doing everything by the book, and giving different sections different colors, I go to Effects 3D Revolve - but get only totally black 3D, no other colors?

  • Desktop folders

    Everytime I open one of my desktop folders, all the other folders and documents within the folder are all jumbled and I have to reorganize them again. This is very irritating. What can I do to 'lock' or secure the movement of items within the folders

  • I have Itunes 10.6.3, and the update doesnt work on apple? Help!!

    I have Itunes 10.6.3, and the update doesnt work on apple? Help!!