FM or BAPI for creating/deleting condition records for an output type

Hi all,
           what is the FM or BAPI for creating and deleting the condition records for a Z(custom) output type.

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....

Similar Messages

  • FM FOR CREATING NEW CONDITION RECORDS FROM INPUT FILE

    Hello vikas,
    I need to develop a interface program FOR CREATING NEW CONDITION RECORDS FROM INPUT FILE.
    Is there ay function module to update or create the condtion records,
    if u have any example interface program to update conditions records please send me.
    regards
    ram.

    This must be your compiler output.
    Basically, it is telling you two things that are wrong - in syntax.
    1. On line number 11 of the file RationalCollection1.java, the compiler expects a type identifier - that would be the object or return type such as int, String, boolean, etc.
    The reason it is doing this is probably due to your not ending a previous statement - like the "expected ';'" error statement. Check your code, make sure that methods (brackets) are closed correctly and there are no open statements (i.e. missing the semi-colen at the end).
    2. On line number 33 of the file RationalCollection1.java, the compiler expected the closing bracket. Thus, you didn't put the bracket where the compiler wants it.
    It appears that you have skipped some lines of code. Those lines are the problem, post them - post lines 30-36 and 9-15 so we can see what is happening around those error lines.

  • Bapi to create a condition record

    hi,
    is there any standard bapi for creating ,changing and deleting a pricing record using VK11,VK12.
    any other function module will solve the problem.

    Hi Ajith,
       You can use <b>IDOC approach</b> also for doing teh same solution. Yo get Create/Change/ Delete Option as per indicator passed:
    Refer Code below.
    *&      Form  map_idoc_structure
          Map E1KOMG, E1KONH, E1KONP segment fields
    FORM map_idoc_structure
                  USING fp_condition_table TYPE kotabnr
                        fp_rate            TYPE z_cs_cpp_rate
                        fp_condition_type  TYPE kschl
                        fp_rate_type       TYPE z_cs_file_type.
    *-- Local Data Declaration
      DATA: lw_e1komg TYPE e1komg, "Filter seg. with separated condition key
            lw_e1konh TYPE e1konh, "Data from condition header
            lw_e1konp TYPE e1konp, "Conditions Items
            lv_delete TYPE konp-loevm_ko. " Delete Indicator
    *-- IDoc data internal table
      DATA: i_idoc_data TYPE TABLE OF edidd
                        INITIAL SIZE 0
                        WITH HEADER LINE.
      CLEAR: lw_e1komg,
             lw_e1konh,
             lw_e1konp,
             lv_delete,
             v_segnum,
             w_e1komg,
             v_rate_type.
      REFRESH i_idoc_data.
      v_rate_type = fp_rate_type.
      PERFORM conversion_alpha_input
          USING w_crp_data-kunnr CHANGING w_crp_data-kunnr.
      PERFORM conversion_matn1_input
         USING w_crp_data-matnr CHANGING w_crp_data-matnr.
    E1KOMG: Filter segment with separated condition key
      i_idoc_data-segnam  = 'E1KOMG'.
      lw_e1komg-kvewe     =  c_usage_cond_tab.
      lw_e1komg-kotabnr   =  fp_condition_table.
      lw_e1komg-kappl     =  c_cond_type.
      lw_e1komg-kschl     =  fp_condition_type.
    CONCATENATE p_vkorg p_vtweg p_spart p_hienr p_matnr
      CONCATENATE w_crp_data-vkorg w_crp_data-vtweg
                  w_crp_data-kunnr w_crp_data-matnr
                  INTO lw_e1komg-vakey.
      lw_e1komg-vakey_long = lw_e1komg-vakey.
      lw_e1komg-vkorg      = w_crp_data-vkorg.
      lw_e1komg-vtweg      = w_crp_data-vtweg.
      lw_e1komg-spart      = w_crp_data-spart.
      lw_e1komg-kunnr      = w_crp_data-kunnr.
      lw_e1komg-matnr      = w_crp_data-matnr.
      i_idoc_data-sdata = lw_e1komg.
      APPEND i_idoc_data TO i_idoc_data.
    Segment E1KONH - condition header
      i_idoc_data-segnam  = 'E1KONH'.
      lw_e1konh-datab     = w_crp_data-datab.
      lw_e1konh-datbi     = w_crp_data-datbi.
      lw_e1konh-knuma_pi  = v_promotion.
      lw_e1konh-knuma_ag  = v_sales_deal.
      i_idoc_data-sdata = lw_e1konh.
      APPEND i_idoc_data TO i_idoc_data.
      IF fm_process_type EQ c_pt_dep.
        lv_delete = c_x.              " Deletion Indicator
      ENDIF.
    Segment E1KONP - condition items
      i_idoc_data-segnam = 'E1KONP'.
      lw_e1konp-kschl     = fp_condition_type.
      lw_e1konp-kbetr     = fp_rate.
      lw_e1konp-konwa     = w_crp_data-waers.
      lw_e1konp-kpein     = v_cond_pric.
      lw_e1konp-kmein     = v_cond_unit.
      lw_e1konp-knuma_pi  = v_promotion.
      lw_e1konp-knuma_ag  = v_sales_deal.
      lw_e1konp-loevm_ko  = lv_delete.
      i_idoc_data-sdata = lw_e1konp.
      APPEND i_idoc_data TO i_idoc_data.
    *-- Post Idoc for Creating Pricing Condition
      PERFORM post_idoc
             TABLES i_idoc_data.
    ENDFORM.                    " map_idoc_structure
    *&      Form  post_idoc TABLES i_idoc_data.
          Post Idoc for Creating Pricing Condition
    FORM post_idoc
              TABLES i_idoc_data STRUCTURE edidd.
    *-- Local data declaration
      DATA: lv_komg         LIKE komg,         " Condition Structures
            lv_subrc        LIKE sy-subrc,     " Sy-subrc
            lw_messages     TYPE rsuvm_msg,    " Message Description
            lw_idoc_status  TYPE bdidocstat.   " ALE IDoc status
      DATA: idoc_contrl                        " IDoc Control data
                LIKE edidc OCCURS 1 WITH HEADER LINE.
    *-- Initialize Internal Tables
      CLEAR:  t_konh,
              t_konp,
              t_konm,
              t_konw,
              i_idoc_status,
              t_kona.
      REFRESH: t_konh,
               t_konp,
               t_konm,
               t_konw,
               i_idoc_status,
               t_kona,
               i_messages.
    This code is taken from IDOC_INPUT_COND_A
      PERFORM fill_appl_structures(saplvkoi)
                      TABLES i_idoc_data
                             t_konh
                             t_konp
                             t_konm
                             t_konw
                             i_idoc_status
                             t_kona
                       USING lv_komg
                             lv_subrc
                             idoc_contrl-docnum
                             idoc_contrl-mestyp.
      IF lv_subrc = 0.
    This code is taken from IDOC_INPUT_COND_A
        PERFORM idoc_in_datenbank(saplvkoi)
                  TABLES idoc_contrl
                         t_konh
                         t_konp
                         t_konm
                         t_konw
                         i_idoc_status
                         t_kona
                  USING  lv_komg
                         lv_subrc
                         idoc_contrl-docnum.
        IF lv_subrc = 0.
          COMMIT WORK AND WAIT.
        Endif.
    Reward points if this Helps.
    Manish
    Message was edited by: Manish Kumar

  • How to create STO Condition record for a condition Type ?

    I am doing config for STO.
    in MEK1 , it is asking for Vendor, but in my case I am doing STO by using delivery VL01 and receipt by MIGO.
    I want to know abt- How to create Condition Record for STO so that STO order will have Moving Average Price f Material.
    Sorry I m new to MM so pls help.

    Solved

  • Condition record for a header discount condition - Total gross weight

    As you know, we can not assign an access sequence for a header condition. How can I create a condition record for a header discount condition which takes into consideration the total gross weight of the items of a sales document?
    Thanks in advance for the answers....

    In the pricing procedure (t.code V/08), assign routine 12 in the Alternative formula for condition base value column for the condition type.
    Regards,

  • Is their any function module for deleting condition record i am trying

    Hi Experts,
    Is their any function module for deleting condition record i am trying  this way.......
    DATA: TABLE (4) TYPE C.
    DATA: KNUM LIKE KONH-KNUMH
    DATA: K_VEWE LIKE T681-KVEWE VALUE 'A'.
    DATA: T681_STR LIKE T681.
    DATA: LV_NUM TYPE I.
    GET PARAMETERS
    PARAMETERS: TABNO LIKE T681-KOTABNR.
    PARAMETERS: TESTMODE DEFAULT 'X' AS CHECKBOX.
    REFRESH INT_KNUMH.
    Select single * from T681 into T681_STR
    where kvewe = K_VEWE AND
    KOTABNR = TABNO.
    IF SY-SUBRC NE 0.
    WRITE: / 'No entry in T681 for number ', TABNO.
    WRITE: / 'Check whether corresponding condition table exists.'.
    EXIT.
    ENDIF.
    TABLE = T681_STR-KOTAB.
    SELECT KNUMH FROM (TABLE) INTO KNUM.
    SELECT SINGLE * FROM KONH WHERE KNUMH = KNUM.
    IF SY-SUBRC NE 0.
    INT_KNUMH-KNUMH = KNUM.
    COLLECT INT_KNUMH.
    ENDIF.
    ENDSELECT.
    DESCRIBE TABLE INT_KNUMH LINES LV_NUM.
    IF LV_NUM EQ 0.
    WRITE: / 'No inconsistent entries found.'.
    WRITE: / 'Each record in the condition table has a corresponding.'.
    WRITE: / 'entry in the KONH table.'.
    EXIT.
    ENDIF.
    LOOP AT INT_KNUMH.
    IF TESTMODE IS INITIAL.
    DELETE FROM (TABLE) WHERE
    KNUMH = INT_KNUMH-KNUMH.
    IF SY-SUBRC = 0.
    WRITE: / 'KNUMH =', INT_KNUMH-KNUMH(10), ' deleted from table ' ,TABLE.
    ELSE.
    WRITE: / 'DELETE: SY-SUBRC is', SY-SUBRC , ' FOR KNUMH = ' .
    WRITE: INT_KNUMH-KNUMH(10).
    ENDIF.
    ELSE.
    WRITE: / 'TESTRUN: KNUMH =', INT_KNUMH-KNUMH(10).
    ENDIF.
    ENDLOOP.
    is their any Standerd Function module  for comparing  tables if the condition record not exist in it has to exit if it is their then compare  those two tables if not exist in one table also that has  to be delete  the condition record
    Please let me know .....

    Hi,
       You can use Function module PRICING_CHECK to check condition record. Do a where-used list on it to see how to call it.
    Regards
    Kiran Sure

  • How to create an output condition record for output type

    For SD LE shipping...
    Create an output condition record for output type
    Thanks!
    Message was edited by:
            Hoo Laa
    Message was edited by:
            Hoo Laa

    Hi Hoo,
    Follow the path.
    SAP Easy Access -> Logistics -> Logistics Execution -> Master Data -> Output   -> Shipping - > Create.
    Tcode: VV21.
    Hope I have clarified your query. Do reward if so.
    Regards
    Nadarajah Pratheb

  • Condition Record for a Header Condition?????

    Friends,
    The Client has a business requirement as follows:
    1.They have over 100 transport vendors to cater to their
    Shipping requirements across the country.
    2.The freight charges are different for all transporters.
    3. These charges are to be put at the HEADER level in the Sales Order.
    6. They do not want to enter the freight charges manually (referring to a seperately maintained freight charges/transporter list).
    6. They want the freight charges to be put at header level AUTOMATICALLY once the Transporter is chosen from the header partner function.
    Is it possible to maintain a condition record for a condition which is defined as a 'Header Condition'.
    To the best of my knowledge, we cannot maintain a condition record for a Header Condition.Header condition means all values are to be put manully.
    Please advise.
    Thanks.
    Mohammed Raheel

    Hi Mate,
    Here you go. This is the best solution and it should work for you.
    Create the fright condition type and uncheck the check boxes header condition and item condition. This action will let you enter an access sequence for the condition type. This fulfills the requirement for having the condition type to be automatic.
    For this condition type to appear only at the header level and not at the item level, this is quite tricky. First thing that struck my mind is to check the "group condition" and point the "grp cond routine* to 1. This does not work because you have unchecked the Header Condition check box.
    The other alternative to acheive the second requirement keeping the first requirement in place is to write a routine and assign it to the requirements column against the freight condition type in the pricing procedure. The routine will make sure that this condition is not picked up at the item level. If it is picked up you delete it programatically.
    Please make sure you do not mark this condition as manual in the pricing procedure.
    This should work.
    Thanks
    Ram

  • Delete Condition Records

    Hi,
    I have a requirement to delete condition records. Please let me know if there is any BAPI or Function Module which deletes the condition records from VK12. Its very urgent.
    Thanks,
    Meenu

    Meenu,
    Use VK12 and set the deletion flag.
    The deletion flag means that the record is logically deleted and not phisically.
    some of the conditions records cannot be delete, example 'MWST'.
    In such cases, the best way is to change the end date to the current date.
    more adding for you;
    In v/06 for your condition type check the field delete fr. DB
    If you set this field as A or B,then only you will be able to delete the condition record permanently via VK12.Otherwise you can only set deletion indicator.
    Amit.

  • Delete condition record??

    how to delete condition record from VK11. can i have t code plz.

    Hi,
    Just to add,
    There are two possible procedures for deleting conditions. There is either immediate deletion or a deletion flag for archiving at a later date. You enter the type of deletion that should be proposed during condition maintenance into Customizing for a condition type, . When deleting immediately, a dialog box can be created which indicates immediate deletion but offers a deletion flag as an alternative.
    <b>Deletion Flag</b>
    You can mark condition records for deletion. These are then no longer taken into consideration during automatic pricing. However they remain as condition records in the system until the next archiving update. This means you can reset a deletion and reactivate a condition record.
    <b>Physical Deletion</b>
    If you use physical deletion, the condition record disappears immediately. It is no longer available during condition record maintenance or pricing. This deletion cannot be reset once it has been carried out. You have to recreate the condition record if you need it again. To be more exact, the reference to the condition record for pricing and condition record maintenance is deleted completely with physical deletion. The actual condition record must be kept for old documents.
    <b>Recommendation:</b>
    SAP recommends the physical deletion procedure. The deletion flag improves upwards compatibility in the system.
    A pricing error can occur when using hierarchical accesses in combination with the deletion indicator (See the hierarchical access documentation in the SAP library).
    The deletion flag used to be used as a replacement for a missing release procedure. This is no longer necessary, as there is now a separate release procedure available (see the release procedure in the SAP library).
    Physical deletion can be included using the change documents – for example deletions in a specific period (Report RV16ACHD).
    Hope this helps. Please reward if useful.
    Thanks & Regards
    Sadhu Kishore

  • ERROR Message while creating Rebate condition record T code VBO1

    Dear Experts,
    I am getting error message while creating rebate condition record T code-VBO1-Error Msg-862 system cannot read the structure for table,because of this i could not create condition record.
    Please give the solution to create condition record.
    Regards
    siva

    Hi,
    You said you are trying to do this stuff in IDES right.
    If you are using IDES provided by a company and where many people play on IDES, then you can get many such issues...
    This is by our experience.  Today you do something in IDES and tommorow that thing or config is screwed up by others.
    If you have your own IDES, then check the suggestion given by the forum Guru's.
    Regards,
    SB

  • BAPI/FM for creation of CONTACT RECORD for the contract account

    Hi All,
    I need to create a contact record for the a contract account.
    The contact record details will be maintained in the table BCONT.
    Let me know if there is a function module/BAPI/any othere way to create a contact record.
    Regards
    Shiva

    Hi,
    You can use the function module - BCONTACT_CREATE to create Contact record
    (or)
    make a BDC of the Tcode - BCT1(Contact creation) and use the same for creation of contacts in batch
    Note: Contact is created against Business Partner and not Contract Account. So you will have to include your logic of finding out the respective Business Partner for the Contract Account for which you need to create Contact record.
    regards
    Gagan

  • The condition record for use B can not be displayed

    Hi gururs,
    What does this message (number : VE896 ) mean ?
    How to make it desapear ?
    P.S : it's about output type for purchase orders.
    This message is displayed when I click on : "Goto -> Determi analysis" in tcode ME22N.
    Regards,
    Bahia.

    Hi
    It means you are trying to veiw the executed condition record. System found the condition record for entered transactional data which you cannot see by clicking on it (when you see green record in condition analysis).
    For given condition type -> and access sequence/ access - system shows the condition record that is determined. You can see its details by clicking the access which shows the message that condition record has been found with its determined parameters.
    Ex: For batch determination I have set up one search strategy with a condition type (with access sequence). I created one condition record. When creating say sales order -batch determination takes place based on condition record parameters. System shows a green light for determined condition record. You cannot see its details - if you try to see then system issues a message like ''The condition record for use B can not be displayed''. If you want to see click on its immediate predecessor (access ).
    Thanks

  • Condition records for Plant/SLocation - output determination

    Is there any BAPI for uploading the condition records in OMJ3?
    This is for entering condition records in inventory management based on plant/SLoc parameters.
    pls advice
    Thanks.

    I am not aware of any BAPI, but you can try using a BDC Program or LSMW to upload these.
    RJ

  • Condition record for tax calculation

    hi .
    how to populate value for condition type MWAS (outputax)
    where to create?

    hi,
    Tax is determined based on,
    1) Departure Country , departure Zone is taken from delivering plant
    2) Destination Country of the customer receiving the goods( i.e Ship to party)
    3) Tax indicators in CMR >Sale area data>billing tab page& MMR>Sales:sale org data1 view.
    Maintain all the above in the condition records for determining the tax condition rate in pricing procedure.
    Reward if it is useful.
    MCM

