Error : Default quantity and uom in opportunity.

Hi,
I did default quantity as a 5 and default uom as a CM in getter method after saving opportunity  it's showing error  : item xyz enter the unit of measure ment. and for quatity we did but it's not showing in web ui.
this is code below i redefine the getter method and copied standeard code at the end of the code i added this below code.
Component : BT111H_OPPT view itellist CN : BTADMINI Attribute : PROCESSQTYUNIT 
value = if_bsp_model_util~convert_to_string( data_ref = dref
                                  attribute_path = attribute_path ).
if value is not initial.
  value = value.
  else.
  clear : value.
    if value is initial.
      value = 'CM'.
      endif.
endif.
and for quantity as wrote  attribute quatity i redifine the getter method after standard code i added this code but it's not showing in web ui default quantity.
value = if_bsp_model_util~convert_to_string( data_ref = dref
                                  attribute_path = attribute_path ).
if value is not initial.
  value = value.
  else.
  clear : value.
    if value is initial.
      value = '15'.
      endif.
endif.
please guide me.
jemmi.

Hi Jemmi,
Getter method is to display a value in the web ui screen, it does not set the value in the collection wrapper.
If you want to set the quantity and UOM, you have to do this in the setter method using set_property.
Method set_processqtyunit
current->set_property( iv_attr_name = ' PROCESSQTYUNIT' iv_value = 'CM' ).
Endmethod.
Regards,
Arun

