Wrong numbers reported by pq of tmadmin

Hi,
pq command in tmadmin sometimes give the wrong numbers. Even the server is idle,
it still shows there are messages in the queue. Also, the number of average length
appears very high.
Seems it's a bug of tuxedo. How to avoid it? Do we have any patch for this?
I am using tuxedo6.5
Thanks,
Michael

Thank you very much!
BEA support said they are going to apply a patch.
I have more questions regarding tmshutdown,
If we do "tmshutdown -s ...",
1. Will tuxedo wait until all the messages in its queue are processed before shutting
down the server?
2. Sometimes we have to use force shutdown "tmshutdown -s ... -kTERM", in this case,
will tuxedo clean-up all the messages in its queue? Or the messages will be just
keeping in the queue until a new server coming up?
3. In MSSQ, if we use "tmshutdown -i ...", it will only clean the single instance
but its queue, right?
Thanks a lots!
Michael
Scott Orshan <[email protected]> wrote:
There's a similar looking bug that was fixed in 7.1, having to do with
servers killed because of service timeout. This is probably something
you should report to Support. Have them look at CR071310. If they get
enough requests for a fix, they might backport the fix into 6.5.
They should verify that this is the same problem first.
     Scott
michael wrote:
This problem starts happening after we swithed to MSSQ and only happeningeverytime
if we killed the instances ( use tmshutdown -i -kTERM) of a specific serverfor serveral
times(for some reason, we have to kill a instance because of high CPUusage or tuxedo
instance hanging). After that, the queue length and Avg. Len of this specificserver
are then gradually growing to be very high even we don't have any messagein the
queue.
Thanks,
Michael
Scott Orshan <[email protected]> wrote:
Tuxedo's queue counts are not incremented under lock unless you use
tmadmin to set Accurate Statistics (shmstats ex), but there is quite
a
performance hit when you do that. This could account for the numbers
being off, especially on a multiprocessor.
michael wrote:
Hi,
pq command in tmadmin sometimes give the wrong numbers. Even the
server
is idle,
it still shows there are messages in the queue. Also, the number of
average
length
appears very high.
Seems it's a bug of tuxedo. How to avoid it? Do we have any patch
for
this?
I am using tuxedo6.5
Thanks,
Michael

