Excise trading in 1st stage

Hi all
My client owns a trading company.
In 1st stage client purchases from manufacturer with excise which he passes to its customer later on during sale. so how to create tax code for passes excise to customer at the time of sale.
How to handle purchase and sales for first stage in SAP B1?
Any soln for this??
Thanks
sudhir

Dear Sudhir,
Excise trading in Indian taxation is like, you purchase a item and pay excise duties later you sales his item and gets back the excise amount.
If your incoming excise tax amount is greater than your outgoing amount than you have to pay this difference to Govt.
Following example will help you to understand excise pass on:
Suppose you are purchasing item X on the price Rs. 100  from vendor V1. Your vendor puts the excise tax BED 10%. Now you are liable to pay Rs 110 to vendor V1.
Now you sale this item X to customer C1 at the cost of Rs. 200 with excise Code BED 12%.
Now your customer is only liable to pay Rs. 212.
How. 
Your Purchase Price            Rs.100
You Payed Excise on           Rs. 100 (Aces sable Value).
Your sale price                          Rs 200
Customer pays Tax on              Rs. 100 (Ace sable Value.)
Please Make sure that Accesable value is not the value on which you purchases item X, But a value on which you actually payed Excise.
In the above example Ace sable value for item X for your customer is Rs 100 only not Rs. 200.
Hope This will help you.
You don't need to create any special Tax code to pass on excise.
Accesable value column is available on marketing document where you can enter value manually.
Best Regards
Ashutosh

