VA05 Transaction Userexit Division Problem

Hi All,
I have a problem during division for VA05 Transaction.
I had appended few fields in VBMTV structure.
Fieldname        Data Element   Data type  length Decimal  Refernce table   Refernce field
ZZSETREM      ZSETREM        QUAN        13      3           VBMTV               VRKME
ZZDPNTWT      ZDPNTWT        QUAN         13     3            VBMTV                VRKME
Now in the program V05TZZMO,
I am calculating as          lvbmtv-zzsetrem = ( lvbmtv-zzdpntwt / lvbap-ntgew ) * 100.
During debugging   lvbmtv-zzdpntwt = 20.000 and lvbap-ntgew = 950.000.But still no calculation takes place and lvbmtv-zzsetrem = 0.00. For a lesser value say ( 2/4 ) * 100...calculation does takes place.
I declared the same in a Z program and gave those values it was working perfectly. But in this program the division fails. I tried all the different data types but unsuccessful. Due to some reason the division never takes place. Kindly guide me on this issue.
Thanks n regards,
Vinayan

Hi All,
         Thanks for your response. As said by u all i tried all the steps.
In Tripati's answer it is found that when i tried :
lvbmtv-zzsetrem = ( lvbmtv-zzdpntwt * 100 ) / lvbap-ntgew.
This method gave me an answer in computation but the problem faced is:
if lvbmtv-zzdpntwt = 20.000 and
   lvbap-ntgew     = 950.000
The actual answer based on above calculation should be 2.105.
But in my program V05TZZMO,after calculation the result in lvbmtv-zzsetrem comes as 0.002
Kindly give a suggestion on this.