Similar Messages

  • Getting empty values for Quantity and UOM in  CCA Retraction from BW to ECC

    Hi,
    We are retracting the Project data from BW to ECC following the
    SAP Network Bolg : BPS Retraction for Cost Center Accounting by Praveen Mayalur.
    I am using the following settings:
    <u>
    <b>Function Modules:</b></u>
    UPR_COST_PLAN_EXEC
    UPR_COST_PLAN_INIT
    <u><b> Parameter Exit Functions:</b></u>
    BUSI     I_BUSI
    CASE     I_CASE
    DELTA     DEL_BOOK
    MAPP     KCD_REPID
    RFC_DEST     RFCDEST
    TEST     TST_X
    VERSR3     I_VERS
    WAIT     I_WAIT
    ZARE     I_COAR
    ZELM     I_CELM
    ZTYP     I_CTYP
    <u><b> <b>parameter group</b>.</b></u>
    Retr. R/3 Comp.          9
    Retractor Control          4
    Delta Update          1
    Sender str.          UPB_SND_COPS
    Destination          ED1CLNT300
    Test mode Is Active          0
    R/3 Version                                                                
    Wait for Update                                                                
    Controlling Area          01
    Cost Element          02
    CElem category          03
    In the UPBR_Rule we have put 0AMOCC and 0QUANTITY in the Formula.
    After successful completion of retraction, we were able to get all the values to ECC except Quantity and Unit Of Measure.
    Please let me know if any other settings are to be made.
    Thanks you in advance.
    Srini.

    Dear Lokesh,
    Sorry for the confusion.
    Please note that the retraction is for Project Systems. The Retraction is done to CO Planning table COSP.
    Thank you.
    Srini.

  • Bapi Error:Quantity and / or " delivery completed ind. Or final issue ind.

    Hello Gurus
    We are working on BAPI:bapigoods_mvt_create with movement type 103, for goods receipt when we execute program am getting this error message "Quantity and / or " delivery completed ind. Or final issue ind. " will you pls help me to over come this error.
    Thanks in advance
    Madhava

    Hi,
    You are posting good movement for quantity 0.
    SAP can accept zero goods movements if this meant for setting up the delivery completed indicator.
    So either quantity should be entered or delivery completed indicator should be ticked if qty is zero.
    Check the quantity you are supplying for this bapi.

  • Want "NOT  to Default Quantity in GR from PO"

    Hi,
    My issue is, we want:
    in MIGO>  make GR Quantity field "Blank" instead of its getting copy from open PO quantity!
    Most of the time user commits mistake when they received partial quantity,
    (they save default open PO quantity ), We want to force user to TYPEIN actual receiving Quantity field while doing MIGO.
    Any suggestion!
    Thanks
    -Sam

    The enhancement MEVME001 might be of help for you.
    The documentation of this enhancement in transaction SMOD states that:
    "The enhancement MEVME001 comprises the user exit EXIT_SAPLEINR_001,
    which is invoked to calculate the default quantity in the case of a
    goods receipt against a scheduling agreement.
        Example:
        If your vendors frequently deliver early, you can use this user exit
        to specify that instead of the quantity open to date, the quantity
        open up to the day after tomorrow is taken as the default quantity
        for a goods receipt.
        You can also specify that the tolerance check is to relate not to
        the default quantity but to the total scheduled quantity.
    This enhancement can be used to define the following data differently
    to that in the standard system:
    o   Default quantity for goods receipt
         In the standard system, the quantity open to date from the last-
         transmitted SA release is used in the case of scheduling agreements
         with release documentation (document type LPA). In the case of
         scheduling agreements without release documentation (document type
         LP), the open quantity to date is used.
         Note
         If you use vendor confirmations with GR assignment, the quantity
         from the confirmation is suggested (i.e. in this case, the default
         quantity cannot be influenced via the user exit.
    o   The quantity to which the tolerance calculation is to relate
         (In the standard system, the tolerance check relates to the default
         quantity - i.e. the quantity open to date). At the time of the
         tolerance check, the tolerance limits for under- and overdeliveries
         entered in the scheduling agreement item are taken into account.
    The parameters F1 and F2 are passed on in the interface to the user
    exit. These parameters must contain the following data:
    Parameter F1
    = Default quantity + total of all already delivered quantities (posted
    GR quantity)
    (The already delivered quantity is deducted again prior to the output
    of the default quantity on the screen.)
    Parameter F2
    = Quantity to which the tolerance calculation relates
    All schedule lines for the relevant item are passed on in the internal
    table "CETT" as the basis for determining the default quantity and the
    tolerance.
    Note
    Please note that the user exit applies to both document types."
    Please, check also the information contained under the two attached
    notes:
    874264 - MB01/MIGO: Default quantity for goods receipt posting
    105169 - Default quntity durng goods receipt f.purchase ordr
    Hope this will help.
    Regards,
    Sunitha.

  • Function to convert PO quantity and cancelled quantity into Primary UOM

    Hello,
    I am looking for a function to convert PO quantity and cancelled quantity into its Primary UOM from the unit of measure the line order was placed.
    Thank you

    hi
    In case if you are already working in production remember that decimal places should not change. It will affect all previous data.
    For your problem best solution is make order unit as 1000. So that your problem will solve
    e.g. instead of 2.009 inr for 1 Unit use 2009 inr for 1000 unit.

  • After the Firefox update this week (Sept 7?) links from emails won't open. I get an error message. So I've temporarily set IE as my default browser, and the links work.

    After the Firefox update this week (Sept 7?) links from emails won't open. I get an error message. So I've temporarily set IE as my default browser, and the links work.

    Hi everyone, I have Snow Leopard 10.6.8. I have been very very frustrated by this problem. [I could not create new windows, and anything that opens new windows, such as trying to see what Add-ons you have etc would not work]. I read about changing screen alignment to the top... I have one screen so the option does not exist. The above messages would not fix this problem. I searched hard and did find a solution in the end. I read stuff about removing Add-ons until the problem is fixed, but its simply not the case.
    First of all open Firefox. next go to options: Help --- 'Restart with Add-ons disabled'. Tick the box for add-ons, restart firefox. Next go to Tools --- Add-ons. Next (In the Add-ons Manager' click on 'Plugins' on the left hand side pane. Look for the small blue writing that says 'Check to see if your plugins are up to date'.
    Now notice it should say 'Missing Flash'. "For your safety, Firefox has disabled your outdated version of Flash. Please upgrade to the latest version". I followed this, reinstalled Flash and it now works as it always did, no problems. For people where the above fix didn't work, try this one out. Hope it helps people!
    :o)

  • How to validate the line item values in OFR - quantity , unit price and UOM

    Hi All,
    Is there any possibility to validate the line items like quantity, unit price and UOM against the DB and stops those invoices at verifier (1 batch =10 invoices) level  if yes could you please let me know the process how to proceed further.
    due to this some the invoices are coming to OFR is with incorrect quantity, UOM and unit price different from PO lines information like quantity , UOM and unit price and those invoices are not validating from the DB and these are processed to EBS and it's effecting the GL and reporting.
    Regards,
    Anil

    Hi ,
    I did not get the exact requirement.Let me bit:
    In standard AP project lines validation will try to compare the quantity , unit price and UOM of line against the database for match which actually performed on export.
    So even if match fails batch will be exported.Now if you want to correct it before EBS,i think you can do it in the business process easily that you are consuming whether BPEL/BPM process.
    We have done this in several projects
    =========================
    But If you want that to be done from OFR side i think we need to code  UserExitPONumberValidate event to  compare the line items values against database.I need to test this also.

  • Price Base Quantity and PBQ UOM on Detailed VIEW of item

    Dear MDM Experts,
    we use MDM Catalog 2.0 SP1. How can be appeared Price Base Quantity and Price Base Quantity UOM on Item Details screen and on Compare screen?
    If I set in Configuration UI on General tab - Item Display Criteria: Show Price Base Quantity to YES, I see no change.
    Thanks and regards,
    Ádám Horváth

    Are you still looking for answer. plz let me know.
    Regards,
    SK

  • Planned quantity and actual quantity error

    Dear all,
    Planned quantity and actual quantity both are same,but still some variance showing in plan/actual variance column.
    Kindly find below image.Material 10000135,10000137,10000310. while confirming we dint consider these material,apart from that other values showing variance.
    Requesting you to give suggestion.
    Regards
    Rajasekaran

    Hi Deep,
    Assuming you have an InfoObject for Quarter (say 0CALQUARTER) & Month (say 0CALMONTH), drag the Quarter InfoObject & Month InfoObject below in the Columns. Drag your KFs i.e. Planned Qty & Actual Qty below the Month InfoObject to form a KF structure. If you don't want Qty Unit to be displayed alongside your KFs, use NODIM() function & display Unit in the Rows.
    --Priya

  • SNP Optimizer Read Error Error id : 600 and Error id : 812

    Hi All,
    I am rebuilding my SNP in a new SCM environment.  I have transfered my PDS's and WorkCenters/Capacity via the CIF.  These appear fine when I display and have performed the LC Check for the resouces using the TOOLS at  /n/sapapo/res01 tcode but all appeared green.  I am using standard Hierachies and think they are fine and assigned to the Planning area correctly. 
    When I press the "oprimizer" ...It runns until it gets to the "Loading Planning Data" then it fails with a "Error when Reading Planning Data" and "Optimizer: an internal error occured".  This error occurs very quick once it starts this process and complexity does not seem to matter. 
    When lookinjg at the Trace File of the log I see the below activity that seems to be the cause but I do not know what the errors mean or where to reference them? Has anyone else encountered this previousluy or know where can investigate this further.  Any help or directions on Error id : 600 and Error id : 812 would be great!
    Thanks in advance for all your assistance in this!  
    ===
    <i> 19.04.2011 19:04:39 core_msgmgr.cpp(440) 'MsgMgr' * Sending progress number 801 to OutputInterface from []
    <i> 19.04.2011 19:04:40 core_msgmgr.cpp(440) 'MsgMgr' * Sending progress number 802 to OutputInterface from []
    <i> 19.04.2011 19:04:41 snpopsvr_script.cpp(176) 'SuperVisor' Running in 700 data version mode...
    <i> 19.04.2011 19:04:41 snpopsvr_script.cpp(862) 'SuperVisor' Interpreted run time limitation as minimum run time (300 sec.), set run time limitation to 900 seconds.
    <i> 19.04.2011 19:04:41 core_msgmgr.cpp(440) 'MsgMgr' * Sending progress number 803 to OutputInterface from []
    <i> 19.04.2011 19:04:43 core_supervisor.cpp(728) 'SuperVisor' <M> Invoking module 'SNPRModelGenerator' [6]->init
    <i> 19.04.2011 19:04:43 core_supervisor.cpp(750) 'SuperVisor' <M> Returning from module 'SNPRModelGenerator' [6]->init = success [ctx size : 0]
    <i> 19.04.2011 19:04:43 core_supervisor.cpp(728) 'SuperVisor' <M> Invoking module 'SNPRModelGenerator' [6]->download
    <i> 19.04.2011 19:04:43 rfc_connection.cpp(599) 'MsgMgr' <rfc> calling function module /SAPAPO/MSDP_OPT_UPLOAD
    <e> 19.04.2011 19:04:53 snpopsvr_script.cpp(286) 'SuperVisor' <!> CORE EXCEPTION : 14 =
         RFC_RC (RFC_EXCEPTION) Exception raised
         RFC_ERROR_GROUP (RFC_ERROR_APPLICATION_EXCEPTION) The called function module raised an exception
         key=ERROR
         message=ERROR
         exception=ERROR
    <i> 19.04.2011 19:04:53 core_msgmgr.cpp(394) 'SuperVisor' <GUI MSG> Error id : 600 [class : <default>] - no params
    <i> 19.04.2011 19:04:55 core_msgmgr.cpp(394) 'SuperVisor' <GUI MSG> Error id : 812 [class : <default>] - no params
    <i> 19.04.2011 19:04:56 optsvr_main.cpp(1166) 'MsgMgr' Current check values:
    [CHECK_EQUAL]
    [CHECK_UPPERBOUND]
    nPEAK_MEMORY_linuxx86_64 = 79488
    [CHECK_LOWERBOUND]
    <i> 19.04.2011 19:04:56 optsvr_main.cpp(1209) 'MsgMgr' Performance values:
    bSuccess     false
    nCPU_TIME     0
    nPEAK_MEMORY     79488
    nREAL_TIME     17
    SNP BuildMode     Release
    SNP Runtime requested     900
    tracefile     optsvr_trace20110419_190439_2e12.log
    <i> 19.04.2011 19:04:56 optsvr_main.cpp(1235) 'MsgMgr' Performance Monitor values:
    nCPU_TIME     0
    nPEAK_MEMORY     79488
    nREAL_TIME     17
    <i> 19.04.2011 19:04:56 optsvr_dsr.cpp(96) 'MsgMgr' <writeDSRdata> tracing not active => no DSR written
    <i> 19.04.2011 19:04:56 optsvr_main.cpp(1256) 'SuperVisor'
    Finished->FAILED ...

    Thanks for the reply...
    I was able to manually enter and save an SNP planned order via the planning book. 
    I have failures where my Input material is UOM=TON and Output is UOM=TON and also where input is UOM=TON and output is UOM=KG. I am able to switch between these UOM's in the planning book and product view.
    When I have DEBUG2 on via OPT10 I see:
    Message Log:
    Input parameters
    Customizing Settings
    Active BAdI Implementations
    Step 1: Data read and model creation started at 16:36:35 on 04/22/2011
    Runtime 00:00:00 to measuring point Step_1_Start
    Runtime 00:00:01 to measuring point Initializations
    Runtime 00:00:00 to measuring point Arc_Read
    Runtime 00:00:01 to measuring point SNP_Planed_Order_Deletion
    Runtime 00:00:00 to measuring point Procurment_and_Transport_Order_Deletion
    Runtime 00:00:00 to measuring point Arcmat_Read
    Error occurred when reading data
    Trace File:
    <1> 22.04.2011 16:36:36 rfc_connection.cpp(631) 'MsgMgr' <rfc> RfcCall for /SAPAPO/MSDP_OPT_UPLOAD
    <1> 22.04.2011 16:36:36 rfc_connection.cpp(640) 'MsgMgr' <rfc> RfcReceive for /SAPAPO/MSDP_OPT_UPLOAD
    <2> 22.04.2011 16:36:38 core_linux_proc.cpp(40) 'MsgMgr' Mem measurement (KB): current=144108 peak=144108
    <2> 22.04.2011 16:36:40 core_linux_proc.cpp(40) 'MsgMgr' Mem measurement (KB): current=144108 peak=144108
    <2> 22.04.2011 16:36:42 core_linux_proc.cpp(40) 'MsgMgr' Mem measurement (KB): current=144108 peak=144108
    <e> 22.04.2011 16:36:43 snpopsvr_script.cpp(286) 'SuperVisor' <!> CORE EXCEPTION : 14 =
         RFC_RC (RFC_EXCEPTION) Exception raised
         RFC_ERROR_GROUP (RFC_ERROR_APPLICATION_EXCEPTION) The called function module raised an exception
         key=ERROR
         message=ERROR
         exception=ERROR
    <i> 22.04.2011 16:36:43 core_msgmgr.cpp(394) 'SuperVisor' <GUI MSG> Error id : 600 [class : <default>] - no params
    <i> 22.04.2011 16:36:43 core_msgmgr.cpp(394) 'SuperVisor' <GUI MSG> Error id : 812 [class : <default>] - no params
    <i> 22.04.2011 16:36:43 optsvr_main.cpp(1166) 'MsgMgr' Current check values:
    [CHECK_EQUAL]
    Thanks again!

  • Quantity and Price Totals on Sale Order and Delivery Order

    Dear ABAP Gurus,
    I want to add totals of line items (Quantity and Price) in sale order and delivery order screens. Can you please guide me how to do this. The price can be any from pricing procedure ie exclusive or inclusive price of sales tax.
    regards,
    RSA
    Moderator message : Requirements dumping not allowed, show the work you have already done, thread locked.
    Edited by: Vinod Kumar on Jan 28, 2012 9:23 PM

    Hi,
    Try this :
    IF @transaction_type in ('A','U') AND (@OBJECT_TYPE='22')
    BEGIN
    If exists (SELECT t3.docentry FROM OWOR T0  INNER JOIN WOR1 T1 ON T0.DocEntry = T1.DocEntry left join POR1 T2 on T2.[U_JONum] = T0.[OriginNum] and  T0.[ItemCode] =  t2.U_SubConItem] INNER JOIN OPOR T3 ON T2.DocEntry = T3.DocEntry WHERE T1.[PlannedQty] <> T2.[Quantity] and  T1.[ItemCode]  = 'subcon' and  T3.DocEntry = @list_of_cols_val_tab_del )
    Begin
    SET @error = 10
    SET @error_message = 'Not allowed to add more than planned'
    End
    End
    Thanks & Regards,
    Nagarajan

  • Inventory Error :Transaction quantity must be =  available quantity.

    An error occurred while relieving reservations.|Transaction quantity must be less than or equal to available quantity.
    while doing material transactions in transaction open interface iam getting above error......Kindly help me as i am struck here and it is high priority issue and need to be resolved as soon as possible..

    refer -
    Pending Move Transactions FAQ [ID 1141334.1]
    WIP_MOVE_TXN_INTERFACE Common Errors In Pending Move Transactions With Possible Causes And Action Plan To Process Them [ID 457066.1]
    Outside Processing Wip Move Transaction Fails With Overcompletion Quantity [ID 427558.1]
    Pending Move Transaction Error - Allow Moves Not Enabled [ID 780732.1]
    R12 OSP Job (Also Repetitive Schedule) Do Not Support Overcompletion: Error 'Transaction quantity must be less than or equal...' [ID 563011.1]
    cheers,
    VB

  • GR IR quantity and amount do not match

    Hello,
    I came across a PO where the GR and GR reversal were posted after the invoice matched and cleared. The amount and the quantities that posted on GR and GR reversal do not match because they are posted to wrong materials. Now I have these two entries in GRIR account and I cannot clear them because they do not match.
    So, i. Is there any configuration that would restrict from posting a GR and GR reversal after the invoice has been matched?
         ii. Is there any configuration that would allow to post GR/GR reversals to correct materials?
    I highly appreciate your responses.
    Thank you
    Priya

    Hi,
    I understand this is end user error but I am looking for configuration in SAP that would not allow this. Please let me know if you need more details.
    Your PO have material with line items 10 and 20  with a specific price and then goods receipt amount is differs. First cross check price control of each material master in MM03 t.code and find with respect to which price goods receipt value are posted.
    For your example:
    Suppose there are two materials 10, 20
    Material 10 - quantity 5 net price 5
    Material 20 - quantity 10 net price 2
    GR of quantity 5 and price 2 i.e total 10 posted to material 10
    GR of quantity 10 and price 5 ie total 50 posted to material 20
    You may have price control S where system posted GR for material 10 with price 2 as PO have price 5 and for material 20 with price 5 as PO have price 5.
    If goods receipt posted with quantity and value with updation of GR/IR clearing account , then during invoice posting the same GR/IR clearing account updated.
    Cross check material master price with price control, material price in PO, material posted with price in GR and invoice posted material price. Analyze,If any  difference on quantity-  go for correction with cancellation IR & GR posted, then post with original GR quantity and finally do invoice or else check for  MR11 for GR/IR clearing balance.
    Regards,
    Biju K

  • When i take photos or videos on my ipod touch with the camera, then i plug it into the computer to sync, the computer shuts down and this blue screen comes up saying "an error has occured" and a heap of other stuff.

    When i take a photo or a video using the camera on my ipod touch, the computer (windows xp) shuts down and a blue screen comes up saying "an error has occured" and a heap of oth stuff in white. It doesn't wipe the memory or anything off the ipod. Whenever i sync my ipod without photos or videos it works fine. It also doesn't mind me taking photos off itunes to put on the ipod. I have had a look around and a couple of people say reinstall itunes, but i don't know if i will lose all my songs and apps. Any suggestions of help?

    Removing all Apple related software and reinstalling iTunes should bring all needed drivers back: Removing iTunes, QuickTime, and other software components for Windows XP
    Also check for new driver updates for Windows, especially if you have a webcam installed.
    iTunes Store purchases or songs imported from CDs are saved in your My Music folder by default and are not deleted by removing iTunes. While it is highly unlikely that you will lose any contents of your iTunes Library when following these steps, it is always a good idea to ensure that your iTunes library is backed up. If you're unsure how to backup, see iTunes: Back up your iTunes library by copying to an external hard drive.
    copied from the article about reinstalling iTunes

  • Urgent : Problem with Editable  ALV Grid  for Quantity and Currency Fields

    Hi All,
    I am using Editable ALV Grid display and have quantity and value as editable fields in the display.
    When user changes these values these values are not changing properly .
    For the quantity field the domain is MENG13 with 3 deciamal places and here  if we enter 500 it takes it as 0.500   .
    The same problem is for the currency field. Here the Domain is WERT7 with 3 decimal places.
    Here also it takes last 2 digits after decimal places by default.
    Please advice how to get proper values in this case from ALV editable fields.
    Thanks and Regards
    Harshad
    Edited by: Harshad Rahirkar on Dec 25, 2007 7:39 AM

    for all the currency field , it will display like that only.
    u have to manipulate uin program before displaying.
    if they are giving 500, in program multiply with 100 and move it to table.
    when u are getting from table, divinde and display.
    this is what I am doing.
    Reward if helpfull.

Maybe you are looking for

  • Problems copying and pasting text on Ipad

    since updating to iOS 8, when I use the Touch and hold copy function to copy text, it sometimes pastes the correct text and sometimes pastes text that I had copied a long time ago. For example, I touch and hold some text until the black "copy" option

  • User defined groups authorization

    Hi Dear; is there any possibility to manage the authorization of user defined field or user defined groups in a form? regards;

  • FPN configured for message server port

    Hello, I would like to configure my Consumer Portal to connect to my Producer on port :8101 (the default message server port of the Producer).  However, each time I try with this conifguration FPN breaks and nothing works - can't browse the PCD or se

  • What App to Create PDF Catalog of Photos/Graphics?

    I want to create a PDF file that contains (nothing but) several photos and graphics from one folder. I would swear that I used one of the CC apps to do this once before, but for the life of me I can't remember which one. Now I'm wondering if it was a

  • MacBook Pro freezes when trying to shutdown

    My macbook pro freezes and the screen turns blank when i try to turn it off. instead i have to hold down the power button and get the "mac os x shut down or something" message. it happens randomly and i cant figure out what to do. i have tried all of