Problem with Condition Type in BAPI_QUOTATION_CREATEFROMDATA2 for Txn VA21

Hi All,
I am using BAPI_QUOTATION_CREATEFROMDATA2 for Sales Quotation by txn VA21.
In this txn,There are 22 condition types available in my system.
The problem is,it is updating every condition type twice.
Pls give me the solution.
Regards,
Shiv Kant

Hi,
I am giving billing document code, we are using BAPI to upload billing documents into SAP.
you can check pricing conditions code. we are using only two pricing condition types. our technical consultant hardcoded condition types.
wa_billingdata-salesorg = wa_bill5-sorg.
    wa_billingdata-distr_chan = wa_BILL5-dist.
    wa_billingdata-division = wa_BILL5-div.
    wa_billingdata-doc_type = 'ZSO5'.
    wa_billingdata-ordbilltyp = 'FX'.
    wa_billingdata-bill_date = wa_BILL5-BDATE.
    wa_billingdata-sold_to = wa_BILL5-CUSTNO.
*    wa_billingdata-price_date = WA_BILL1-BDATE.
   wa_billingdata-country = wa_BILL5-CNTRY.
    wa_billingdata-bill_to = wa_BILL5-custno.
    wa_billingdata-currency = WA_BILL5-CURR.
    wa_billingdata-wbs_elem = wa_bill5-wbsele.
    wa_billingdata-xblnr = wa_bill5-billno.
    wa_billingdata-zuonr = wa_bill5-invoiceno.
flag1 = 1.
endif.
translate wa_bill5-matdesc to upper case.
    SELECT MATNR FROM MARA INTO IT_MARA  up to 1 rows WHERE MATNR = WA_BILL5-MATDESC.
            endselect.
    if sy-subrc = 0.
      wa_billingdata-plant = wa_BILL5-PLANT.
      wa_billingdata-NO_MATMAST = ' '.
      wa_billingdata-material = WA_BILL5-MATDESC.
      wa_billingdata-REQ_QTY = '1'.
      wa_billingdata-ACCTASGNMT = '05'.
   else.
       wa_billingdata-ACCTASGNMT = '05'.
       wa_billingdata-NO_MATMAST = 'X'.
       wa_billingdata-SHORT_TEXT = 'ADAGE MATERIAL'.
       wa_billingdata-TAXCL_1MAT = '0'.
       wa_billingdata-SALES_UNIT = 'EA'.
       wa_billingdata-material = WA_BILL5-MATDESC.
       wa_billingdata-REQ_QTY = '1'.
   endif.
flag = flag + 1.
    wa_billingdata-ref_item = flag.
    append wa_billingdata to billingdata.
    wa_conditiondata-data_index = flag.
     wa_CONDITIONDATA-cond_value = WA_BILL5-ADVERTISCOST.
    wa_conditiondata-cond_type = 'EK01'.
    append wa_conditiondata to conditiondata.
clear wa_conditiondata.
    wa_conditiondata-data_index = flag.
     wa_conditiondata-cond_value = WA_BILL5-COMM.
    wa_conditiondata-cond_type = 'ZCOM'.
    append wa_conditiondata to conditiondata.
clear wa_conditiondata.
IF TESTRUN IS INITIAL.
move-corresponding wa_bill5 to wa_bill2.
wa_bill2-status = 'P'.
append wa_bill2 to it_bill2.
modify zzbilling from table it_bill2.
commit WORK.
ENDIF.
REFRESH IT_BILL2.
endloop.
flag1 = 0.
flag = 0.
IF TESTRUN IS INITIAL.
CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
*   EXPORTING
*     CREATORDATAIN         = creaord
*     TESTRUN               = 'X'
*     POSTING               = 'X'
    TABLES
     BILLINGDATAIN         =  billingdata
     CONDITIONDATAIN       =  conditiondata
*     CCARDDATAIN           =
*     TEXTDATAIN            =
*     ERRORS                =
      RETURN                = bapiret
      SUCCESS               = succ.
Regards,
Chandra