Similar Messages

  • Purchase order number in VA05 transaction

    Hi,
    When i excute VA05 transaction by  giving sales orginization number by selecting orginational data tab in initial screen the purchase order number is balnk ,but when i give sales document type in further selection criteria the purchase order number appears for same sales order no and sales document type.
    Please let me if any one has faced this issue.
    FYi we have recently gone for upgrade from 4.6c to ECC.This works fine in 4.6c.
    Regards,
    Sunil.K

    reolved by my self

  • Report painter GRR3...Division problem.

    Hi All
    In report painter i have a division problem. I am calculationg Gross profit percentage as
    Gross Profit % = ( Gross Profit / Sales ) * 100.
    So the value should be
    GP % = ( 2523302.56 / 14067690 )*100 = 17.93 ( As per calculator )
    But the SAP is showing the value as 18.09. Can you please guide me what could be the problem?
    Moderator message: not directly related to ABAP development, please post again in the appropriate functional forum.
    locked by: Thomas Zloch on Oct 4, 2010 1:26 PM

    Thanks,
    I didn't chosse the copy function, instead I insert  row 104(other current asset) , but I find the first column (which should be a formula)corresponds to row 104 is empty, and I check all formula ID under formula components, there is no other current asset
    formula ID, what should I do?
    Row 103(current asset) has a formula ID, but new inserted rows can't find formula ID

  • Organizational data missing in va05 transaction

    Hi Experts
             In VA05 transaction, in application toolbar, there will be 4 push buttons, including
                1. Disp Vaiants
                2. Further Sel.Criteria
                3. Organizational Data
                4. Partner functions
          Now, in my system, i am not getting the display of Organizational Data and partner functions.
               What could be the reason, whether they have done any transaction variants or any exits.
    Thanks in advance.
    Regards
    Rajaram

    authorization is given sucessfully.
    what could be the reason.
    Regards
    Rajaram

  • Drilldown from workbook to R3 Transaction. InfoSource problem

    Hello sapfans,
    Using RSBBS i've made a link between a workbbok and a R3 transaction. The problem is that each time the user choose the path:
    GoTo->MyTransaction the Bex ask him to select an InfoSource.....
    How do i Make this Popup to disapear??? I already chose the infosource and save the workbook but no results... 
    Please Advice,
    Amir

    Amir,
    Have you specified an InfoSource in RSBBS? Specify an InfoSource there and then try. InfoSource popup should not come then.
    Cheers
    Aneesh

  • USER EXITs/BADis in VA05 transaction. Performing extra checks

    Hello gurus
    I need to perform an extra authority check in VA05 transaction. I need a USER EXTI/BADi/BTE in which I can perform the extra authority check and if the authority check fails the line shouldn´t be displayed on the starndard ALV.
    My boss does not want to create a copy of the program so I need a user exit or another way to perform this.
    Anyone can help me?
    Thank you veri much and kind regards
    Ibai Ramirez

    Hi,
    Here mentioned some of badi's and user exits,hope it will help you....
    Badi : FTR_TR_FIMA_CALLBACK
    User Exits
    FTRINCON  User exits  for confirmation status
    RFTBB001  Treasury: Posting interface
    RFTBB010  Treasury: Posting Interface Due to Cust.-Spec. Acct Determtn
    RFTBB011  Treasury: Post.Interface due to SCB Indic. and Deliver.Cntry
    RFTXX301  Customer Exit mt300 header
    RFTXX302  Customer Exit mt300 trailer
    RFTXX321  Customer Exit mt320 header
    RFTXX322  Customer Exit mt320 trailer
    SAPMFTD1  User Exit Treasury data carrier management

  • Listing sales order with va05 transaction code

    Hi friends,
    I have updated partner function 'SH' in va05. For partner function 'SH' I can list only new orders i.e orders created after making this changes. How do i view older sales orders with the above Partner function. Please advise
    Regards,
    Uday

    Dear freind,
    If you give no date in the VA05 transaction it will show you all the order for that particlular Customer.
    If you want to filter you can do it by further seclectiuon crietera...
    Hope this helps you ...
    award points if helpful.,
    regards,
    Amlan

  • Division problem in sales order

    Hi all,
    In my company there are at present 6 different divisions. Also I have created a common division as the end user was facing problems of customer extension.
    1. The excise duty rates are different for all divisions.
    2. When I create the sales order and if i select suppose 2 different divisions then the system is accepting. This will definitely pose a problem for me when the I create the inoice as the duty rates will be different.
    Please guide me as to how to prevent the different divisions being entered at the same time in the sales order.
    <b>Settings in VOV8:</b>
    Check division - no dialogue
    Item division - No tick
    Regards,
    Allabaqsh G. Patil

    Hi Patil,
    You can use the check division option to make sure the division of the materials entered in the sales order is the same as the one entered in the first screen of order entry. This way you can avoid materials of two different division entered in the same sales order and hence one excise duty rate would be applicable. The drawback here is you might have to extend the customers to all sales areas apart from the existing reference ones.
    <b>Alternative</b>
    If the excise duty is applied using a condition type with an access sequence then maybe you could include the material division as one field and apply the excise duty accordingly. I'm not with the SAP system hence not in a position to give you the field name for the material division in the sales order document. Just check the item level data you would find a field with the material division.
    Regards
    Nadarajah Pratheb

  • Change transaction using BDC-problem for large number of lines on screen

    Hi All,
    I am developing BAPI (using BDC) which creates quality notification in SAP which is entered via front end web application. Structure p_qmsm contain 3 lines of task in notification. The code is as given below. To avoid problem of large no of lines on screen,code lines starting with * is used. This actually for pagedown after entering every 2 lines and creates new line. so that 2 lines always push up on screen and there will not be problem for creating large no of lines on screen
    perform bdc_dynpro using 'SAPLIQS0' '7200'.
    perform bdc_field using 'BDC_OKCODE' '=10\TAB11'.
    LOOP AT p_qmsm INTO wa_qmsm.
    *IF wa_qmsm_cntr > 2.
           wa_qmsm_cntr = 2.
           perform bdc_dynpro  using 'SAPLIQS0'                   '7204'.
           perform bdc_field   using 'BDC_OKCODE'                 '=PEND'.
    ENDIF.
    perform bdc_dynpro using 'SAPLIQS0' '7204'.
    perform bdc_field using 'BDC_OKCODE' '/00'.
    CONCATENATE 'VIQMSM-QSMNUM(' wa_qmsm_cntr ')' INTO wm_qmsm_qsmnum.
    CONCATENATE 'VIQMSM-MNGRP(' wa_qmsm_cntr ')' INTO wm_qmsm_mngrp.
    CONCATENATE 'VIQMSM-MNCOD(' wa_qmsm_cntr ')' INTO wm_qmsm_mncod.
    CONCATENATE 'VIQMSM-MATXT(' wa_qmsm_cntr ')' INTO wm_qmsm_matxt.
    perform bdc_field using wm_qmsm_qsmnum wa_qmsm-qsmnum.
    perform bdc_field using wm_qmsm_mngrp wa_qmsm-mngrp.
    perform bdc_field using wm_qmsm_mncod wa_qmsm-mncod.
    perform bdc_field using wm_qmsm_matxt wa_qmsm-matxt.
    wa_qmsm_cntr = wa_qmsm_cntr + 01.
    ENDLOOP.
    CALL TRANSACTION 'IQS2' USING wt_bdc
    MODE 'N' UPDATE 'A'  MESSAGES INTO P_MESSTAB.
    The same code is used in modify mode also. web application is sending all 3 lines in modify mode even if single line is modified. It is already decided to send all rows back from web application to SAP in same sequence. It is working fine if i comment 5 lines which is starting with *. But in modify mode, how can i ensure that correct row is modified? and how can i achieve problem of large no of lines on screen?Please suggest?

    Hi yogesh,
    how can i ensure that correct row is modified?
    1. For this we need to know two things ;
       a) the database table in which the entries are already stored
       b) the sequence in which they are displayed in the transaction.
    2. So before changing any line, we need to compare (the primary key values / important values)
       a) as per the database table and as per the incoming data from web application (using bapi)
      b) if the match is ok, it means that particular row was not modified, else modified.
    how can i achieve problem of large no of lines on screen?
    1. For this I am  not sure about the transaction and its screen. Manytimes for appending row on the screen,
      there is a PLUS + button on the grid toolbar. So for every entry, (inspite of some empty/filled rows already visible on the screen), we should use the + button, and this new row always appears on the top i.e. row number 1.
    hope this helps.
    regards,
    amit m.

  • Handling Transaction in Webdynpro problem?

    hi All of you;
    I am getting very peculiar problem :The problem is that data that i am inserting into R/3 using BAPI is committing without any call of Commit Bapi.The function Module of that BAPI also donot have commit method.Then also data is inserting into the R/3.I am not able to figure out the solution ;is there any problem by me in handling transaction thru webdynro or some problem in BAPI.
    Regards
    Nidhideep

    Hi,
    I guess problem is in BAPI only.
    Check from BAPI only, by running that individually.
    Coz, from Web Dynpro we wont be having any control on that, unless we call commit statement explicitly.
    Regards,
    Sridhar

  • Transaction Variant related problem in Drill Down working

    Dear Sir,
    We had a business requirement that in CO02 transaction users should now be allowed to change the Material Component quantity . To address this requirement we had created a Transaction Variant YCO02 and it is working in normal course .
    However we face problem in certain Drill-Down working . E.g in Tcode COOIS , when users double click a Production Order it goes to CO02 and user has no authorization for CO02 .  Insteat of CO02 , user has authorization for YCO02 .
    Pl guide us as how can we resolve this problem.
    With Thanks and Rgds
    Sonia Agarwal

    Dear Mr KrishnamurthyDSS
    Thanks for reply .
    Pl clarify that can we make Transaction Variant with the same name i.e CO02 . 
    If Transaction Variant and  Original Transaction have the same name (i.e CO02) then how to control the authorization , because we want to give authorization only for Transaction Variant one and not for base transaction .
    Kindly help me pl .
    Rgds
    Sonia Agarwal

  • VA05 transaction

    Hi,
    the user requirement is when the list of sales orders is displayed using transaction VA05, if he selects a single record and presses an icon it should take him to the screen VA03.
    There is no user exit for this.CAn anyone let me know how can we achieve this?
    Thanks,
    keerthi.

    You need to copy complete SAPMV75A Program to ZSAPMV75A
    You need to modify below include
    RVREUSE_FORMS  -> Include Program
    IF NOT PS_SD_ALV-GRID_DISPLAY IS INITIAL.
        CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    MV75ANEU_USER_COMMAND  -> include program
    FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
                            RS_SELFIELD TYPE SLIS_SELFIELD.
      SY-UCOMM = R_UCOMM.
      READ TABLE POSTAB INDEX RS_SELFIELD-TABINDEX.
      IF SY-SUBRC = 0.
        DUMMY = '1'.
      ELSE.
        CLEAR DUMMY.
      ENDIF.
      STATICS: GRUP_FLAG.
      STATICS: SAVE_LAYOUT LIKE  GS_SD_ALV-LAYOUT.
      IMPORT LV_REPID FROM MEMORY ID LV_INDX_KEY.
      IF NOT LV_TRVOG IS INITIAL.
        VBCOM-TRVOG = LV_TRVOG.
      ENDIF.
      CASE R_UCOMM.
    here you need to use user command to get interactive option to va03  
        WHEN 'GRUP'.
          PERFORM ALV_FCODE_GRUP USING GRUP_FLAG
                                       R_UCOMM
                                       RS_SELFIELD.
          EXIT.
        WHEN '&OUP'.
          GRUP_OK      = 'X'.
          PERFORM ALV_FCODE_OUP USING GRUP_FLAG
                                      R_UCOMM
                                      RS_SELFIELD.
          CLEAR GRUP_OK.
          EXIT.
        WHEN 'ANZE'.
          RS_SELFIELD-REFRESH = 'X'.
          PERFORM ALV_OKCODE_AEND USING SPACE.
        WHEN 'AEND'.
          RS_SELFIELD-REFRESH = 'X'.
          PERFORM ALV_OKCODE_AEND USING 'X'.
        WHEN 'AKDK'.
          PERFORM OKCODE_AKDK.
        WHEN 'AUSW'.
          PERFORM OKCODE_AUSW.
        WHEN 'BACK'.
          PERFORM OKCODE_BACK.
        WHEN 'BELF'.
          PERFORM OKCODE_BELF.
        WHEN 'BELG'.
          PERFORM OKCODE_BELG.
        WHEN 'BELS'.
          PERFORM OKCODE_BELS.
        WHEN 'DARS'.
          PERFORM DARSTELLUNG_ANZEIGEN.
        WHEN 'DYWF'.
          PERFORM OKCODE_DYWF.
        WHEN 'DYWI'.
          PERFORM OKCODE_DYWI.
        WHEN 'F15'.
          PERFORM OKCODE_EF15.
        WHEN 'EF17'.
          PERFORM OKCODE_EF17.
        WHEN 'KUST'.
          PERFORM OKCODE_KUST.
        WHEN 'LIAK'.
          PERFORM ALV_OKCODE_LIAK USING R_UCOMM
                                        RS_SELFIELD.
        WHEN 'LIZW'.
          PERFORM OKCODE_LIZW.
        WHEN 'MABE'.
        Massenbearbeitung zur Erzeugung von Folgebelegen
          PERFORM MASSENBEARBEITUNG_AUFRUFEN.
        perform okcode_mabe.
        WHEN 'MASS'.
          PERFORM OKCODE_MASS.
        WHEN 'MAST'.
          PERFORM OKCODE_MAST.
    Massenänderung: Neues Material
        WHEN 'MMAT'.
          PERFORM OKCODE_MMAT.
      Massenänderung: Markierung in allen Sätzen zurücknehmen
        WHEN 'MMDL'.
          PERFORM OKCODE_MMDL.
      Massenänderung: alle Sätze werden markiert
        WHEN 'MMRK'.
          PERFORM OKCODE_MMRK.
    Massenänderung: Neue Preisfindung
        WHEN 'MPRF'.
          PERFORM OKCODE_MPRF.
        WHEN 'MPRX'.
          PERFORM OKCODE_MPRF.
    Massenänderung: Neues Werk
        WHEN 'MWAE'.
          PERFORM OKCODE_MWAE.
        WHEN 'MWRK'.
          PERFORM OKCODE_MWRK.
        WHEN 'ORGI'.
          PERFORM OKCODE_ORGI.
        WHEN 'PANS'.
          PERFORM OKCODE_PANS.
        WHEN 'SORT'.
          PERFORM OKCODE_SORT.
        WHEN 'SPAL'.
          PERFORM OKCODE_SPAL.
        WHEN 'SPLT'.
          PERFORM OKCODE_SPLT.
        WHEN 'STUF'.
          PERFORM OKCODE_STUF.
        WHEN 'SUCH'.
          PERFORM OKCODE_SUCH.
        WHEN 'SUMM'.
          PERFORM OKCODE_SUMM.
        WHEN 'SUTI'.
          PERFORM OKCODE_SUTI.
        WHEN 'SUVO'.
          PERFORM OKCODE_SUVO.
        WHEN 'SUZU'.
          PERFORM OKCODE_SUZU.
        WHEN 'UEBL'.
        PERFORM OKCODE_UEBL.
        WHEN 'UNIB'.
          PERFORM OKCODE_UNIB.
        WHEN 'UNIF'.
          PERFORM OKCODE_UNIF.
        WHEN 'UNIH'.
          PERFORM OKCODE_UNIH.
        WHEN '&IC1'.
          PERFORM ALV_STANDARD_DETAIL USING RS_SELFIELD.
        WHEN '&ERW'.
          RS_SELFIELD-REFRESH = 'X'.
          PERFORM ALV_STANDARD_FCODES USING VBCOM-ZUART
                                            VBCOM-NAME_DAZU
                                            VBCOM-STAT_DAZU.
        WHEN '&OLX'.
          RS_SELFIELD-REFRESH = 'X'.
          PERFORM ALV_STANDARD_FCODES USING VBCOM-ZUART
                                            VBCOM-NAME_DAZU
                                            VBCOM-STAT_DAZU.
        WHEN '&OL0'.
          RS_SELFIELD-REFRESH = 'X'.
          PERFORM ALV_STANDARD_FCODES USING VBCOM-ZUART
                                            VBCOM-NAME_DAZU
                                            VBCOM-STAT_DAZU.
        WHEN '&OAD'.
          RS_SELFIELD-REFRESH = 'X'.
          PERFORM ALV_STANDARD_FCODES USING VBCOM-ZUART
                                            VBCOM-NAME_DAZU
                                            VBCOM-STAT_DAZU.
        WHEN 'SUMV'.
          PERFORM ALV_OKCODE_SUMV USING VBCOM-ZUART
                                            VBCOM-NAME_DAZU
                                            VBCOM-STAT_DAZU.
        WHEN OTHERS.
          PERFORM USER_OKCODE.
      ENDCASE.
    ------ Bildtitel setzen ----------------------------------------------
      PERFORM BILDTITEL_SETZEN USING TRVOG ANZGR VBCOM-ZUART.
    ENDFORM.
    Thanks
    Seshu

  • Transactional Iview + Excel problems

    Hi, i have a problem that i can't find the solution.
    I have a Z program in R3 where you can select an Excel file from your pc, then when you execute it, there's a batch input and read the excel. It's works fine, but the problem is that i have a transactional iview of this program and when i try to execute it always displays an error. The problem is because some internal tables are empty.
    I do not know where is the problem, please i need your help.
    Regards,
    Sebastiá

    Hi, i was reading the notes, and i think that the SAP GUI for HTML is not the best solution, for this.
    Now i created an Iview for SAP GUI for Windows, but it generate this error
    "connection to partner srvsapdes.des.net:3610 broken"
    I configured everything (i think): The hosts file, the services file, i tested it with a telnet, and it works fine.... i do not know where is the problem of this connection...
    Any suggestion?
    Thank to all of you

  • Debit/Credit Indicator in VA05 Transaction

    Hi,
    We have a requirement where in a new program designed in lines of VA05 for open sales orders & customer needs to differentiate Debits & Credits separetely for all the open sales orders.
    When checked in VA05 there is a field named as Debit/Credit Indicator which is used for capturing this functionality.
    Could someone provide me with more details on this field & advice steps to acheive the above functionality.
    Thanks
    Rama

    i hope you already know this
    in Va05 further selection criteria check thes  sales document type is there or not
    if not
    SPRO-SD-Sales-list-define selection criteria prgram SAPMV75A Display variant "k"  enter the sales document type field and save
    in Va05 create a variant for a required sales document type excluding Debit and credit document types.
    this is only my observation likes points...

  • SQ01 local field division problem.

    i have a report in sq 01 and i want to divide  two fields
    so i pick local field and try to do it..but result not correctly but addition and substraction working fine.
    any one tell me how perform division in sq01 local field

    I realize this post is very old, but the solution may help somebody else down the road.
    Within the infoset, the setting for "Fixed Point Arithmetic" must be turned on (checked).
    This is turned off by default when converting an SQVI into a Query within SQ00 or SQ01.
    To turn on "Fixed Point Arithmetic".  Go into infoset change mode in SQ02.  Click Goto in the menu path and then Global Properties.  Click on the setting for "Fixed Point Arithmetic" at the very bottom of the pop-up box.  Regenerate the infoset.

Maybe you are looking for

  • Spreadsheets not compatible between iPad and Mac

    I have created a spreadsheet on my Mac (10.6.5) and transferred it to my iPad (4.2.1). It is not possible anymore on my iPad to add a Diagram using an existing table. Besides that cells are locked with their format which cannot be changed: if it is f

  • SQL timezone

    My dates recorded in table are in PST time. On selecting from query , I want to convert that PST date to IST . How can we do in Oracle 9i? Any ideas?

  • Yosemite upgrade stopped

    finally convinced partner to upgrade to Yosemite. Downloaded it and it started to install, now frozen for several hours white screen with line across. No movement. What do I do next?

  • Itunes freezes when burning CDs

    Similar post to others here. Since upgrade to IT 6, Itunes freezes when trying to burn some CDs. IT shows as "not-responding" in task manager. Seems to happen when burning CDs with newly downloaded tracks, perhaps in combination with imported tracks.

  • Apparently i already have 5 computers authorized. the other 4 are gone, 1 computer i still have and now i have a new one

    how can i authorize a new computer when i already have 5 computers authorized. 4 of those computers are gone and i cant deauthorize them????