Sales Order Condition type routines

Hello Friends,
I have two condition types
ZLI4
ZCC3
I want the difference of the condition values   to be updated in a different condition types , pls. let us know if it is possible.
2) Suppose I want to find the exact routine in VA01 , how should I find & debug? 
It is really urgent for me to know on this
Regards
Prashant

Hi,
you can create a condition value VOFM routine and calculate the difference..
Ex..
Get the first condition type value.
READ TABLE XKOMV INTO WA_XKOMV1
                     WITH KEY KSCHL = 'FIRST CONDITION TYPE'
                                                   KPOSN = XKOMV-KPOSN .
Get the second condition type value.
READ TABLE XKOMV INTO WA_XKOMV2
                     WITH KEY KSCHL = 'SECOND CONDITION TYPE'
                                                   KPOSN = XKOMV-KPOSN .
Calculate the difference and assign it to the condition value of the current
condition type.
XKWERT = WA_XKOMV1-KWERT - WA_XKOMV2-KWERT.
Thanks,
Naren

Similar Messages

  • Sales order condition type

    Hi,
    Does anyone know what needs to be maintained where to allow a user to change
    the CnTy (condition type column) in a sales order at the line item?
    Thank you

    Hi,
    you can create a condition value VOFM routine and calculate the difference..
    Ex..
    Get the first condition type value.
    READ TABLE XKOMV INTO WA_XKOMV1
                         WITH KEY KSCHL = 'FIRST CONDITION TYPE'
                                                       KPOSN = XKOMV-KPOSN .
    Get the second condition type value.
    READ TABLE XKOMV INTO WA_XKOMV2
                         WITH KEY KSCHL = 'SECOND CONDITION TYPE'
                                                       KPOSN = XKOMV-KPOSN .
    Calculate the difference and assign it to the condition value of the current
    condition type.
    XKWERT = WA_XKOMV1-KWERT - WA_XKOMV2-KWERT.
    Thanks,
    Naren

  • Sales order condition type description

    HI Gurus,
    During Sales Order Processing, I created a material with variant configuration pricing.  System pick up the correct pricing but on Condition Tab the in Name of Condition Type (Field VTEXT) is reflecting the variant description (from VK30) instead of condition type description.
    I want the description of Condition Type and not the variant. Can any one guide how to extract the description of the Condition Type (user wants to ensure the correct pricing for the correct condition type).
    Thanks.
    Regards
    PSK

    Hello Bern
    I have misunderstood your question, I thought you are bothered by several variant names appearing for one condition type. With your example things became clear.  I did not get what are the figures 100, 20 50  at the end signify when you say, for example ZA01 Classroom 100, I am guessing it is the quantity or the price. but leave it aside. With regard to coding, I meant it generally and I am not aware of any user Exit/BAPI.
    But I have a  config solution proposal for you.
    From your example all the 3 condition types - ZA01  to ZA03 - are leading to the same variant, i.e.,  A-A-10  whose description is Package A training (AA10).  In stead of that,  lead them to 3 different variants with the following descriptions (example for AA10)
    Condition type       Leads to Variant                         Whose descriptions is
    ZA01                     A-A01-10                                   Package A training - AA10 - Classroom
    ZA02                     A-A02-10                                   Package A training -AA10 - Whiteboard
    ZA03                     A-A03-10                                   Package A training -AA10 - Projector
    Similarly for AA20
    ZA01                     A-A01-20                                   Package A training -AA20 - Classroom
    ZA02                     A-A02-20                                   Package A  training -AA20 - Whiteboard
    ZA03                     A-A03-20                                   Package A training -AA20 - Projector
    Agreed it would increase your config load- set of characteristics. variants and descriptions, but that is the best option for you.
    So your characteristics would be increased by 1 and the new set includes:
    Resource type : Values: C (Classroom),W ( Whiteboard) , P ( Projector) - This is a new characteristic you need to add.
    Others, from your existing design remain as they are, i.e.,  Training type,  Course type & No of students.
    Assuming that you are using Variant table for variant determination, it would now read as follows:
    Table name (assume): ZTRGPKG
    Resource            Trgtype          Course             Number                  Z _PRICE -
    > Characteristics
    Resource Type   Training type  Course Type    No. Of Students   Resource Price
    Classroom           A                    A                     10                          A-A01-10  
    Whiteboard          A                    A                     10                         A-A02-10
    Projector              A                    A                     10                         A-A03-10         
    Classroom           A                    A                     20                         A-A01-20  
    Whiteboard          A                    A                     20                        A-A02-20
    Projector              A                    A                     20                        A-A03-20     
    Procedure would be coded like this
    Table ZTRGPKG
    (Z_PRICE = $SELF.PRICE,
    Resource = Resource, Trgtype = Trgtype, Course = Course, Number = Number)
    Hope I am clear. Revert with any questions.

  • Defaulting Condition types in a Sales Order Condition Tab

    Hi Experts,
    How to default the condition types PR00 , KF00 and MWST in Sales Order condition tab?
    (manual conditions and with out access sequences) so that we can map the prices from other system to the corresponding fields of KONV in Condition Tab.
    I searched in the forums and then I am posting this request.
    Thank you
    Ravi

    Hi Ravi
    If you want to default the condition types PR00 , KF00 and MWST in Sales Order condition tab without maintaining access sequence then in V/06 for PR00 , KF00 and MWST condition types maintain the option Manual entry is possible , but in your pricing procedure check the boxes Required. So that when you create sales order and when you dont maintain the PR00 , KF00 and MWST condition types system will give an error
    Regards
    Srinath

  • About hide special condition type in sales order condition screen

    Hi all,
        I have such requirement:
        Customer want to hide some condition type in sales order condition screen.
        I have tried the authrization object :V_KOND_VEA  but it only controll the master data level
        and the special still show on the condition table.
        I have also find any user exit in SD module:
        USEREXIT_FIELD_MODIFICATION (module pool SAPMV61A, program MV61AFZA)
        But it looks like a system modification, and need the modification key.
        So, is there any solution such as enhancement or configuration to meet this requirement?
    Many , thanks.

    Check this thread where similar requirement was discussed
    [Condition Type |Condition Type]
    thanks
    G. Lakshmipathi

  • Sales order condition change for Header and Item level..

    Hi Gurus,
    My requirement is as below..
    Business wants to create new sales order from reference.. While creating slaes order fron reference , need to populate header/Item level condition tab data from originally paid by the invoice for that refence sales order not from refence sales order condition price.
    I would like to how to bring this one, any user exit or copy control and any VOFm routine need to populate this kind of requirement.
    Any one have any idea please let me know.. It very urgent, give reward points for right solution..
    thanks,

    Hi,
    Here are the answers to your question
    > Is it possible to add/change condition types on the sales order (header and item level) for which invoice has been created already?
    I mean is it possible to add some surcharge condition to already invoiced order and than as result debit memo?
    The answer is No. You cannot add or change the condition once it is invoiced.
    > And one more question : Are there some time restrictions when debit/credit memo can be created? (I believe not, but I would like to have this confirmed, as I am not SD expert.)
    The answer is No again. There is no time restriction and you can create debit or credit memo immediately when the invoice is released to accounting.
    Hope this helps
    Thanks
    Mukund S

  • Which Access sequence will use for sales tax condition type for TAXINN

    hi.,
    which Access sequence will use for sales tax condition type for TAXINN procedure.pls give one example (Access sequence) and give fields.
    Because i couldnot create the condition record,the system not accepted for tax indicator.
    Regards.,
    lakshmanan

    We also got the same problem with our client and escalated it to SAP.
    they advised to use the access sequence <b>JIND</b> which consists of condition tables in the order given below
    <b><u><i>Step    Condn Table</i></u> 
    10            354
    20            355
    30            40</b>
    Attach this to your condition types.
    Rewards if it helps.
    Regards,
    Anbu

  • Sales order condition table

    Hi friends,
    Can you please tell me the table name for sales order condition.
    thanks,
    Ramesh

    Hi Ramesh,
    Condition Tables:
    KONH - Conditions Header
    KONV - Transaction condition data (i.e., conditions for an SD document item; see KNUMH on relevant business document table ala VBAK)
    KONM - Quantity Scales (1 dimension)
    KONP -  Document item condition information
    Transactions:
    V/03 - Condition Tables - Create
    V/04 - Condition Tables - Change
    V/05 - Condition tables - Display
    V/06 - Condition Types
    Regards,
    Chandra Sekhar
    Regards,
    Chandra Sekhar

  • Sales Order conditions problem

    HI Folks,
    I am stuck up with a scenario where i need to copy the sales order condition of line item and update the newly spiltted line items.
    When i am doing the copy of it for some condition types iam facing problem
    for example
    I have one condition type say ZTEST and it currency  maintained as %. Now when i look up in table KONV it is showing the value of KBETE(Condition value) as 200 , but if i view through va03 it is showing 20. I think there is some conversion that SAP is doing.So when i am copying i am doing the value that is  there in KONV table and finally the new split item  is showing in va03 as 200 instead of 20.
    Can anyone help me out how to solve this issue. Let me know if any one wants any further information on it.
    Regards,
    Nagaraj

    Hi,
           check the table TCRUX  for the currencies you are using it will give information about how many
    decimal places for every currency based on the decimal places you have to multiply or divide .
    Thanks & regards,
    Sateesh.

  • Processing of Sales order output type BA00 processes another Z output type for acknowledgement.

    Hi Friends,
    I am facing below mentioned issue and request your suggestion to solve it
    Via processing of sales order output type BA00 another Z output type is processed and acknowledgment is sent to SAP inbox( sost).
    This is working incase of manual addition of BA00 output type and via standard program " sd70av1a", but this functionality is not working when i am calling this standard program in a Z report via batch job.     
    with the below code-
    DATA: name TYPE tbtcjob-jobname.
             DATA: number  TYPE tbtcjob-jobcount.
             DATA: print_parameters TYPE pri_params.
             name = 'ORDER_PRINTING'.
             CLEAR: range1.
    *REFRESH: range.
             range1-sign = 'I'.
             range1-option = 'EQ'.
             range1-low = 'BA00'.
    *        range1-high = 'ZBA1'.
             APPEND range1 TO range.
             CALL FUNCTION 'JOB_OPEN'
               EXPORTING
                 jobname          = name
               IMPORTING
                 jobcount         = number
               EXCEPTIONS
                 cant_create_job  = 1
                 invalid_job_data = 2
                 jobname_missing  = 3
                 OTHERS           = 4.
             IF sy-subrc = 0.
               SUBMIT sd70av1a WITH  rg_kschl IN range
                               WITH  rg_vbeln IN order_tab
                               TO SAP-SPOOL
                               SPOOL PARAMETERS print_parameters
                               WITHOUT SPOOL DYNPRO
                               VIA JOB name NUMBER number
                               AND RETURN.
               IF sy-subrc = 0.
                 CALL FUNCTION 'JOB_CLOSE'
                   EXPORTING
                     jobcount             = number
                     jobname              = name
                     strtimmed            = 'X'
                   EXCEPTIONS
                     cant_start_immediate = 1
                     invalid_startdate    = 2
                     jobname_missing      = 3
                     job_close_failed     = 4
                     job_nosteps          = 5
                     job_notex            = 6
                     lock_failed          = 7
                     OTHERS               = 8.
                 IF sy-subrc <> 0.
                 ENDIF.
               ENDIF.
             ENDIF.
           ENDIF.
    In this case only BA00 is getting processed but Z output type created for sending acknowledgment is not triggered.
    Please suggest how can i achieve the required functionality.
    Thanks,
    Surya

    Solved myself..
    Thanks.
    Br,
    Surya

  • Regarding finding out Partner function based on Sales Order/Output Type

    Hi All,
    <b>I have a issue in finding out Partner function[PARVW],  Message partner[PARNR], Message transmission medium[NACHA], Teletex number[TELTX], User name[USNAM], Message processed manually[MANUE], Country Key[TLAND] and some other fields all are related to NAST table.</b>
    Actually we have one script which is already working when we run from from <b>VA02/03</b> for single order.
    When we execute from <b>VA02/03</b> all <b>NAST</b> table entries are filled up and by using those entries we are fetching remaining entries and displaying them in Output.
    Now we are developing another program where we will have a selection screen with <b>Sales order, Output Type & Order Type</b> and execute the program and then we will get list of sales orders in <b>ALV list output</b> with check boxes before every record.
    Now if we select one (or) multiple records from there and click on Print Prevview button i am calling above <b>SAP Script Print Program</b> but now in that P.Program we will not have any <b>NAST</b> table entries other than Sales Order and Output Type those can be moved to [<b>NAST-OBJKY, NAST-KSCHL</b>].
    But here what about other fields in <b>NAST</b> table like <b>PARVW, PARNR, NACHA, TELTX, USNAM, MANUE, TLAND</b> etc.
    How can we get them as we are exclusively using those other <b>NAST</b> table entries in above <b>SCRIPT/Print Program</b>.
    Can anybody solve this issue!
    Thanks in advance.
    Thanks & Regards,
    Prasad.

    Check this FM
    WFMC_MESSAGES_SELECT
    example
    tables : nase.
    constants: appl     like nase-kappl value 'V2'.
    select-options:
      rg_nacha  for nase-nacha default '1',
      rg_kschl  for nase-kschl.
    ranges: rg_objky for nast-objky.
    data:
    msgs_1 like msg0   occurs 100 with header line.
    *-Fill Object Key
    *-Execute fm
    call function 'WFMC_MESSAGES_SELECT'
         exporting
              pi_application = appl
              pi_processing  = '1'
         tables
              ri_medium      = rg_nacha
              ri_type        = rg_kschl
              ri_object      = rg_objky
              tx_messages    = msgs_1.

  • Transfer Posting problem with "sales order stock type" status

    Hello, i have this problem, i spend 2 days looking in the forum, but
    nothing, the question is:
    The SD users sell an item, and the item get the status of "sales order
    stock type" in the MMBE, but at the same time, the MM user made a
    trasfer posting in two steps, he take out material with transaction
    MIGO, mvt 351, to another plant, but the materail was already
    compromised with SD; now he cant sell the items, because he dont
    realize that the material was in sales order stock type, and he already
    transfer it to another plant. how can i block this? if a material in
    MMBE is with "sales order stock type" status, he CANT transfer it with
    351 mvt type, what config i have to make?  thanks a lot!!!!
    now the quantity of the unrestict use
    stock is lower than the sales order, we dont want to have this issue,
    thanks again
    Edited by: Alex Arti on Aug 6, 2008 7:14 PM
    Edited by: Alex Arti on Aug 6, 2008 7:16 PM

    Hi!
    Have you recently upgraded to EHP4? In this case, please, check the note 1441195. This note should solve the issue that you are reporting.
    I hope this helps,
    Esther.

  • Sales order doc types to Roles - IMP question

    Dear Gurus :
    We have a requirement .We are revising users  who has authority  to do certain   SD transactions like  superviosr has access to all t codes related to sd. billing co ordinatior will have access to all billing docs and t codes.
    Requirement is :
      I have ot assing Sales order document types to roles. Any idea how to do it ?
    Full reward points will be given.
    Vanbills

    Dear van bills
    Through two options, you can achieve this
    - Basis team people can control authorization for specific user ids
    - Apply transaction / screen variant via shd0 so that you can decide which user can enter / alter datas.
    thanks
    G. Lakshmipathi

  • Create Sales Order with type "return" using API

    Dears ,
    I tried to create a sales order with type Return using oe_order_pub.process_order but the order is not created .
    There is no error msg returned .
    Can anyone help me to solve this .?

    Hi 2800842
    Please use the following link for your issue;
    https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=539354996395765&parent=DOCUMENT&sourceId=746787.1&id=292…
    or visit metalink: How to create an RMA via Process Order API ? (Doc ID 292743.1)
    Thanks
    Mirza Tanzeel

  • Automatic Billing Creation Through Sales Order Output Type

    I have requirement to create Automatic Billing document when Sales Order has been created.
    Any Suggestion.
    Regards
    Vijay Maurya

    Hi,
    it is not supported by standard SAP.in cash sales and rush orders, delivery will be created automatically because of the settings assigned in their respective sales document types.u please check VOV8 t-code.go to the details of BV(CS) and RO.there, Create Delivery field is there and shipping conditions should be 10.
    for ur requirement, u contact ur ABAPer and ask him to put one field like Create Billing Automatically in ur sales document..then it may be possible..
    hope it helps..
    regards..
    yogi..

