Macro to convert Units to dollars (Product master)

Hi experts,
We want to forecast in units and convert units to dollars .
What is the easiest way to convert units to dollars in planning book .
Is there any way I can write a macro which picks up unit forecast in planning book and multiply with unit price in product master .
Any help will be truly appreciated .
Message was edited by: Moshe Naveh

Hi ,
You can have a currency based KF and if the prices are maintained in Pdt master then a simple macro should help. The advantage of using curreny based KF would be usage of multiple currencies as per business requirement.
Let me know if it helps.
Regards
Gaurav Mathur

Similar Messages

  • How to convert  unit of measures in bex on master data attribute values

    Hi All,
    i need to convert the unit of measure in Masterdata Attribute values... that means ) ' 0grooss_wt'. this is attribute as a keyfigure of ' 0material' .. this ' 0gross_wt' values has to convert in KGs. at Present ' 0gross_wt' values are in KG and Grams...
    I can change these values in update rules by writting Routine.. But I need to convert it in KGS at BEX Query Designer Level..
    I need calculate like this
    quantity sold * Gross Weight.
    here Gross Weight is the formula variable which replacing the values of gross weight...
    i tried by creating conversion types in RSUOM t-code. but it works on keyfigures of infocube.. not on attribute values of master data...
    is there procedure in formula variable it self to convert unit of measure before replacing the values.....
    or is there any other  solution to  this Problem...
    Thanks in advance..
    regards
    ravi.p

    Hi
    Have you tried to create a variable for ths kf with exit. I thnk it is possible here
    Assign points if useful
    Regards
    N Ganesh

  • Maintain penalty costs in product master data via macro

    Hi all,
    I am trying to use the function MATLOC_SET to maintain the penalty cost (field Non. Del. Penalty) on SNP1 tab, but it didn't work.
    Is it possible to use this function to update this field or I need to use an other function to do this?
    I tried :
    1) MATLOC_SET( 'NDPEN' ; 123 ; ACT_PRODUCT ; ACT_LOCATION ; ACT_VERSION )
    2) MATLOC_SET( 'NDPEN' ; '123' ; ACT_PRODUCT ; ACT_LOCATION ; ACT_VERSION )
    3) MATLOC_SET( 'NDPEN1LOC' ; 123 ; ACT_PRODUCT ; ACT_LOCATION ; ACT_VERSION )
    4) MATLOC_SET( 'NDPEN1LOC' ; '123' ; ACT_PRODUCT ; ACT_LOCATION ; ACT_VERSION )
    Thanks in advance,
    Regards,
    Douglas Marques

    Thanks all for replies!
    Kishore Reddy,
    Yes, it's possible to maintain product master data via macro by functions. In my case, I'm using MATLOC_SET and it's work fine... except for the penalty costs fields.
    Saradha,
    I can't use the MASSD to do this because the costs are calculated in the macro based on sku/location forecast. But call a custom program in the macro is a good idea. I only have a doubt... Is it possible to transfer the calculated values in the macro to the custom program? If it's possible, how can I do to call the custom program transferring these values?
    Julien,
    The function MATLOC_SET works fine for other fields, only doesn't work to penalty costs fields...  
    I saw that the structures are different, but the help that provides by SAP not mention any restriction. So, I think there is some other specific function to update the costs and i tried the MATLOC_EXTRA_SET, but it updates only extra fields...  
    May be having another function to do this...
    Thanks and Regards
    Doug

  • APO Product Master: New Freely Defined Attribute

    Dear Experts,
    We know than in the spro, you can defined up to 5 free attributes for the product Location master than appear in the Tab EXTRA.
    We would like to create a new one, I mean, a 6th one. The issue is that, even we are able to create it in the spro, we do not see it in the Product Master and therefore, we are not able to maintain it.
    Does anybody have the same issue? Wich kind of posibilities do we have?
    Thanks a lot for your help,
    Susana

    I concur with the previous reply.
    This is not possible.
    I have used all the 5 additional Fields in the past in DP Macros to store & use values on product-locations that are not available in Standard APO Product screen.  But the Limit is 5 and this can be seen in /sapapo/matkey table and /sapapo/matloc tables as well (via Trnx. SE11).
    However In addition, you can create 'Z' Tables in ABAP.  Alternatively you can save Additional masterdata in your own customer created TimeSeries Planning Area of which the Characteristics will be Product and Location only to save anything additional you need in TS Planning areas.  Alternatively a BI InfoCube can be created with same characteristics. The Userexit can then Grab data from this InfoCube or Z Table to do whatever you want.
    Typically it is common that Demand Planning MACROS use it in their Code Logic.  Remember, none of the additional attributes are used in the Standard Planning Algorithms / Logic of SNP, PPDS, DP or TPVS.  You have to write Custom Logic which is possible via Demand Planning Macros in Planning Books created on that Planning area.
    So the Best Option for Additional Fields is a TimeSeries Planning area which DP Macros can be built to use. Of course the Standard 5 can be in Product Master (/sapapo/mat1) and then additional to whatever number you want can be in the TimeSeries Planning area.
    Hope you find this usefull.  Reward points if you do.
    Regards,
    Ambrish Mathur

  • Product master in CRM and R/3

    Hi Gurus,
    can anybody make my understanding clear regarding  the difference of product master in CRM and R/3. any links to know more on it will also help.
    Thank you in advance.
    Regards,
    sasmita

    Hi Sasmita,
    Here are some of inputs will help for undersatnding:
    <b>The CRM product master is a collection or arrangement of various settypes which contain specific data.</b>
    Pre-defined settypes are delivered (e.g. basic product data; conversion of unit of measure)
    Enhancement of the product master with own settypes is possible
    Settypes correspond to database tables
    Attributes correspond to your product characteristics.
    <b>Attributes can be summarized with the help of set types</b>
    In the system there are standard set types which are always available. However, you can also create and implement user-defined set types, to depict marketing data, for example.
    The usage of set types can be restricted (e.g. certain set types only allowed for products of type product) Distribution chain-dependent set types can be created.
    A set type is only permissable for a product when the set type is assigned to the category to which you then assign the product. To assign a set type to a category, use the function Edit categories and hierarchies.
    You can assign a set type to several product categories within a category hierarchy. However, each set type can only be assigned within one hierarchy. In doing so, a multiple assignment of a set type to one and the same product (over contrasting categories) is prevented.
    A product can be assigned to several categories, as long as these are within different category hierarchies. A product can also be assigned to only one category per hierarchy.
    The assignment to the base hierarchy R3PRODSTYP is vital, so that basic data set types are available, for example.
    R3PRODSTYP depicts the product types present in the R/3 system.
    Customer product numbers can be assigned. This Customer product ID is stored in the relationships
    Global Trade Item Number (GTIN)
    Customer-own checks can be defined before a product can be saved. Enhancements &#61614; Consistency check
    <b>Transaction :
    COMMPR01-Maintain Products
    COMMPR02-Mass Maintenance for Inactive Products
    COMM_HIERARCHY-Maintain Categories and Hierarchies
    COMM_ATTRSET- Maintain Set Types and Attributes
    Tables:</b>
    Product (active)               COMM_PRODUCT
    Product (inactive)               COMM_IPRODUCT
    Product description          COMM_PRSHTEXT
    Category hierarchy               COMM_HIERARCHY
    Category                    COMM_CATEGORY
    Set types                    COMC_SETTYPE
    Attributes                    COMC_ATTRIBUTE
    Relationships               COMM_IL_*
    COMM_PRODUCT      : Product header and administration data.
    COMM_CATEGORY    : Category
    COMM_HIERARCHY   : Category Hierarchy
    COMM_PR_FRG_REL :
    COMM_FRGTYPE       :
    COMC_SETTYPE       :
    COMC_PRODUCT      : General Product Settings
    COMC_R3_FIELDS    : Assignment of R/3 material master fields to CFOP
    COMM_CFGMAT       :  Basic Data for Materials
    Hope this will help.
    Regards,
    Arjun
    <b>Pl. Do reward the points</b>

  • Changing Base Unit Of Measure (Material Master)

    Hi
    1. How to check this? (Any successful changes in material master only took place when there is no open document from SD, PP, MM & FI for that material. )
    2. Base unit of measurement cannot be changed.  The reason being material movement history is there in table - MSEG mainly which otherwise create inconsistency in reporting.  -
    Is this line applicable for current period or previous period in current year or previous period previous year???
    3. There are no existing purchase requisitions, purchase orders, or scheduling agreements for the material. -
    is this means open / pending purchase orders  or the the PO's created in system with respect to material where the GR and IR is already done
    4. You can change the base unit of measure if there is no stock of the material during current and previous period----
    is this means the term " previous preiod" is previous period in the current finacial year   or its applicable for the previous preiod in previous financial year
    5. Post the stock in the previous period to the current period  - -
    how can we do this???
    Vijay

    See this OSS note : especially the last sentence:
    From OSS note 138767
    Within the material master record maintenance, you want to change the base unit of measure (base unit). During the change, the system performs extensive checks in order to avoid inconsistencies in the applications which use the material master.
    In particular, the following checks are performed:
    The base unit must not be defined as an alternative unit of measure for the material
    No International Article Number must be assigned to the base unit
    No proportion/product units must be defined for the material
    No configurable material must be assigned
    The material must not be used as a configurable material
    Stock must neither exist for the previous period nor for the current period
    No physical inventory must be active
    No reservations or dependent requirements must exist for which the deletion indicator is not set
    No planned orders must exist
    No purchase requisitions, purchase orders or scheduling agreements must exist for which the deletion indicator is not set
    No WM transfer requirements, no WM quants or no WM posting change notices must exist
    The material must not be a bill of material
    The material must not be contained in a bill of material
    The material must not be used as a production resource/tool
    The material must not be used in task lists
    No standard cost estimate must exist for the current or future period
    No production orders must exist
    No planned independent requirements must exist
    No run schedule headers must exist
    If the base unit has dimensions, no serial number profile must be assigned
    No sales and distribution documents must exist which have status Not processed or Partially processed.
    Solution
    If necessary, all reasons mentioned above must be eliminated by archiving the objects listed
    1) SAP checks this for you. A new button will appear in MM02 and after you click this button to check the error log, you will see which documents exist.
    2) I have not seen that an existing movement will restrict the change of a BUoM.
    3) No purchase requisitions, purchase orders or scheduling agreements must exist for which the deletion indicator is not set
           it is not caring about GR done or IR done. it telling you that the deletion indicator has to be active. As a deletion indicator can be reset easily, you probably have to archive the documents
    4) the previous period is the period before the current period.
       today we have February, hence the previous period is January.
    5) first make sure your current stock is higher than the stock of the previous period. if it is lower, then you have to create inventory in current period first e.g. with 202 movement with current date.
    Then you issue the previous period stock with 201 movement and previous period date (make sure periods are open in OB52 and MMRV allows posting to previous period).
    Finally you issue the left stock in the current period with 201 and current date.
    Now previous period and current period stock is zero. After the change of the base unit you have to get the stock back into the system
    Edited by: Jürgen L. on Feb 2, 2010 3:58 PM

  • Field /SAPAPO/MARM-GEWEI unit missing for product 000000008660000814 PAL

    Hi Experts,
    I found CIF error in SMQ2. The error states "Field /SAPAPO/MARM-GEWEI unit missing for product 000000008660000814 PAL '.
    I checked the data in MM03 , where alternate unit of measure is PAL. One PAL Is 96000 EA.and i found  GRoss Weight and NET Weight is showing Zero.
    I checked the same in /sapapo/mat1 , it is showing 1PAL = 5760 ea.and i found  GRoss Weight(2, 078.440 and NET Weight(1,800.32) .
    How to rectify thsi error. Please let me know.
    Thanks,
    Manasa.

    Hi Rishi,
    Thanks. Please check teh OSS Notes Note 1519355 - Field /SAPAPO/MARM-GEWEI unit missing for product and advice me.I am pasting the same notes below.
    Summary
    Symptom
    Field /SAPAPO/MARM-GEWEI unit missing for product
    Other terms
    /SAPAPO/MAT067, UOM
    Reason and Prerequisites
    The reason of the error is, that the 'Unit of Weight' is missing for the alternative unit of measure(UOM) in the material Master Data.
    Solution
    From R/3 perspective,
    If no gross or net weight is maintained in a unit of measure, it is not nessesary to maintain a unit of weight. However CIF in APO checks the field GEWEI for all entries of table MARM. If the field GEWEI is blank in any of the MARM entries then you will get the error message . The following are ways to correct this error;
    1) Delete the alternative UoM in APO for the product in /sapapo/mat1. Afterwards process the faulty queue and all alternative UOMs will be correctly available in APO and thus, the masterdata is consistent.
    2) Maintain the 'Unit of Weight' that is missing for the alternative units in the material masterdata in R/3. Afterwards retransfer the masterdata to APO.
    3)use the userexit EXIT_SAPLCMAT_001 (where you can change
    MARM and MARMX values) and maintain the missing 'Unit of Weight'so that MARM-GEWEI is filled before transfering the masterdata to APO.

  • System is not converting unit of measure ment while doing cost estimation.

    Hi All,
    System is not converting unit of measure ment while doing cost estimation.
    Now i am explaining system setting. based on this kindly help me.
    Our Base Unit of Measure Measuremnt in Material Master is M2 (meter square) and We have maintained Unit conversion in Master as  1 PC is <=>2.5 M2.
    We are running costing for 1 M2.
    Producion we are doing in Peaces (PC) .  and i maintained Std Value for for Machin and Labour for PC only. and we maintained charge quantity in phases also.
    While running cost estimation system is not converting std value of machin & labour into M2.instead it is showing full machin and labour time and value.
    System showing PC value for M2 Cost estimate.
    Can any one let me know where i am missing.
    Thanks in Advance.
    Regards,
    Sahil

    Hi,
    as per your explanation: 1 PC (piece) = 2,5 sqm (m2), standard values for "labour / machine" maintained per PC.
    I guess within T-code CUNI, the unit PC does not allow any decimal places (means there can be only 1 piece, 2 pieces, 2 pieces but not 1 and a half pieces, 2,63 pieces,...)
    Now if you are running plan cost estimate for quantity 1 sqm (m2) SAP picks the "labour / machine" values for 1 PC (and not for 1 / 2,5 = 0,4 pieces) as decimal places for unit pieces are not allowed so its up-rounding.
    Run cost estimate for 10 sqm (m2) which should be 4 PC and the result should be fine.
    Best regards, Christian

  • Pricing: New condition type not getting listed in options in product master

    Hi,
    I have created a new pricing procedure and also created a new condition type for it. I am trying to create a condition record in the product master for this  condition type but the condition is not there in the list of conditions. How can I inlcude it in the condition list?
    Even the new condition type I have created by copying 0PR0 is not getting listed in the options, whereas 0PR0 is getting listed.
    Regards,
    Meenakshi
    Edited by: Meenakshi Sawhney on Sep 9, 2010 8:27 AM
    Edited by: Meenakshi Sawhney on Sep 9, 2010 8:29 AM

    Hi Meenakshi,
    you need to enhance the condition maintenance group in the customizing, which is assigned to the product master. Please check: IMG: Customer Relationship Management -> Master Data -> Products -> Special Settings for Sales Operations -> Assign Condition Group to Application CRM and IMG: Customer Relationship Management -> Master Data -> Conditions and Condition Technique -> Condition Technique: Basics -> Create Maintenance Group.
    Best Regards,
    Michael

  • Check mode in APO product master

    Hi - it is understood from SAP HELP that the check mode in the product master corresponds to the requirement class in ECC. I tried to understand for my case but couldn't get it. Below is the snap from SAP doc which explains this case. Can anyone please elaborate on this so I can understand it clear. I basically want to know exactly from where the check mode is getting updated in APO. Thanks.

    GC,
    Requirement class is determined in ECC.  There can be more than one way it is determined, the illustration you have supplied is an example of how default Strategy 40 determines the default of two different requirements classes; one for Planned Independent Requirements, and one for Sales Requirements.  You can see this in ECC by looking at the configuration for a Planning Strategy (OPPS).  Strategy group determines Strategy,  Strategy determines requirements TYPE, and requirements type determines requirements CLASS (OVZH/OVZG).
    During sales order processing, the sales order contains a requirements type (which as I said before, can be determined by the ECC Planning strategy, but also can be determined in other ways).  When ATP is triggered in ECC for execution in SCM, the requirements TYPE in the Sales Doc determines a requirements CLASS, which is sent to APO for ATP processing.  Requirements CLASS is integrated in SCM as CHECK MODE.
    When a new SCM system is delivered, there are usually no check Modes defined; YOU have to do that.  You select the Requirements classes you wish to manage (from ECC) and you define them in SCM.  They can behave the same as in ECC, or you can make them behave differently.
    So, when a sales order arrives in SCM from ECC, for an availability check, and containing a requirements class, the sales order goes to the SCM configuration you have created, looks up the CHECK MODE that you created, and performs the availability check according to YOUR configuration.
    Best Regards,
    DB49

  • % Remaining SL Field in the APO product master

    Hi All,
    Any body have used the field % Remaining SL field maintained in the product master. Does CTM or SNP Optimzer does consider this?
    What is the significance of the field?
    We have distribution center DC1 and plant PL1
    We have two minimum shelf life requirements for given product X e.g. Minimum Shelf life guarantee of 30 days for X at PL1 and Inter-company minimum shelf life of 45 days between DC1 and PL1.
    How can we design solution for this where for the stock transfer requisitions from DC1 to PL1 we want to use Inter-company minimum shelf life and Minimum Shelf life guarantee for sales order at the PL1. I am just thinking % Remaining SL (where I can define Ingtercompany Shelf life) is the one which helps me meet this inter-company shelf life, but it seems to be not working. May be I am not sure how do define and use it.
    Please share your thoughts, experience and ideas on addressing these two minimum shelf life requirements.
    Thanks.
    J.

    Try MAT_SET()
    MAT_SET ( ‘field name’ ;  field_value' ; <'product'> ;  '<version>' ) sets the value of the specified field in the product master record for the specified product in the specified version. The arguments for product and version are optional. If you do not specify an argument for the product, the system uses the currently planned product. However, it is better for performance reasons to use the function ACT_PRODUCT.
    MAT_EXTRA_SET() i think sets the fields in the extras tab

  • Short Dump while maintaining conditions in Product master

    Hi Experts,
    We are getting short dump while we want to maintain conditions in the product master.
    The dump message is as follows -
    CREATE DATA: The specified type "/1CN/WS_ID_300PRODUCTBBP_SKU_T" is no valid 
    An exception occurred that is explained in detail below.                         
    The exception, which is assigned to class 'CX_SY_CREATE_DATA_ERROR', was not     
    caught in                                                                       
    procedure "/SAPCND/MNT_INIT_OW" "(FUNCTION)", nor was it propagated by a         
    RAISING clause.                                                                 
    Since the caller of the procedure could not have anticipated that the            
    exception would occur, the current program is terminated.                        
    The reason for the exception is:                                                 
    The dynamically specified type "/1CN/WS_ID_300PRODUCTBBP_SKU_T" at CREATE DATA   
    is no valid data type.                                                                               
    The type is either unknown or an object type.                                    
    I checked for OSS note but could not get success and also i could not explore in SDN. Can anybody help me in this.
    Thanks a lot in advance!!
    Thank You
    Abhinandan

    Hi
    <b>Please go through the following SAP OSS Notes, which will definitely help -></b>
    <u>Note 930816 - Cond. Maint. group not generated after remote client copy</u>
    <u>Note 1051896 - Cond. group WS deleted in source aft. remote client copy</u>
    Note 971825 - Short dump caused by dynamic working set
    Note 969475 Short dump after applying notes 966127&966197
    Note 661287 - Name of the condition maintenance group
    Note 1009001 - ShortDump when Creating Mkt-Obj by Copying
    Do let me know.
    Regards
    - Atul

  • ABAP dump error while updating product master in APO

    Hi All,
    Greetings from Vijay!
    I need to your help to resolve below issue ;
    I am getting error '
    No simulation parameters could be set for the
    active version'
    While i am updating and trying to assign active version to my product master in APO which are created in APO for regression testing
    and also sometimes system throwing dump error'
    Error in the ABAP Application Program
    The current ABAP program "/SAPAPO/SAPLDM_LC_SQL" had to be terminated because
      it has
    come across a statement that unfortunately cannot be executed.;
    I appreciate your help
    Thanks
    Vijay Job

    Hi Vijay,
    Can you check note 1465462 ?
    The same problem is mentioned in the note with correction .
    Regards,
    Mukesh pandey

  • Customs product master error

    Hi,
    while creating sales order and saving it, iam getting the error message pop up, "subsequent processing not allowed(Customs product master missing 12123). contact customes excise tax dept""........and i cannot save the sales order.
    12123 in the error message above is material number.which i give in sales order.......................the message no is FTPI901
    what is the issue. ??? at first i thought some coding is done in user exit for sales order.. but i cannot find any such code in exit.
    regards
    sachin

    the message no is FTPI901
    I never come across with the above error message.  Could you reconfirm whether the above is correct or any alpha value is interchanged.
    Also I feel that some user exit is applied to sale order creation through which, some value needs to be maintained in some zee table.  Take the help of ABAPer and find out what user exit is applied in debug mode.
    thanks
    G. Lakshmipathi

  • Customs product master missing error

    Hi,
    while creating sales order and saving it, iam getting the error, "subsequent processing not allowed(Customs product master missing 12123). contact customes excise tax dept""........and i cannot save the sales order.
    12123  in the error message above is material number.which i give in sales order.......................the message no is FTPI901
    what is the issue. ??? at first i thought some coding is done in user exit for sales order.. but i cannot find any such code in exit.
    regards
    sachin

    Hi,
    for transfering material master data from feeder system (R/3 / ERP) to GTS follow these instructions:
    - go to SAP GTS PlugIn Menue in ERP
      Transaction Code:  /SAPSLL/SAPLMENUE_LEGAL_R3
    - go to Tab "Initial Transfer of Mast. Data"
      click on "Transfer Material Masters"
    - choose  your particular material and execute (F8)
    hope that helps!
    regards,
    Ralf

Maybe you are looking for

  • Prevent copying of new apps to other Mac

    Hi, I have four computers using Home Sharing, but for some reason only one of them, my wife's, copies all my apps from my iTunes library when she and I are both running iTunes.  It's never vice-versa, and never from the other iTunes libraries on the

  • J2SE 1.4 Release Candidate & Java Web Start

    Hi: We installed the J2SE 1.4 Release Candidate and our Java Web Start applications which previously worked now won't run. Upon their launch, there is the following error message : Error Code 11 (11 Could not locate requested version) returned from s

  • Bridging mode: ¿can servers be reachable by their real IP addresses?

    Hello team. Customer is asking me to load balance a farm of servers for clients in the same subnet, so I am going to configure bridge mode. In parallel, customer is asking me to have visibility of the real IP addresses of each of the individual serve

  • Window does not update when I add a tab or switch to another tab

    when I add a new tab, the new tab appears but the screen doesn't change. The content under all the tabs is the same. If I type in a url, my current page updates and when I choses another tab, the screen doesn't change. All tabs have the same content.

  • Guest Account cannot use wireless

    I tried to create a "Guest" account for my laptop so that I can let visitor use it without worrying that they might be sneaking a peak at stuff in my account. However, whenever the laptop wakes up (i.e the cover is opened) it searches for the availab