BSW% is not considered for correcting the transactional quantity

I  solicit a little help from the Group. We have a Crude Vendor  which is also in SAP platform . They have implemeted TSW and now Crude delivery tickets are generated from System.
On scrutinty of ticket It is observed taht BS&W percentage is not considered while calulating quantities in Transaction UOM.
Transaction code : O3QCITEST.
Conv. Group = ZCDR.=53&54A 15 °C CRUDE OIL
UoM Group = CRD.=L/L15/KG/BB6
Transaction Quantity = 100 L.
Material temp = 30 deg-C
Test temp = 15 Deg-C
Test relative density = 870 KGV.
With the above data if you put BSW% = 0, then additional quantities calculated are 0.622 BB6, 85.938 KG, 98.779 L15 , 100 L.
if you put BSW% = 0.5, then additional quantities are 0.618 BB6, 85.508
KG, 98.285 L15 , 100 L.
From above it is clear that the additional quantities in all units except in "L" change whenever the BSW% changes. This shows that BSW% is not considered in calculating the "L" quantity.
In actual practice BSW correction should happen for Transactional Quantity also.
If you have any solution for the above scenarion . please suggest.for necessary correction.
regards
Dipak
[email protected]

Dear Vishnu
You r right . Standard SAP behaves that way only. We modified badi OIB_QCI_ROUND_QTY
method: IF_EX_OIB_QCI_ROUND_QTY~ROUND_QTY
coding atatched.
Anyway thanks for reply.
METHOD IF_EX_OIB_QCI_ROUND_QTY~ROUND_QTY .
Local Data
  TYPES: T_CTPARAM TYPE OIB_A10,
         T_ADQNT TYPE OIB_A05.
  DATA:  S_CTPARAM TYPE OIB_A10,
         S_ADQNT  TYPE OIB_A05,
         S_ADQNTN TYPE OIB_A05.
  DATA : L_BSW(72) TYPE C.
  DATA: W_PAR_FLTP TYPE OIB_A10-PAR_FLTP,
        WF_BSW     TYPE OIB_A10-PAR_FLTP .
  DATA: IT_PARAM  TYPE STANDARD TABLE OF T_CTPARAM,
        IT_ADQNT  TYPE STANDARD TABLE OF T_ADQNT,
        IT_ADQNTN TYPE STANDARD TABLE OF T_ADQNT.
  DATA: W_TABIX TYPE SY-TABIX.
  DATA:  W_DIMENSION TYPE  T006-DIMID,
         W_TEXT      TYPE  T006T-TXDIM,
         W_MEINS     TYPE  T006-MSEHI ,
         L_MENGE     TYPE  MLEA-MEINH ,
         WA_PARAM    TYPE  OIB_A10 .
*-----DATA DECLARATION FOR L15 START -
  DATA : WF_ADQNT_L     TYPE  OIB_A05-ADQNT,
         WF_ADQNT_L15   TYPE  OIB_A05-ADQNT,
         WF_ADQNT_TMP   TYPE  OIB_A05-ADQNT,
         WF_ADQNT_ROUND TYPE  OIB_A05-ADQNT,
         WF_ADQNT_KG    TYPE  OIB_A05-ADQNT.