Similar Messages

  • Incorrect VAT Clculation - 1st stage dealer Procurement

    Hi,
    I am processing couple of bills (MIRO) for 1st stage dealer. We have created a PO with tax code V2(EDECSShesc+VAT). One of the example:
    Base Amount- 23,788.89 (Price inclusive of Duties)
    JMOP - 0
    JMX1 - 100%
    JEC1 - 2%
    JEX1 - 100%
    JSEP - 1%
    JHX1 - 100%
    JVRD - 4% - 951.56
    JVR1 - 100%- Same as above
    MIGO Postings(Along with MRP Controller Check Box):
    Base Value - 21,362.40
    BED - 2,355.00
    ECS - 47
    SECess - 24
    Part-2 Also posted correctly as per above values in part-1.
    Facing problem during MIRO:
    Enterig base value as: 21,362.40; Further after clicking on calculate
    Tax button. Simulated values are correc for base value,ED,ECS & Shecs.
    But VAT proposed value is 854.49 (its 4% of 21362.40) vis-a-vis 951.56.
    J1ID is maintained properly.
    Need your help in resolving the same.
    Regards

    Hi,
    I am processing couple of bills (MIRO) for 1st stage dealer. We have created a PO with tax code V2(EDECSShesc+VAT). One of the example:
    Base Amount- 23,788.89 (Price inclusive of Duties)
    JMOP - 0
    JMX1 - 100%
    JEC1 - 2%
    JEX1 - 100%
    JSEP - 1%
    JHX1 - 100%
    JVRD - 4% - 951.56
    JVR1 - 100%- Same as above
    MIGO Postings(Along with MRP Controller Check Box):
    Base Value - 21,362.40
    BED - 2,355.00
    ECS - 47
    SECess - 24
    Part-2 Also posted correctly as per above values in part-1.
    Facing problem during MIRO:
    Enterig base value as: 21,362.40; Further after clicking on calculate
    Tax button. Simulated values are correc for base value,ED,ECS & Shecs.
    But VAT proposed value is 854.49 (its 4% of 21362.40) vis-a-vis 951.56.
    J1ID is maintained properly.
    Need your help in resolving the same.
    Regards

  • Import purchase of excisable trading material for depot

    Dear gurus,
    In one of my clients scenario, I have to purchase imported execiasable material from foreign vendor with all the seven excise duties viz CVD,AED,ECS,SCESS, BCD and ECEss and HSECess on BCD.But interesting thing is that he want to inventorised all the excise duties for traded materials .For general import purchase we use ZIMPORT prising and in that only customs duties get inventorised and other CVD,AED,ECS,SCESS duties gets refunded,hence non inventorised.
    My client wants all CVD,AED,ECS,SCESS duties to be posted in respctive excise register for depot and at the same time all the 7 import duties to be inventorised as they are not getting any setoff for that. IF we use same import prising procedure for depot as like that of manufacturing plant, as i said only BCD and ECEss and HSECess on BCD will get inventorised.
    Shall i need to design new prising for depot or new conditions for same import prising?
    Kindly help.

    hi nilesh..
          in depot import purchase, it is not possible to pass entries to RG23D as well as to inventory...
           if u want all the duties to get inventorized u should use no credit/non cenvatable condition type in ur pricing procedure and manually enter that for the respective vendor...
          in this case u cant pass the credit to ur customer...

  • Concurrent Set - use 1st stage parameters into 2nd stage parameters

    Hi all,
    We have developed a concurrent set that has two stages:
    1) a concurrent program that generates a text report as the output.
    2) a concurrent program that sends by email whatever is the output of the first one.
    The first one, the one that generates the report, takes two date parameters, and the second one, the one that sends the email, takes an email address and an email subject as parameters.
    My question is: Would it be possible to print in the emails's subject (parameter of stage 2) the values entered for the parameters in the first stage?
    Basicalle what the user wants is to have both the report's title and execution parameters in the email's subject. The report's title is constant and has been already added, but what about the two date parameters?
    Thanks!!
    German

    A shared parameter would allow me to use the same value for multiple parameters, but what I need to do here is to reference the previous stage parameters and concatenate them together with a constant report's title.
    Something like this:
    SEQ | Prompt | Type | Value
    40 | Email Subject | Constant | Report's Title - from &date_param1 to &date_param2

  • Excise Duty at RFQ Stage

    Dear Friends
    My Customer has a requirement in which they want to compare the different excise duty conditions, sales tax etc.. apart from other conditions and prices.
    How to maintain the same in ME47 and compare.
    Thanks & regards
    Panneer

    Hi Steve,
    In India, still there are various tax systems, out of them, there are deductable and non deductable. May be after few years, for the entire country, the applicable tax will be VAT, which is of deductable.
    Hence, some times, the selection of vendors is inflenced by tax also. Example, we may compare the two vendors, for one deductable is applicable and other case non-deductable.
    But, as you said taxes are not considered for price comparison in SAP.
    We have given a custom development for few clients.
    warm regards
    sairam akundi

  • Track Concept - What do I do with it once finished developing 1st stage?

    Hello,
    Suppose I have finished a lifecycle of a certain track, the Software Component I developed is confirmed at the last tab of the track at the production environment in its 1st version.
    My question is: What do I do with the track now? Do I delete it? And what do I do if I would like to make changes at the developed SC? Do I open new track for it or can I always use the old track for another lifecycle of the SC, this way it will use as a constant track for this SC next versions?

    > Hello Pran,
    >
    > So if I understand correctly, the ongoing development
    > is being done in a single track?
    <b>Yes</b>
    >But how do I use it
    > once its status is approved for production, do I
    > check the project out again for changes and when I
    > check it back in and activate it at the CBS it will
    > reappear at the Assembly tab, just it did when I
    > first developed it?
    <b>Yes but you need to propogate it through DEV and CONS before you hit Assembly</b>
    > And another question: Suppose I would like to open
    > new track, do I simply delete the old one?
    <b>Just create a new one and setup a track connection to the old one so that the SCA can be forwarded to the new track</b>
    > Ragadrs,
    > Roy
    >
    >
    > Message was edited by: Roy Cohen

  • Linux install : 1st stage failure.

    Hello,
    I'm trying to install Oracle 9.2.0.x in my Mandrake box( 2.4.19 ).
    Having uncompressed and doing a 'cpio' created the three Disk's, I go to Disk1 and run runInstaller.
    The environment variables are set correctly. But when I run it errors out "./runInstaller: line 58: ./runInstaller: cannot execute binary file"
    Why is that... I hope the binary can't be corrupted, as it was created right out of that 'cpio'. There is no permission problem either.
    Any guidance would help. Thanks.
    Kramer.

    Hi,
    I found alike problems in Metalink:
    From: Gene Plagge 07-Apr-03 16:00
    Subject: Getting line 58: ./runInstaller: cannot execute binary file
    RDBMS Version: 9.2.0.2
    Operating System and Version: Red Hat Linux release 7.2
    Error Number (if applicable):
    Product (i.e. SQL*Loader, Import, etc.): runInstaller
    Product Version:
    Getting line 58: ./runInstaller: cannot execute binary file
    Hi,
    I've checked and I'm running bash 2.05b.
    GNU bash, version 2.05b.0(1)
    Still getting:
    line 58: ./runInstaller: cannot execute binary file
    What else should I check.
    Thanks,
    Gene
    From: Oracle, Subbiah Kumaraswamy 08-Apr-03 14:54
    Subject: Re : Getting line 58: ./runInstaller: cannot execute binary file
    Hi Gene,
    There is only one article which refers to upgrade the bash
    to 2.05. No similar error in our repository.
    Have you downloaded the Oracle software from the OTN?
    Regards,
    Subbiah.
    OSS.
    From: Mike Grierson 12-Apr-03 11:56
    Subject: Re : Getting line 58: ./runInstaller: cannot execute binary file
    I think the question about the software distribution is on target.
    I went back to the earlier version from OTN and all went well with runInstaller. I made no OS changes, just changed the distribution.
    Hope this helps.
    Mike
    From: Oracle, Subbiah Kumaraswamy 14-Apr-03 10:36
    Subject: Re : Getting line 58: ./runInstaller: cannot execute binary file
    Hi Mike,
    Thanks for your update.
    Regards,
    Subbiah.
    OSS.
    From: Todd Kleine 18-Apr-03 15:34
    Subject: Re : Getting line 58: ./runInstaller: cannot execute binary file
    I am having the same symptoms. You mentioned changing the distribution fixed the problem. Can you clarify which distribution you changed - oracle rdbms or bash?
    Thanks.
    From: Oracle, Subbiah Kumaraswamy 21-Apr-03 10:18
    Subject: Re : Getting line 58: ./runInstaller: cannot execute binary file
    Hi Todd,
    It could be an Oracle distribution in OTN.
    Regards,
    Subbiah.
    OSS.
    From: Jack Wang 21-Apr-03 15:43
    Subject: Re : Getting line 58: ./runInstaller: cannot execute binary file
    I have the same problem too. I downloaded from OTN at Friday (4/18).
    From: Oracle, Subbiah Kumaraswamy 22-Apr-03 10:35
    Subject: Re : Getting line 58: ./runInstaller: cannot execute binary file
    Hi,
    Download the software again and check it.
    Regards,
    Subbiah.
    OSS.
    From: Marcel Snoeck 20-May-03 16:54
    Subject: Re : Getting line 58: ./runInstaller: cannot execute binary file
    I have the same error:
    On the 20 of may 2003
    Is there already a sollution or should we run it under an other shell??
    From: Oradba Team 21-May-03 15:57
    Subject: Re : Getting line 58: ./runInstaller: cannot execute binary file
    Hi ,
    I do have the same problem. I have downloaded from OTN on 13/may/2003
    dba team
    From: Oracle, Subbiah Kumaraswamy 22-May-03 15:01
    Subject: Re : Getting line 58: ./runInstaller: cannot execute binary file
    Hi all,
    If you are on bash 2.05 then try with different distribution
    of software in the OTN.
    Regards,
    Subbiah.
    OSS.
    From: mike clasby 29-May-03 16:37
    Subject: Re : Getting line 58: ./runInstaller: cannot execute binary file
    I have the same problem - I downloaded the Linux files May 23rd...
    We have bash 2.05 - runInstaller will not work!!!
    Please help!
    From: Oracle, Subbiah Kumaraswamy 30-May-03 14:43
    Subject: Re : Getting line 58: ./runInstaller: cannot execute binary file
    Hi,
    Please download it in binary format again.
    Check the sizes are equal.
    Regards,
    Subbiah.
    OSS.
    From: Chris Recker 02-Jun-03 13:20
    Subject: Re : Getting line 58: ./runInstaller: cannot execute binary file
    Has anyone found an answer to this yet?
    From: Oracle, Subbiah Kumaraswamy 02-Jun-03 14:22
    Subject: Re : Getting line 58: ./runInstaller: cannot execute binary file
    Hi,
    Get the software in media(CD) and try the installation.
    Regards,
    Subbiah.
    OSS.
    From: Chris Recker 02-Jun-03 14:51
    Subject: Re : Getting line 58: ./runInstaller: cannot execute binary file
    Are saying I should buy the CD's and install from them rather than download the files from OTN, burn to CD and install?
    From: [email protected] 02-Jun-03 20:41
    Subject: Re : Getting line 58: ./runInstaller: cannot execute binary file
    I am having the same problem as well. I downloaded the files today (6/2) and get the error. I have 9.0.1 but the installer from that didn't work either. I am downloading 9.2.0 and will try that. Is there (or will there be) a patch or some kind of fix for this any time soon. This thread started over a month ago.....
    From: IEA DATABASE TEAM 03-Jun-03 09:34
    Subject: Re : Getting line 58: ./runInstaller: cannot execute binary file
    I am getting exactly the same problem...downloaded a new distribution but did not resolve (also have BASH 2.05b). Can you send me a set can you send me a set of CD's.
    Thanks
    Jason.
    From: Patrick Roy 03-Jun-03 17:59
    Subject: Re : Getting line 58: ./runInstaller: cannot execute binary file
    The most recent version 9.2.0.2 seems to be only for 64 bit chips. This Linux version is for the IA64 a.k.a. Itanium chip. It will not run on the i386 architecture.
    Make sure you download version 9.2.0.1.
    This is how the two versions are listed:
    Oracle9i Database Release 2 Enterprise/Standard Edition for Linux/IA64, Release 2 (v9.2.0.2)
    Oracle9i Database Release 2 Enterprise/Standard Edition for Linux
    Patrick Roy
    [email protected]
    West Fraser Mills Ltd
    From: Oracle, Subbiah Kumaraswamy 04-Jun-03 09:31
    Subject: Re : Getting line 58: ./runInstaller: cannot execute binary file
    Hi,
    Thanks Patrick for your suggestion.
    I've not tested the installation of software downloaded from OTN.
    Regards,
    Subbiah.
    OSS.
    Try other shell -> ksh.
    I use pdksh-5.2.14-13 for Oracle installations;
    Regards,
    Ladislav Jurencak

  • Purchase/sales for 2nd stage dealers in trading company

    Hi all
    My client owns a trading company. There are two types of purchases 1st stage and 2nd stage.
    1. In 1st stage client purchases from manufacturer  with excise which he passes to its customer later on during sale. For this i have managed item by batches and configured excise tax codes. And during sale i despatch the same batch no item which i had purchase before and so pass excise to customer.In Sales invoice report i show the excise purchased from manufacturer at below on the basis of which i am passing to customer.
    2. Now the problem is in 2nd stage in which the purchase is not from manufacturer but it is from dealer. The delear purchases from manufacturer and my client purchases from dealer.
    The dealer is itself like my client who is passing excise to my client. My client has to pass excise to its end customer but the excise passed will be the excise which manufacturer has charged.
    How to handle purchase and sales for second stage in SAP B1?
    Any soln for this??
    Thanks

    Hi
    what i undertsand is
    2. when you purchase a material from delear
    Manufacturer to delear temcost 100 + 20 Excise
    Dealer to you client 120+20 Excise
    Client to clients customer 130 +20 Excise
    your problem is to maintain 20 constant
    if it is so, create another Tax code in the formula instead of using 'base price' use 'assesable value'
    'assesable value'  is what you mention in Item Masterdata right bottom. put 'assesable value  = 20'
    Regards
    Sandeep

  • Excise Problem - 2nd Stage Dealer !!

    Hi,
    Our client buys material directly from factories or from vendors.
    Case1.) when they buy from factory then excise calculation has no problem.
    Case2.) when they buy from 1st stage dealer or 2nd stage dealer then excise calculation has a problem. the dealer increases the price of item after adjusting his profits and passes on the original excise to our client. when making a PO excise gets calculated on the 2nd stage dealer price ... but it shud not happen tht way... it shud be the same as passed on from the factory to the 1st stage dealer and then to 2nd stage dealer. though we have maintained "manual excise" condition in pricing procedure still there is a mismatch during MIRO.
    Any suggestions ???
    TAXINJ Procedure is being followed

    In Migo 105 u can capture&/ Post excise invoice.
    Use manual excise cond. in pricing
    or
    in j1iex use mrp tick
    in Delear case u will have to maintain all the details as per raw material case
    only diffence is in the % of bed ecess and secess put 0 instade of 16 2 and 1
    at the time of po u know that u vendor will give u material at say 100 Rs increse of excise which u dont now and 4 % vat on it
    So u r po will loke like 100 basic
    bed 0
    ecess0
    scess 0
    vat 4
    total 104
    now whe u do GR
    u come to know u have 8 bed 1.6 ecess 0.8 sccess
    at the time of gr in Excise tab value
    put the excise base as 100-8-1.6-0.8 = 89.6
    and in bed 8
    ecess 1.6
    secess0.8
    and in header tab of excise in miscellaneous tab tick MRP indicator
    save ur part one and 2 posted
    then do the miro
    on item line it will show 100 as amount change it to 89.6
    click on calculate tax
    and ur excate payment of rs 104 will be done to vendor
    this the the correct process of Delear case
    Hope this is help full
    Reward if usefull
    Refer
    Reservation deletion after specified period

  • Excise in Trading company

    Hi
    Plz give detail of handling excise in SAP B1 for trading company.As it is pass on to the customer so is excise levied in general manner as in case of manufacturing companies.
    Thanks

    Dear Mr. Malhotra,
    Capturing Trading excise in SAP B1 is a tedious process, apart from just capturing excise values in purchase side and its corresponding movement in sales side, there are other things that needs to be taken care of like first stage sales and second stage sales depending on the traders and it can be locally manufactured goods or imported ones and there is lot of information that needs to be captured.  Moreover the trading excise will not appear in actual book of accounts of the traders, but still it is part of the cost during purchase and the same has to be passed on while sales (Might sound a bit confusing, but that is how it works).
    There is an addon available in the market for trading excise which can handle stage I and II excise transactions to include bonded warehouse concept and reports and registers such as RG23D, Form 2 sales, and Form 2 purchase etc., we have companies which are successfully using them already.
    Contact me if you are interested.
    regards,
    Murali

  • MIRO Problem - 2nd Stage Dealer !!

    HI
    Our client buys lots of raw material from 1st stage & 2nd stage dealers. They pass on Excise credit to our client.
    This amount of excise credit is not known at the time of creating a PO. So the PO has only VAT condition calculated by the tax code (TAXINJ).
    ( Vendor gives excise invoice during delivery)
    During GR they just capture the excise amount and tick the MRP indicator as well.
    Then excise amount is posted with J1IEX .
    .... Now the problem is tht during MIRO when we see simulation the excise amount is not posted to excise account but goes to price variances and stock acnt(inventory)
      .. This creates a problem in accnting .. a big headache for accnts people......
    ... Guys tell me if the process is right or wrong and tell me if any other solution possible
    Thank You

    Hi,
    this is a common scenario in all purchase of exciseable goods in India. It is called commerically as E2 purchase.
    at the time creation of PO the excise part is not known. the dealer passes you the excise from the manufacturer. at the time of goods receipt only you come to know about the excise details.
    steps are:
    1) create the PO with the dealer price and give Tax code as V0(Zero tax). if other conditions like discount, freight etc are there, give the value.
    2) DO J1IEX, tick the MRP indicator, in the miscellanous TAB you will find vendor field also. this field is used to capture the vendor number from whom the excise invoice has come.
    give the values of excise duties in the exciseTAB what is mentioned in your vendor excise invocie.
    this way the system will correct your basic price.( as dealer price includes the excise duty)
    3) at the time of MIRO, the system will default the value as mentioned in the PO.
    here you have to change the value and give the correct tax code.
    you will get the right posting.
    This is the way SAP document says on dealer purchase.
    I understand your headache.
    You drop me your mailid at [email protected]
    I will see you get this document today, I have to search or
    give me a day or two I will send you the SAP document on dealer purchase.
    Regards
    Rajesh

  • !st Stage Dealer

    Hi Friends,
                         Can anybody explain how to do the procurement through 1st stage deale withCST and with VAT?( we don't know the base value of passon duty of 14.42 atthe time of PO).Please reply

    Hi,
    1. Create purchase order and enter net price (inclusive of base value and excise duties)
    2. Excise duties not computed. (Excise duties = 0)
    3. Capture of excise invoice
    A) Capturing excise invoice together with goods receipt through transaction MIGO
    - MRP indicator found in the Miscellaneous TAB popped up when you click on u201CMore datau201D button on Excise invoice tab at the header level in MIGO
    The excise base value is defaulted as the PO price and the excise duties are zero. The excise base is changed such that the sum of the excise base value and the excise duties remain the same as the PO price. The excise base is reduced by the excise duty value and the differential amount is split amongst the relevant excise duty components.
    Hence the material valuation also takes place correctly with the changed amount put as the excise base value. Otherwise this would incorrectly get inflated by the excise duty value also.
    B) Capture excise invoice through transaction J1IEX
    - MRP indicator found on the Miscellaneous tab in J1IEX
    The excise base value is defaulted as the PO price and the excise duties are zero. The excise base is changed such that the sum of the excise base value and the excise duties remain the same as the PO price. The excise base is reduced by the excise duty value and the differential amount is split amongst the relevant excise duty components.
    4. Invoice verification process through MIRO
    Change the base value from PO Value to Assessable Value as per Vendor Invoice same as the base value of EI.

  • Excise tab is not displayed in MIGO

    Dear All,
    i am getting one problem,
    eg:-  when i received a material in MIGO with Excise Details, all are happening properly, but when i am going to see the Material Document in Display mode, that time i am not able to see Excise tab.
    due to that problem, i am not able to post Excise invoice in system.
    <<<Text removed>>>>>
    Moderator message : Please post thread with appropriate subject.Please follow forum rules.
    Edited by: Jeyakanthan A on Sep 20, 2011 12:21 PM

    Hi,
    You have two issues:
    1. Capture excise in MIGO t.code
    2.Display mode of Material Document , need to view Excise tab.
    For 2nd issue you need get authorization for  Display Material Document with excise details
    For 1st issue follow setting:
    As you needed excise to be capture in t.code:MIGO, you need to do following settings:
    Select check boxes of "EI capture" & "Post EI in MIGO" in MIGO Settings segment in Maintaining Excise Group setting in following path:
    SPRO --- >Logistics general - > tax on Goods Movements- >India --- >Basic setting --- >Maintain Excise Groups
    NOTE: Also set "Duty different at GR"  check box in case manual entry excises value in case of Dealer Invoice.
    Also set entry of 101 Movement Type for capturing Excise Duties in following path:
    SPRO --- >Logistics general - > tax on Goods Movements- >India - >Business Transactions->Specify Which Movement Types Involve Excise Invoices
    Regards,
    Biju K

  • Is it possible to display A/R Invoice Installment stages in ALD?

    Hi everyone
    I need to know if it is possible to print the same number of invoices as installment stages that are defined in teh Accounting tab of the form and instead of the Invoice total the installment stage totals are printed? When you go to the BP Account balance the installment stage totals are displayed as three seperate rows.
    so for example if an invoice was created on the 11/12/07 for Item1 with the total as £100, the BP payment term created shows that the invoice will be paid in 3 installments with stage 1 as 50% of the total on the doc date (11/12/07) which makes it £50 and the 2nd stage as 25% (£25) 10 days after the 1st stage (21/12/07) and the 3rd stage is 25% which also equals £25 another 10 days later (31/12/07).
    so for the above example can i create 3 invoices in ALD/PLD the first one showing 11/12/07 and £50 total, the 2nd invoice with 21/12/07 and £25 total and the 3rd invoice 31/12/07 with £25 total?
    Any help would be appreciated
    Kind regards

    Hi
    The information you are looking for is in the INV6 table. In PLD you will need these on row level. You can access the table creating a datafield in the row and then by pressing the ALT key and clicking on the table dropdown on the content tab.
    The table is not linked to the layout by default so you will have to experiment by relating the fields in the row to the instalment id field.
    Regards
    Daan

  • How to pass values from one stage to other

    I have two stage (say primary and secondary).The primary stage creates the secondary stage. When the secondary is opened i can access all the members(say bitNo) of 1st stage and try to set some value. But in the 1st stage i find the value not being set. I think it's because 1st is executed before the 2nd. I used showAndWait() in 1st then show() on 2nd then it is throwing exception.
    So i want to use the values set by the 2nd stage in the 1st stage.
    How do i synchronize them ?
    Thanks .
    package test;
    import javafx.application.Application;
    import javafx.event.*;
    import javafx.scene.*;
    import javafx.scene.control.*;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.*;
    import javafx.stage.*;
    public class Test extends Application {
        private int bitNo;
        Stage primaryStage,secondaryStage;   
        TextField textField;   
        double x,y;
        public static void main(String[] args) { launch(args); }
        @Override
        public void start(final Stage primaryStage) {
            this.primaryStage=primaryStage;
            Group rt=new Group();
            Scene sc= new Scene(rt,300,300);
            Button button =new Button("Click Me");
            button.setOnAction(new EventHandler<ActionEvent>() {
                @Override
                public void handle(ActionEvent event) {
                    secondaryStage=new Stage(StageStyle.TRANSPARENT);
                    secondaryStage.initModality(Modality.WINDOW_MODAL);
                    secondaryStage.initOwner(primaryStage);    
                    showSecondaryWindow();
            rt.getChildren().add(button);          
            primaryStage.setScene(sc);
            primaryStage.show();
            //primaryStage.showAndWait();
            System.out.println("Bit no set= "+bitNo);      
    }//start
    public void showSecondaryWindow(){
         Pane root=new Pane();
         root.setStyle("-fx-background-color: rgb(0,50,70);");
         //root.setPrefSize(200,200);
         Scene scene=new Scene(root,200,300);
         Label label=new Label("Data");
         textField=new TextField();
         textField.setUserData("one");
         Button ok=new Button("Ok");
         ok.setDefaultButton(true);
         ok.setOnMouseClicked(new EventHandler<MouseEvent>() {
            @Override
            public void handle(MouseEvent event) {
                System.out.println("New Stage Mouse Clicked");
                bitNo=Integer.parseInt(textField.getText());
                System.out.println("Bit no set by Secondary= "+bitNo);
                primaryStage.getScene().getRoot().setEffect(null);
                secondaryStage.close();
         Button cancel=ButtonBuilder.create().cancelButton(true).text("Cancel").build();
         cancel.setOnMouseClicked(new EventHandler<MouseEvent>() { 
             @Override
             public void handle(MouseEvent event) {
                 System.out.println("New Stage Mouse Clicked");
                 primaryStage.getScene().getRoot().setEffect(null);
                 secondaryStage.close();
         //VBox vBox =new VBox();
         //vBox.getChildren().addAll(label,textField,ok);
         HBox dataFileds=new HBox(10);
         dataFileds.getChildren().addAll(label,textField);
         HBox buttons=new HBox(10);
         buttons.getChildren().addAll(cancel,ok);
         root.getChildren().add(VBoxBuilder.create().children(dataFileds,buttons).spacing(10).build());
         //scene.getStylesheets().add(Test.class.getResource("Modal.css").toExternalForm());
         secondaryStage.setScene(scene);
         //final Node root = secondaryStage.getScene().getRoot();
         root.setOnMousePressed(new EventHandler<MouseEvent>() {
             @Override public void handle(MouseEvent mouseEvent) {
                 // record distance for the drag and drop operation.
                 x = secondaryStage.getX() - mouseEvent.getScreenX();
                 y = secondaryStage.getY() - mouseEvent.getScreenY();
         root.setOnMouseDragged(new EventHandler<MouseEvent>() {
             @Override public void handle(MouseEvent mouseEvent) {
                 secondaryStage.setX(mouseEvent.getScreenX() +x);
                 secondaryStage.setY(mouseEvent.getScreenY() +y);
         //primaryStage.getScene().getRoot().setEffect(new BoxBlur());
         secondaryStage.show();
    }//showSecondaryWindow
    }//class

    You can use showAndWait() on your secondary stage. Then execution is blocked and you'll see the change to your variable:
    package test ;
    import javafx.application.Application;
    import javafx.event.*;
    import javafx.scene.*;
    import javafx.scene.control.*;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.*;
    import javafx.stage.*;
    public class Test extends Application {
      private int bitNo;
      Stage primaryStage, secondaryStage;
      TextField textField;
      double x, y;
      public static void main(String[] args) {
        launch(args);
      @Override
      public void start(final Stage primaryStage) {
        this.primaryStage = primaryStage;
        Group rt = new Group();
        Scene sc = new Scene(rt, 300, 300);
        Button button = new Button("Click Me");
        button.setOnAction(new EventHandler<ActionEvent>() {
          @Override
          public void handle(ActionEvent event) {
            secondaryStage = new Stage(StageStyle.TRANSPARENT);
            secondaryStage.initModality(Modality.WINDOW_MODAL);
            secondaryStage.initOwner(primaryStage);
            // This calls showAndWait(), so execution blocks until the window is closed
            showSecondaryWindow();
            // secondary window is now closed, value should be updated:
            System.out.println("Bit no now: " + bitNo);
        rt.getChildren().add(button);
        primaryStage.setScene(sc);
        primaryStage.show();
        // primaryStage.showAndWait();
        System.out.println("Bit no set= " + bitNo);
      }// start
      public void showSecondaryWindow() {
        Pane root = new Pane();
        root.setStyle("-fx-background-color: rgb(0,50,70);");
        // root.setPrefSize(200,200);
        Scene scene = new Scene(root, 200, 300);
        Label label = new Label("Data");
        textField = new TextField();
        textField.setUserData("one");
        Button ok = new Button("Ok");
        ok.setDefaultButton(true);
        ok.setOnMouseClicked(new EventHandler<MouseEvent>() {
          @Override
          public void handle(MouseEvent event) {
            System.out.println("New Stage Mouse Clicked");
            bitNo = Integer.parseInt(textField.getText());
            System.out.println("Bit no set by Secondary= " + bitNo);
            primaryStage.getScene().getRoot().setEffect(null);
            secondaryStage.close();
        Button cancel = ButtonBuilder.create().cancelButton(true).text("Cancel")
            .build();
        cancel.setOnMouseClicked(new EventHandler<MouseEvent>() {
          @Override
          public void handle(MouseEvent event) {
            System.out.println("New Stage Mouse Clicked");
            primaryStage.getScene().getRoot().setEffect(null);
            secondaryStage.close();
        // VBox vBox =new VBox();
        // vBox.getChildren().addAll(label,textField,ok);
        HBox dataFileds = new HBox(10);
        dataFileds.getChildren().addAll(label, textField);
        HBox buttons = new HBox(10);
        buttons.getChildren().addAll(cancel, ok);
        root.getChildren().add(
            VBoxBuilder.create().children(dataFileds, buttons).spacing(10).build());
        // scene.getStylesheets().add(Test.class.getResource("Modal.css").toExternalForm());
        secondaryStage.setScene(scene);
        // final Node root = secondaryStage.getScene().getRoot();
        root.setOnMousePressed(new EventHandler<MouseEvent>() {
          @Override
          public void handle(MouseEvent mouseEvent) {
            // record distance for the drag and drop operation.
            x = secondaryStage.getX() - mouseEvent.getScreenX();
            y = secondaryStage.getY() - mouseEvent.getScreenY();
        root.setOnMouseDragged(new EventHandler<MouseEvent>() {
          @Override
          public void handle(MouseEvent mouseEvent) {
            secondaryStage.setX(mouseEvent.getScreenX() + x);
            secondaryStage.setY(mouseEvent.getScreenY() + y);
        // primaryStage.getScene().getRoot().setEffect(new BoxBlur());
        secondaryStage.showAndWait();
      }// showSecondaryWindow
    }// classYou can also use an IntegerProperty to hold the variable, and listen for changes on it:
    package test ;
    import javafx.application.Application;
    import javafx.beans.property.IntegerProperty;
    import javafx.beans.property.SimpleIntegerProperty;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.event.*;
    import javafx.scene.*;
    import javafx.scene.control.*;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.*;
    import javafx.stage.*;
    public class Test extends Application {
      private IntegerProperty bitNo;
      Stage primaryStage, secondaryStage;
      TextField textField;
      double x, y;
      public static void main(String[] args) {
        launch(args);
      @Override
      public void start(final Stage primaryStage) {
        this.bitNo = new SimpleIntegerProperty();
        bitNo.addListener(new ChangeListener<Number>() {
          @Override
          public void changed(ObservableValue<? extends Number> observable,
              Number oldValue, Number newValue) {
            System.out.printf("bit no changed from %d to %d%n", oldValue, newValue);
        this.primaryStage = primaryStage;
        Group rt = new Group();
        Scene sc = new Scene(rt, 300, 300);
        Button button = new Button("Click Me");
        button.setOnAction(new EventHandler<ActionEvent>() {
          @Override
          public void handle(ActionEvent event) {
            secondaryStage = new Stage(StageStyle.TRANSPARENT);
            secondaryStage.initModality(Modality.WINDOW_MODAL);
            secondaryStage.initOwner(primaryStage);
            showSecondaryWindow();
        rt.getChildren().add(button);
        primaryStage.setScene(sc);
        primaryStage.show();
        // primaryStage.showAndWait();
        System.out.println("Bit no set= " + bitNo.get());
      }// start
      public void showSecondaryWindow() {
        Pane root = new Pane();
        root.setStyle("-fx-background-color: rgb(0,50,70);");
        // root.setPrefSize(200,200);
        Scene scene = new Scene(root, 200, 300);
        Label label = new Label("Data");
        textField = new TextField();
        textField.setUserData("one");
        Button ok = new Button("Ok");
        ok.setDefaultButton(true);
        ok.setOnMouseClicked(new EventHandler<MouseEvent>() {
          @Override
          public void handle(MouseEvent event) {
            System.out.println("New Stage Mouse Clicked");
            bitNo.set(Integer.parseInt(textField.getText()));
            System.out.println("Bit no set by Secondary= " + bitNo);
            primaryStage.getScene().getRoot().setEffect(null);
            secondaryStage.close();
        Button cancel = ButtonBuilder.create().cancelButton(true).text("Cancel")
            .build();
        cancel.setOnMouseClicked(new EventHandler<MouseEvent>() {
          @Override
          public void handle(MouseEvent event) {
            System.out.println("New Stage Mouse Clicked");
            primaryStage.getScene().getRoot().setEffect(null);
            secondaryStage.close();
        // VBox vBox =new VBox();
        // vBox.getChildren().addAll(label,textField,ok);
        HBox dataFileds = new HBox(10);
        dataFileds.getChildren().addAll(label, textField);
        HBox buttons = new HBox(10);
        buttons.getChildren().addAll(cancel, ok);
        root.getChildren().add(
            VBoxBuilder.create().children(dataFileds, buttons).spacing(10).build());
        // scene.getStylesheets().add(Test.class.getResource("Modal.css").toExternalForm());
        secondaryStage.setScene(scene);
        // final Node root = secondaryStage.getScene().getRoot();
        root.setOnMousePressed(new EventHandler<MouseEvent>() {
          @Override
          public void handle(MouseEvent mouseEvent) {
            // record distance for the drag and drop operation.
            x = secondaryStage.getX() - mouseEvent.getScreenX();
            y = secondaryStage.getY() - mouseEvent.getScreenY();
        root.setOnMouseDragged(new EventHandler<MouseEvent>() {
          @Override
          public void handle(MouseEvent mouseEvent) {
            secondaryStage.setX(mouseEvent.getScreenX() + x);
            secondaryStage.setY(mouseEvent.getScreenY() + y);
        // primaryStage.getScene().getRoot().setEffect(new BoxBlur());
        secondaryStage.show();
      }// showSecondaryWindow
    }// class

Maybe you are looking for

  • Moving My  i Tunes Folder To A Different Drive

    I'm runnung Win XP Pro. I have installed my iTunes to an external drive, as my free space on my C drive is getting a bit scarce. I see that all my music is stored in the iTunes/ My Music/My Documents Folder located on my C drive. Is there any way to

  • How to format my macbook pro, without OSX DVD?

    HI , i want to format my macbook pro , want delete everything and reinstall OSX. but i dont have any DVD of it , is there any way to reinstall OSX? i want to empty my macbook and want to install all apps again , as my macbook is too much slow , and b

  • Error message display

    Hi , Iam using Jdev 11.1.1.6.0 web logic 10.3. I implemented authentication and authorization it works fine . but error messages are displaying in a pop up . how can i make that error message to display as inline in the form layout. Thanks Raghav

  • Editable text box on each page, but generated from Master Page?

    I want to create a blank text box that lives on the Master Page so that it shows up on each page in the document, but I then would enter custom text into the field on each page ( or just leave it blank). I know, I know, I can do simply copy a text bo

  • Training classes for webdynpro?

    Hi, does anyone know, if or when SAP education will offer training classes for WebDynpro? I was looking for it on the Market Place, but could not find anything. Thanks, Patricia