Similar Messages

  • Problem with condition type in BAPI_PO_CREATE1

    Hi All,
    I am uploading the data for txn ME21N through BAPI_PO_CREATE1.
    Whenever i m testing this bapi it is giving PO no. but Codition types are not getting update neither on header level nor on item level.
    Header Condition type and Condition value ,I am giving in Structures POCONDHEADER, POCONDHEADERX and Item Condition type and Condition value , i  am giving in structures POCOND,POCONDX.
    Thanx in Advance.
    Regards,
    Shiv Kant

    Take a look in this example:
        ADD 10 TO v_item.
        e_poheader-comp_code   = t_cabec-bukrs.
        e_poheader-doc_type    = 'EC'.
        e_poheader-vendor      = t_cabec-lifnr.
        e_poheader-creat_date  = sy-datum.
        e_poheader-created_by  = sy-uname.
        e_poheader-item_intvl  = '0010'.
        e_poheader-langu       = sy-langu.
        e_poheader-langu_iso   = sy-langu.
        e_poheader-incoterms1 = t_cabec-inco1.
        e_poheader-incoterms2 = t_cabec-inco2.
        e_poheader-currency   = t_cabec-waers.
        e_poheader-purch_org  = v_ekorg.
        e_poheader-pur_group  = t_saida3-ekgrp.
        e_poheader-pmnttrms   = t_cabec-zterm.
        e_poheader-telephone  = t_cabec-telf1.
        e_poheader-sales_pers = t_cabec-verkf.
        e_poheaderx-comp_code   = 'X'.
        e_poheaderx-doc_type    = 'X'.
        e_poheaderx-vendor      = 'X'.
        e_poheaderx-creat_date  = 'X'.
        e_poheaderx-created_by  = 'X'.
        e_poheaderx-item_intvl  = 'X'.
        e_poheaderx-langu       = 'X'.
        e_poheaderx-langu_iso   = 'X'.
        e_poheaderx-incoterms1 =  'X'.
        e_poheaderx-incoterms2 =  'X'.
        e_poheaderx-currency   = 'X'.
        e_poheaderx-purch_org  = 'X'.
        e_poheaderx-pur_group  = 'X'.
        e_poheaderx-pmnttrms   = 'X'.
        e_poheaderx-telephone  = 'X'.
        e_poheaderx-sales_pers = 'X'.
        IF t_saida3-elem_pep IS NOT INITIAL.
          MOVE 'P' TO t_saida3-knttp.
        ELSEIF t_saida3-aufnr IS NOT INITIAL.
          MOVE 'F' TO t_saida3-knttp.
        ELSEIF t_saida3-kostl IS NOT INITIAL.
          MOVE 'K' TO t_saida3-knttp.
        ENDIF.
        t_poitem-po_item      = v_item.
        t_poitem-plant        = s_werks.
        t_poitem-short_text   = t_saida3-txz01.
        t_poitem-quantity     = t_saida3-menge.
        t_poitem-po_unit     = t_saida3-meins.
        t_poitem-acctasscat   = t_saida3-knttp.
        t_poitem-matl_group   = t_saida3-matkl.
        t_poitem-tax_code     = t_saida3-mwskz.
        t_poitem-order_reason = t_saida3-bsgru.
        t_poitem-indus3       = t_saida3-j_1bindus3.
        t_poitem-matl_usage   = t_saida3-j_1bmatuse.
        t_poitem-mat_origin   = t_saida-j_1bmatorg.
        t_poitem-item_cat     = t_saida-epstp.
        t_poitem-net_price    = t_saida3-netpr.
        t_poitem-price_unit   = t_saida3-peinh.
        t_poitem-bras_nbm     = t_saida3-j_1bnbmco1.
        t_poitem-PREQ_NAME    = t_saida3-requisitante.
         APPEND t_poitem.
        t_poitemx-po_item      = v_item.
        t_poitemx-plant        = 'X'.
        t_poitemx-short_text   = 'X'.
        t_poitemx-quantity     = 'X'.
        t_poitemx-po_unit      = 'X'.
        t_poitemx-acctasscat   = 'X'.
        t_poitemx-matl_group   = 'X'.
        t_poitemx-tax_code     = 'X'.
        t_poitemx-order_reason = 'X'.
        t_poitemx-indus3       = 'X'.
        t_poitemx-matl_usage   = 'X'.
        t_poitemx-mat_origin   = 'X'.
        t_poitemx-item_cat     = 'X'.
        t_poitemx-net_price    = 'X'.
        t_poitemx-price_unit   = 'X'.
        t_poitemx-bras_nbm     = 'X'.
        t_poitemx-preq_name    = 'X'.
        APPEND t_poitemx.
        t_schedule-po_item = v_item.
        t_schedule-del_datcat_ext = '1'.
        t_schedule-delivery_date = v_data.
        t_schedule-del_datcat_ext = 'D'.
        t_schedule-quantity = t_saida3-menge.
        APPEND t_schedule.
        t_schedulx-po_item = v_item.
        t_schedulx-del_datcat_ext = 'X'.
        t_schedulx-delivery_date = 'X'.
        t_schedulx-del_datcat_ext = 'X'.
        t_schedulx-quantity = 'X'.
        APPEND t_schedulx.
        t_account-po_item = v_item.
        t_account-gl_account = t_saida3-saknr.
        t_account-wbs_element = t_saida3-elem_pep.
        t_account-costcenter  = t_saida3-kostl.
        t_account-orderid     = t_saida3-aufnr.
        t_account-gr_rcpt     = t_saida3-recebedor.
        t_account-unload_pt   = t_saida3-pdescarga.
        APPEND t_account.
        t_accountx-po_item = v_item.
        t_accountx-gl_account  = 'X'.
        t_accountx-wbs_element = 'X'.
        t_accountx-costcenter  = 'X'.
        t_accountx-orderid     = 'X'.
        t_accountx-gr_rcpt     = 'X'.
        t_accountx-unload_pt    = 'X'.
        APPEND t_accountx.
      CALL FUNCTION 'BAPI_PO_CREATE1'
        EXPORTING
          poheader         = e_poheader
          poheaderx        = e_poheaderx
          testrun          = ' '
        IMPORTING
          exppurchaseorder = v_pedido
        TABLES
          return           = t_bapiret2
          poitem           = t_poitem
          poitemx          = t_poitemx
          poschedule       = t_schedule
          poschedulex      = t_schedulx
          poaccount        = t_account
          poaccountx       = t_accountx
          potextitem       = t_textitem
          potextheader     = t_textheader.

  • Problem with document type on WF for parking document

    Hello
    Iu2019m actually working on  the SAP workflow dealing  with the FIPP object and  the event u201Ccreatedu201D (FI park document transaction (FV60)).
    The problem is that the WF is launched for all document types wich is not the need of the customer. Iu2019m looking for a solution to launch the WF for some specific document types.
    Iu2019ve already tried to use  the workflow variant, approval groups, paths and procedure with no success. (SPRO -> financial accouting-> accounts receivable and accounts payable -> business transaction -> incoming credit invoice memo -> make and check setting for document parking)
    Thank you for help.
    SL

    Here is the solution I have  eventually found :
    1-      Application of the OSS note 559276 which enables the customizing of the workflow variant (the transaction OBWD becomes here effective)
    2-     Assignment of the documents types, workflow variants and release approval groups with the transaction OBWD.
    Therefore, the document types that are not defined in the transaction OBWD will not require validation (no workflow will be launched).
    SL

  • V-41 tcode error :Table 304 is not defined for use with condition type PR00

    Hi All,
    I am trying to create a BDC using the transaction V-41. 
    The first screen has fields:
    ConditionType and Table, where I have to fill values ZPM1 and 800 respectively.
    But as soon as I enter the tcode v-41 and say enter, the above mentioned fields are already having the  values 'PR00' and ' 304'. Normally if you take an example fo t-code VA02, all fields are blank.
    Then an error message  is displayed:
    Table 304 is not defined for use with condition type PR00
    This behaviour is not allowing me to use the BDC feature.
    Please advise me on why this is happening. What are the possible solutions I can use to clear these values programmatically?
    Can anything be done via customizing?
    Regards,
    Namita.

    Dear ILHAN ,
    Well the problem you are facing is having the following solution:
    Table 304 is not defined for use with condition type PR00
    Message no. VK024
    Diagnosis
    The selected condition type does not fit in the condition table, that is the basis for the condition record. Alternatively the selected condition type is not included in the condition types that were selected on the selection screen or that are defined in the variant of the standard selection report.
    Procedure
    Úse F4 help to choose a valid condition type.
    If this does not give you the required condition type, check in Customizing for condition types and the related access sequences.
    In the condition maintenance also check Customizing for the selection report (pricing report), that you have selected in the navigation tree, using the standard condition table as a reference.
    I hope this helps.
    It has worked for me.
    I gave it a try and what I am getting using the transaction V-41 is create Price condition (PR00) : Fast Entry.
    Please award points if you find it useful.
    Regards,
    Rakesh

  • Pricing error with condition type HI02

    Hi Friends,
    I have problem in pricing procedure for customer hierarchy condition type HI02. I have created the condition node i.e.6222 and assigned customer 1500 and i also maintained the condition record for the same and also put in the pricing procedure as well. Now while i am creating sales order the condition type HI02 is not coming automatically rather i am able to put the same manually. I want the system should pick the condition type HI02 automatically. Please suggest me IMG setting which i sould maintain for customer hierarchy pricing.
    Thanks in advance,
    Bharat B

    Dear Barath
    You are right
    HI02 is a item condition type only used for customer hierarchy discounts and the access sequence for the same is HI02 with condition table 065  that is customer hierarchy/material and the same is positioned in V/07 in the access sequence details in seven consecutive  steps (the same condition table in all the seven steps) but the field in each table differing
    The field in table 065 which is positioned in no 1 is HIENR 01
    The field in table 065 which is positioned in no 2 is HIENR 02
    The field in table 065 which is positioned in no 3 is HIENR 03
    and the most important thing here is exclusive indicator ticked in all the steps exept the seventh step
    That means if at hierarchy level 1 system finds a record then it stops searching
    I have a feeling that your access sequence alignmemt must be wrong somewhere and check for exclusive indicator marking
    HI01 is a item condition type only used for customer hierarchy discounts and the access sequence for the same is HI01 with condition table 064  that is customer hierarchy and the same is positioned in V/07 in the access sequence details in seven consecutive steps (the same condition table in all the seven steps) but the field in each table differing
    The field in table 064 which is positioned in no 1 is HIENR 01
    The field in table 064 which is positioned in no 2 is HIENR 02
    The field in table 064 which is positioned in no 3 is HIENR 03
    and the most important thing here is exclusive indicator ticked in all the steps exept the last step
    That means if at hierarchy level 1 system finds a record then it stops searching
    I have a feeling that your access sequence alignmemt must be wrong somewhere and check for exclusive indicator marking
    Moreover importantly if there is condition type in a PP then if a condition record is maintained if the same is not picked up in sales order then analysis has to give some hint and what is the hint you are getting
    Regards
    raja

  • Problems with letter type

    Problems with letter type homepage www.JO-qigong.nl When I want to make another type it changes the whole page? Why?

    Thank you for responding. I am sure that I selected the text. I don't do anything different than I did many times before. But if I change a text know, for exemple in the color Red, than other text, that I didn't selected, get a different text: bigger text or other color. In iWeb everything is OK, but when I publish it, than there are those grazy changes. I use iWeb for 3 years now and had no problems till now.
    Is it because the software is not supported anymore by Apple, because you can not update the software anymore. It is a pitty, because I like iWeb. It is easy to work with.

  • Problem with mime type in web.xml file

    Hi everybody,
    I actually got a problem with mime types on Weblogic 6.0 under Linux.
    I read the documentation so I added the next lines in the web.xml file in
    the WEB-INF directory of my server :
    <mime-mapping>
    <extension>
    doc
    </extension>
    <mime-type>
    application/msword
    </mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>
    ppt
    </extension>
    <mime-type>
    application/vnd.ms-powerpoint
    </mime-type>
    </mime-mapping>
    Why can't I retrieve a .doc or .ppt files with an internet browser correctly
    ? I get only text/plain ...
    Can someone help me ?
    Regards,
    Alexis Berger

    I am having the same problem with doc and xsl. I have added this
    <mime-mapping>
    <extension>xls</extension>
    <mime-type>application/vnd.ms-excel</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>doc</extension>
    <mime-type>application/msword</mime-type>
    </mime-mapping>
    to my web.xml. I even restarted the server. I still see doc and xsl in binary.
    Is there some other setting that needs to take place?
    I am using WL6.1 with fixpack 1.
    I can see the doc and excel files in the browser if I don't go through the weblogic
    server. That just confirms it's not my browser.
    Kumar Allamraju <[email protected]> wrote:
    <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
    <html>
    It works fine for me in 6.1 SP1.
    <br><br>
    If the following doesn't work , can you
    <br>try application/winword instead of application/msword?
    <p>--
    <br>Kumar
    <p>Siming Mu wrote:
    <blockquote TYPE=CITE>Hi,
    <p>I setup in my web.xml a mime mapping as follows,
    <p><mime-mapping>
    <br><extension>doc</extension><mime-type>application/msword</mime-type>
    <br></mime-mapping>
    <p>When I specify a test.doc url, the doc file appears in my browser
    as
    binary data
    <br>instead of download.
    <p>Please reference change request 055002, which decribes this problem. 
    According
    <br>to edocs, it has been fixed in wls6.1sp1.
    <p>But I am seeing it fixed.  Am I doing anything wrong? Thanks.
    <p>Siming</blockquote>
    </html>

  • Selecting the best Price for a condition type but only for some customers

    Hi All,
    I have this situation where we have condition type ZPPR (COPY OF PR00) with 5-6 Condtion tables.
    in Access sequence for ZPPR, we have Exclusion Indicator set for all the conditiona tables so if first price is found, it doesn't search for others.
    Now I have a requirement that we should search for all the condition records and choose the lowest price. But this should happen for only a certain type of customers and not for everybody.
    Spefically we have:
    1. Contract Price
    2. Plant/Material price
    Normally, if contract price is found, it doesn't look for Plant/Mat price but we want to offer our customers(some of them) an option where they could choose the lower of the two price. We set both the prices every day based on some inputs.
    Regards,
    Luke
    Edited by: Lukesh Singla on Dec 21, 2011 8:49 PM

    Hi Luke,
    We have multiple option for this implementation:
    Option 1: If possible based on access sequence. Not sure if this is suitable considering you mentioned that ZPPR has 5-6 access sequence.
    1) Store Contract price in condition type ZPPR and store  Plant / Material Price in new condition type say, ZPPX.
    2) Have separate pricing procedure and determine them based on customer type. In first pricing process XXXX01, configure Condition exclusion with the setting that ZPPX should be deactivated if ZPPR is present, condition exclusion procedure D (exclusive) . In second pricing procedure XXXX02, configure condition exclusion with the setting that compare ZPPX and ZPPR and activate best condition type for the customer by using condition exclusion procedure C (Best condition between two exclusion groups ).
    Option 2:
    1) Copy  ZPPR and its access sequence to a new condition type and access sequence say ZPPX without checking exclusion indicator in the access sequence. In the condition type control for condition type ZPPX >> Master data section >> Reference Condition type = ZPPR so that master data records  need not be duplicated.
    2a) Assign the current procedure to the set of customers which should get the first price. Create a new procedure with condition type ZPPX instead of ZPPR keeping other parameters similar and assign the new procedure to other set of customers who should get the best price.
    OR
    2b) if 2a is difficult in terms of future  maintenance, add condition type ZPPX in the same procedure and create 2 new pricing requirement validating the customer segments and assign them to respective condition type in procedure ZPPR and ZPPX.
    3) Maintain condition exclusion for condition type ZPPX with B ( Best condition within Condition type).
    Hopefully it helps. Let me know if you need any other help in implementation of the solution.
    Regards,
    Naveen Aggarwal

  • How I tie the formula with conditions type?

    Hi,
    Than create the formula with tcode O3I7:
    1) how I tie the formula with conditions type?
    2) how I tie the conditions type with the formula with Calculation Schema?
    help me, please.
    thanks
    Edited by: celeste ziantoni on Feb 5, 2008 6:45 PM

    Hello,
    Pricing formula is created using transaction VOFM. It is tied to the condition types in Pricing Procedure definition in Alternate Calculation Type column. For Pricing procedure, the menu path is SPRO->Materials Management->Purchasing->Conditions->Define Price Determination Process->Define Calculation Schema.
    Thanks,
    Venu

  • How do fix problem with iPages - type does not enter - ?

    How do I fix this problem with Pages - type from keyboard does not enter ?  If I need to re-install, How do I do that?

    Hello DonAndNorma,
    You may need to uninstall, then reinstall the Pages application. Steps for doing so can be found in the article linked below.
    OS X Mavericks: Install, update, and uninstall apps
    http://support.apple.com/kb/PH14299
    Cheers,
    Allen

  • Is anyone else having problems with the new software update for macbook? I get random clicking and flicker an movement of the pointer!

    Is anyone else having problems with the new software update for macbook? I get random clicking and flicker an movement of the pointer!

    OS X 10.7 Lion, 10.8 Mountain Lion & 10.9 Mavericks
    Reset Password starting from Recovery HD
    Start the computer,then press and hold down command and R keys to start into recovery partition.
    When you see the Apple logo, release the keys.
    Wait until  OS X Utilities window shows up.
    Move the mouse to the menubar at the top and click "Utilities", then select "Terminal"
    from the drop down.
    Terminal window will appear.
    Type in   resetpassword   and press enter on the keyboard.
    Leave the Terminal window open.
    Reset Password Utility window will open with Macintosh HD selected.
    Select the user account from the popup menu box.
    Enter a new password.
    Reenter the new password for the user.
    Enter a hint.
    Click the "Save" button.
    Click  in the menubar and select Restart.
    Log in.
    If Keychain dialog box appears, select “Create New Keychain”.

  • Scheduling Agreement With Condition Type Calc.

    Hi All,
       Can i have Scheduling Agreement With Condition Type Calc. as in PO Conditions as there are some calculation need to be made based on Excise.
    Thanks in advance
    Sapuser

    Hi,
    Condition in scheduling agreeement are time dependent where as condition in purchase order time independent so it's not possible to use.
    Regards
    Ravi Shankar.

  • I can not do the update , what should I do to fix this error ? "There was a problem with downloading the file . For tips on troubleshooting , please go to Customer Support . ( Error code : 204 ) ." thanks

    I can not do the update , what should I do to fix this error ?
    "There was a problem with downloading the file . For tips on troubleshooting , please go to Customer Support . ( Error code : 204 ) ." thanks

    Hi,
    Please refer to the help document below:
    Error downloading, installing, or updating Creative Cloud applications
    Regards,
    Sheena

  • I had problem with my apps,they open for a while and closes with in seconds i cant acess them

    i had problem with my apps,they open for a while and closes with in seconds i cant acess them and i had this with all apss,expect apple apps

    Do you have a lot of apps? Did you use a lot of apps recently? If so, many of them may still be resident in memory even if you aren't currently using them. Double-tap the home key and you should see the app tray with a list of most recently used programs. Press and hold the icons in the tray and remove the ones you don't use often to remove them from memory. Powering off and then back on might also help.
    My wife's iPod does that sometimes, and it's usually because we run out of memory due to apps remaining in memory even when not used. The suggestion above is how we normally fix the problems.

  • I keep getting a message about a problem with the plug in container for firefox. what does it mean?

    I am getting a pop up box saying that there is a problem with the plug in container for firefox. It keeps saying do I want windows to find a fix for it and close it or do I just want to close the program. What is this plug in container for firefox and why am I constantly getting this message? It has been happening for the past month or two.

    It means either you have a faulty/out of date plugin, or your firewall/antivirus is causing problems with Firefox.
    Make sure you update all your plugins and disable unwanted ones.
    https://www.mozilla.org/en-US/plugincheck/
    https://support.mozilla.org/en-US/kb/disable-or-remove-add-ons
    Also, make sure your firewall/antivirus is not blocking plugincontainer.exe from the Firefox folder in your computer. How you make sure that's not the case will depend on your firewall/antivirus.

Maybe you are looking for