Routine creation for value split

Dear Gurus,
I got a requirement to Split condition values to no of line items in the sales order,
please guide us how to write a routine for this.
ex: value:100, no of line items:10
then the value should be:100/10= 10 for each line item.
Regards,
Abdul Rahim

Hi Abdul,
types : begin of  ty_tab,
          f1 type i,
          end of ty_tab.
data : i_tab type table of ty_tab,
          wa_tab type ty_tab.
data : l_value type i,
          l_lines type i,
          l_value1 type i.
l_value = 100.
l_lines = 10.
l_value1 = l_value / l_lines.
do l_lines times.
   wa_tab-f1 = l_value1.
   APPEND wa_tab to i_tab.
   ENDDO.
Thanks,
Anil

Similar Messages

  • No SID found for value 'GB' of characteristic 0CURRENCY

    Dear Experts,
    When i do the BW data load. I got the error. Seems the error related to no master data is available for SID creation. I got the below error message. Please help me to resolve. Points will be awarded. Your help is much appreciated. Thanks.
    No SID found for value 'GB' of characteristic 0CURRENCY
    Message no. BRAIN070
    Diagnosis
    Characteristic value GB does not exist in the master data table of characteristic 0CURRENCY. Therefore, this value could not be transformed into the internal SID.
    Procedure
    Check whether the value is correct or not. If it is correct, you need to generate the associated master data. Note: For characteristics 0FISCVARNT, 0FISCPER and 0FISCYEAR, there must be a corresponding fiscal year variant (see table T009). In addition, there must be units in table The value for 0FISCPER must be valid according to the fiscal year variants. This means that only the periods 0 to (no. of normal periods + special periods) are allowed. If the fiscal year variant is year-dependent, then only the periods defined for the corresponding year are valid. You can make these settings in Customizing in theactivity Maintain Fiscal Year Variant. T006 and currencies in table TCURC. Also note that the units must be of
    Units that refer to 0UNIT must be available in table T006, and currencies that refer to 0CURRENCY in table TCURC. Note that the units must be available in internal format. Owing to the presence of a conversion exit in field MSEHI of table T006, you are only able to see the internal format if you deactivate this exit. ( Settings> User Parameters> Tab DataBrowser > Consider Conversion exit must not be set). Also take a look at note no. 619987.
    Regards,
    RR.

    Hi Reddy/Ajeet,
    Thanks for your prompt reply.
    I followed the steps:
    Goto to RSA1-> Source systems--> Transfer Globle settings and Select Currencie, Ubits and Fiscal year, Factor...etc and select Update
    Just would like to check with you, currently we are extracting data from SRM & SAP R/3 system.
    I got the error while doing the data loading for SRM system. I did the above steps for both systems.
    Is that anything else, i need to do....
    Currently i am going to do the master data load, then i will do the transaction data & check with the currency error.
    could you please elaborate the steps
    1)How to check 0currency is getting updated in our system.
    2) how to verify custom z program used
    3) How to  maintain the currency manually in BW.
    Advance. Thanks.
    Regards,
    RR

  • No SID found for value '0CURR' of characteristic 0CURRENCY

    Hello dear friends
    I am getting this above error message 'No SID found for value '0CURR' of characteristic 0CURRENCY' when i am trying to load data in my cube from an ODS.
    For the Keyfigure that is using the currency  i had to write the following routine in the Update Rule fo rthe Keyfigure:
    DATA: l_MZPLP1 LIKE /BIC/PMMAT_PLNT-/BIC/MZPLP1,
    l_MZPLP2 LIKE /BIC/PMMAT_PLNT-/BIC/MZPLP2.
    SELECT SINGLE /BIC/MZPLP1
    INTO l_MZPLP1
    FROM /BIC/PMMAT_PLNT
    WHERE
    /BIC/Mplant = COMM_STRUCTURE-/bic/Mplant
    AND
    /bic/mmat_plnt = COMM_STRUCTURE-/BIC/MMATERIAL.
    IF sy-subrc = 0.
    RESULT = l_MZPLP1.
    ENDIF.
    result value of the unit
      UNIT = '0CURRENCY' .
    Also i checked the 'UNIT CALCULATION IN THE ROUTINE' box.
    And under UNIT it does show 'Target Unit' - 'Currency Key'.
    Please advise what should i do to resolve this.

    hi Krrish,
    the error message normally indicates the value is not exist in table currency/unit
    Note 619987 - No SID for the 0UNIT or 0CURRENCY characteristic
    you can try transfer unit and currency from r/3, rsa1-> source system->right click 'transfer global setting', mark 'currency' and 'unit of measurement' (fiscal year and factory calendar also) and option 'update tables' and execute.
    you need to schedule this update, better daily before the transaction data load, to do this, from same screen go to menu program and schedule in background.
    hope this helps.
    Solution
    If you do not find the value in the T006 or TCURC table, you must insert it. Note that the initial value is always allowed.
    If you nevertheless receive this error message for the initial value, this means that there is an inconsistency in the SID table for the 0UNIT or 0CURRENCY characteristic. You can eliminate this inconsistency by calling the RSDMD_INITIAL_LINE_INSERT function module with I_CHABASNM = 0UNIT or 0CURRENCY.
    If units are loaded in the external format, you must either convert these into the internal format in the transfer or update rules or change the extractor/file.The CONVERSION_EXIT_CUNIT_INPUT function module converts the external value of a unit into the internal value.

  • Variant Creation for the Back Ground Jobs

    Hi experts
    1) What are the settings we need to consider in the Variant Creation for generating CVC's, Planning Area Initialization, Calculate Proportional Factors and Loading planning area.
    2)I believe  Process flow to create process chain:
    Generate CVC's-->Planning Area Intialization>Load Planning Area Vesrion--
    >Calculate Proportional Factors
    Please correct if the process flow is not right.
    3) Is it require to check the adjust time series for generating CVC's for every time?
    4) How to generate the proportional factors for all the products in the single job?I assume that  need to create a single selection ID which has all Characteristic values and assign this while creating the Proportional factors.Please correct me if i am wrong.
    Please give your valuable opinions on the above queries
    Thanks in advance
    Edited by: Mani4690 on Mar 4, 2009 9:37 PM

    Hi,
    Below are the answers to your queries.
    1) What are the settings we need to consider in the Variant Creation for generating CVC's, Planning Area Initialization, Calculate Proportional Factors and Loading planning area.
    While creating CVC's (t-code /n/sapapo/mc62)select your MPOS, goto create characteristic combinations, then enter Target mpos, say generate in background, tick against all fields in action selection, and then save as variant. During planning area initialisation(/n/sapapo/msdp_admin), select your planning area, right click and say create time series objects and then enter planning version, start and end dates and execute job in background.  While calculating proportional factors (/n/sapapo/mc8v), enter ur planning area & infocube and then save as a variant.  For loading data from infocube to planning area (tcode /n/sapapo/tscube), select the infocube, planning version, planning area, planning versin, periods, tick mark in results log, key figure assignments, if you have any selection criteria enter, and then save as variant.
    2) 2)I believe Process flow to create process chain:
    Generate CVC's-->Planning Area Intialization>Load Planning Area Vesrion--
    >Calculate Proportional Factors
    Please correct if the process flow is not right.
    Correct
    3) ) Is it require to check the adjust time series for generating CVC's for every time?
    Yes, it is required.
    4) How to generate the proportional factors for all the products in the single job?I assume that need to create a single selection ID which has all Characteristic values and assign this while creating the Proportional factors.Please correct me if i am wrong.
    if you use mc8v t-code and provide planning area & infocube, it will ask for version name and dates, once u enter this info, proportional factors will get created.
    Regards
    R. Senthil Mareeswaran.

  • Error M7 311  "No Special stock defined for value only material"

    I had this in the SD forum however someone suggested to go to the MM forum.  Here is my issue
    I am receiving an error when trying to receive our demo unit in as an inbound receipt off of an RMA (this is our normal process when we send a demo unit to customer).
    The error message is "No special stock defined for value only material" I noticed that the MRP views were not extended so i tried to extend those and it still gives the same error message in our testing client and also created a new RMA to see if same error exists and it does, please advise
    NOTE:  In our Accounting 1 tab we are not utilizing the valuation category in the Accounting 1 tab of the material master.  RMA is a Return of a material for service.  Our Demo units after issued to customer for a demo come back using this method to check and service if needed before putting into stock.  Material does not have a procurement tab as this is considered as an asset.  No split valuation.

    Dear Kimberly
    Issue:No special stock defined for value only material
    This mesaage will come up when you have active the valuation category for the material in Accounting 1 view
    but not  extend the valuation type for that material, due to this reason syestem is not able to find out  the exact valuation for the material,   You can opt for 2  suggestion
    1 Extend the material in  t. code. MM01 for the right valuation type
    2 If you dont want to  use Valuation category ( if you dont want the split valuation for the material) you fst settle the all Open PO and quantity for that material  and  then archieve the material and recreate again
    Please let me know  if u  have any query

  • How to control change request creation for particular IBase Component?

    Dear Experts,
    Can anybody suggest , how to control change request creation for particular IBase Component?
    We have implemented ChaRM which is integrated with SAP ECC & SAP BI.
    ChaRM is not integrated with SAP Solution Manager.
    End Users are creating support notifications from -Help Menu- Create Support Notification.
    The IBase Component is not editable once notification is created. This Ibase is copied to change request when the action-create change document is saved.
    Requirement is that, during creation of change document, system should check the IBase component of support notification. If the IBase is related to solution manager system, system should restirct the change request creation.
    Kindly suggest how to achieve this.
    Regards
    Vivek

    Hello Vivek,
    The way to do what you want is to create a schedule condition for action Create Change Document. The action has to be displayed only when the IBase/Component value differs from SolMan. To add the IBase/Component value to the container so that it can be evaluated during runtime, you will have to create a subtype of BUS2000116 on which condition can be buit.
    See the following posts for more information :
    Hope this helps,
    BR.
    Stéphane.

  • FDPSTP failed due to ORA-20100: File o0035807.tmp creation for FND_FILE fai

    Cause: FDPSTP failed due to ORA-20100: File o0035807.tmp creation for FND_FILE failed.
    You will find more information on the cause of the error in request log.
    ORA-06512: at "APPS.FND_FILE", line 410
    ORA-06512: at
    $ echo $APPLPTMP
    /usr/tmp/DEV
    $ echo $APPLTMP
    /prod2/devcomn/temp
    SQL> show parameter utl_file_dir;
    NAME TYPE VALUE
    utl_file_dir string /usr/tmp, /usr/tmp/DEV, /prod2
    /devcomn/temp, /prod2/devcomn/
    temp/DEV, /homeoa/interf/DEV,
    /homeoa/interf/PROD, /homeoa/i
    nterf/DEV/OP, /homeoa/proaut2/
    DEV/OP, /homeoa/proaut2/DEV, /
    homeoa/proaut2/DEV/CO, /homeoa
    /proaut2/DEV/PT
    I applied some notesm, about the utl, and APPLPTMP. But the error persist, Can you help me?
    Regards,
    Guido

    Cause: FDPSTP failed due to ORA-20100: File o0035807.tmp creation for FND_FILE failed.
    You will find more information on the cause of the error in request log.
    ORA-06512: at "APPS.FND_FILE", line 410
    ORA-06512: at
    $ echo $APPLPTMP
    /usr/tmp/DEV
    $ echo $APPLTMP
    /prod2/devcomn/temp
    SQL> show parameter utl_file_dir;
    NAME TYPE VALUE
    utl_file_dir string /usr/tmp, /usr/tmp/DEV, /prod2
    /devcomn/temp, /prod2/devcomn/
    temp/DEV, /homeoa/interf/DEV,
    /homeoa/interf/PROD, /homeoa/i
    nterf/DEV/OP, /homeoa/proaut2/
    DEV/OP, /homeoa/proaut2/DEV, /
    homeoa/proaut2/DEV/CO, /homeoa
    /proaut2/DEV/PT
    I applied some notesm, about the utl, and APPLPTMP. But the error persist, Can you help me?https://forums.oracle.com/forums/search.jspa?threadID=&q=ORA-20100+AND+FND_FILE+&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=ORA-20100+AND+ORA-06512&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Quality certficates for batch split items in delivery

    Hi Masters
       How to make the output determination for outgoing quality certificates to select the output type LQCB
    for batch split items in Delivery.
    What is the routine to be selected in the output determination to map this scenario?
    Regards
    Mohan

    Hi Masters
            My problem is When i create a delivery for the items with batch split, the output type LQCB is not determined ie., not automatically get assigned in the delivery item.Hence the delivery items are not listed while executing T code QC20/
    What am I missing?
    -mohan

  • Prevent delivery creation  for less/small qty

    Is it possible to control delivery creation process to prevent delivery creation for "to small" volumes/values? At company code /plant level. I checked the min delivery qty in material master but this gives only warining message.
    We want have control at plant/company code level. Please help us with best solution
    Thanks in advance

    Hi,
    As you have already checked the min. delivery quantity at the material master and it throws you a warning message.
    Now goto the T.Code "0VLP(Zero VLP)".
    Select your delivery item category.
    Details.
    Goto Quantity tab.
    Check minimum quantity field.
    Maintain the value "B" here.
    Save.
    If you do this,error message will be displayed.
    Regards,
    Krishna.

  • Questions for billing split

    Hello, Experts,
    I wanna ask 2 simple questions:
    1. How can i find what is Combination criteria for billing split?
    2. How can i find the routine in SAP, such as routine for billing split??
    Thanks in advance.

    In copy control, at item level, you have a field called VBRK/VBRP. The routine given here is the copy control routine for invoice split. Just check the code of the routine with the help of devept guy and you can find out the split criteria.
    If you want to see this routine, you can see this in VOFM tcode. in menu
    Data transfers--Bililng documents.
    Rwd if it helps.

  • Block Production Order Creation for Particular Order Type

    Hi Experts,
    I want to disable the production order creation for a particular order type XX01 however there are some existing orders for this order type which should be processed further.
    In other words my objective is to -
    1. Block new Production order XX01 creation -
    2. Processing of order type XX01 should be possible.
    Is there standard setting available to achieve this or user exist is the only option..
    Regards,

    Hi
    You can use the user exit PPCO0006 and its function mdoule EXIT_SAPLCOZF_003 to archive that. That function module is called when the user click enter after inputting the material/plant/order type in CO01 then you just need to check the imported value CAUFVD_IMP-AUART which contains the inputted order type then rasise an error message to tell user that the order type cannot be used due to certain reason. The source code need to be written there is very simple.
    Regards.
    Leon.

  • Dump during sales order creation for a config material (uding order BOM)

    Dear all,
    I am getting the following error during sales order creation for a configurable material
    When I click on 'Engineering' tab in the characteristics value assignment for the parent material i.e. sales order material I get dump with following message,
                                   'Field symbol has not yet been assigned'
    Thanks,
    Yogesh

    Yogesh,
    what was the problem ?
    Thanks,
    Pavan Verma
    Edited by: Pavan Verma on May 11, 2010 9:31 AM

  • No SID found for value '0000' of characteristic 0CURRENCY

    Hi all,
    I am executing a query based on a virtual infocube, reading data from a 3rd party appliance and Im receiving the following error when running the query in RSRT2:
    No SID found for value '0000' of characteristic 0CURRENCY
    '0000' value does not exist in the source table, we have checked one by one the possible values that we have on the source.
    Also, similar threads in the forum didn't help me to solve it.
    Do you have any ideas of what's happening or how to solve it?
    Thanks a lot for your help
    Inaki

    Hi,
    I am reporting on a virtual infocube, reading data from IBM Netezza appliance through UDConnect.
    In the details of the error I can see:
    'Characteristic value 0000 does not exist in the master data table of characteristic 0CURRENCY. Therefore, this value could not be transformed into the internal SID.'
    Do you recommend me to delete datarecords with 0000 value in the start routine? its quite strange since as i said, sql query didn´t show any currency values that were not in the tcurc table.
    Thanks again.
    Inaki

  • Dual Invoice Creation when batch split

    Hello,
    Return deliveries with batch split are generating 2 credit for returns. One credit for return is actual and the other one is of Zero Value and quantity. When there is only one batch the return delivery creates only one credit for return. Kindly help.
    Regards,
    Shahzad

    Hi,
    Check ur copy control settings in t-code VTFL for the Batch split item category HUPM...
    If u hv mainitained copy control for ur Return delivery to Credit for returns at item level for batch split item catgory ..then delete it..
    Now try..
    Reg
    JJ
    Edited by: Jagsap on Jul 7, 2009 8:39 AM

  • Stop delivery creation for perticular Storage Location

    Dear Experts
    As per scenario we have two storage location 1) packing stock and 2) Ware House stock. All delivery are create from Ware house st.loaction.as per requiremnt we want to stop Delivery creation for Packing St.location.
    Is ther any customization through which System should not Create Outbound delivery form Packing St.loaction,while doing this  rest of things sholud not affect for that S.Loaction
    Regards
    Pash@SD

    Go to SPRO-> Logistics Execution ->shipping ->picking->determine pikcing location ->assign picking location.
    Here you can remove the packing stock storage location assignment to plant/shipping point/storage conditions combination and then test.
    If this does not work, then check the path SPRO-> Logistics Execution ->shipping ->picking->define picking requirements. Here check any requirements is currently used. If so copy this routine and create a new routine to exclude the storage location (packing stock) from picking process.
    Regards,

Maybe you are looking for