Condition Checking with " IF " statement....

Hi All,
In one of my requirement ,the existing scenario is like this: IF currency is USD, then call subroutine X
ELSE call subroutine Y. i.e  if po_headers-waers = 'USD'
                                         Perform fill_bdc_table using  ' '  'RV61A-KOEIN(01)' 'US4'.
                                         else.
                                         Perform fill_bdc_table using  ' '  'RV61A-KOEIN(01)'  po_headers-waers .
                                         endif.
(The above code first check if  po_header currency value is 'USD' then it calls subroutine to convert the currency to US4,else it calls other subroutine to convert currency as per po_header currency value.) 
Now my new requirement is : if po_header currency value is USD and po item value(po_items-netpr) is greater than '10000000.00', then call subroutine to convert it into USD, else for po_header currency value USD and po item value(po_items-netpr) is lesser than '10000000.00', call subroutine to convert into US4(as written above US4 code line).
I have inserted code for the condition like this:
                                                                                if po_headers-waers = 'USD'
                                             and po_items-netpr GE '10000000.00'.
                                         Perform fill_bdc_table using  ' '  'RV61A-KOEIN(01)'  po_headers-waers.
                                      else.
                                         Perform fill_bdc_table using  ' '  'RV61A-KOEIN(01)'  'US4'.
                                          endif.
But it only satisfies one condition i.e for po_items-netpr >= '10000000.00' with currency as USD , it is converting to USD,but for  po_items-netpr < '10000000.00' with currency as USD, it is not converting to US4.where i am missing the steps? can you all through some light.
Thanx.
Deb

hi,
Modify the code as following.
if po_headers-waers = 'USD' .
  if po_items-netpr GE '10000000.00'.
    Perform fill_bdc_table using ' ' 'RV61A-KOEIN(01)' po_headers-waers.
  else.
    Perform fill_bdc_table using ' ' 'RV61A-KOEIN(01)' 'US4'.
  endif.
endif.
Regards
Sharath