*-----DATA DECLARATION FOR L15 END -
  IT_ADQNT = TC_QT2TAB.
  READ TABLE ITC_PARAM INTO S_CTPARAM WITH KEY FIELDNAME = 'UMRSL'.
  IF SY-SUBRC = 0 AND S_CTPARAM-PAR_CHAR = 'ZCRD' .   "’ .   "AMP
    READ TABLE ITC_PARAM INTO S_CTPARAM WITH KEY FIELDNAME = 'MEINH'.
    W_MEINS = S_CTPARAM-PAR_CHAR.
    IF W_MEINS NE SPACE.
      CALL FUNCTION 'DIMENSION_GET_FOR_UNIT'
        EXPORTING
          LANGUAGE       = SY-LANGU
          UNIT           = W_MEINS
        IMPORTING
          DIMENSION      = W_DIMENSION
          TEXT           = W_TEXT
        EXCEPTIONS
          UNIT_NOT_FOUND = 1
          OTHERS         = 2.
    ENDIF.
    IF W_DIMENSION = 'VOLUME'.
      READ TABLE ITC_PARAM INTO S_CTPARAM
        WITH KEY FIELDNAME = 'BSWCN'.
      WF_BSW = S_CTPARAM-PAR_FLTP .
      READ TABLE IT_ADQNT INTO S_ADQNT WITH KEY MSEHI = 'MT' MANEN = ' '.
      IF SY-SUBRC = 0.
        W_TABIX = SY-TABIX.
        S_ADQNT-ADQNT =
                S_ADQNT-ADQNT * ( 1 -  ( S_CTPARAM-PAR_FLTP / 100 ) ).
        MODIFY IT_ADQNT   FROM S_ADQNT INDEX W_TABIX TRANSPORTING ADQNT.
        TC_QT2TAB  = IT_ADQNT.
      ENDIF.
      READ TABLE IT_ADQNT INTO S_ADQNT WITH KEY MSEHI = 'KG' MANEN = ' '.
      IF SY-SUBRC = 0.
        W_TABIX = SY-TABIX.
        S_ADQNT-ADQNT =
                S_ADQNT-ADQNT * ( 1 -  ( S_CTPARAM-PAR_FLTP / 100 ) ).
        MODIFY IT_ADQNT   FROM S_ADQNT INDEX W_TABIX TRANSPORTING ADQNT.
        TC_QT2TAB  = IT_ADQNT.
      ENDIF.
*-----Start BSW% in Litre Qty----
      READ TABLE IT_ADQNT INTO S_ADQNT WITH KEY MSEHI = 'L' MANEN = ' '.
      IF SY-SUBRC = 0.
        W_TABIX = SY-TABIX.
        S_ADQNT-ADQNT =
               S_ADQNT-ADQNT * ( 1 -  ( S_CTPARAM-PAR_FLTP / 100 ) ).
        WF_ADQNT_L  = S_ADQNT-ADQNT .
        MODIFY IT_ADQNT   FROM S_ADQNT INDEX W_TABIX TRANSPORTING ADQNT.
        TC_QT2TAB  = IT_ADQNT.
      ENDIF.
*-----End BSW% in Litre Qty--
*---L15 start----
      READ TABLE IT_ADQNT INTO S_ADQNT WITH KEY MSEHI = 'L15' MANEN = ' '.
      IF SY-SUBRC = 0.
        W_TABIX = SY-TABIX.
        WF_ADQNT_L15 = S_ADQNT-ADQNT .
        WF_ADQNT_TMP = ( WF_ADQNT_L15 / WF_ADQNT_L ).
        CALL FUNCTION 'ROUND'
          EXPORTING
            DECIMALS      = 4
            INPUT         = WF_ADQNT_TMP
            SIGN          = 'X'
          IMPORTING
            OUTPUT        = WF_ADQNT_ROUND
          EXCEPTIONS
            INPUT_INVALID = 1
            OVERFLOW      = 2
            TYPE_INVALID  = 3
            OTHERS        = 4.
        WF_ADQNT_L15   = WF_ADQNT_ROUND * WF_ADQNT_L .
        S_ADQNT-ADQNT = WF_ADQNT_L15 .
       MODIFY IT_ADQNT   FROM S_ADQNT INDEX W_TABIX TRANSPORTING ADQNT.  " ---Blocked by Prasanta on 08-june-07
        MODIFY IT_ADQNT   FROM S_ADQNT INDEX W_TABIX TRANSPORTING ADQNT.
        TC_QT2TAB  = IT_ADQNT.
      ENDIF.