Similar Messages

  • Unread VIP messages counter on iCloud shows wrong numbers

    Hi,
    I have VIP inboxes set up. They appear on my Mac, iPhone and iCloud.com. The unread VIP messages counter on my Mac and iPhone are showing the correct numbers of unread VIP messages. However, the counter on iCloud shows wrong numbers.
    Does anymore have the same experience?
    I deleted the VIP inbox on iCloud.com and re-created it. Then the issue was solved. Some days later, however, it started counting wrongly again.
    Example:
    Peter is a VIP for me.
    1. I receive 2 messages from Peter, so the unread VIP messages counter on my Mac, iPhone and iCloud.com raises to 2.
    2. I read both messages
    3. The unread VIP messages counter on my iPhone and Mac vanished, and so does the general unread mail counter.
    4. On iCloud.com, my general unread mail counter would also be 0 but the VIP unread mail counter would still be 2. The VIP inbox does not show any unread email, tough.
    Best regards,
    Marc

    I've reported this error twice via Apple's iCloud feedback page on the website - http://www.apple.com/feedback/icloud.html
    No solution as yet... but an earlier VIP bug (where, if the same contact sometimes sends as "@mac.com" and sometimes "@me.com", they had to have separate VIP mailboxes) was fixed. (At least, I think it was fixed: if you put all the relevant addresses against the same single contact in iCloud and delete any other instances of the contact with the same address, then iCloud creates one amalgamated VIP inbox for them. But I digress.)
    The mis-count bug has been around since the day VIP appeared - hopefully getting a bit embarrassing for someone on the iCloud team? Maybe someone at Apple reading this?

  • Numbers reports "Not enough memory"

    Hello
    Help. I am not able to open two Numbers documents at the same time.
    Numbers reports that there is not enough memory however Activity Monitor reports that there is 4.17 GB or more available.
    I have an iMac desktop with 8 GB installed. Also I can't duplacate the spreadsheet that i am working in. The spreadsheet is large but by no means is it 4GB. The Finder reports that the document is only 9.2 MB. What do I have all this extra RAM for?

    Thanks for the complementary infos.
    Yes, Lion adds a level to memory management.
    It generalize the use of "sandboxing" which leans that an application is given a "memory area" in which it works without beeing able to work outside.
    As you have sufficient RAM available and HD space, you may be victim of a sandboxing problem.
    I don't know details about the way the dedicated area is ruled.
    Maybe it's wrongly used by Numbers or maybe Numbers is unable to rule this feature.
    This may explain the described behavior.
    As Lion isn't installed on my main HD, I didn't work with large documents with it.
    If I have some time available I will test hat this afternoon.
    Yvan KOENIG (VALLAURIS, France) dimanche 31 juillet 2011 09:27:31
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • BPC 7.5 MS SP5 wrong numbers multiplying GET (A)*GET(B) in script logic

    Hi experts,
    We are migrating from BPC 5.1 MS to 7.5 MS SP5 and there have some scripts that are using GET function that retrieve wrong numbers. Particularly, it does not record the decimals figures.
    Example1 (multiply): when A=2,3 and B=4,4, then AB=10,12. But doing this in script logic GET(A)GET(B)=10. It does not write the decimal figures.
    Example2 (addition): when A=2,3 and B=4,4, then AB=6,7. But doing this in script logic GET(A)GET(B)=6. It does not write the decimal figures.
    Particularly, the script we are executing is the following. This script worked ok at 5.1 but not at 7.5:
    *XDIM_MEMBERSET ACCOUNTL= INFLA_AUX,INFLA_ACUM
    *XDIM_NOSCAN ACCOUNTL = INFLA_ACUM
    *XDIM_MEMBERSET CATEGORY=%CATEGORY_SET%
    *XDIM_MEMBERSET CURRENCY=LC
    *XDIM_MEMBERSET TECHNOLOGY = %TECHNOLOGY_SET%
    *XDIM_MEMBERSET PEM=DESCENDANTS([PEM].[PEMTOT],999,LEAVES)
    *XDIM_MEMBERSET TIME=DESCENDANTS([TIME].[XXXX.TOT],999,LEAVES)
    *CALC_EACH_PERIOD    
    *WHEN ACCOUNTL
    *IS INFLA_AUX
         *WHEN TIME.YEAR
         *IS = PEM.YEAR
    *REC(EXPRESSION=1,NOADD,ACCOUNTL=INFLA_ACUM)
                *IS < PEM.YEAR
    *REC(EXPRESSION=0,NOADD,ACCOUNTL=INFLA_ACUM)         
                *IS > PEM.YEAR
    *REC(ACCOUNTL=INFLA_ACUM,NOADD,EXPRESSION=GET(ACCOUNTL="INFLA_ACUM",TIME=PRIOR) * GET(ACCOUNTL="INFLA_AUX",TIME=PRIOR))     //in this sentence!!!!!!
              *ENDWHEN
    *ENDWHEN
    *COMMIT
    We have SIGNED_DATA_FORMAT (25,10) in the application parameters.
    Many thanks for your attention.
    Best regards,
    Arkaitz
    Edited by: arkaitz_orozko81 on Apr 28, 2011 4:31 PM
    Edited by: arkaitz_orozko81 on Apr 28, 2011 4:33 PM

    Hello,
    We have solved this issue.
    First, we have change the script:
    *SELECT(%PEM_APLICA%,[ID],PEM,"APLICA='Y'")
    *XDIM_MEMBERSET ACCOUNTL=PROD_AUX,DISP_INP,HORA_AUX,CAPAC_AUX
    *XDIM_NOSCAN ACCOUNTL= PROD_AUX
    *XDIM_MEMBERSET CATEGORY=%CATEGORY_SET%
    *XDIM_MEMBERSET CURRENCY=LC
    *XDIM_MEMBERSET TECHNOLOGY=DESCENDANTS([TECHNOLOGY].[RENOVABLES],999,LEAVES)
    *XDIM_MEMBERSET PEM=%PEM_APLICA%
    *XDIM_MEMBERSET TIME=<ALL>
    *WHEN ACCOUNTL
    *IS CAPAC_AUX
    //*IS *
         *WHEN SIGNEDDATA
         *IS <> 0
    REC(ACCOUNTL="PROD_AUX",NOADD,EXPRESSION=GET(ACCOUNTL="CAPAC_AUX")* GET(ACCOUNTL="DISP_INP")* GET(ACCOUNTL="HORA_AUX"))
         *ELSE
    *REC(ACCOUNTL="PROD_AUX",NOADD,EXPRESSION=0)
    *ENDWHEN
    *ENDWHEN
    *COMMIT
    And we have change the regional settings to "English (United States)".
    Many thanks for your answer.

  • I have entered the wrong numbers to put my phone in pass code lock.  However, I didn't set the autolock....how can I get the pass code lock reset?

    I have entered the wrong numbers to put my phone in pass code lock.  However, I didn't set the autolock....how can I get the pass code lock reset?

    Your only choice is to place the phone in DFU mode (search Google for instructions) and restore as a new device.  You will lose all your data.

  • When calling my contacts I get connected to wrong numbers.  Other times my phone will call the contact

    When I call my contacts I get connected to wrong numbers.  Other times the phone rings & connects but silent on my end & the other party sees that I called but not connected.

    There are no settings in iPhones that determine how RECEIVING phones respond  In fact, it isn't possible for a sending phone to control how another phone responds when busy.  This is conrolled by the carrier and the receiving phone only.

  • Check Document Numbering report intepretation

    I am looking information in Check Document Numbering utility. Usually i dont get results, but what happens if I do ? Any Note , or PDF ?

    Hi,
    From the Online Help :
    Check Document Numbering
    In this window, define the required selection criteria for duplicated and missing numbers in a document series. The error and information messages are displayed in the status bar.
    From the Documentation resource centre :
    The CHECK DOCUMENT NUMBERING report provides a simple way to check the continuity of all documents and ensure that numbers have not been assigned twice. This report checks for any gaps in numbering and for double assignment of numbers within the document number ranges. If no data is found, the assignment of document numbers is correct and without omissions (within the definition).
    Link :
    [Year End Closing|https://websmp110.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_HIER_KEY=701100035871000329481&_OBJECT=011000358700001111052006E&_SCENARIO=01100035870000000183&]..Refer page 6
    Hope it helps.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • Wrong numbers of unread messages reported on folders

    Hi,
    I have a very annoying problem with Mail where it reports the number of unread messages incorrectly on folders other than my inbox. I am using an IMAP account, with rules on the server to file messages to different folders depending on what address they were sent to.
    Then often Mail will report 2 unread messages in one of these folders but clicking on the folder makes it recalculate to the correct value, 1.
    Doing a rebuild on the folder seemed to fix it for about a day, but obviously it's not practical to do that so often.
    Does anyone else have this problem? Is there a fix/workaround?

    Thanks - I understand the read flag is set on the server, but I don't think that's the case here. Mail is not incorrectly reporting some messages as read when they aren't - it just has the count of unread wrong (in subscription folders, not in the inbox)...
    Also although I do access mail from other machines/web client it happens when I haven't...
    Ie
    send mail to myself at address that gets filed into a folder by the server
    no log on to mail from web or other computer
    mail arrives in folder, reported by Mail as 2 unread messages
    click on folder, resyncs very quickly, unread count revised to 1 (correct)
    In fact once I was watching while a mail came in - the count first showed 1 (correct) then quickly changed to 2.
    I'm not sure what extra info I can provide - I had imagined this was a common problem since through google I found many others observing the same behaviour (but no solution).
    The IMAP account is with Fastmail, who I believe run Cyrus.
    I have letterbox and IMAP-IDLE plugin, but this problem was happening before installation of both of those.
    Thanks again,
    PS
    as a side note - my drafts folder (on the server) reports 2 messages unread (there are two messages in there) - is this normal? (drafts to be reported as unread) - I must admit I'd prefer they weren't.

  • Wrong Load reporting via KAL-AP form CSM to GSS

    When multiple virtual servers are configured on the same VIP (each using another TCP port), the CSM averages all the CAPP load values when reporting the final CAPP load to the GSS.
    Unfortunately, when a redirect vserver is configured on the same VIP (i.e to redirect the user to another TCP port), the CAPP load value sent to the GSS is wrong. This is due to the fact that the redirection vserver has always a load value of 2! Therefore, even if all real servers of the server farm are down, the reported load value to the GSS is (255 + 2) / 2 = 128 instead of 255 (offline).
    Why does the CSM take a redirection server farm into account when reporting the load value to the GSS ? What would be a work-around ?
    Here is an extract of my configuration:
    serverfarm REDIRECTION
    nat server
    no nat client
    redirect-vserver REDIR-1
    webhost relocation 10.10.10.111:26000/irj
    inservice
    serverfarm PORTAL
    nat server
    nat client NAT-MSSRTE
    real 10.10.10.10
    maxconns 200
    minconns 100
    inservice
    real 10.10.10.11
    maxconns 200
    minconns 100
    inservice
    policy PORTAL-POLICY
    sticky-group 1
    serverfarm M-GLOBEPROD
    policy REDIR-POLICY
    url-map URL-1
    serverfarm REDIRECTION
    vserver PORTAL-VSERVER
    virtual 141.122.88.87 tcp 26000
    persistent rebalance
    slb-policy PORTAL-POLICY
    no inservice
    vserver REDIRECT
    virtual 141.122.88.87 tcp www
    persistent rebalance
    slb-policy REDIR-POLICY
    inservice

    Hi Gilles,
    Thank you for your suggestion. I configured KAL-AP by Tag now, but the two VIP answers configured on the GSS remain in offline state. I didn't found any description on how to configure the counterpart tag string in the CSM vserver configuration (I suppose that the same tag must be configured on the GSS and on the CSM ?)
    Can you help me ?

  • Entry Date Wrong in report RPLICO10 (Transacton Code:S_AHR_61016362)

    Hi
    I have a problem in the Report RPLICO10 Flexible Employee Data.
    When the report executed we observed that the Entry Date is coming  wrong.  Instead of Date of Joining (supposed to get from Info Type 0000)  the system taking the Start date (Date of Birth from Info Type 2) as entry date.
    Recently our system got upgraded to ECC6
    What could be the reason and how to solve the issue.
    EKP Yadav

    Hi
    check in Tcode  PAR2 in thau  can get hire date
    Edited by: Sr!^^ on Oct 31, 2008 5:50 AM

  • Wrong temps reported in clickbios and coretemp

    Hi all,
    I have noticed with my new system build that coretemp and clickbios occasionally will report the wrong temperatures for my processor:  they display 91 degrees C.  In coretemp this shows as "91C(?)"  Has anyone else had this issue?  I know the CPU is not that hot, and upon rebooting the issue usually goes away.  System specs below:
    # Intel 3960x overclocked to 4.5 GHz (all voltages set to auto)
    # MSI X79-GD65 (D8) with v1.3 bios
    # G.Skill F3-17000CL11-4GBZL x 8 sticks = 32 GB running at 1600 MHz (auto settings in bios)
    # Nvidia Quadro FX 4600, 768MB ram
    # OCZ Vertex 3 120GB boot drive, Seagate ST1000DM003-9YN1 1TB storage drive
    # Windows 7 x64
    # Corsair TX750W power supply
    FWIW, the auto cpu voltage is set to 1.368V.
    Thanks,
    DrDet

    This behavior has been noted by several users. In the last reply I had from MSI Tech Suppport, MSI & Intel are in communication with each other over what appears to be a CPU microcode problem. It also surprises me the Auto V. is setting 1.368v's with 1.35v's being the recommended industry limit for the LGA 2011 CPU, with a published absolute maximum of 1.400v's in Intel's latest product datasheet. Quite a bit lower than it's Sandy B. cousins. Anyway, it is being officially looked into, so all we can do is wait & see what develops.

  • Different flash version numbers reported

    I am experiencing a weird discrepancy in the reported version numbers for Showckwave Flash.
    If I go to the Add-ons Manager (about:addons), it says I'm running Flash v. 16.0.0.296, but if I go to your online plug-ins checker (https://www.mozilla.org/en-US/plugincheck/), it reports that I'm running v. 16.0.0.305 - which is also what's reported by the Flash applet in the Windows Control Panel.
    So can you tell me why there's this difference and how I go about fixing it?
    Kind regards,
    Martin
    System:
    Win 8.1 64-bit
    Firefox 36.0

    The ActiveX version of Flash Player only works on Internet Explorer or IE and not other browsers as Firefox uses the Plugin based version.
    https://www.adobe.com/products/flashplayer/distribution3.html

  • Wrong Division Report

    Hi
    There are different division show in the item level for the orders and so i get the report as wrong, I am not sure how this is coming up.
    I have checked most of the orders, most are behaving the same way, can anybody help?
    thanks in advance

    Hi,
    Please check the Order types that you are using. In the order type please check the Item division marked or not.
    This controls whehter the entered division should take override the material division and so you may end up with a different division in the orders items..
    Please check and feedback
    thanks

  • % Excise Duty is coming wrong in Report

    Hi,
    I have a report of Gross Margin (FI)....
    My problem is that when i m picking the % Excise Duty from J_1IEXCTAX table against the Chapter ID....it is showing the 4 values against it...means 4 time % Excise Duty....i.e. periodic changed...
    like....
    8538 90 00................1................08.12.2008................31.12.9999................10.0000
    8538 90 00................1................01.03.2008................07.12.2008................14.0000
    8538 90 00................1................28.02.2005................29.02.2008................16.0000
    8538 90 00................1................01.01.2001................28.02.2005................16.0000
    when i m executing my report with period from 01/11/2008 to 15/11/2008..it is showing the 16%...but as per my given period, it must display 14%...
    Please tell me that what should the condition there....
    I m sending my code...
    REPORT  z_fi_gross_margin NO STANDARD PAGE HEADING LINE-SIZE 125  .
    TABLES : t179t, tvkbt, mara, vbrp, s501, mbew.
    TYPE-POOLS : slis.
    DATA : BEGIN OF itab OCCURS 0,
           vkbur   LIKE s501-vkbur,
           matnr   LIKE s501-matnr,
           prodh   LIKE s501-prodh,
           ummenge LIKE s501-ummenge,
           gumenge LIKE s501-gumenge,
           umnetwr LIKE s501-umnetwr,
           gunetwr LIKE s501-gunetwr,
           sptag   LIKE s501-sptag,
           peinh   LIKE mbew-peinh,
           stprs   LIKE mbew-stprs,
           lplpx   LIKE mbew-lplpx,
           vtext LIKE t179t-vtext,
           mtart LIKE mara-mtart,
           bezei LIKE tvkbt-bezei,
           net_sqty TYPE p DECIMALS 2,
           s_amt TYPE p DECIMALS 2,
           j_1ichid LIKE j_1imtchid-j_1ichid,
           rate LIKE j_1iexctax-rate,
           excise TYPE p DECIMALS 2,
           l_excise TYPE p DECIMALS 2,
           s_unit TYPE p DECIMALS 2,
           m_unit TYPE p DECIMALS 2,
           t_mcost TYPE p DECIMALS 2,
           m_cost% TYPE p DECIMALS 2,
           g_margin TYPE p DECIMALS 2,
           g_marg% TYPE p DECIMALS 2,
           END OF itab.
    DATA : v_index TYPE sy-tabix.
    DATA : cnt TYPE i.
    DATA : w_container TYPE scrfname VALUE 'CL_GRID',
           w_cprog TYPE lvc_s_layo,
           g_repid LIKE sy-repid,
           w_save TYPE c,
           w_exit TYPE c,
           cl_grid TYPE REF TO cl_gui_alv_grid,
           cl_custom_container TYPE REF TO cl_gui_custom_container,
           it_fld_catalog TYPE slis_t_fieldcat_alv,
           wa_fld_catalog TYPE slis_t_fieldcat_alv WITH HEADER LINE ,
           layout TYPE slis_layout_alv,
           col_pos  LIKE sy-cucol ,
           alvfc TYPE slis_t_fieldcat_alv.
    SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS   : vkbur FOR s501-vkbur.
    SELECT-OPTIONS   : matnr FOR s501-matnr.
    SELECT-OPTIONS   : sptag FOR s501-sptag.
    SELECTION-SCREEN : END OF BLOCK b1.
    PERFORM fill_catalog1 USING:
    **'SPTAG'    'ITAB'    'DATE',
    **'VKBUR'    'ITAB'    'Sales Office',
    'BEZEI'    'ITAB'    'S.Off. Desc.',
    'MATNR'    'ITAB'    'Material',
    'PRODH'    'ITAB'    'LEVEL',
    'VTEXT'    'ITAB'    'Level I',
    'MTART'    'ITAB'    'Material Type',
    'NET_SQTY' 'ITAB'    'Net Sales Qty.',
    'S_AMT'    'ITAB'    'Sales with Ex. Duty',
    'EXCISE'   'ITAB'    'Excise Duty',
    'RATE'     'ITAB'    '% Excise Duty',
    'L_EXCISE' 'ITAB'    'Sales less Ex. Duty',
    'S_UNIT'   'ITAB'    'Sales / Unit',
    'M_UNIT'   'ITAB'    'Mat / Unit',
    'T_MCOST'   'ITAB'    'Total Material Cost',
    'M_COST%'  'ITAB'    '% Material Cost',
    'G_MARGIN' 'ITAB'    'Gross Margin',
    'G_MARG%'  'ITAB'    '% Gross Margin'.
    SELECT DISTINCT a~sptag a~vkbur a~matnr a~prodh a~ummenge a~gumenge a~umnetwr a~gunetwr b~vtext c~mtart d~bezei
             INTO CORRESPONDING FIELDS OF TABLE itab
             FROM s501 AS a
             INNER JOIN t179t AS b ON a~prodh = b~prodh
             INNER JOIN mara AS c ON a~matnr = c~matnr
             INNER JOIN tvkbt AS d ON a~vkbur = d~vkbur
             WHERE a~matnr IN matnr
             AND   a~sptag IN sptag
             AND   a~vkbur IN vkbur.
    IF sy-subrc <> 0.
      MESSAGE 'DATA NOT FOUND.' TYPE 'I'(001).
    ENDIF.
    SORT itab BY matnr.
    LOOP AT itab .
      cnt = v_index.
      SELECT peinh stprs lplpx FROM mbew INTO (itab-peinh, itab-stprs, itab-lplpx) WHERE matnr = itab-matnr.
        itab-m_unit = itab-stprs - itab-lplpx / itab-peinh.
        v_index = cnt + sy-dbcnt.
        MODIFY itab INDEX v_index TRANSPORTING m_unit.
      ENDSELECT.
      SELECT j_1ichid FROM j_1imtchid INTO itab-j_1ichid WHERE matnr = itab-matnr.
        MODIFY itab INDEX sy-tabix TRANSPORTING j_1ichid .
      ENDSELECT.
      SELECT rate FROM j_1iexctax INTO itab-rate WHERE j_1ichid = itab-j_1ichid AND j_1iexcind = '1'.
        MODIFY itab INDEX sy-tabix TRANSPORTING rate .
      ENDSELECT.
    ENDLOOP.
    LOOP AT itab .
      itab-net_sqty = itab-ummenge - itab-gumenge .
      MODIFY itab INDEX sy-tabix TRANSPORTING net_sqty.
      itab-s_amt = itab-umnetwr - itab-gunetwr .
      MODIFY itab INDEX sy-tabix TRANSPORTING s_amt.
      itab-excise = itab-s_amt * itab-rate / 100.
      MODIFY itab INDEX sy-tabix TRANSPORTING excise.
      itab-l_excise = itab-s_amt - itab-excise.
      MODIFY itab INDEX sy-tabix TRANSPORTING l_excise.
      itab-s_unit = itab-l_excise / itab-net_sqty.
      MODIFY itab INDEX sy-tabix TRANSPORTING s_unit.
      itab-t_mcost = itab-m_unit * itab-net_sqty.
      MODIFY itab INDEX sy-tabix TRANSPORTING t_mcost.
      itab-m_cost% = itab-t_mcost / itab-s_amt * 100.
      MODIFY itab INDEX sy-tabix TRANSPORTING m_cost%.
      itab-g_margin = itab-l_excise - itab-t_mcost.
      MODIFY itab INDEX sy-tabix TRANSPORTING g_margin.
      itab-g_marg% = itab-g_margin / itab-s_amt * 100.
      MODIFY itab INDEX sy-tabix TRANSPORTING g_marg%.
    ENDLOOP.
    layout-zebra = 'X' .
    layout-colwidth_optimize(1) = 'X'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_callback_program = 'Z_FI_GROSS_MARGIN'
        is_layout          = layout
        it_fieldcat        = it_fld_catalog
        i_default          = 'X'
        i_save             = 'A'
      TABLES
        t_outtab           = itab
      EXCEPTIONS
        program_error      = 1
        OTHERS             = 2.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    *&      Form  FILL_CATALOG1
          text
         -->P_FIELDNAME  text
         -->P_REF_TABLE  text
         -->P_SCRTEXT    text
    FORM fill_catalog1  USING   p_fieldname TYPE any
                                p_ref_table TYPE any
                                p_scrtext   TYPE any.
      CLEAR : wa_fld_catalog.
      wa_fld_catalog-fieldname  = p_fieldname.
      wa_fld_catalog-tabname    = p_ref_table.
      wa_fld_catalog-seltext_s  = p_scrtext.
      wa_fld_catalog-seltext_m  = p_scrtext.
      wa_fld_catalog-seltext_l  = p_scrtext.
      wa_fld_catalog-outputlen = 15.
      APPEND wa_fld_catalog TO it_fld_catalog.
    ENDFORM.                    " fill_catalog1
    Please check .....
    Thanks...

    I think ur code will do the same in my report do...
    Please check my code again and modify where as u needed.....
    REPORT  z_fi_gross_margin NO STANDARD PAGE HEADING LINE-SIZE 125  .
    TABLES : t179t, t179, tvkbt, mara, vbrp, s501, mbew, t134t, v_t179, t023t, t247.
    TYPE-POOLS : slis.
    DATA : BEGIN OF itab OCCURS 0,
           vkbur   LIKE s501-vkbur,
           matnr   LIKE s501-matnr,
           prodh   LIKE s501-prodh,
           ummenge LIKE s501-ummenge,
           gumenge LIKE s501-gumenge,
           umnetwr LIKE s501-umnetwr,
           gunetwr LIKE s501-gunetwr,
           sptag   LIKE s501-sptag,
           peinh   LIKE mbew-peinh,
           stprs   LIKE mbew-stprs,
           lplpx   LIKE mbew-lplpx,
           prdha LIKE mara-prdha,       " Product hierarchy
           prdha2 LIKE mara-prdha,       " Product hierarchy
           prdha3 LIKE mara-prdha,       " Product hierarchy
           prodh_text LIKE t179t-vtext, "Product Hierarchy Text
           prodh2_text LIKE t179t-vtext, "Product Hierarchy Text
           prodh3_text LIKE t179t-vtext, "Product Hierarchy Text
           matkl LIKE mara-matkl,
           wgbez LIKE t023t-wgbez,
           fcktx LIKE t247-ktx,
           mtart LIKE mara-mtart,
           bezei LIKE tvkbt-bezei,
           net_sqty TYPE p DECIMALS 2,
           s_amt TYPE p DECIMALS 2,
           mtbez LIKE t134t-mtbez,
           j_1ichid LIKE j_1imtchid-j_1ichid,
           rate LIKE j_1iexctax-rate,
           excise TYPE p DECIMALS 2,
           l_excise TYPE p DECIMALS 2,
           s_unit TYPE p DECIMALS 2,
           m_unit TYPE p DECIMALS 2,
           t_mcost TYPE p DECIMALS 2,
           m_cost% TYPE p DECIMALS 2,
           g_margin TYPE p DECIMALS 2,
           g_marg% TYPE p DECIMALS 2,
           new TYPE i,
           new1(6) TYPE c,
           s_period TYPE i,
           END OF itab.
    DATA : BEGIN OF itab3 OCCURS 0.
            INCLUDE STRUCTURE itab.
    DATA : END OF itab3.
    DATA : v_index TYPE sy-tabix.
    DATA : cnt TYPE i.
    DATA : w_container TYPE scrfname VALUE 'CL_GRID',
           w_cprog TYPE lvc_s_layo,
           g_repid LIKE sy-repid,
           w_save TYPE c,
           w_exit TYPE c,
           cl_grid TYPE REF TO cl_gui_alv_grid,
           cl_custom_container TYPE REF TO cl_gui_custom_container,
           it_fld_catalog TYPE slis_t_fieldcat_alv,
           wa_fld_catalog TYPE slis_t_fieldcat_alv WITH HEADER LINE ,
           layout TYPE slis_layout_alv,
           col_pos  LIKE sy-cucol ,
           alvfc TYPE slis_t_fieldcat_alv.
    SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS   : vkbur FOR s501-vkbur.
    SELECT-OPTIONS   : matnr FOR s501-matnr.
    SELECT-OPTIONS   : sptag FOR s501-sptag.
    SELECTION-SCREEN : END OF BLOCK b1.
    PERFORM fill_catalog1 USING:
    'SPTAG'    'ITAB'    'DATE',
    'VKBUR'    'ITAB'    'Sales Office',
    'BEZEI'    'ITAB'    'S.Off. Desc.',
    'MATNR'    'ITAB'    'Material',
    *'PRODH'    'ITAB'    'LEVEL',
    'PRODH_TEXT'    'ITAB'    'Level I',
    'PRODH2_TEXT'   'ITAB'    'Level II',
    'PRODH3_TEXT'   'ITAB'    'Level III',
    'WGBEZ'    'ITAB'    'Level IV',
    'MTBEZ'    'ITAB'    'Material Type',
    'NET_SQTY' 'ITAB'    'Net Sales Qty.',
    'S_AMT'    'ITAB'    'Sales with Ex. Duty',
    'EXCISE'   'ITAB'    'Excise Duty',
    'RATE'     'ITAB'    '% Excise Duty',
    'L_EXCISE' 'ITAB'    'Sales less Ex. Duty',
    'S_UNIT'   'ITAB'    'Sales / Unit',
    'M_UNIT'   'ITAB'    'Mat / Unit',
    'T_MCOST'   'ITAB'    'Total Material Cost',
    'M_COST%'  'ITAB'    '% Material Cost',
    'G_MARGIN' 'ITAB'    'Gross Margin',
    'G_MARG%'  'ITAB'    '% Gross Margin',
    'NEW1'      'ITAB'    'Month'.
    SELECT DISTINCT asptag avkbur amatnr aprodh aummenge agumenge aumnetwr agunetwr cmtart cmatkl dbezei emtbez
             INTO CORRESPONDING FIELDS OF TABLE itab
             FROM s501 AS a
             INNER JOIN mara AS c ON amatnr = cmatnr
             INNER JOIN tvkbt AS d ON avkbur = dvkbur
             INNER JOIN t134t AS e ON cmtart = emtart
             WHERE a~matnr IN matnr
             AND   a~sptag IN sptag
             AND   a~vkbur IN vkbur
             AND   e~spras EQ 'EN'.
    IF sy-subrc <> 0.
      MESSAGE 'DATA NOT FOUND.' TYPE 'I'(001).
    ENDIF.
    SORT itab BY matnr.
    LOOP AT itab .
      cnt = v_index.
      SELECT SINGLE peinh stprs lplpx FROM mbew INTO (itab-peinh, itab-stprs, itab-lplpx) WHERE matnr = itab-matnr.
      itab-m_unit = itab-stprs - itab-lplpx / itab-peinh.
      v_index = cnt + sy-dbcnt.
      MODIFY itab INDEX v_index TRANSPORTING m_unit.
      SELECT SINGLE j_1ichid FROM j_1imtchid INTO itab-j_1ichid WHERE matnr = itab-matnr.
      MODIFY itab INDEX sy-tabix TRANSPORTING j_1ichid .
      SELECT SINGLE rate FROM j_1iexctax INTO itab-rate WHERE j_1ichid = itab-j_1ichid AND j_1iexcind = '1' AND validfrom GE sptag-low AND validto LE sptag-high.
      MODIFY itab INDEX sy-tabix TRANSPORTING rate .
      SELECT SINGLE prdha FROM mara INTO (itab-prdha) WHERE matnr = itab-matnr .
      MODIFY itab INDEX sy-tabix TRANSPORTING prdha .
      SELECT SINGLE wgbez FROM t023t INTO itab-wgbez WHERE matkl = itab-matkl .
      MODIFY itab INDEX sy-tabix TRANSPORTING wgbez .
    ENDLOOP.
    LOOP AT itab .
      itab-net_sqty = itab-ummenge - itab-gumenge .
      MODIFY itab INDEX sy-tabix TRANSPORTING net_sqty.
      itab-s_amt = itab-umnetwr - itab-gunetwr .
      MODIFY itab INDEX sy-tabix TRANSPORTING s_amt.
      itab-excise = itab-s_amt * itab-rate / 100.
      MODIFY itab INDEX sy-tabix TRANSPORTING excise.
      itab-l_excise = itab-s_amt - itab-excise.
      MODIFY itab INDEX sy-tabix TRANSPORTING l_excise.
      IF itab-net_sqty NE '0'.
        itab-s_unit = itab-l_excise / itab-net_sqty.
        MODIFY itab INDEX sy-tabix TRANSPORTING s_unit.
      ENDIF.
      itab-t_mcost = itab-m_unit * itab-net_sqty.
      MODIFY itab INDEX sy-tabix TRANSPORTING t_mcost.
      itab-m_cost% = itab-t_mcost / itab-s_amt * 100.
      MODIFY itab INDEX sy-tabix TRANSPORTING m_cost%.
      itab-g_margin = itab-l_excise - itab-t_mcost.
      MODIFY itab INDEX sy-tabix TRANSPORTING g_margin.
      itab-new = itab-sptag+4(2).
      SELECT SINGLE ktx FROM t247 INTO itab-new1 WHERE mnr = itab-new AND spras EQ 'EN' .
      CONCATENATE itab-new1 itab-sptag+2(2) INTO itab-new1 SEPARATED BY '-'.
      itab-g_marg% = itab-g_margin / itab-s_amt * 100.
      MODIFY itab INDEX sy-tabix TRANSPORTING g_marg% new1.
    ENDLOOP.
    LOOP AT itab.
      SELECT SINGLE vtext INTO itab-prodh3_text FROM t179t WHERE prodh = itab-prdha.
      itab-prdha2 = itab-prdha+0(5).
      SELECT SINGLE vtext INTO itab-prodh_text FROM t179t WHERE prodh = itab-prdha2.
      itab-prdha3 = itab-prdha+0(10).
      SELECT SINGLE vtext INTO itab-prodh2_text FROM t179t WHERE prodh = itab-prdha3.
      MODIFY itab INDEX sy-tabix TRANSPORTING prodh3_text prodh_text prodh2_text prdha3.
    ENDLOOP.
    layout-zebra = 'X' .
    layout-colwidth_optimize(1) = 'X'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_callback_program = 'Z_FI_GROSS_MARGIN'
        is_layout          = layout
        it_fieldcat        = it_fld_catalog
        i_default          = 'X'
        i_save             = 'A'
      TABLES
        t_outtab           = itab
      EXCEPTIONS
        program_error      = 1
        OTHERS             = 2.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    *&      Form  FILL_CATALOG1
          text
         -->P_FIELDNAME  text
         -->P_REF_TABLE  text
         -->P_SCRTEXT    text
    FORM fill_catalog1  USING   p_fieldname TYPE any
                                p_ref_table TYPE any
                                p_scrtext   TYPE any.
      CLEAR : wa_fld_catalog.
      wa_fld_catalog-fieldname  = p_fieldname.
      wa_fld_catalog-tabname    = p_ref_table.
      wa_fld_catalog-seltext_s  = p_scrtext.
      wa_fld_catalog-seltext_m  = p_scrtext.
      wa_fld_catalog-seltext_l  = p_scrtext.
      wa_fld_catalog-outputlen = 15.
      APPEND wa_fld_catalog TO it_fld_catalog.
    ENDFORM.                    " fill_catalog1
    please tell....

  • How do I delete wrong numbers from my messages?

    I sent a text message to the wrong number last week because I made a mistake and mistyped my husband's phone number into my contacts. I deleted the message exchanged with that number, yet the phone number still pops up as "Hubby" when I try to type in a a contact. How can I permanetly delete that number so that it does not pop up when I try to type in my husband's name when I'm sending him a message? I've already changed his number to the correct one.

    I have the same problem too.
    This is REALLY STUPID!
    And i m surprise the new iOS doesn't change it....
    super stupid....
    if anyway i can solve this, pls tell me...thanks a lot,
    Thanks a lot for the help,
    <Email Edited by Host>

Maybe you are looking for

  • Running windows 7 only on a macbook pro

    Can anyone tell me if I can run only windows 7 on my macbook pro ? Will all the apple hardware like the usb, speakers, track pad etc will work properly with windows 7?

  • How to see multiple levels of photo folders?

    Using my Apple TV2 and home sharing with iTunes on a Windows xp pro pc, my folder tree for ohotos has 4 levels  - my pictures, year, events, sub events; apple tv shows only the year level and groups together alll the photos in the sub folders. Is the

  • Updation of table MSLBH

    Please let me know when table MSLBH get updated. In which table can we see stock with subcontractor for a past period. Regards, Begum

  • WDS - Client Configuration Help

    Hi All, I have many ap1252ap's, I have configured WDS on the one ap and it authenticate to itself OK - to the locally configured radius server. state = wlccp_ap_st_registered The problem is that I do not know where to go from here. I have followed th

  • How to stop itune download the apps which were deleted from my iPhone 4S?

    Every time I connect the iphone to itune. It starts downloading the apps which were deleted from my iphone already. How can I stop it happens? Thanks a lot