Similar Messages

  • Negative Condition checking in read statement

    Hi,
    i have table, which i have to read,  key on which i am going to read that will be determined dynamically. now i have to check the value for the key field is initial or not. i can't use a loop here as it doesn't allow me to mention where condition field dynamically.
    thanks & regards,
    prabhu

    Hi use this:
    DATA: BEGIN OF it OCCURS 0,     "your dynamic table
            field1 TYPE c,
            field2 TYPE c,
          END OF it.
    it-field1 = '1'.
    it-field2 = 'A'.
    APPEND it.
    it-field1 = ''.
    it-field2 = 'B'.
    APPEND it.
    it-field1 = '2'.
    it-field2 = 'C'.
    APPEND it.
    FIELD-SYMBOLS: <struct> TYPE ANY,
                   <comp>   TYPE ANY.
    LOOP AT it ASSIGNING <struct>.   "loop at your dynamic table
      ASSIGN COMPONENT 'FIELD1' OF STRUCTURE <struct> TO <comp>.   "FIELD1 is determined dynamically
      IF sy-subrc = 0 AND <comp> is not initial.  
        WRITE <comp>.   "will write out <comp> for each entry which has non initial value in <comp> (here FIELD1)
      ENDIF.
    ENDLOOP.
    Please note that your <lfs> must hold name 'FIELD1' inside, than you can replace it with below code
      ASSIGN COMPONENT <lfs> OF STRUCTURE <struct> TO <comp>. 
    Regards
    Marcin
    One thing to be added here:
    You can't read table comparing its key field with negative condition NE , only comparison EQ are allowed in READ TABLE statement, that's why I chose above approach.
    Edited by: Marcin Pciak on May 26, 2009 4:51 PM

  • Multiple condition check using if statement.

    Hi
    i NEED to check two conditions using if statment. I was wondering whether it is possible.
    say fields zx and zy in an internal table itab. if one of those is intiial i have to display a message.
    i tried this way
    if itab-zx or itab-zy is initial.
    error message.
    endif.
    It gives me error in syntax check.
    I think i can check for first field using if and second one with elseif but for that matter of fact i have like 10 fields .out of which even one is initial i have to throw a message saying 'DATA CANNOT BE SAVED'.
    Please suggest me how to go about this.
    Thanks in advance.

    Hi Swathi,
    You have to loop your internal table and then check.
    Try this code.
    LOOP AT itab.
      IF itab-z1 IS INITIAL OR
         itab-z2 IS INITIAL OR
         itab-z3 IS INITIAL OR
         itab-z4 IS INITIAL OR
         itab-z5 IS INITIAL OR
         itab-z6 IS INITIAL OR
         itab-z7 IS INITIAL OR
         itab-z8 IS INITIAL OR
         itab-z9 IS INITIAL OR
         itab-z10 IS INITIAL.
        MESSAGE 'DATA CANNOT BE SAVED' TYPE 'E'.
      ELSE.
        " Processing if none of the fields are Initial
      ENDIF.
    ENDLOOP.
    Regards,
    Arun Sambargi.

  • Conditionally checking checkboxes

    Hi.
    I need a checkbox for which the checking operation is conditional -- in certain illegal states of the containing frame and its components none of the checkboxes should change their state. I do not want to use checkbox.setEnabled(false). The changeListener does not sound good either.
    (Also I had to prevent combobox popup from appearing on same conditions. I was able to solve that by implementing my own ComboBoxUI with show() method modified. I can't think of a similar approach for the checkboxes at the moment.)
    Any ideas how to do it?

    That sure is an interesting link, rkconner, thank you, I think I'll need to read something like this soon.
    As for current case -- I have a really complex page (lots and lots of them, actually), with some fields disabled, and others enabled. Some fields need verification and the focus (generally) should not be able to leave such field unless the field value is legal. The legality is determined by querying a remote database.
    When I click an enabled checkbox, the verify() method for recently focused field starts. If the remote query returns negative response, I shouldn't be able to change the checkbox value, until the recent field is considered legal. So, I can't use setEnabled(false) for the checkbox, because, when I change the illegal value to a legal one, the checkbox should become changable instantly. I mean, I should be able to launch the verification process by clicking the checkbox.
    That's why I'm looking for another solution. Still looking :)

  • HT201210 hai.can i check with u..i forgot my password..n its stated phone disabled n connect to itunes..so how do i continue from here..n is my data still in my phone..thanks

    hai.can i check with u..i forgot my password..n its stated phone disabled n connect to itunes..so how do i continue from here..n is my data still in my phone..thanks

    If You Are Locked Out Or Have Forgotten Your Passcode
    iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
    iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
    iOS- Understanding passcodes
         If you have forgotten your Restrictions code, then follow the instructions
         below but DO NOT restore any previous backup. If you do then you will
         simply be restoring the old Restrictions code you have forgotten. This
         same warning applies if you need to restore a clean system.
    A Complete Guide to Restore or Recover Your iDevice (if You Forget Your Passcode)
    If you need to restore your device or ff you cannot remember the passcode, then you will need to restore your device using the computer with which you last synced it. This allows you to reset your passcode and re-sync the data from the device (or restore from a backup). If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present. Refer to Updating and restoring iPhone, iPad and iPod touch software.
    Try restoring the iOS device if backing up and erasing all content and settings doesn't resolve the issue. Using iTunes to restore iOS devices is part of standard isolation troubleshooting. Restoring your device will delete all data and content, including songs, videos, contacts, photos, and calendar information, and will restore all settings to their factory condition.
    Before restoring your iOS device, Apple recommends that you either sync with iTunes to transfer any purchases you have made, or back up new data (data acquired after your last sync). If you have movie rentals on the device, see iTunes Store movie rental usage rights in the United States before restoring.
    Follow these steps to restore your device:
         1. Verify that you are using the latest version of iTunes before attempting to update.
         2. Connect your device to your computer.
         3. Select your iPhone, iPad, or iPod touch when it appears in iTunes under Devices.
         4. Select the Summary tab.
         5. Select the Restore option.
         6. When prompted to back up your settings before restoring, select the Back Up
             option (see in the image below). If you have just backed up the device, it is not
             necessary to create another.
         7. Select the Restore option when iTunes prompts you (as long as you've backed up,
             you should not have to worry about restoring your iOS device).
         8. When the restore process has completed, the device restarts and displays the Apple
             logo while starting up:
               After a restore, the iOS device displays the "Connect to iTunes" screen. For updating
              to iOS 5 or later, follow the steps in the iOS Setup Assistant. For earlier versions of
              iOS, keep your device connected until the "Connect to iTunes" screen goes away or
              you see "iPhone is activated."
         9. The final step is to restore your device from a previous backup.
    If you can not restore your device then you will need to go to recovery mode.
    Placing your device into recovery mode:
    Follow these steps to place your iOS device into recovery mode. If your iOS device is already in recovery mode, you can proceed immediately to step 6.
         1. Disconnect the USB cable from the iPhone, iPad, or iPod touch, but leave the other end
             of the cable connected to your computer's USB port.
         2. Turn off the device: Press and hold the Sleep/Wake button for a few seconds until the
             red slider appears, then slide the slider. Wait for the device to turn off.
              If you cannot turn off the device using the slider, press and hold the Sleep/Wake
              and Home buttons at the same time. When the device turns off, release the Sleep/Wake
              and Home buttons.
         3. While pressing and holding the Home button, reconnect the USB cable to the device.
             The device should turn on. Note: If you see the screen pictured below, let the device
             charge for at least ten minutes to ensure that the battery has some charge, and then
             start with step 2 again.
         4. Continue holding the Home button until you see the "Connect to iTunes" screen.
             When this screen appears you can release the Home button.
         5. If necessary, open iTunes. You should see the following "recovery mode" alert:
         6. Use iTunes to restore the device.
    If you don't see the "Connect to iTunes" screen, try these steps again. If you see the "Connect to iTunes" screen but the device does not appear in iTunes, see this article and its related links.
    Additional Information:
    Note: When using recovery mode, you can only restore the device. All user content on the device will be erased, but if you had previously synced with iTunes on this computer, you can restore from a previous backup. See this article for more information.

  • Problem with READ Statement in the field routine of the Transformation

    Hi,
    I have problem with read statement with binary search in the field routine of the transformation.
    read statement is working well when i was checked in the debugging mode, it's not working properly for the bulk load in the background. below are the steps i have implemented in my requirement.
    1. I selected the record from the lookuo DSO into one internal table for all entried in source_packeage.
    2.i have read same internal table in the field routine for each source_package entry and i am setting the flag for that field .
    Code in the start routine
    select source accno end_dt acctp from zcam_o11
    into table it_zcam
    for all entries in source_package
    where source = source_package-source
         and accno = source_package-accno.
    if sy-subrc = 0.
    delete it_zcam where acctp <> 3.
    delete it_zcam where end_dt initial.
    sort it_zcam by surce accno.
    endif.
    field routine code:
    read table it_zcam with key source = source_package-source
                                                 accno  = source_package-accno
                                                 binary search
                                                 transportin no fields.
    if sy-subrc = 0.
    RESULT  = 'Y'.
    else.
    RESULT = 'N'.
    endif.
    this piece of code exist in the other model there its working fine.when comes to my code it's not working properly, but when i debug the transformation it's working fine for those accno.
    the problem is when i do full load the code is not working properly and populating the wrong value in the RESULT field.
    this field i am using in the report filter.
    please let me know if anybody has the soluton or reason for this strage behaviour.
    thanks,
    Rahim.

    i suppose the below is not the actual code. active table of dso would be /bic/azcam_o1100...
    1. is the key of zcam_o11 source and accno ?
    2. you need to get the sortout of if endif (see code below)
    select source accno end_dt acctp from zcam_o11
    into table it_zcam
    for all entries in source_package
    where source = source_package-source
    and accno = source_package-accno.
    if sy-subrc = 0.
    delete it_zcam where acctp 3.
    delete it_zcam where end_dt initial.
    endif.
    sort it_zcam by surce accno.
    field routine code:
    read table it_zcam with key source = source_package-source
    accno = source_package-accno
    binary search
    transportin no fields.
    if sy-subrc = 0.
    RESULT = 'Y'.
    else.
    RESULT = 'N'.
    endif.

  • Is it possible to create a Column with Conditional Mandatory with another Column?

    Is it possible to create a Column with Conditional Mandatory with another Column?
    For example
    In a Table we have column A, B, C.
    A is Primary Column.
    B is Optional
    C is Conditional Mandatory.
    A B
    C
    12345 ABC
    OK
    12346 NULL
    NULL
    12347 ABC
    OK
    Only if the B Column has the value then only C column should be mandatory

    I guess you can't create a condtional mandatory column directly. However, you can use check constraint to on the column
    create table YourTable
      A int primary key,
      B char(3),
      C int,
      constraint ch_con check(
                                B
    is not null
    or C is null

  • Syntax Error with EXPORT statement in ECC 6

    Hi All,
    I have one issue with EXPORT statement syntax.
    I have declared data like below:
    DATA: BEGIN OF mem_id,
              mandt LIKE sy-mandt,
              uname LIKE sy-uname,
              modno LIKE sy-modno,
            END OF mem_id.
    export the memory id
        EXPORT E_VBKOK XANZPK TEXTTAB XBOLNR TO MEMORY ID MEM_ID.
    When I am checking the syntax error i am getting like "MEM_ID" must be a character-type field (data type C, N, D or T). by "INTERFACE". by "INTERFACE". "INTERFACE". by "INTERFACE". by "INTERFACE".
    I know this statement would be like IMPORT ITAB TO JTAB FROM MEMORY ID 'table'. So I have written like below
    EXPORT E_VBKOK XANZPK TEXTTAB XBOLNR TO MEMORY ID 'MEM_ID'. But still it is throwing an error.
    Can you please let me know how can I resolve this?
    Regards,
    Jyothi CH.

    Hi Jyothi,
    data: l_var type string.
    concatenate '6' '8' into l_var separated by space.
    export l_var to memory id 'BB'.
    Here we have to declare the type(structure) for l_var not for BB
    and in another program
    data:l_var type string.
    import l_var from memory id 'BB'.
    write : l_var.

  • Win 2012 R2 VM on Win 2008 R2 FOC is backed up with Saved State instead of Snapshot by DPM

    I've posted this question a couple of months ago
    in another forum, but haven't resolved the issue yet. I'm hoping this post could help me troubleshoot this problem once again.
    My question is as follows (copied from previous thread):
    All my Windows 2012 R2 VMs (that run on a 3-node Windows 2008 R2 Fail-over cluster) are backed up by DPM 2012 R2 (also on Windows 2008 R2) using Saved State instead of Child Partition Snapshot. I've checked the list below (twice), but didn't find anything applicable
    to these VMs. 
    Backup (Volume Snapshot) Integration Service is disabled or not installed.
    The virtual machine has one or more dynamic disks.
    The virtual machine has one or more non-NTFS based volumes.
    The virtual machine Cluster Resource Group in a cluster setup is offline.
    The virtual machine is not in a running state.
    A ShadowStorage assignment of a volume inside the virtual machine is explicitly set to a different volume other than itself.
    An App-V drive is installed on the virtual machine that creates a non-NTFS volume.
    I've set the registry setting SystemRestore\ScopeSnapshots to 0 for each VM, and checked the current state with the diskshadow tool (to make sure it wasn't just an erronous datasource text in DPM). 
    Some more information:
    all Windows 2008 R2 servers on this cluster are backed up by DPM using Child Partition Snapshot
    all VMs (VHDs) are located on an HP Lefthand SAN
    I'll appreciate any pointers in finding the root cause of this problem!

    Hi CameO73,
    I'm afraid it is not supported to online backup 2012R2 VM on 2008R2 hyper-v (it is still not supported to install 2012R2 VM on 2008R2 hyper-v host ).
    I have seen a workaround of backing up 2012VM on 2008R2 hyper-v , but not for 2012R2 :
    http://social.technet.microsoft.com/forums/windowsserver/en-US/b687fa93-4de7-4c88-af69-06bb6bf494be/backup-windows-server-2012-vm-on-windows-server-2008-r2-hyperv-saved-state
    Hope it helps
    Best Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Condition check through BPM...............response from IDOC

    Hi All,
               I have a scenario like this:
    The data is coming from a system through a webservice and the SOAP data to be mapped to idoc.But the trick is the idoc is aasynchronous one and the webservice expects a response in return as its designed synchronous.  please suggest.
    Again the webservice data contains some specific data field and on checking the relevence of the data we need to post that to idoc otherwise we can rollback.can this be checked with BPM?
    if possible please suggest elaborately and if possible through another way suggest that also.
    Abhishek

    Use BPM. The Idoc Ack in the form of ALEAUD has to be configured at receiver. This Idoc can be caught in BPM in the form of acknowledgement idoc. Once received, u may use tranform step of BPM to map certain values to ur webservice response. Use Sync-Async bridge concept (many weblogs available on sdn)
    checking the relevence of the data
    What is the logic here. U may check certain conditions in mapping directly and raise an alert accordingly.
    Regards,
    Prateek

  • Matching user selection value with xml statements

    I'm fairly new to the Spry framework and I'm trying to
    accomplish a simple project with it and struggling. Can anyone give
    me some direction or suggest some samples to look at?
    I'm creating a survey and I've generated a radio button list
    that will appear with each statement in my xml. I could write a
    general javascript function that captures the value and totals it,
    but it is a little more complex than that and that's where I'm
    stuck.
    Each statement has a career type associated with it (which
    I've stuck in the code, but will hide it later). I want to get the
    value of the user's checked radio button and then add it to a
    variable based on the career type? How do I get that career type
    and associate it with the user's choice? Do I need to put a
    function in "onclick" and set it as the current row?
    my html:
    <head>
    <script type="text/javascript"
    src="assets/includes/xpath.js"></script>
    <script type="text/javascript"
    src="assets/includes/SpryData.js"></script>
    <script type="text/javascript">
    var jSurvey = new Spry.Data.XMLDataSet("survey1.xml",
    "survey");
    var jStatement = new Spry.Data.XMLDataSet("survey1.xml",
    "survey/question");
    function getValue(){
    </script>
    </head>
    <body>
    <p spry:region="jSurvey"
    class="header">{jSurvey::surveyTitle}</p>
    <form name="scale">
    <table>
    <tr>
    <th scope="col">Statements</th>
    </tr>
    <tr>
    <td><div spry:region="jStatement"><p
    spry:repeat="jStatement"
    class="{ds_EvenOddRow}">{jStatement::statement}<br
    /><br />
    <span class="">{jStatement::careerType}</span>
    <input type="radio" name="option_{ds_RowID}"
    id="{ds_RowID}" value="0" onclick=" " >Dislike</input>
    <input type="radio" name="option_{ds_RowID}"
    id="{ds_RowID}" value="1" onclick=" ">Uncertain</input>
    <input type="radio" name="option_{ds_RowID}"
    id="{ds_RowID}" value="2" onclick=" ">Like</input>
    <input type="radio" name="option_{ds_RowID}"
    id="{ds_RowID}" value="3" onclick=" ">Like Very
    Much</input></p></div>
    </td>
    </tr>
    </table>
    <input type="submit" />
    </form>
    </body>
    my xml:
    <survey>
    <question>
    <statement>Use dental instruments within patient's
    mouth.</statement>
    <careerType>Dental Hygienist</careerType>
    </question>
    </survey>
    Any direction or samples I should look at would help.
    thanks, Brandy

    Hi Brandy,
    I would try writing out my radios like this:
    <input type="radio" name="option_{ds_RowID}"
    id="{ds_RowID}" value="0"
    onclick="AddAnswer('{jStatement::careerType}', this.value); " />
    And then define a function that tracks the answers by career
    type:
    var answers = {}; //. Associative array that will track our
    answers by career type.
    function AddAnswer(careerType, value)
    answers[careerType] = value;
    By the way, I see you doing something like this:
    <input ...> ... </input>
    Input elements aren't supposed to contain anything. That's
    why in my example I used:
    <input ... />
    --== Kin ==--

  • Tables with locked stats

    Hi: I am on 10.2.0.3.
    Anybody know a view which shows thw tables with locked stats?
    Thanks,
    Greg

    You can find table lock details from dba_tables / all_tables check table_lock column
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_2.htm#i1592091

  • Availablity  check with ATP logic

    Hi everybody
    Can any one tell me where where we assign Checking rule (A - sales order) in availablity check.

    dear srikanth
    please gothough this
    TOR AND AVAILANBILITY CHECK
    To confirm the quantities for a particular line item in the sales order on particular day system carried out transfer of requirements (TOR) & AVAILABILITY check, so has to confirm the quantity on particular day as system should know what are there requirement of the sale order and delivery with MRP then system carries out availability check function, to confirm the quantity on particular day. Depending upon the IMG setting system carries out availability check function based on 3 methods:
    A) Availability Check with ATP logic or against planning:
    In ATP logic systems ATP Qty while carrying out availability check function for
    Particular line item (ATP qty=warehouse stock +planned receipts planned issues)
    Planned Receipts: EX: - purchase requisitions, purchase orders, stock in transfer stock at inspection etc.
    Planned Issues: - EX: - open sales order & open delivers
    B) Availability check against product allocation:
    Availability check can be carried out against product allocations in which system automatically restrict the user to confirm the quantity beyond reserved quantities per particular customer. EX:- Availability qty =100, existing orders=10,then system automatically distributes to items evenly to the sales order.
    C) Rule based Availability check:
    Rule based availability check can be carried out based on the business transaction.
    EX: - For normal sales order system has to carry out availability check for special sales order ex: - cash sales and rush order systems need not to be carry out availability check,
    In rule based availability check system in which system carried out Global availability to promise in all plants. In this check system transfers the requirements to APO system where GATP takes place and the result of the availability check transferred to R/3 system. This process takes place with the transaction code CIF(central inter face) inR/3.After carrying out availability check function system proposes(by using ATP logic) default values of ATP check  result to the user in a dialog box, in which system gives the  choice to the user to take the decision in contest of insufficient stock.
    a) One time delivery:
    If the user chooses one time delivery and the order Quantity is 100 units system confirms 50 units then systems automatically confirms as a zero. If the user saves the document with the zero confirm qty then system   trace the sales order as aback order (V_RA), which can be confirmed later by RESCHEDULLING (V_V2).
    b) Complete Delivery:
    If order Qty=100, Availability stock = 50, system says that remaining can be given after one week. Then if the user selects this option then system push up existing confirmed qty to after one week and the total qty can be confirmed after one week only.
    c) Delivery Proposal:
    If order qty=100, system confirms 50, and remaining 50 can be confirmed after one week. If the user chooses this option then system confirms 50 Qty today allows the user to delivery 50 quantities today remaining 50 can be delivered after one week.
    CONFIGURATION SETTINGS FOR TOR:
    Define Requirement Class:
    Path: Img &#61664; S&D &#61664;  Basic functions &#61664;  Availability Check & Transfer of requirements &#61664;  Transfer of requirements &#61664;   Define Requirement classes
    Requirement classes control MRP, Requirement consumption, strategy, relevance for planned. It specifics whether the availability check & TOR to be Called out for transactions.  Ex: Sales Order
    It determines whether requirements relevant for MRP or not, the allocation indicator from the sales view which controls the settlement of customers requirements with planned independent requirements. It determines the item b to be settled as an availability heck. Assignment, the settlement profiles the results analysis key. The TOR and Availability check functions are globally controlled using the requirement class for all the Sales documents. The values from the Requirements class are transferred to scheduled the of the sales documents class are transferred to scheduled the of the sales document default values and can be over written there.
    Define Requirements Classes:
    Requirement class defines whether the system has to carry out availability check based on the STP Qty. Ex:
    Define Requirement Types:
    Here we define requirement type, Ex:  and Assign to Requirement class that we defined in the promote step.
    Determination of Requirement types using Transaction:
    Requirement type is going to be determined for sales document by following a search strategy. .
    First System checks strategy group in MRP3 view if it trend requirement type then system takes from it, otherwise.
    It will go to MRP group in MRP1 view, otherwise
    It will check to Material type, otherwise
    It will go to item Category + MRP type, otherwise
    It will go to Item category only, otherwise
    Finally system determines the transaction b not relevant for TOR & Availability check.
    Choose Item category TAN+MRP type PD=Requirement type =0
    Define Procedure for each schedule the category:
    Here we define respective schedule the category of the sales documents, whether an availability check and TOR should be carried out. This setting is relevant for sales documents only. It is fine tuning of availability check for sales documents TOR & Availability check function    can be activated at sales order level those are proposed in to schedule line category level. If u wants to deactivate TOR availability check function at schedule the category level and want to deactivate at requirement class level it b impossible.
    Ex: If u wants to check availability w/o transferring the requirement we can use it.
    Choose schedule line category CP & Activate Availability check, requirement & Product Allocation
    Block Quantity confirmation in delivery Blocks:-
    When we transfer requirements to MRP then confirmed quantities is also reserved for confirmed sales documents, if transaction is blocked for delivery the reserved quantities are also blocked so that the conformed quantities cannot be used by any other purpose. So has to avoid this situation we can block the transfer  of requirements(TOR) for delivery blocks, in this case requirements transferred to MRP but will not be reserved, that will be cleared once we save the documents then system shows confirmed qty as zero.
    When we remove the delivery block then system automatically carries out availability check & confirms the qty.
    A) Deliveries: Blocking region for sales Area:
         Here we define blocking regions for TOR ex:-credit limits
    B) Reasons for scope of delivery blocks: TOR. Block:
    Ex: - 01 credit limits-check confirmation block.
    Maintain Requirements for TOR:-
    Here we can define our own requirement with the help of ABAPer for TOR
    Ex: - a) 102- prevent reservation in the event of credit block
           b) 102-purchase requisitions.
    System doesn’t create purchase requisitions for sales order line items if it has a credit limit.
    Availability check:
    Configuration setting:-
    Availability check with ATP logic or against planning:-
    A) Define checking group:
    Checking group defines what kind of requirement record system use to create when sales order & deliveries are processed for this material. We can create 2 kinds of requirements records
    Individual requirement records: that means system creates requirement record for each S&D document.
    Summarized requirement Records: That means system creates requirement records under certain condition in the material master record. There are 2 type of summarized requirement record:
    Summarized requirement records for each day.
    Summarized requirement records for each week
    Define checking Action;
    Here we define     01- daily requirement      -B                                        02- Individual requirements -A
    Where      B-total record per day
         A-single record per day
    B) Define material Block for other users:
    When 2 users tries to confirm the quantities for the sales order for same material at a time system will be confused to confirm the quantities both sales orders. So has to avoid this kind of situation we can block the materials from confirming the quantities for 2 users at a check, check block
    C) Define checking group default values:
    Checking group is going to be determined depending upon the material type & plant.
    -Go to new entries, specify material type, ex;-FERT
    & plant = checking group of availability check: 02
    D) Carry out for Availability check:
    Here we define checking rule for the Availability check & allocate them to the checking group. The checking rules specify the scope of the availability check. For a respective transaction, means which planned receipts & planned issues systems has to taken into consideration and also it determines whether system has to take RLT into consideration.
    *Select checking group of availability check-02, checking rule=01
    *Go to details icon, & check which planned receipts & planned issues system has taken into consideration for availability check
    *save it, exit.
    E) Define procedure by Requirement class:
    Here we define requirement class whether on availability check & TOR should be carried out the setting that we carries out at requirement class level they are at global level. There settings automatically copied into define from of requirement class and vice versa.
    *Choose requirement class: 041 & check availability check & TOR (requirement)
    F) Define procedure for each schedule line category:
    Here we carry out fine tuning setting for availability check at schedule line category level. Here we define whether system has to carry out Availability check for particular transaction.
    Ex: - if we want to implement availability check w/o TOR for a particular transaction. According to settings at requirement class level TOR & availability check function activate & those setting will be copied into the schedule time category by default, so that at schedule line category level we deactivated TOR
    G) Determine procedure for each Delivery Item category:
    Here we switch on or switch off availability check functions of a delivery item category
    *choose item category ‘TAN’. & specify the appropriate value.
    H) Checking group for updating back orders:
    Here we assign checking group to a plant that rule specifies for individual application, according to which the availability check is carried out;
    I) Define Default settings:
    Here we define the result of the availability check.
    *Choose your sales Area, & check fixed dates& Qty options & specify ‘D’ or ‘E’
    Where: D- Dialog box in the case of shortages (one time delivery)
    E- Dialog box in the shortages (delivery proposal).
    rewards if it helps
    siva

  • IF-conditions check order

    Hi all,
    I'd like to ask if it's safe to write such constructions:
    if ((s == null) || (s.toString.equals(""))) {
    I wonder whether it's guaranteed that firstly the condition (s == null) would be checked. If it is so, then we could be quiet of this code to be safe, otherwise - we could not.

    Serge_HID wrote:
    Hi all,
    I'd like to ask if it's safe to write such constructions:
    if ((s == null) || (s.toString.equals(""))) {
    I wonder whether it's guaranteed that firstly the condition (s == null) would be checked. If it is so, then we could be quiet of this code to be safe, otherwise - we could not.If you would have written it in that form;
    if ((s == null) | (s.toString.equals(""))) {
      }it would check all the statements. But || && checks the other statements if it is needed. For example if the first statement is true then the || operand doesn't need to check the next statement and if the first statement is false then the && operand doesn't need to check the next statement.

  • Condition Checking

    Hi,
      Is there anyway i can ensure, let's say my "net income" is larger than 2 million before the user can submit the data? is there some sort of condition checking or locking mechanism that does this?
      any input on this?
    cheers

    You can have something like that for submission
    please check into help online the follow link
    http://name of your application server/osoft/help/admin/helpstart.htm#Setting_application_set_parameters.htm
    It is not exactly what you want but you can do something using this approach.
    You can change the work status settings for each application. Changing the work status settings involves identifying three to five 'work status dimensions,' and then defining specific members for the remaining non-work status dimensions used for validation purposes. You must determine which account you will use for validation of the data at the time the work status is changed. The validation account must be &rdquor;0u201D at the intersection of the 3-5 variable members and the members designated for the non-work status dimensions.  If the account is not &rdquor;0u201D then the owner/manager cannot set the work status.  This is an option feature.
    The dimensions you select as the work status dimensions are the variables in your business process. For example, the entity, category, and time might change based on who is submitting data, but the account, data source, reporting currency, etc., remains static. (Typically, Time is a work status dimension since data is usually segregated based on time.)
    For example, lets say that you set Entity, Category, and Timeas your work status dimensions for a given application. You then set your other current view members to the following:  Account: Validation; DataSrc: TotalAdj; Intco: All_Intco; and RptCurrency: LC. In addition to assigning work status dimensions, you also specify which dimension is the 'owner dimension.' The owner dimension includes the Owner property. The owner property determines who can edit a work status setting. The following figure shows this setup, where Entity is the Owner dimension.
    A user attempts to post data to the current view shown in the following table. The system checks the 'validation' account to make sure the intersection equals zero (0). If so, the data is posted, and a success message is displayed. The user can now set the work state to 'submitted' on that intersection. Subsequent submissions to that exact intersection will be rejected. Users can only send data to the same intersection if the Entity, Category, or Time member changes.
    Account
    <All>
    Category
    Actual
    DataSrc
    <All>
    Entity
    SalesNE
    Intco
    <All>
    RptCurrency
    <All>
    Time
    Feb.2007
    To change work status settings for applications
    From the Admin Console, expand the Application node.
    Expand the application for which you want to change the work status setting.
    Select Work Status Settings.
    In the Work State column, select Yes for each dimension you want to use to control the work status settings. Select Owner for the dimension that contains the Owner property.
    In the Member Validation column, select a member for each non-work status dimensions. (Use the browse button to open the Member Lookup.)
    From the action pane, select Save Work Status Settings.

Maybe you are looking for

  • My computer with my itunes crashed.  how can i get my backed up itunes on different computer?

    my computer with itunes crashed. how can i get my backed up itunes files set up on new computer?

  • Can't install ipad app on Ipad 2 & 3

    Hi! We have an app which works on ipad 1 but fails to install on ipad 2 and 3. I seems not the UDID problem: we can find device's UDID at filename.ipa/.........../embedded.mobileprovision file. Where the problem can be? Maybe Air SDK 3.2 doesn't supp

  • Why can't I connect to my Home wifi?

    I have one everything I can think if but my ipad mini will not connect to my home wifi

  • Registry settings problem

    When I open itunes, itunes warns that registry settings used by itunes for importing and burning CDs and DVD are missing. Itunes recommends reinstalling to fix this problem. After multiple reinstallments, problem is not fixed. Any way to fix? Any way

  • Apple TV and Big Movie Archive

    My wife wants me to set up something (an external hard drive? server? mac mini?) that can hold our library of movies so we can watch them through our Apple TV any time, not just when I have my laptop booted up and iTunes open (we have two laptops in