*---L15 end----
*---KG start---
      READ TABLE IT_ADQNT INTO S_ADQNT WITH KEY MSEHI = 'KG' MANEN = ' '.
      IF SY-SUBRC = 0.
        W_TABIX = SY-TABIX.
        READ TABLE ITC_PARAM INTO S_CTPARAM
        WITH KEY FIELDNAME = 'BDICH'.
        WF_ADQNT_KG  = ( WF_ADQNT_L15 / ( 1 - ( WF_BSW / 100 ) ) * ( ( S_CTPARAM-PAR_FLTP / 1000 ) - 11 / 10000 ) ) - ( WF_ADQNT_L15 / ( 1 - ( WF_BSW / 100 ) ) * ( WF_BSW / 100 )  *  9979 / 10000  ) .
        S_ADQNT-ADQNT = WF_ADQNT_KG .
        MODIFY IT_ADQNT   FROM S_ADQNT INDEX W_TABIX TRANSPORTING ADQNT.
        TC_QT2TAB  = IT_ADQNT.
      ENDIF.
*---KG end---
    ENDIF.
  ENDIF.
ENDMETHOD.

Similar Messages

  • Implementation of Note 660016 for Follow up Transactions in CRM 2007

    Hi All,
       We have a requirement to not show all the business activities and tasks available in crm for all the transactions as follow-ups.
       For this reason we implemented the note - 660016. Now its working fine.. It is not showing business acitivities and tasks as follow-up transactions in the CRM GUI and Web UI 2007 for all the transactions.
       But when I create a business activity as a followup for ztransaction in define copying control for business transactions.. It is showing in the CRM GUI but not in the WebUI.
      But at the same time when I create a service complaint as a followup for my ztransaction, I am seeing the service complaint as a follow up in both CRM GUI and Web UI.
       Is the implementation of this note restricting business activities and taks in WebUI forever or do I need to write any extra logic or is this any configuration issue ?
    Regards,
    Raghu
    Edited by: Raghu Danda on Mar 8, 2009 1:17 PM
    Edited by: Raghu Danda on Mar 9, 2009 5:14 AM

    Hi Robert,
       Thanks for your reply
       I checked the link, But I didnt get the full information there.
       Firstly, my problem is not with upgrade and
       the second thing is before implementing the note 660016, I am able to see both in CRM GUI and Web
       UI all the business acitivities and tasks along with other transaction types as follow-up transactions.
       After implementing the note, I am not able to see only the business activities and tasks in the Web UI
       as follow-ups and in CRM GUI, its appearing as follow-ups.
       Hope you got my question now...
       If this is not done in customization I need to code according to my scenario..
       When I kept a break point this class is triggering from another class.
       Do I need to code in the class CL_CRM_UIU_BT_ACT_CUST_GET, according to my scenario.
       Again I have a question here, will you please tell me in which component this class exists, so that I
       will enhance that component.
       Because when I debug after clicking on the Follow-Up button,this class is calling some where
       down...So I am unbale to get the right component for this.
    Regards,
    Raghu
      I

  • Open Items not considered for Payment Lot

    Hello Experts.
    I have created some open items using FPE1. They are displayed as due in FPL9. But the same open items are not selected in FP06 for clearing. They are also not considered for clearing in a payment lot (FP05).
    Can some one tell me what could be the reason for this
    Best Regards
    Venkat

    If you have a clearing restriction, to be able to remove it when you change the document in FPE2 for example you need to activate that clearing restriction in:
    Financial Accounting > Contract Accounts Receivable and Payable > Basic Functions > Open Item Management > Define Modifiable Clearing Restrictions
    If you don't do that you cannot manually change it.
    Adriano.
    PS: Again are people in these forums that put answers to be in the statistics... GOD..

  • We have "dbbackup.exe" in SqlAnywhere in BI 4.1 for running the transaction log truncation/backup. This wasn't present in BOXI 3.1. Any alternative for 3.1?

    1) OS version:
    OS Name : Windows Server 2008 R2
    2) BO version:
        BusinessObjects XI 3.1 SP05.
    3) My question:
        We have “dbbackup.exe” utility in SqlAnywhere in BI 4.1 for running the transaction log ( CMS and Audit) truncation/backup. But the same utility was not present in BOXI 3.1 SP05 for backup.
       Is there an equivalent/alternative utility in BOXI 3.1 SP05 for the same purpose? We use the command below for BI 4.1 Transaction Log truncation/backup:
    E:\Program Files\SAP BusinessObjects\sqlanywhere\BIN64>dbbackup.exe -c "dsn=<System DSN>;uid=< SQL_AW_DBA_UID>;pwd=< SQL_AW_DBA_PASSWD>;host=localhost:2638" -t -x -n "E:
    \Transaction_log_backup\CMS"  
    Any help or clarification on this issue would be greatly appreciated.
    Thanks in advance.
    Conor.

    Hi Conor,
    BOXI 3.1 SP05 does not include the dbbackup utility.  Instead, you issue SQL statements to create the backup.  We published a paper on the subject:
    http://scn.sap.com/docs/DOC-48608
    The paper uses a maintenance plan to schedule regular backups, but you don't need to do that if you want to simply create a backup when required.  To do that (along with transaction log truncation), you run the SQL statement:
    BACKUP DATABASE DIRECTORY 'backup-dir'
    TRANSACTION LOG TRUNCATE;
    For complete details about the BACKUP statement, have a look here:
    http://dcx.sap.com/index.html#1201/en/dbreference/backup-statement.html
    You'll need to execute the statement inside a SQL console - the paper above describes how to get that.
    I hope this helps!
    José Ramos
    Product Manager
    SAP Canada

  • Sales Order is not consider for MRP in MRP Type PD and Strategy 40

    Sales Order quantity is not consider for net requirement calculating in MRP.
    My MRP Type is PD and Strategy 40.
    Also in MD04 Sales order is not appearing.

    Dear,
    Requirements to MD04 will flow based on the settings you maintain in OVZ9 for the combination of "Availability Check" and "Checking Rule". Here whatever fields you choose under the tab "In/outward movements", that will be considered.
    It may be because of Requirement type Missing at schedule line category level . In MD04 requirement are pass on Either Individually or collectively . In Case of Individual each schedule line create one entry in MD04 ( Stock Requirement list)
    So check the materail master for checking group is maintain or not?
    Please refer this thread also,
    Re: Sale order not reflecting in MD04
    After that run MRP again and check the result.
    Regards,
    R.Brahmankar

  • The transaction associated with the current connection has completed but has not been disposed. The transaction must be disposed before the connection can be used to execute SQL statements.

    Hello All,
    I am getting below error can you please help me
    Error:-
    The transaction associated with the current connection has completed but has not been disposed. The transaction must be disposed before the connection can be used to execute SQL statements.

    Perhaps this thread will help you out
    http://stackoverflow.com/questions/11453066/error-the-transaction-associated-with-the-current-connection-has-completed-but
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Lock NOT set for: Archiving the data from a data target

    Dear Expert,
    I try to archive one of my info cube, when i start to write the Archive file the Free Space in the Archive folder not enough and it make the process error.
    Then i try to changes the Archive folder to another path with enough free space. But when i start to write the archive file with new variant this error message came up :
    ==============================================================
    An archiving run locks InfoProvider ZICCPS810 (archivation object BWCZICCP~0)
    Lock NOT set for: Archiving the data from a data target             
    InfoProvider ZICCPS810 could not be locked for an archiving session 
    Job cancelled after system exception ERROR_MESSAGE                  
    ==============================================================
    Please Help Me.
    Wawan S

    Hi Wawan,
    If the earlier archive session resulted in error, please try to invalidate the earlier session in archive management and try running archive job again.
    Hope this helps,
    Naveen

  • CsrAttachmentUploadDiv part attachment is not rendered SP 2013(Attach file in not working for all the list forms)?

    csrAttachmentUploadDiv partattachment  is not rendered SP 2013(Attach file in not working for all the list forms)?
    Ravi
    function ShowPartAttachment() {
    ULSopi:
        if (document.getElementById("part1") == null || typeof document.getElementById("part1") == "undefined") {
            alert(Strings.STS.L_FormMissingPart1_Text);
            return;
        (document.getElementById("part1")).style.display = "none";
        (document.getElementById("partAttachment")).style.display = "block"; //problem here

    Am also facing the similar problem....any iputs are highly appriciated.
    Issue..
    1) Defined the attachment type in IMG.
    2) Added the attachment type "SFREEATTM" by selecting other attributes---> Attachment Types.
    3) Attached the excel file in the design.
    See the screen shot below:
    The Issue is when testing through tcode nwbc in the inbox the attachment tab is not visible after selecting the particular form.
    Please see the screen shot below:
    Did i miss any Configuration?? Please suggest...
    Regards,
    Naveen

  • BAPI or RFC for replicate the transaction LX03

    Hi experts,
    anyone know any BAPI or RFC for replicate the transaction LX03?
    Thanks

    There are no alternate transaction for OBY6

  • TS3297 For my game purchase cannot be success .. After I click on the icon for the purchase they will show me contact I-tunes support for complete the transaction ....for I have already contact AppleCare for assist.... And they told me is the server syste

    For my game purchase cannot be success .. After I click on the icon for the purchase they will show me contact I-tunes support for complete the transaction ....for I have already contact AppleCare for assist.... And they told me is the server system down
    Kindly get back to me ASAP!
    Thanks.

    Jay cole Ong wrote:
    After I click on the icon for the purchase they will show me contact I-tunes support for complete the transaction ....
    To Contact iTunes Support...
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • Contact itune support for complete the transaction

    when i try to purchase items from inside of app.
    it keep saying that contact itune support for complete the transaction and
    it wont go thru.

    Do exactly what it told you to do and contact itunes support.

  • OCITransCommit() returns ORA-01013 for correctly committed transaction

    I had the following issue which seems to me a critial bug in Oracle 11g:
    Breaking an oracle transaction asynchronously with OCIBreak() while transaction is being committed with OCITransCommit() did result in a correctly committed transaction on the database server. However OCITransCommit() returned ORA-01013 (user requested cancel of current operation) which is inconsistent. It should never happen that the transaction is correctly committed and OCITransCommit() returns anything other than OCI_SUCCESS.
    My assumption is that the transaction is only committed on the database server if the OCITransCommit() returns OCI_SUCCESS. Or is this assumption not always correct?
    Oracle version 11.2.0.3.0 64bit (Linux)

    As Karthick says, perhaps the Call Interface forum is a better place to ask.
    However, as a guess on my part (I've rarely had a need to go directly into OCI calls) from what I know of the internal workings of transactions on Oracle, the COMMIT operation is an atomic (if that's the right word to use here) operation. When you issue a COMMIT from your code, it doesn't go off to the database, do loads of work committing your data and writing it to the disks etc. before execution is returned to your code, it is a very basic instruction to the database to commit the data, which then goes off and does that in the background, whilst execution is returned immediately to the calling code, and Oracle in the background can take it's time getting the data written, and can present the data to your session and others, as if it is actually on the tables. This is all handled using the SCN and the logs internally and users don't have to worry about it (usually) because it all appears on the front end as though the data exists and is written on the tables.
    So, I'm curious as to how you (or the OCI calls) are managing to issue a "break" to try and break a commit from happening. Without seeing code it's hard to see how you are testing this.
    I've just looked up the documentation for TransCommit...
    http://docs.oracle.com/cd/E11882_01/appdev.112/e10646/oci17msc006.htm#LNOCI13112
    and I see you have the option of "Waiting" for the LGWR to write the transaction to the online redo logs, so that's a possible scenario for breaking, though I imagine you'd have to get in quickly with the break from another thread if the one thread is waiting for the commit.
    Intersting part of the docs...
    >
    Under normal circumstances, OCITransCommit() returns with a status indicating that the transaction has either been committed or rolled back. With global transactions, it is possible that the transaction is now in doubt, meaning that it is neither committed nor terminated. In this case, OCITransCommit() attempts to retrieve the status of the transaction from the server. The status is returned.
    >
    Still, it would be interesting to see the test code to reproduce this.... just my morbid curiosity for low level coding.... ;)

  • VL02N , How to correct the deliverd quantity in vl02n for the batch items .

    Hi,
    How to save the order if the correct picking value if the item is batch managed.
    When we are in Delivery -> Item->batch split screen, we have an option Adj Del Qty. When  this is clicked, than delivery qty is updated correctly. When this is not done, delivery is saved with mismatch between cumulative batch quantity and delivery quantity.
    Could any one has an idea how to save the order with the correct delivery quantity when the  batch split -> Adj Del Qty is not clicked.

    I am thinking you want to show the rejected quantity on the Parent Item in the Inventory Tab.
    Use the following SQL for showing the Net Available Qty after subtracting the rejection.
    <b>SELECT T0.OnHand - T0.IsCommited - (SELECT SUM(T1.Quantity) FROM IGN1 T1 WHERE T1.ItemCode = $[$5.1.0] AND T1.TranType = 'R')
    FROM OITW T0
    WHERE T0.ItemCode = $[$5.1.0] and T0.WhsCode = $[$28.1.0]</b>
    Use the following SQL to get just the rejected quantity
    <b>SELECT SUM(T1.Quantity) FROM IGN1 T1 WHERE T1.ItemCode = $[$5.1.0] AND T1.TranType = 'R'</b>
    Suda

  • Query level formula is not working for all the amounts

    Hi Friends,
    In my production system I found new thing that in my query level I done some calculation (as per my requirement I done amount devide by 100 to get correct values)
    It is working for all the amounts except 1or 2 amounts, im uploading same source file for  all the amountsu2026 why it is happening like this u2026and is there any availability to change those 1 or 2 values at data base tables level  or at any pleace (I hope in SAP it is may not possible)u2026can any body tell me why it is happening like this. u2026 because of  this issue only my report is pending to sign off u2026.please  can any body find  the solution ASAP.
    Regards,
    VENKAT

    Are they non decimal currencies?
    If yes, create RKF1 on amount field excluding the currencies for which you are not getting currect values then in CKF or formula as RKF1 / 100.   Similarrly create another RKF2 on amount only including the currencies which are excluded in RKF1, create a CKF or formula as RKF2/10000. Then created another formula wich adding CKF1 and CKF2.

  • Hide all the components in bill of material for all the transaction

    Hi experts
    I have requirement where my client does not want to share the bill of material details across the organisation. Hence they would not like to see bill of materials components details for particular set of materials.
    Also, when any material documents or any other related transctions are posted in those production order, they want that only authorized user should view those components of BOM.
    Please help me in this regards
    Let me know if my question is unclear.
    Thanks

    yes.. particular set means a group of materials but they do not have a common material group assigned to them in the material master.
    And as you mention, i need to do something in the mentioned transaction. How to do that..
    because there should not be any loop holes for any users to get the information to identify BOM.
    Regards

Maybe you are looking for

  • How to capture the enter even in alv

    hi, experts my requirement is that: i create an alv ,set it response to the enter even, if the content has changed, a class will be response it . the code like below:     CALL METHOD g_grid->register_edit_event       EXPORTING         i_event_id = cl

  • Using Main-Class attribute in a MNF

    What filepath do you specify to get it to read the .class file? I keep getting NoClassDefExceptions. I am not adding .class to the end of the file in the Manifest, so it's not that.

  • Mouse motion listener for JTable with JScrollpane

    Hi All, I have added mouse motion listener for JTable which is added in JScrollPane. But if i move the mouse, over the vertical/horizontal scroll bars, mouse motion listener doesn't works. So it it required to add mousemotionlistener for JTable, JScr

  • Idvd to a jumpdrive

    how to you save an idvd to a jumpdrive?

  • IPad sudden turning off

    My iPad suddenly blanks and I have to enter the keypad to open it. Is it possible to stop it doing this. I recently had a reboot at the Apple shop owing to a bug it go t after I updated to IOS 8.0.3