Maybe you are looking for

  • My CreativeCloud manager won't connect to the internet. As a result it can't verify my serial number for Adobe Acrobat XI.

    I followed the trouble-shooting steps for this issue, to no avail (Sign in, activation, or connection errors | CS5.5 and later, Acrobat DC). The back story is that I was an independent contractor working for a company and had my own CreativeCloud acc

  • Fonts preview in English but Font name appears in Asian?

    I have CC applications and all apps have the same issue.  When I try to select a Font type the preview of many are in an Asian or South-West Asian language.  However, if I select one the type appears in English.  Since I am not fluent in whatever lan

  • How to add Short cut to DISCONNECT and LOGOFF

    We have an App that requires Remote Desktop Services Having installed & configured it. We asked the software company to setup App. This work fine in Desktop session i.e users login via mstsc and get presented with a desktop. But unfortunately not as

  • Firefox won't connect to internet but IE will!!

    I'm using latest edition of Firefox on windows 07 laptop. Two days ago my internet connection slowed significantly (i was only one) for few hours but then things got to normal. My computer updated (windows) last night and when tried to turn on firefo

  • Search Keywords doesn't work on sub-folders

    I finally had to migrate from JASC (Corel) Photo Album to Adobe Photo Elements 9.  I had liked using JASC many years ago with the ability to add keywords (I have many) which were stored in a Access database.  With Windows Vista the keywords were stor