BAPI create quotation - conditon record problem

Dear experts,
Plz help. Many thanks.
Background:
Due to special request, condtion type z replaces Z-table, i.e. for record value & used for calculation. Let's say condition record for Z is 0.12USD.
When creating quotation via BAPI, the value of condtion type z will automatically pick 0.12USD once the output value of condtion type z is less than 0.01USD. Actually, the final value of condtion type z is 0.12 x ABC (one value). Let's say the final value is 0.003.
Problem: In quoation, condition type z shows value 0.12USD but not 0.003USD.
Request: How to make condition type z picks the final value, say 0.003USD via BAPI?

Any advice?

Similar Messages

  • FM or BAPI for creating purchase info records and purchase conditions

    Hi all,
    i need create purchase info records and purchase conditions from txt-file,
    What FM or BAPI i can used for this?
    Thanks and Regards,
    Andrei

    You can use trasaction SXDA_TOOLS.....
    object type BUS3003
    program type BINP
    program/method RM06IBI0
    but the fields must be sequentially written in the txt, with every space inclusive....

  • BAPI to create customer master record

    Hi ,
    I was looking for the BAPI to create the customer master record in R/3. we are using the ERP 2005 system .
    I did find the BAPI but it will only creat the personal information of the customer .
    I was looking for a BAPI that will create the whole record of customer including the company code . sales area record .
    Hope someone knows abt this.
    I have to use this in a sync interface with siebel system
    Thanks
    Nikhil

    Hi Michal ,
    I had a loojk at this BAPi but this will only populate the customer personal data. we will have to make a refe to a existing cust to extract the company code data and the sales area data
    Thanks
    Nikhil

  • Problem in creating 0027 infotype record in background

    Hi Experts,
    I am facing the problem in creating 27(Costs distribution) infotype record in back ground.
    Whenever there is a change in position of the employee or when we hire a new employee (Through PA40)
    i have to ctreate 0027 infotype record in background.For that i am using IN_UPDATE method of BADI
    HRPAD00INFTY.
    Here i am getting 2 problems.
    1. I am unable to get the latest positions that is assigned to the employee.
       Through NEW_IM AGE structure we can get the latest position but if a person is assigned to multiple   positions for the same period then i am getting only one position from NEW_IM AGE but not all.can any body help me?
    2. I am calling HR_INFOTYPE_OPERATION FM to create the IT0027 record in background in the above method (IN_UPDATE). but it is not updating the PA0027 table. any idea?
    Full points will be rewarded.
    Regards,
    Sai.

    I am sending a sample program , which is on infotype 0105 (communication). I hope that this program will help u out............
    REPORT ZSAPHR_SAMP.
    tables: pa0105.
    infotypes: 0105.
    DATA : I_RETURN TYPE BAPIRETURN1,
    I_KEY TYPE BAPIPAKEY,
    PERNR TYPE P0001-PERNR,
    I_P0105 TYPE TABLE OF P0105 WITH HEADER LINE,
    ENDDA TYPE P0105-ENDDA,
    BEGDA TYPE P0105-BEGDA.
    MOVE '00000010' TO PERNR.
    BEGDA = SY-DATUM + 1.
    ENDDA = SY-DATUM + 1.
    i_p0105-pernr = PERNR.
    i_p0105-infty = '0105'.
    i_p0105-subty = '0002'.
    i_p0105-endda = ENDDA.
    i_p0105-begda = BEGDA.
    I_P0105-USRTY = '0002'.
    I_P0105-USRID = '[email protected]'.
    APPEND i_p0105.
    CALL FUNCTION 'DEQUEUE_ALL' .
    CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
    EXPORTING
    NUMBER = PERNR.
    IF SY-SUBRC = 0.
    WRITE 'Employee Locked Successfully'.
    ENDIF.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
    EXPORTING
    INFTY = '0105'
    NUMBER = PERNR
    SUBTYPE = '0002'
    VALIDITYEND = BEGDA
    VALIDITYBEGIN = ENDDA
    RECORD = i_p0105
    OPERATION = 'INS'
    TCLAS = 'A'
    DIALOG_MODE = '0'
    NOCOMMIT = 'X'
    IMPORTING
    RETURN = I_RETURN
    KEY = I_KEY.
    IF SY-SUBRC = 0.
    WRITE : 'FM returns sy-subrc 0'.
    ENDIF.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
    EXPORTING

  • Very urgent::: Standard BAPI for creating quotation in vendor side

    hi all
    i need a standard bapi for creating Quotation in the vendor side
    i found 2 bapi's :
    bapi_quotation_createfromdata,
    bapi_salesorder_createfromdat1.
    but these are related to customer side itseems...
    i want standard bapi's for vendor side Quotation creation....
    points will be awarded for useful answer...

    hi all
    i need a standard bapi for creating Quotation in the vendor side
    i found 2 bapi's :
    bapi_quotation_createfromdata,
    bapi_salesorder_createfromdat1.
    but these are related to customer side itseems...
    i want standard bapi's for vendor side Quotation creation....
    points will be awarded for useful answer...

  • Is there any FM/BAPI to create Device Information Record

    HI all,
    Is there any FM/BAPI to create Device Information Record.
    with regards,
    Sumanth.

    Hi,
    I want to install device info record. For this I have found FM "ISU_S_WORKLIST_INSTALL". But I am not able to use it properly. Could you please tell me how to use this FM.
    Regards,
    Vijay

  • BAPI: Create INQUIRY/QUOTATION/SALESORDER- (from data2)

    Hi ALL...
    We can create
    INQUIRY/QUOTATION/SALESORDER
    using BAPI (Create from data2)........
    there are some stuctures/tables as parameters like:
    ORDER_HEADER_INX
    ORDER_ITEMS_INX
    ORDER_SCHEDULES_INX
    ORDER_CONDITIONS_INX
    what is use of these structures/tables and what is effect?...
    and where i can get detailed documentation of all these Structures/tables

    Go to Documentation in the Function module. You will see the description of all the paramters there, and how they would need to be filled.
    On the segments you asked, those denote the change indicator
    The following entries are available:
    ' ':   Create a new sales document item
    I:     Create a new sales document item
    U:     Change an existing sales document item
    D:     Delete an existing sales document item

  • Problem with FM for creating quotations

    Hello,
    we are trying to use the FM BS01_MM_QUOTATION_CREATE for creating quotations in an ECC6.0.
    Following failure keeps reappearing:
    " In programme "SAPLBOS04 " in include "LBOS04F01 " in line 711
    following syntaxerror occurs: "The data object "IESLL" does not have a component called "EXTDES". "
    Any options for this?
    Regards
    Micha

    Hi André,
    sorry, cannot provide an answer. I am waiting for an answer from SAP support.
    Best regards,
    Micha

  • Create quotation based on notification

    Hello All,
    Can any one tell me hwo to create quotation based on notification.
    I know the BAPI's BAPI_QUOTATION_CREATEFROMDATA2 has to be used to create quotation
    i get diffrent errors like
    1) in sufficient parameters
    2) Sales document  was not changed
    I don't know what these error means and How to solve it.
    Here is my code
    data: ls_quotation_header  type bapisdhd1,
          ls_quotation_headerx type bapisdhd1x,
          lt_items             type table of bapisditm,
          lt_itemsx            type table of bapisditmx,
          lt_partners          type table of bapiparnr,
          ls_partner           type bapiparnr,
          ls_item              type bapisditm,
          lt_return            type table of bapiret2,
          ls_return            type bapiret2,
          ls_itemx             type bapisditmx,
          ls_diadr             type diadr,
          lv_parnr             type ihpa-parnr.
    ls_quotation_header-sales_org = '1000'.
    ls_quotation_header-distr_chan = '10'.
    ls_quotation_header-division = '20'.
    ls_quotation_header-doc_type = 'AS'.
    ls_quotation_header-ref_1_s = '63693'.
    lv_parnr = ls_quotation_header-ref_1_s.
    ls_quotation_headerx-notif_no = '000350000002'.
    *ls_quotation_header-SALES_GRP = 'SOG'.
    *ls_quotation_header-SALES_ORG = '0001'.
    *ls_quotation_header-DOC_TYPE
    *PURCH_DATE
    ls_quotation_headerx-sales_org = 'X'.
    ls_quotation_headerx-distr_chan = 'X'.
    ls_quotation_headerx-division = 'X'.
    ls_quotation_headerx-doc_type = 'X'.
    ls_quotation_headerx-ref_1_s = 'X'.
    ls_quotation_headerx-notif_no = 'X'.
    *ls_quotation_header-SALES_GRP = 'X'.
    *ls_quotation_header-SALES_ORG = 'X'.
    *ls_quotation_header-DOC_TYPE
    call function 'CONVERSION_EXIT_ALPHA_INPUT'
      exporting
        input  = lv_parnr
      importing
        output = lv_parnr.
    break-point.
    call function 'PM_PARTNER_READ_MASTER_DATA'
      exporting
        parnr                  = lv_parnr
        nrart                  = 'KU'
      importing
        diadr_wa               = ls_diadr
      exceptions
        no_valid_parnr         = 1
        no_valid_parnr_today   = 2
        no_authority           = 3
        parvw_and_nrart_inital = 4
        others                 = 5.
    if sy-subrc <> 0.
      message id sy-msgid type sy-msgty number sy-msgno
              with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    elseif sy-subrc = 0.
      move-corresponding ls_diadr to ls_partner .
      append ls_partner to lt_partners.
    endif.
    ls_partner-partn_role = 'AG'.
    ls_partner-partn_numb = lv_parnr.
    append ls_partner to lt_partners.
    *ls_item-hg_lv_item = 5.
    *ls_item-material = 31999.
    *ls_item-sales_unit = 'LE'.
    *ls_item-item_categ = 'ZEQU'.
    *APPEND ls_item TO lt_items.
    *ls_itemx-hg_lv_item = 'X'.
    *ls_itemx-material = 'X'.
    *ls_itemx-sales_unit = 'X'.
    *ls_itemx-item_categ = 'X'.
    *APPEND ls_itemx TO lt_itemsx.
    call function 'BAPI_QUOTATION_CREATEFROMDATA2'
      exporting
    *   SALESDOCUMENTIN                =
        quotation_header_in            = ls_quotation_header
       quotation_header_inx           = ls_quotation_headerx
    *   SENDER                         =
    *   BINARY_RELATIONSHIPTYPE        = ' '
    *   INT_NUMBER_ASSIGNMENT          = ' '
    *   BEHAVE_WHEN_ERROR              = ' '
    *   LOGIC_SWITCH                   =
    *   TESTRUN                        =
    *   CONVERT                        = ' '
    * IMPORTING
    *   SALESDOCUMENT                  =
      tables
       return                         =  lt_return
       quotation_items_in             =  lt_items
       quotation_items_inx            =  lt_itemsx
        quotation_partners             = lt_partners
    *   QUOTATION_SCHEDULES_IN         =
    *   QUOTATION_SCHEDULES_INX        =
    *   QUOTATION_CONDITIONS_IN        =
    *   QUOTATION_CONDITIONS_INX       =
    *   QUOTATION_CFGS_REF             =
    *   QUOTATION_CFGS_INST            =
    *   QUOTATION_CFGS_PART_OF         =
    *   QUOTATION_CFGS_VALUE           =
    *   QUOTATION_CFGS_BLOB            =
    *   QUOTATION_CFGS_VK              =
    *   QUOTATION_CFGS_REFINST         =
    *   QUOTATION_KEYS                 =
    *   QUOTATION_TEXT                 =
    *   EXTENSIONIN                    =
    *   PARTNERADDRESSES               =
    regards,
    Lisa

    In the meantime we have found the solution to this problem. 
    The objectkey must contain the notification number (12 digits):
    <b>METHODS</b>
    000001  HEADER     CREATETONOTIF  %00000000001000010000188
    000001  OPERATION  CREATE         %000000000010010
    000001             SAVE           %00000000001
    Kind regards,
    Lieselot

  • Error occured while creating purchase info record in mm

    sir,
    while creating purchase info record  an error occured while inserting net price. it said
    NOT POSSIBLE TO DETERMINE A CONDITION TYPE FOR A PRICE
    when it attempted to generate the time dependent condition for the price you entered the systeem was unable to determine a condition type, price determination is therefore not possible.
    please inform me how to solve this problem.
    thankyou

    I think you are not using the stdard pricing becuse of that it is thrwing error
    Ok First check your pricing procedure which your using for PO
    than in that pricing procedure if you are using PB00 fro Gross price than you will have antoher pricing procedure attached to this condition.
    check in M/06 for your gross price conditon
    now did you assign the pricing procedure to vendor?
    bottom line is somthing missing in your config.
    Check all the config as below
    Pricing Procedure:
    In MM module, pricing procedure is used during RFQ and PO creation. Total value of material based on all addition and subtraction like discount, surcharge, tax, freight, etc. In this we are defining pricing procedure and linking to vendor and purchase department through the virtual schemas.
    Following steps for pricing procedure as,
    1. Define conditions.
    2. Define pricing procedure.
    3. Define virtual purchase organization and vendor.
    4. Info Record.
    Customization for Pricing Procedure :
    1. Definition of Conditions :
    /NMEK0-condition typeu2026condition types- definition (define for basic price, net price, discount, surcharge, tax etc.)
    2. Defining pricing procedure :
    /NMEK0- calculation schema-calculation schemasu2014New entries (Define procedure and put the conditions like formula so that final price will be net price / total value as per company requirement)
    3. Linking pricing procedure to independent condition types.
    /NMEK0-condition typeu2026condition types- definition for position for defined conditions (Enter the defined pricing procedure in the each independent conditions u201CPricing Procedureu201D box)
    4. Defining Schema group for Vendor :
    /NMEK0- calculation schema-schema groupsu2014vendoru2014New Entries.
    5. Defining Schema group for Purchase Organization--- New entries.
    /NMEK0- calculation schema- schema groups---- purchasing organization--- new entries.
    6. Linking Virtual Purchase Organization to actual Purchase Organization.
    /NMEK0- calculation schema- schema groups----- Assign P.Org. (in actual P.Org, enter virtual P.Org)
    7. Linking Pricing procedure to virtual P.Org and virtual vendor :
    /NMEK0- calculation schema- Determine Schema--- -Standard --- New entries (Enter virtual schema and P.Org. along with pricing procedure)
    8. Linking virtual vendor to actual vendor-- /NXK02 then enter schema group vendor in Purchasing Data )
    9. Info Records (/NME11)---- click on u201CPurch. Org. data1u201D and enter condition types and pricing procedure
    What are the steps in pricing determination in MM? Condition, Access sequence and schema.
    In the SAP MM Pricing is more important. Just yesterday I have completed the Pricing as I am doing the SAPMM now. I can give some light on this Topic, not 100%. After 2 days definitely some more I can share.
    The Basic thing is Condition Technique. In which there are
    1. Access Sequence 2. Condition Record 3. Condition Type 4. Condition Table.
    A Access Sequence access a Condition Record of a Condition Type in a Condition Table is a Condition Technique.This is a simple logic
    Here the Condition Type is very important like PB00, PBXX,RA01 etc.
    In the background every Condition Type has its own defition means the purpose of the Condition Type like, is it for Pricing or Percentage, Quntity base, Accrual Feilds etc is to be defined to work this functions.
    Normally we use the existing ones without any risk. But some cases, we have to Create a New Condition Types as per the organisation requirement.
    The Pricing Schema is useful to minimise condition types while mention prices for Vendor on the basis of Pricing Schema which we defined according to organisation requirement.
    The Pricing Schema means the calculations procedure of Condition Type.
    Ex. RA01 - Discoount % is caclulated on PB00 - Gross Price means
    RA01 is based on PB00 like that we have to define in the Pricing Schema
    which makes easy to use in realtime.
    Here PB00 has the Access Sequence - 0002.
    But RA01 does not have the Access Sequence.Why because it is a dependent on PB00. But both are Condition Types.
    In the system, by default some standard Scheme will be there at Vendor Schema Group in the Vendor Master Screen means the standard one is assigned which is very lengthy which may fullfil our requirement. But some cases which may not fullfil our requirement, in such we have to define.
    For the configuration, I may not able to explain properly through here but will give some Idea.
    Configuration: SPRO-IMG-Material Management- Purchasing- Conditions-Define Price Deternmination Process
    1. Define Access Sequence
    2. Define Condition Type
    3. Defince Calculation Schema:- Here you have to define the Schema
    Define Schema group
    1. Define Schema Group vendor
    2. Define Pricing Schema group
    3. Schema group for Purchase Organisation
    4. Assign Schema group to Purchase Organisation
    Define Schema determination
    1.define calculation schema for Standard purchase organisation
    After completion of the Schema Group, we have to assign it to Vendors.
    Then whenever we use any transaction with this Vendor, the concerned Schema will work as configured by us.
    I think this will help you. Actually the Pricing is a vast. Becuase each Condition have its own importance and each Access Sequence have its own importance. So you need not bother about this. First you learn how to define the Calculation Schema through the above.
    Here we can create many Calculation Schemas which can assign one schema to Local vendors
    another schema to out side vendor one more schema to foreign vendors like that we can classify.

  • BAPI for Pricing condition record  to transaction MEk1

    Hi Experts,
    I am facing problem to find out the BAPI or function module  to create the condition record for transaction MEK1.Please let me know asap.
    Richard.

    You can use BAPI_PRICES_CONDITIONS .
    See the thread.
    BAPI_PRICES_CONDITIONS

  • How do I create a DNS record on my Mac Server?

    How do I create a DNS record on my Mac Server?

    The following is info that I found in another post that I have been trying to follow.
    MrHoffman      New England
    Re: Configure DNS - OS X Server Next Steps
    Feb 13, 2011 6:36 AM (in response to Jimbooooooo)
    You're setting up internal DNS services, you referenced your ISP DNS servers and you should not have, and now those servers have no translations for your hosts. This is a common misconfiguration.
    See [configuring DNS on Mac OS X Server|http://labs.hoffmanlabs.com/node/1436] for how to set up your internal DNS server.
    And if there are any references to your ISP DNS servers here (within your client settings, within your server settings, your Airport settings, etc), then you're usually going to have DNS and connectivity problems. You're running a server now, so you'll be running your own services, and (particularly because of NAT here) referencing only your own DNS server(s).
    You may be setting up external DNS (if and when you need that), but that should happen after you set up your internal DNS. The above article has a link to setting up external DNS, when you get around to that, if/when you need in-bound connections into your LAN.

  • JDeveloper 10g Creating a new record with trigger sequence primary key

    Hi there, I'm sorry to post this incredibly simple question and I'm sure that someone must have answered this on this forum before but the searching of this site is incredible slow and painful and after 30 mins I can't find help.
    I am using a struts Data Action to create a new record in the database and then being forwarded to an edit page where I can enter the new details. Then when the details are entered I am clicking an update button and returning to a browse screen where I can either commit the change to the database or rollback. Sounds pretty simple but I am really struggling with trying to get the trigger of the number sequence to work properly.
    Ideally I would like to click the create new record button and then the primary key/triggered sequence number is already displayed on the empty form...
    ... but if this is too tricky or not possible then I would like the user to either not enter any value in the key field (which currently causes error - JBO-27014: Attribute PoNo in PO_SYS_MODULE.PoSystemView1 is required) OR the user enters a number and the trigger overwrites this number with the next in the sequence.
    I can enter a new record if I look in the manager console and see the next number in the sequence and then create the record using this number and then click commit twice, as the first time I get the error: JBO-25019: Entity row of key oracle.jbo.Key[154 ] not found in PoSystem. Or if I enter a value 5 times greater than the next in the sequence I have to click the commit button 5 extra times to get the sequence to match the input.
    I hope that this lengthy explanation fills you in on my problem, there must be a simple solution to this and I will be VERY grateful to anyone who can help me.
    Many thanks
    Ben Sayers (clearly a newbie)

    Hi,
    ADF Business Components handles this for you - unless yo prefer doing this manually. In the Entity Object, set the PK attribute's type to DBSequence. Then create a database sequence and use a database trigger to add the sequence value on insert
    Frank

  • ESS Leave Request - Error while creating a leave record

    Hi Friends,
      Some of the ESS leave request(not workflow) has gone into error when the system tryies to create a leave record in background. I can view these error request using the report RPTARQDBVIEW. This happens when the background program(PTARQPOST) tries to create a leave record. In some cases  the status of the leave request is set to error(the status attribute of the container element(Req) has the value Error),but we are not able to find what is actual error.Is there any log where we can check what is the problem? Please advice.

    May be
    Internally the pernr might not be locked or some one may be maintaing the pernr for whom you are trying to post.

  • Product Hierarchy and creating quotations with brands - require solution

    Hi,
    We are using product heirarchy in our system ( its a 18 character key), the first 8 character is for the brand.
    Material is created with a different character combination and the material is assigned the complete 18 character key in the material master record.
    Now the requirement is that the distributor places a plan to buy a particulat brand ( not material i.e with specific colour, which he will do it at a later stage) with quantity and price, this has to be captured in the SAP.
    Once the distributor's plan is approved, he will place a purchase order and Sales order gets created automoatically.
    My line of thought is capture his plan in quotation and once he places orders , an sales order is created with reference to the sales order.
    The challenge is how to capture brand in a quotation with price. 
    Can we create material master records for these brands which are used only in quotations and SO can be created with original materials ( the final finished product).
    Please provide me your valuable solutions and suggestions.
    Thanks
    Venkata Rama Reddy.K

    Hi Hans,
    We don't want to wait for until billing to update price since we have the CI created at the time of delivery not billing.  CI document also needs to display correct pricing for custom purposes.
    Also, we would like to keep pricing on the Sales Doc. and Billing Invoice the same.  This is why we would like to trigger re-pricing on sales order.   And when pricing is re-invoked, we need to re-read the PRODH data to ensure new price is retrieved.
    Thanks for your response.
    Hannah

Maybe you are looking for