Maybe you are looking for

  • Help! Changing attachment path in SQL database

    Changing paths in the dbo.dlnk table isn't too difficult, but I came accross something that has me stumped. Rather than a straight forward path such as \\servername\documents\ there are many that have a URL in the path such as http://servername/expon

  • Installing Application Server 10.1.2.0.2 on RHEL 5

    I have tried following the directions in the following metlink note Doc ID: Note:564174.1 Oracle Application Server 10g (10.1.2) Requirements for Linux : OEL 5.0 and RHEL 5.0 When I install database 10g release 2 and use the mrca to install it doesn'

  • Process - xfaForm variable not available

    Hi all, I have a bit of a newbie problem. We have Livecycle (8.0.1) deployed and I'm trying to get up to speed on things so am working through the "Creating Your First LiveCycle ES Application" found in the Workbench help. I'm running into a problem

  • Unknown Error -150000 when streaming music to Apple TV from an iMac

    Hi, I have a -150000 unknown error on my iMac G4 (ITUNES SERVER) when I try to stream music to my Apple TV over WI FI. If I use an ethernet connection - there is no problem. I can also select and play the iMac's music VIA the Apple TV interface using

  • Safari will randomly quit or freeze

    The last few days I've been experiencing troubles with Safari. It will occasionally quit unexpectedly or will freeze when I go to quit. I have checked for updates and restarted my computer a few times. Nothing has changed the issue. Below is the erro