Query regarding MB1A transaction

Dear Gurus,
We are facing a situation where we are trying to scrap a material using the transaction MB1A. We are using movement type 551.
An outbound delivery has been created, but still the material intended to scrap is seen in unrestricted use only. Hence if we are creating any sales order for the material, the line is getting confirmed.
Request you to let us know whether material does not get allotted to outbound delivery, so that ATP stock becomes 0 at the time of outbound creation.
regards,
Krishna

Sorry.. Paraphrasing my question..
Hi All,
We are facing a situation where we are trying to scrap the available stock of  a material using the transaction MB1A. We are using movement type 551.
An outbound delivery has been created, which is in status A( goods movement not yet started)
However if we are creating any new  sales order for the material, the line is getting confirmed.
Request you to let us know whether material does not get allotted to outbound delivery, so that ATP stock becomes 0 at the time of creating another fresh sales order for the material after outbound creation.
Thanks in advance.
Regards,
Krishna Mohan Gurajada

Similar Messages

  • Query regarding SPAU Transaction Details

    Hi,
    This is regarding Upgradation Process.
    We use SPAU transaction to list down all the SAP objects that got modified in the current system.
    In this case, whether it lists the details of custom objects that are dependent on Standard SAP objects.
    Thanks,
    Udaya.

    SPAU only gives you the standard SAP Objects that were modified using the Modification Assistant.. you can also use the Tcode SE95 to list out the objects before you actually start the upgrade... If its a custom Object, it will be left as is.. if the custom Object is a copy of a stda SAP Object, you will have to manually compare the custom Object with the latest std object and make the corresponding changes yourself..
    ~Suresh

  • Query regarding the transaction CRMD_ORDER

    Hello all,
    I am trying to create a complaint using the Tcode CRMD_ORDER and what are the table which get populated .....
    Like when we create a Sale order in R3 we have header table VBAK and item table as VBAP .
    Similarly do we have some table which get populated in when we create the complaint using the tcode CRMD_ORDER in CRM system.
    regards,
    KK

    Hi
    tables : CRMD_ORDERADM_H  - header, CRMD_ORDERADM_i - item
    you can also use this FM : crm_order_read in se38
    Lilach

  • Query regarding RF transaction

    Hi,
    Currently I am using Tcode-LM61 for picking and packing process for assigning handling unit to delivery docs.
    I have 2 queries:
    1) I knew that to pack /scan any material in warehouse, we need to use SU instead of HU.Kindly confirm on this.
    2) Secondly If I use SU , does that mean that HU is not required to be maintained during delivery creation?
    3) Thirdly kindly confirm the process-Order-Outbound delivery-Create transfer order ( with SU)- Pick and pack in outbound delivery ( using HU)- PGI.
    4) Is it mandatory to have SU in warehouse if I am using handling unit management.
    5) Last the settings we need to do to activate SU in warehouse?

    Indraneel Mukherjee wrote:
    Hi,
    > Currently I am using Tcode-LM61 for picking and packing process for assigning handling unit to delivery docs.
    >
    > I have 2 queries:
    >
    > 1) I knew that to pack /scan any material in warehouse, we need to use SU instead of HU.Kindly confirm on this.
    >
    It is purely a business decision, if you need to track the label through out the process like delivery, shipping and invoicing, then you can use HU.
    SU is only used in WM, you can not use SU label in shipping or other processes.
    > 2) Secondly If I use SU , does that mean that HU is not required to be maintained during delivery creation?
    >
    You can also use Both system will create on SU for every HU
    > 3) Thirdly kindly confirm the process-Order-Outbound delivery-Create transfer order ( with SU)- Pick and pack in outbound delivery ( using HU)- PGI.
    >
    > 4) Is it mandatory to have SU in warehouse if I am using handling unit management.
    >
    Not Required
    > 5) Last the settings we need to do to activate SU in warehouse?
    SU management will be activated in the Warehouse level and you can activate for each Storage type if required
    thanks,
    JK

  • Regarding CS03 transaction

    Hi friends,
    I have a simple query regarding the transaction CS03. When I give the Material Number, Plant and BOM Usage as input, I would get the list of components for this material.
    Inside the transaction, is a CHECKBOX field ASM - this Indicates that the component for this material has its own BOM or has further components).
    Could anyone tell me in which SAP table this information is stored i.e. an indicator to tell us if the component/material has further BOM or not.
    I checked MAST and STPO tables but could not figure out the right field.
    Awaiting your valuable inputs.
    Thank You.
    Regards,
    Gayathri.

    hi gayathri,
    1.
    the bom can exist for HALB or FERT .
    u can dimnish the material not having a bom on this category .
    i.e to say material type 'RAW' dosent hav  a bom .
    2.
    like check out for table "MVKE" (Sales Data for Material) and in here check the fields
    MVKE-MTPOS (Item category group from material master)MVKE-DWERK(Delivering Plant).
    now giv the material and execute for initially dont giv a plant , and execute .
    proceed with parent-matrial in bom  and execute ,
    u'll see the list of materials assigned in a particular sales area now check for MTPOS status this will have a category called LUMF ( this u will hav only for parent)
    now say that the parent have 4 child materials (say)of which one has subassemblies so as u said it will hav a ASM check box ticked in CS03, now take this material and goto mvke and repeat the procedure and check the MTPOS status this will have item category like 'NORM'
    remember for parent it was 'LUMF'
    now for child(having subass;les) we got'NORM'
    now check for same which dosent have a subassemblies from the child items it will be like 'ZATP' or 'XXXX' but not LUMF or NORM.  to tell that it dosent hav further bom.
    generalise the conclusion for all the materials(parent childorphans)if found okay apply this logic.
    second alternative is ,
    check the transaxction cs12.
    give  BOm material and observe that the first field(dglvl) ...
    it indicates the level of that material in thta BOM.
    exact indiaction is whether it has sub assemblies in that Material is the
    field (BOMFL) If it has sub assemblies then it will be' X'.
    see if u can make any hit in the tables using this relation above
    regards,
    vijay.

  • Transaction variant for Goods Issue going back to MB1A transaction screen

    Hello,
    I have created a transaction variant ZMB1A for Goods issue.
    When the goods issue transaction completed by using ZMB1A system again going back to the initial screen of MB1A. (Since it is the base of MB1A)
    Here the issue is everytime user had to enter the ZMB1A transaction. (for example if the user wants to issue material for different plants).
    Please suggest any suitable method to avoid the above multiple t code execution.
    Regards
    Rifaie M

    Hi,
    In SHD0, do the complete processing of Transaction MB1A during creation of Transaction Variant "ZMB1A" till posting of the Material document.
    To create a new T-Code as ZMB1A, go to Transaction SE93 and here enter Transaction Code as ZMB1A and Click Create button. Now enter Short text of Transaction and select option "Transaction with Variant (Variant transaction)" and press enter.
    Here enter following;
    Transaction             MB1A
    Transaction variant     ZMB1A
    Activate "Cross-client"
    Select Professional User Transaction
    Activate SAP GUI for HTML
    Activate SAP GUI for Java
    Activate SAP GUI for Windows
    Now Click SAVE button.
    Now you can start using Transaction ZMB1A which will call Transaction Variant ZMB1A.

  • Query regarding the conversion of DME file in MT940 format.

    Hello Experts,
    I have a query regarding the generation of MT940 file after generating the payment file from other DME tree.
    After completion of payment run, my payment file is generated in the DME format which is according to the DME tree.
    I want to convert the DME file (which is generated via F110)  from existing format to the standard MT940 format.
    Is there any standard program which converts the DME file to MT940. If so,  please inform me as early.
    I have tried to upload the DME file in FF.5 transaction, but it is not allowing me to convert the file in MT940 structure.
    Or please inform the steps how i can convert the file .
    Awaiting for your inputs.
    Thanks in advance

    Hi Zareena.
    I would like to suggest,
    SX_OBJECT_CONVERT_RAW_TXT.
    Hope that's usefull.
    Good Luck & Regards.
    Harsh Dave

  • SAP Query in SQVI transaction

    Hi All,
    I have created a Query in SQVI transaction, How to assign a transaction code for it.
    Thanks in advance
    Raju

    hi,
    follow the link:
    http://help.sap.com/saphelp_erp2005/helpdata/en/b7/26ddebb1f311d295f40000e82de14a/frameset.htm
    you will get full information about SAP Query.
    There is no SQV1 transaction.
    SQ01 --> maintain query
    SQ02 --> maintain info set
    SQ03 --> maintain user groups
    he SAP Query application is used to create reports not already contained in the default. It has been designed for users with little or no knowledge of the SAP programming language ABAP.
    SAP Query offers users a broad range of ways to define reports and create different types of reports such as basic lists, statistics, and ranked lists.
    Features
    The SAP Query comprises five components: Queries, InfoSet Query, InfoSets, User Groups and Translation/Query.
    hope this may help you,
    regards,
    srinivas

  • Problem In Recording MB1A Transaction through SHDB

    Hi Friends,
    While Recording MB1A Transaction I am getting Codding Block Screen. Where as Whilr running MB1A transaction Normally we are not getting that screen.
    For this reason we are not able to go to the next step. please do the need full.
    Here i am sending the code.
    *& Report  YPH_CANCEL_REV                                              *
    REPORT  yph_cancel_rev                          .
    *include bdcrecx1.
    DATA : BEGIN OF BDC_TAB OCCURS 0.
            INCLUDE STRUCTURE BDCDATA.
    DATA : END OF BDC_TAB.
    DATA : BEGIN OF MESSTAB OCCURS 0.
           INCLUDE STRUCTURE BDCMSGCOLL.
    DATA : END OF MESSTAB.
    DATA : BEGIN OF itab OCCURS 0,
           aufnr TYPE aufnr,
           werks type werks_d,
           lgort type lgort_d,
           MTSNR type MTSNR1,
           END OF itab,
           begin of it_caufv occurs 0,
           aufnr type aufnr,
           rsnum type rsnum,
           end of it_caufv,
           begin of it_resb occurs 0,
           rsnum type rsnum,
           aufnr type aufnr,
           xwaok type xwaok,
           matnr type matnr,
           enmng type enmng,
           splkz type CHSPLIT,
           rgekz type RGEKZ,
           end of it_resb.
    data dir2 type string.
    PARAMETERS : dir1(50) TYPE c.
    dir2 = dir1.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename            = dir2              "'C:order.txt'
        filetype            = 'ASC'
        has_field_separator = 'X'
      TABLES
        data_tab            = itab.
    loop at itab.
    select aufnr rsnum from caufv into table it_caufv where lead_aufnr = itab-aufnr.
    loop at it_caufv.
    select rsnum aufnr xwaok matnr enmng splkz rgekz from resb into table it_resb  where rsnum = it_caufv-rsnum.
    loop at it_resb.
    if it_resb-xwaok eq 'X'.    " Movement Allowed
    if it_resb-enmng > 0 .   "  Quantity With drawn
    if it_resb-rgekz eq ' '.    " Back Flush
    *if it_resb-splkz eq ' '.    " Batch Split
    data: begin of record occurs 0,
    * data element: BLDAT
            BLDAT_001(010),
    * data element: BUDAT
            BUDAT_002(010),
    * data element: MTSNR1
            MTSNR_003(016),
    * data element: BWARTWA
            BWARTWA_004(003),
    * data element: WERKS_D
            WERKS_005(004),
    * data element: LGORT_D
            LGORT_006(004),
    * data element:
            XFULL_007(001),
    * data element: WVERS2
            WVERS2_008(001),
    * data element: WERKS_D
            WERKS_009(004),
    * data element: AUFNR
            AUFNR_01_010(012),
    * data element: LGORT_D
            LGORT_01_011(004),
    * data element: LGORT_D
            LGORT_02_012(004),
    * data element: LGORT_D
            LGORT_03_013(004),
    * data element: LGORT_D
            LGORT_04_014(004),
    * data element: LGORT_D
            LGORT_05_015(004),
    * data element: ERFMG
            ERFMG_016(017),
    * data element: ERFME
            ERFME_017(003),
    * data element: LGORT_D
            LGORT_018(004),
    * data element: FMORE
            FMORE_019(001),
          end of record.
    *** End generated data section ***
    *start-of-selection.
    *perform open_dataset using dataset.
    **record-mtsnr_003 = 'REM'.
    **record-bwartwa_004 = '262'.
    **record-werks_009 = 'HPR1'.
    **append record.
    *loop at record.
    PERFORM DYNPRO USING :
                        'X'  'SAPMM07M'  '0400',
                        ' '  'BDC_CURSOR'  'RM07M-LGORT',
                        ' '  'BDC_OKCODE' '=NFAS',
                        ' '  'BDC_CURSOR' 'RM07M-MTSNR',
                        ' '  'RM07M-MTSNR' 'REM',
                        ' '  'BDC_CURSOR' 'RM07M-BWARTWA',
                        ' '  'RM07M-BWARTWA' '262',
                        ' '  'BDC_CURSOR' 'RM07M-WERKS',
                        ' '  'RM07M-WERKS' itab-werks,
                        ' '  'BDC_CURSOR' 'RM07M-LGORT',
                        ' '  'RM07M-LGORT' itab-lGORT,
                        'X'  'SAPMM07M' '1405',
                        ' '  'BDC_CURSOR' 'RM07M-AUFNR(01)',
                        ' '  'BDC_OKCODE' 'SS',
                        ' '  'BDC_CURSOR' 'RM07M-AUFNR(01)',
                        ' '  'RM07M-AUFNR(01)' it_caufv-aufnr,
                        'X'  'SAPMM07M' '0410',
                        ' '  'BDC_CURSOR' 'MSEG-ERFMG',
                        ' '  'BDC_OKCODE' '=BU',
                        ' '  'BDC_CURSOR' 'MSEG-LGORT',
                        ' '  'MSEG-LGORT' itab-lGORT,
                         'X' 'SAPLKACB' '2400',
                         ' ' 'BDC_CURSOR' 'COBL-AUFNR',
                         ' ' 'BDC_OKCODE' '=ENTE'.
    *                    ' '  'BDC_CURSOR' 'COBL-AUFNR',
    *                    ' '  'MSEG-LGORT' it_caufv-aufnr.
    CALL TRANSACTION 'MB1A' USING BDC_TAB MODE 'A' UPDATE 'S'
                                         MESSAGES INTO messtab.
    if sy-subrc eq 0.
    write :/ 'Suceess full',it_resb-aufnr, it_resb-matnr,it_resb-enmng.
    else.
    write :/ 'UN Suceess full',it_resb-aufnr, it_resb-matnr,it_resb-enmng.
    endif.
    *                    ' '  'BDC_CURSOR'  'MKPF-BLDAT',
    *                    ' '  'EMPNO' record-BLDAT_001,
    *                    ' '  'BDC_CURSOR' 'MKPF-BUDAT',
    *                    ' '  'MKPF-BUDAT' record-BUDAT_002.
    *perform bdc_field
    *perform bdc_field       using 'RM07M-WERKS'
    *                              record-WERKS_005.
    *perform bdc_field
    *perform bdc_field       using 'XFULL'
    *                              record-XFULL_007.
    *perform bdc_field       using 'RM07M-WVERS2'
    *                              record-WVERS2_008.
    *perform bdc_dynpro      using 'SAPMM07M' '1405'.
    *perform bdc_field       using 'BDC_CURSOR'
    *                              'RM07M-AUFNR(01)'.
    *perform bdc_field       using 'BDC_OKCODE'
    *                              'SS'.
    *perform bdc_field       using 'RM07M-WERKS'
    *                              record-WERKS_009.
    *perform bdc_field       using 'RM07M-AUFNR(01)'
    *                              record-AUFNR_01_010.
    *perform bdc_field       using 'RM07M-LGORT(01)'
    *                              record-LGORT_01_011.
    *perform bdc_field       using 'RM07M-LGORT(02)'
    *                              record-LGORT_02_012.
    *perform bdc_field       using 'RM07M-LGORT(03)'
    *                              record-LGORT_03_013.
    *perform bdc_field       using 'RM07M-LGORT(04)'
    *                              record-LGORT_04_014.
    *perform bdc_field       using 'RM07M-LGORT(05)'
    *                              record-LGORT_05_015.
    *perform bdc_dynpro      using 'SAPMM07M' '0410'.
    *perform bdc_field       using 'BDC_CURSOR'
    *                              'MSEG-ERFMG'.
    *perform bdc_field       using 'BDC_OKCODE'
    *                              '=BU'.
    *perform bdc_field       using 'MSEG-ERFMG'
    *                              record-ERFMG_016.
    *perform bdc_field       using 'MSEG-ERFME'
    *                              record-ERFME_017.
    *perform bdc_field       using 'MSEG-LGORT'
    *                              record-LGORT_018.
    *perform bdc_field       using 'DKACB-FMORE'
    *                              record-FMORE_019.
    *perform bdc_dynpro      using 'SAPLKACB' '0002'.
    *perform bdc_field       using 'BDC_CURSOR'
    *                              'COBL-AUFNR'.
    *perform bdc_field       using 'BDC_OKCODE'
    *                              '=ENTE'.
    *perform bdc_transaction using 'MB1A'.
    *endloop.
    *endif.
    else.
    write :/ 'Plan Order reverse Conformation',it_resb-aufnr, it_resb-matnr,it_resb-enmng.
    endif.
    else.
    write :/ 'goods not issued',it_resb-aufnr, it_resb-matnr,it_resb-enmng.
    endif.
    endif.
    endloop.
    endloop.
    endloop.
    form DYNPRO  using    value(p_0238)
                          value(p_0239)
                          value(p_0240).
    IF p_0238 = 'X'.
        CLEAR bdc_tab.
        MOVE:  'SAPMM07M' TO bdc_tab-program,
                P_0240 TO bdc_tab-dynpro,
                'X'  TO bdc_tab-dynbegin.
        APPEND bdc_tab.
      ELSE.
        CLEAR bdc_tab.
        MOVE:  P_0239 TO bdc_tab-fnam,
               P_0240 TO bdc_tab-fval.
        APPEND bdc_tab.
      ENDIF.
    endform.                    " DYNPRO

    best to do is use bapi <b>BAPI_GOODSMVT_CREATE</b> and see its documentation to get more info.
    Regards
    Prabhu

  • Query regarding Check Printing

    Hi All,
    I have a query regarding check Printing.
    Once I am printing the Check with Transaction FBZ5, the roller of the printer is not being stopped after the printing of first check and four to five checks are coming out.But I want one check will print in the first print command and marker should come onto the edge of second check.
    please suggest how we can do it..
    Thanks,
    Rajeev

    Hi!
    Make a runtime analysis (SE30) and try to find the slow parts. Maybe there is not much help, because it's also possible that the printer needs so much time to convert the data.
    Regards,
    Christian

  • Query regarding Insurance of the objects in plant

    Dear Sir,
                In my Implemenatation project i have the query regarding the insurance of the fleet object(Transporting Vechle) and Life insurance.
         As th eprocedure is when the object's insurance is finished the Note is sent by the respective department head to MD and finance department.Later it is aproved by MD and request is forwarded to finance dept and later the  finance dept issue the cheque to the insurance Company.
                      even During Breakdown(Accident) of the Vechile the Note is sent and same procedure is followed as above please let me know the standard SAP Procedure that i have to use in SAP so that Transaction would be Easy for me and my client.
    Quick Asnwer/Valuable answer will be awarded  good point s
    hope the answer will reached very soon
    Regards
    Girish

    Hi,
    This should work:
    select table_name, owner from dba_tab_cols
      where table_name = 'EMP'
      and column_name = 'JOB'
      and column_id != 3;//Johan

  • Assigments to jump from BW-query to BP transaction

    Hello,
    I would like to know what assigments I should do in RSSB transaction to be able to jump from a BW query to BP transaction (CRM).
    Thanks in advance.
    Carmen

    Hi,
    The transaction code is RSBBS.Here you have to set the source query and the source target. and set the target to your BP transaction(CRM). The parameters depend on the way you want to have your jump.
    Hope this helps.
    Assign points if useful.
    Regards,
    Kiran

  • Regarding KSB1 Transaction

    Hi Everyone,
      when we run KSB1 transaction  forn any variant we display the fileds in grid . I need to download that fields where this download option is available on selection screen .how to download those fields to a local file.
    i need to change the transaction with download option ..
    which internal table i need to pass to download Fm.
    Please do the need.
    Thanks & Regards,
    Nagalakshmi.

    In the menu there is an option LOCAL FILE(Ctrl + shif+ F9). >>click >>>spreadsheet>>>Directory : {where u want to save}
    File Name : name of the file ****.xls.
    Now for ur second query  change the transaction with download option..can u  Explain  more what do u exactly want??? Do u want add exit here??

  • Query regarding updation thru a Procedure

    Hi,I have a query regarding updation.
    1.I invoke a procedure in Oracle called submit thru my Java application.
    The submit procedure saves the XML data in the database
    and displays this data in a Front End GUI.
    2. Now,I make a change in my Java application by adding new elements to the same row.This row now contains additional XML elements.
    I would like to display the new row with the new elements in the GUI.
    What is a better option for doing the above?
    1.Delete the row being shown,save the new row with the changes in the database,and re display it?
    2.Or,Update the row dynamically and refresh?
    Any suggestions
    Thanks,

    Hi,I have a query regarding updation.
    1.I invoke a procedure in Oracle called submit thru
    my Java application.
    The submit procedure saves the XML data in the
    database
    and displays this data in a Front End GUI.
    2. Now,I make a change in my Java application by
    adding new elements to the same row.This row now
    contains additional XML elements.
    I would like to display the new row with the new
    elements in the GUI.
    What is a better option for doing the above?
    1.Delete the row being shown,save the new row with
    the changes in the database,and re display it?
    2.Or,Update the row dynamically and refresh?
    Any suggestions
    Thanks,If you delete (it seems to me yours this process is regular and frequent) and re insert the new updated one record then High water mark will cause to scan yours table which may cause to degrade the performance.AFAIK you should go with update.But hold down dont implement it as i suggested lets see what are others solution here which may be more precious then mine.
    Khurram

  • A query regarding synchronised functions, using shared object

    Hi all.
    I have this little query, regarding the functions that are synchronised, based on accessing the lock to the object, which is being used for synchronizing.
    Ok, I will clear myself with the following example :
    class First
    int a;
    static int b;
    public void func_one()
    synchronized((Integer) a)
    { // function logic
    } // End of func_one
    public void func_two()
    synchronized((Integer) b)
    { / function logic
    } // End of func_two
    public static void func_three()
    synchronized((Integer) a)
    { // function logic
    } // End of func_three, WHICH IS ACTUALLY NOT ALLOWED,
    // just written here for completeness.
    public static void func_four()
    synchronized((Integer) b)
    { / function logic
    } // End of func_four
    First obj1 = new First();
    First obj2 = new First();
    Note that the four functions are different on the following criteria :
    a) Whether the function is static or non-static.
    b) Whether the object on which synchronization is based is a static, or a non-static member of the class.
    Now, first my-thoughts; kindly correct me if I am wrong :
    a) In case 1, we have a non-static function, synchronized on a non-static object. Thus, effectively, there is no-synchronisation, since in case obj1 and obj2 happen to call the func_one at the same time, obj1 will obtain lock for obj1.a; and obj2 will obtain lock to obj2.a; and both can go inside the supposed-to-be-synchronized-function-but-actually-is-not merrily.
    Kindly correct me I am wrong anywhere in the above.
    b) In case 2, we have a non-static function, synchronized on a static object. Here, again if obj1, and obj2 happen to call the function at the same time, obj1 will try to obtain lock for obj1.a; while obj2 will try to obtain lock for obj2.a. However, since obj1.a and obj2.a are the same, thus we will indeed obtain sychronisation.
    Kindly correct me I am wrong anywhere in the above.
    c) In case 3, we have a static function , synchronized on a non-static object. However, Java does not allow functions of this type, so we may safely move forward.
    d) In case 4, we have a static function, synchronized on a static object.
    Here, again if obj1, and obj2 happen to call the function at the same time, obj1 will try to obtain lock for obj1.a; while obj2 will try to obtain lock for obj2.a. However, since obj1.a and obj2.a are the same, thus we will indeed obtain sychronisation. But we are only partly done for this case.
    First, Kindly correct me I am wrong anywhere in the above.
    Now, I have a query : what happens if the call is made in a classically static manner, i.e. using the statement "First.func_four;".
    Another query : so far we have been assuming that the only objects contending for the synchronized function are obj1, and obj2, in a single thread. Now, consider this, suppose we have the same reference obj1, in two threads, and the call "obj1.func_four;" happens to occur at the same time from each of these threads. Thus, we have obj1 rying to obtain lock for obj1.a; and again obj1 trying to obtain lock for obj1.a, which are the same locks. So, if obj1.a of the first thread obtains the lock, then it will enter the function no-doubt, but the call from the second thread will also succeed. Thus, effectively, our synchronisation is broken.
    Or am I being dumb ?
    Looking forward to replies..
    Ashutosh

    a) In case 1, we have a non-static function, synchronized on a non-static object. Thus, effectively, there is no-synchronisationThere is no synchronization between distinct First objects, but that's what you specified. Apart from the coding bug noted below, there would be synchronization between different threads using the same instance of First.
    b) In case 2, we have a non-static function, synchronized on a static object. Here, again if obj1, and obj2 happen to call the function at the same time, obj1 will try to obtain lock for obj1.a; while obj2 will try to obtain lock for obj2.a.obj1/2 don't call methods or try to obtain locks. The two different threads do that. And you mean First.b, not obj1.b and obj2.b, but see also below.
    d) In case 4, we have a static function, synchronized on a static object. Here, again if obj1, and obj2 happen to call the function at the same time, obj1 will try to obtain lock for obj1.a; while obj2 will try to obtain lock for obj2.a.Again, obj1/2 don't call methods or try to obtain locks. The two different threads do that. And again, you mean First.b. obj1.b and obj2.b are the same as First.b. Does that make it clearer?
    Now, I have a query : what happens if the call is made in a classically static manner, i.e. using the statement "First.func_four;".That's what happens in any case whether you write obj1.func_four(), obj2.func)four(), or First.func_four(). All these are identical when func_four(0 is static.
    Now, consider this, suppose we have the same reference obj1, in two threads, and the call "obj1.func_four;" happens to occur at the same time from each of these threads. Thus, we have obj1 rying to obtain lock for obj1.aNo we don't, we have a thread trying to obtain the lock on First.b.
    and again obj1 trying to obtain lock for obj1.aYou mean obj2 and First.b, but obj2 doesn't obtain the lock, the thread does.
    which are the same locks. So, if obj1.a of the first thread obtains the lock, then it will enter the function no-doubt, but the call from the second thread will also succeed.Of course it won't. Your reasoning here makes zero sense..Once First.b is locked it is locked. End of story.
    Thus, effectively, our synchronisation is broken.No it isn't. The second thread will wait on the same First.b object that the first thread has locked.
    However in any case you have a much bigger problem here. You're autoboxing your local 'int' variable to a possibly brand-new Integer object every call, so there may be no synchronization at all.
    You need:
    Object a = new Object();
    static Object b = new Object();

Maybe you are looking for

  • Oracle evolution suggestion : NULL and Index

    Hello, As you know in most of case NULL values are not indexed and then not searchable using index. Then when you do where MyField is null, you have the risk of doing a full table scan However most of people don't know that, and then doesn't care of

  • How can I make a imovie event into email size segments

    I recorded a 24 minute bicycle ride and the reults were good. I imported the AVI file event into Imovie and the file is now a wopping Mpeg 4   3.78 GB.   HD 1280 x 720. I tried to share the file to email to some friends (or a segment of) but was far

  • Internet runs slow on my Mac mini

    My internet runs slow on my Mac mini after I loded the new OS

  • Black Border Placed Around Videos

    I upgraded from version 8 of Adobe Premiere Elements 64bit to 10. Using defaults AVI DVNTSC videos played back in GOM or Windows Media Player have a border (frame) about 20% of the image dimension. The characteristics of old and new are the same 720

  • TF255186: The following SQL Server Reporting Services Instance could not be found

    Hi, I'm trying to install TFS 2013 on a remote SQL RS instance.  Using the TFS 2103 U4 installation SQL 2012 RS, name instance, Server: SQLProdA, Instance Name COMRS When I enabled tracing using debugView I see the following output: [4160] [Error  @1