BAPI or Function maodule for Variant configuration

Hi,
Is there any BAPI or Function module which can give Variant configuration for a sales order?
Thanks,
Madhu

hi
plz refer to the following code
Check the following Code & also Check the following Standard Programs
L2032U12
LCRMAU01
LCRMAU11
LZOC1U01
MWWMJF32
RBUS2032
Structures for order header
DATA: l_order_header_in LIKE bapisdhd1,
l_order_header_inx LIKE bapisdhd1x,
Tables for order items
li_order_items_in TYPE STANDARD TABLE OF bapisditm,
li_order_items_inx TYPE STANDARD TABLE OF bapisditmx,
Order partners
li_order_partners TYPE STANDARD TABLE OF bapiparnr,
*Schedule lines
li_ORDER_SCHEDULES_IN TYPE STANDARD TABLE OF BAPISCHDL,
li_ORDER_SCHEDULES_INX TYPE STANDARD TABLE OF BAPISCHDLX,
*-condition type
li_ORDER_CONDITIONS_IN TYPE STANDARD TABLE OF BAPICOND,
li_ORDER_CONDITIONS_INX TYPE STANDARD TABLE OF BAPICONDX,
Return table from bapi call
li_return TYPE STANDARD TABLE OF bapiret2,
Sales document number
l_vbeln LIKE bapivbeln-vbeln,
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
EXPORTING
order_header_in = l_order_header_in
order_header_inx = l_order_header_inx
testrun = 'X'
IMPORTING
salesdocument = l_vbeln
TABLES
return = li_return
order_items_in = li_order_items_in
order_items_inx = li_order_items_inx
order_partners = li_order_partners
ORDER_SCHEDULES_IN = li_ORDER_SCHEDULES_IN
ORDER_SCHEDULES_INX = li_ORDER_SCHEDULES_INX
ORDER_CONDITIONS_IN = li_ORDER_CONDITIONS_IN
ORDER_CONDITIONS_INX = li_ORDER_CONDITIONS_INX.
Thanks & Regards
ravish
<b>* plz rewrd points if helpful</b>

Similar Messages

  • Function Module for Variant Configuration

    Is there any Function Modules available for getting the Characteristics and values of configured material. Input will be a material number.
    Points assured for any helpful answers

    Hello,
    I don't think FM is available for getting the Characteristics values of the Material . Better use this code.
    * Selection for class
      IF NOT S_KLART[] IS INITIAL.
        PERFORM F_GET_OBJECTNUMBER.
      ENDIF.
      IF G_CLASS_NE IS INITIAL.
    * Fill Selection table fields
        PERFORM F_FILL_FIELDS.
    * Selection for materials
        PERFORM F_GET_MATERIAL.
        SORT G_T_MAT BY MATNR.
    * Read if necessary classification
        IF G_T_MATNR[] IS INITIAL AND ( NOT G_T_MAT[] IS INITIAL ).
          PERFORM F_GET_MAT_KLASS.
        ENDIF.
    * Select the basic data text and fill final table
        PERFORM F_GET_BASIC_TEXT.
      ENDIF.
    FORM F_GET_OBJECTNUMBER.
      DATA: L_R_OBJECTS  TYPE TY_OBJECTS.
      DATA: L_OBJECTS TYPE TY_OBJECTS.
      CLEAR: G_T_OBJECTS.
      REFRESH: G_T_OBJECTS.
      SELECT A~CUOBJ A~OBJEK A~KLART B~ATINN B~ATZHL B~ATWRT B~ATFLV
             B~ATAWE B~ATFLB B~ATAW1 C~CLINT D~CLASS
        INTO CORRESPONDING FIELDS OF TABLE G_T_OBJECTS
        FROM INOB AS A INNER JOIN AUSP AS B
          ON A~CUOBJ = B~OBJEK AND
             A~KLART = B~KLART
             INNER JOIN KSSK AS C
             ON B~OBJEK = C~OBJEK AND
                B~KLART = C~KLART
             INNER JOIN KLAH AS D
             ON C~CLINT = D~CLINT
       WHERE A~OBJEK IN S_MATNR AND
             A~OBTAB EQ 'MARA'  AND
             A~KLART IN S_KLART AND
             B~ADZHL EQ '0000'  AND
             C~LKENZ EQ ' '     AND
             D~CLASS IN S_CLASS.
      CLEAR : G_T_KSML.
      REFRESH: G_T_KSML.
      SELECT CLINT IMERK KLART
       FROM KSML
       INTO CORRESPONDING FIELDS OF TABLE G_T_KSML
        FOR ALL ENTRIES IN G_T_OBJECTS
      WHERE CLINT EQ G_T_OBJECTS-CLINT.
      IF NOT G_T_KSML[] IS INITIAL.
        SORT G_T_KSML BY CLINT.
        SORT G_T_OBJECTS BY CUOBJ OBJEK  CLASS ATINN.
        LOOP AT G_T_KSML.
          READ TABLE G_T_OBJECTS WITH KEY ATINN = G_T_KSML-IMERK
                                          CLINT = G_T_KSML-CLINT
                                          BINARY SEARCH.
          IF SY-SUBRC NE 0.
            CLEAR: L_OBJECTS.
            READ TABLE G_T_OBJECTS WITH KEY KLART = G_T_KSML-KLART
                                            CLINT = G_T_KSML-CLINT
                                            BINARY SEARCH.
            IF SY-SUBRC = 0.
              MOVE-CORRESPONDING G_T_OBJECTS TO L_OBJECTS.
              CLEAR G_T_OBJECTS.
              G_T_OBJECTS-ATINN = G_T_KSML-IMERK.
              G_T_OBJECTS-KLART = G_T_KSML-KLART.
              G_T_OBJECTS-CLINT = G_T_KSML-CLINT.
              G_T_OBJECTS-CUOBJ = L_OBJECTS-CUOBJ.
              G_T_OBJECTS-OBJEK = L_OBJECTS-OBJEK.
              G_T_OBJECTS-CLASS = L_OBJECTS-CLASS.
              APPEND G_T_OBJECTS.
              CLEAR G_T_OBJECTS.
            ENDIF.
          ENDIF.
        ENDLOOP.
      ENDIF.
      DELETE ADJACENT DUPLICATES FROM G_T_OBJECTS
                                   COMPARING OBJEK KLART CLASS ATINN ATAWE.
      IF NOT G_T_OBJECTS[] IS INITIAL.
        SORT G_T_OBJECTS BY CUOBJ OBJEK  CLASS ATINN.
        CLEAR: G_T_MATNR,G_R_MATNR,G_T_CLASSDESC,G_T_CHARDESC,G_T_CABN,
               G_T_CAWNT.
        REFRESH: G_T_MATNR,G_T_CLASSDESC,G_T_CHARDESC,G_T_CABN,G_T_CAWNT..
        SELECT CLINT KSCHL
          FROM SWOR
          INTO CORRESPONDING FIELDS OF TABLE G_T_CLASSDESC
           FOR ALL ENTRIES IN G_T_OBJECTS
         WHERE CLINT EQ G_T_OBJECTS-CLINT AND
               KLPOS EQ '01'              AND
               SPRAS EQ SY-LANGU.
        IF NOT G_T_CLASSDESC[] IS INITIAL.
          SORT G_T_CLASSDESC BY CLINT.
        ENDIF.
        SELECT ATINN ATBEZ
          FROM CABNT
          INTO CORRESPONDING FIELDS OF TABLE G_T_CHARDESC
           FOR ALL ENTRIES IN G_T_OBJECTS
         WHERE ATINN EQ G_T_OBJECTS-ATINN AND
               SPRAS EQ SY-LANGU.
        IF NOT G_T_CHARDESC[] IS INITIAL.
          SORT G_T_CHARDESC BY ATINN.
        ENDIF.
        SELECT ATINN MSEHI
          FROM CABN
          INTO CORRESPONDING FIELDS OF TABLE G_T_CABN
           FOR ALL ENTRIES IN G_T_OBJECTS
         WHERE ATINN EQ G_T_OBJECTS-ATINN.
        SELECT ATINN ATWTB
         FROM CAWNT
         INTO CORRESPONDING FIELDS OF TABLE G_T_CAWNT
          FOR ALL ENTRIES IN G_T_OBJECTS
        WHERE ATINN EQ G_T_OBJECTS-ATINN AND
              ADZHL EQ '0000'            AND
              SPRAS EQ SY-LANGU.
        LOOP AT G_T_OBJECTS.
          AT NEW OBJEK.
            G_R_MATNR-MATNR = G_T_OBJECTS-OBJEK.
            APPEND G_R_MATNR TO G_T_MATNR.
          ENDAT.
        ENDLOOP.
      ENDIF.
      IF G_T_MATNR[] IS INITIAL.
        G_CLASS_NE = 'X'.
      ENDIF.
    ENDFORM.                    " f_get_objectnumber
    FORM F_GET_MAT_KLASS.
      DATA: BEGIN OF L_T_OBJECT OCCURS 0,
             OBJEK TYPE OBJNUM,
             MATNR TYPE MATNR,
            END OF L_T_OBJECT.
      DATA: L_OBJECTS TYPE TY_OBJECTS.
      CLEAR: L_T_OBJECT.
      REFRESH: L_T_OBJECT.
    * Fill the object number
      LOOP AT G_T_MAT INTO G_R_MAT.
        AT NEW MATNR.
          L_T_OBJECT-OBJEK = G_R_MAT-MATNR.
          L_T_OBJECT-MATNR = G_R_MAT-MATNR.
          APPEND L_T_OBJECT.
        ENDAT.
      ENDLOOP.
      CLEAR:G_T_OBJECTS,G_T_CLASSDESC,G_T_CHARDESC,G_T_CABN,G_T_KSML,
            G_T_CAWNT.
      REFRESH: G_T_OBJECTS,G_T_CLASSDESC,G_T_CHARDESC,G_T_CABN,G_T_KSML,
               G_T_CAWNT.
    * Get the material classification details
      SELECT A~CUOBJ A~OBJEK A~KLART B~ATINN B~ATZHL B~ATWRT B~ATFLV
             B~ATAWE B~ATFLB B~ATAW1 C~CLINT D~CLASS
        INTO CORRESPONDING FIELDS OF TABLE G_T_OBJECTS
        FROM INOB AS A INNER JOIN AUSP AS B
          ON A~CUOBJ = B~OBJEK AND
             A~KLART = B~KLART
             INNER JOIN KSSK AS C
             ON B~OBJEK = C~OBJEK AND
                B~KLART = C~KLART
             INNER JOIN KLAH AS D
             ON C~CLINT = D~CLINT
         FOR ALL ENTRIES IN L_T_OBJECT
       WHERE A~OBJEK EQ L_T_OBJECT-OBJEK AND
             A~OBTAB EQ 'MARA'  AND
             A~KLART IN S_KLART AND
             B~ADZHL EQ '0000'  AND
             C~LKENZ EQ ' '     AND
             D~CLASS IN S_CLASS.
      IF NOT G_T_OBJECTS[] IS INITIAL.
        SELECT CLINT IMERK KLART
          FROM KSML
          INTO CORRESPONDING FIELDS OF TABLE G_T_KSML
           FOR ALL ENTRIES IN G_T_OBJECTS
         WHERE CLINT EQ G_T_OBJECTS-CLINT.
      ENDIF.
      IF NOT G_T_KSML[] IS INITIAL.
        SORT G_T_KSML BY CLINT.
        SORT G_T_OBJECTS BY ATINN KLART.
        LOOP AT G_T_KSML.
          READ TABLE G_T_OBJECTS WITH KEY ATINN = G_T_KSML-IMERK.
          IF SY-SUBRC NE 0.
            CLEAR: L_OBJECTS.
            READ TABLE G_T_OBJECTS WITH KEY KLART = G_T_KSML-KLART.
            IF SY-SUBRC = 0.
              MOVE-CORRESPONDING G_T_OBJECTS TO L_OBJECTS.
              CLEAR G_T_OBJECTS.
              G_T_OBJECTS-ATINN = G_T_KSML-IMERK.
              G_T_OBJECTS-KLART = G_T_KSML-KLART.
              G_T_OBJECTS-CLINT = G_T_KSML-CLINT.
              G_T_OBJECTS-CUOBJ = L_OBJECTS-CUOBJ.
              G_T_OBJECTS-OBJEK = L_OBJECTS-OBJEK.
              G_T_OBJECTS-CLASS = L_OBJECTS-CLASS.
              APPEND G_T_OBJECTS.
              CLEAR G_T_OBJECTS.
            ENDIF.
          ENDIF.
        ENDLOOP.
      ENDIF.
      IF NOT G_T_OBJECTS[] IS INITIAL.
        SELECT CLINT KSCHL
          FROM SWOR
          INTO CORRESPONDING FIELDS OF TABLE G_T_CLASSDESC
           FOR ALL ENTRIES IN G_T_OBJECTS
         WHERE CLINT EQ G_T_OBJECTS-CLINT AND
               KLPOS EQ '01'              AND
               SPRAS EQ SY-LANGU.
        IF NOT G_T_CLASSDESC[] IS INITIAL.
          SORT G_T_CLASSDESC BY CLINT.
        ENDIF.
        SELECT ATINN ATBEZ
          FROM CABNT
          INTO CORRESPONDING FIELDS OF TABLE G_T_CHARDESC
           FOR ALL ENTRIES IN G_T_OBJECTS
         WHERE ATINN EQ G_T_OBJECTS-ATINN AND
               SPRAS EQ SY-LANGU.
        IF NOT G_T_CHARDESC[] IS INITIAL.
          SORT G_T_CHARDESC BY ATINN.
        ENDIF.
        SELECT ATINN MSEHI
        FROM CABN
        INTO CORRESPONDING FIELDS OF TABLE G_T_CABN
         FOR ALL ENTRIES IN G_T_OBJECTS
       WHERE ATINN EQ G_T_OBJECTS-ATINN.
        SELECT ATINN ATWTB
          FROM CAWNT
          INTO CORRESPONDING FIELDS OF TABLE G_T_CAWNT
           FOR ALL ENTRIES IN G_T_OBJECTS
         WHERE ATINN EQ G_T_OBJECTS-ATINN AND
               ADZHL EQ '0000'            AND
               SPRAS EQ SY-LANGU.
      ENDIF.
    ENDFORM.                    " f_get_mat_klass
    If useful reward.
    Vasanth

  • Standard BAPI or Function Module for FB01posting

    Hi Experts,
    My requirement is as follows.
    Invoice details would be sent across from Middleware to SAP and for which I have developed a Custom Remote Enabled Function Module. The Function Module needs to post the data using FB01 Transaction.
    I had planned for recording a BDC for FB01 and post the data, however, we are on the verge of getting upgraded from 4.7 to ECC 6.0. To avoid problems that we might face for change of screens in ECC 6.0, I would prefer using a BAPI or Function Module for FB01 posting, if available, instead of BDC.
    Data coming from Middleware are as follows.
    HEADER:
    BKPF-BLDAT :  Document Date
    BKPF-BUDAT : Posting Date
    BKPF-XBLNR: Reference (Invoice#)
    BKPF-BLART : Document Type
    BKPF-BUKRS : Company Code
    BKPF-BKTXT : DocHeader Text
    BKPF-WAERS : Currency
    LINE ITEM:
    BSEG-LIFNR : Vendor no
    BSEG-WRBTR - Total amt -Debit/Credit -Vendor
    BSEG-ZUONR : Assignment field
    BSEG-EMPFB : Alternative Payee
    BSEG-UZAWE : Payment Method Supplement
    BSEG-ZTERM : Pmt terms
    BSEG-KOSTL : Costcenter
    BSEG-HKONT : GL AccountNumber
    BSEG-WRBTR : Amount for GL
    BSEG-SGTXT : Line item text
    The Vendor Line Item would be one where as GL line items could me more than one.
    Can any of you suggest me a standard BAPI or Func Mod?
    Points will be awarded for valuable inputs.
    Thanks to all!!!!

    You can use RFBIBL00 program for FB01 postings. Go through the program help on how to use this program.
    This program requires a file to be on application server in a certain format.
    You may also refer the program RFBIBLT0 on how the file format should be.
    Hope this helps.
    Thanks,
    SKJ

  • Bapi or function module for Tcode F-54

    Hi,
    I need Bapi or Function moudle for tcode F-54. I am developing interfaces. I have to clear the the advance amount against an invoice.
    Regards,
    Dhanunjaya Reddy.

    Hi,
    Check the below userexits
    F050S001            FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment
    F050S002            FIDCC1: Change IDoc/do not send
    F050S003            FIDCC2: Change IDoc/do not send
    F050S004            FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send
    F050S005            FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
    F050S006            FI Outgoing IDoc: Reset Clearing in FI Document
    F050S007            FIDCCH Outbound: Influence on IDoc for Document Change
    F180A001            Balance Sheet Adjustment
    FARC0002            Additional Checks for Archiving MM Vendor Master Data
    FEDI0001            Function Exits for EDI in FI
    RFAVIS01            Customer Exit for Changing Payment Advice Segment Text
    RFEPOS00            Line item display: Checking of selection conditions
    RFKORIEX            Automatic correspondence
    SAPLF051            Workflow for FI (pre-capture, release for payment)

  • Are there BAPI or function modules for creating posting address ?

    Are there BAPI or function modules for creating posting address and budget address? We are currently use BDC program and T code FMBSPO_MULT (Posting address) and T code FMBSBO_MULT(budget address), but it is a very slow processing because we have thousands of funds centers.
    Your input will be appreciated!
    Regards,
    Fisher Li

    Li,
    You will have, may be more answers in the technical forum :
    https://www.sdn.sap.com/irj/sdn/collaboration
    Regards
    Valérie

  • Any Bapi or Function module for transaction CA22

    Hi experts,
    Is there any Bapi or Function module for transaction CA22(Change Rate Routing).
    Thanks,
    Yogesh

    Hi,
    The following r the Enhancement's and BADI'S fro CA22
    Enhancement
    CMDI001                                 Determine explosion control for BOM
    CPAU0001                                Enhancement for Authorization Check in Task Lists
    CPDO0001                                Test units of measure for reference operation set
    CPRE0001                                Enhancement for Reorgnization Checks in Task Lists
    XCZD0004                                Extend authority check for the material-recipe allocation
    Business Add-in
    CEWB_OPR_MENU_EXTERN                    Menu Extensions in the Engineering Workbench
    CEWB_OPR_MENU_INTERN                    Menu Extensions in the EWB (SAP Internal)
    CEWB_SEQ_MENU_INTERN                    Menu Extensions in the EWB (SAP Internal)
    CEWB_TSK_MENU_EXTERN                    Menu Extensions in the Engineering Workbench
    CEWB_TSK_MENU_INTERN                    Menu Extensions in the EWB (SAP Internal)
    CEWB_TSK_SCREENS                        Screen Extensions for Task Lists in the EWB
    CEWB_TSK_UPDATE                         Task List Maintenance and Checks in the EWB
    CP_DIG_SIGNATURE                        Digital Signature for Routings
    EWB_SELECTION                           Selection Within the Engineering Workbench
    ROUTING_EXIT                            User Exits for Routings
    CEWB_MTK_MENU_INTERN                    Menu Extensions in the EWB (SAP Internal)
    CEWB_MST_MENU_INTERN                    Menu Extensions in the EWB (SAP Internal)
    CEWB_MST_MENU_EXTERN                    Menu Extensions in the Engineering Workbench
    CEWB_ITM_MENU_INTERN                    Menu Extensions in the EWB (SAP Internal)
    CEWB_ITM_MENU_EXTERN                    Menu Extensions in the Engineering Workbench
    CEWB_GEN_MENU_INTERN                    Menu Extensions in the EWB (SAP Internal)
    CEWB_GEN_MENU_EXTERN                    Menu Extensions in the Engineering Workbench
    CEWB_COM_MENU_INTERN                    Menu Extensions in the EWB (SAP Internal)
    CEWB_COM_MENU_EXTERN                    Menu Extensions in the EWB (SAP Internal)
    CEWB_CHA_MENU_INTERN                    Menu Extensions in the EWB (SAP Internal)
    CEWB_CHA_MENU_EXTERN                    Menu Extensions in the Engineering Workbench

  • Steps for Variant Configuration

    Hi Gurus,
    Can any body tell me step by step procedure for variant configuration.
    My e-mail id. <REMOVED>
    Regds.......
    Sumit

    Hi Sumit,
    Variant configuration is for manufacturing complex products. The manufacturer always has to offer new variants of its products. Often, new variants are created by modifying existing product designs as you process the order. The important thing is to react quickly to customers' requirements.
    The customer determines the features of the product. A customer buying a car, for example, can choose the features of the car and combine these features as required.
    The product configurator improves information exchange between sales, engineering, and production. Variant configuration helps the customer or salesperson to put together specifications for the product and ensure that the product can be produced from these specifications. It also ensures that production costs do not overstep the mark.
    Procedure -
    Create a Material - KMAT type with Item category (002)
    Create Characteristics in CT04 - Zbike, where in values mention the Color of the bile like Red, Blue etc
    Create another characteristics in CT04 - ZPrice, where directly go the additional data tab and maintain the table SDCOM and field VKOND (ABAP Dictionary it will ask for)
    Assign these two characteristics to a Class in CL01 - ZBikeclass (Type 300) in characteristics tab page.
    Then go to CU41 Configuration profile select the material and enter the description click on the class assignment i.e. assign Zbikclass.
    Now go back to CT04 - enter Zbike -go to values- select Red- go to extras - Other Dependencies - Select Procedure enter in front 10 write - $self.ZPrice='Red' and save
    Now go back go to extras - Other Dependencies - assignments and assign relationship ( by default it will come just save)
    Now select Blue- go to extras - Other Dependencies - Editor - Select Procedure enter in front of 10 write - $self.ZPrice='Blue' and save
    Now go back go to extras - Other Dependencies - assignments and assign relationship ( by default it will come just save)
    Now go to VK11 - Enter VA00 (Condition) (For Std RVA001 Pricing Procedure) - enter variant Red and Blue give the rates accordingly and create the sales order.
    Variant configuration is for manufacturing complex products. The manufacturer is
    always having to offer new variants of its products. Often, new variants are created
    by modifying existing product designs as you process the order. The important thing
    is to react quickly to customers' requirements.
    The customer determines the features of the product. A customer buying a car, for
    example, can choose the features of the car and combine these features as required.
    The product configurator improves information exchange between sales, engineering,
    and production. Variant configuration helps the customer or salesperson to put
    together specifications for the product and ensure that the product can be produced
    from these specifications. It also ensures that production costs do not overstep the
    mark.
    Integration
    Variant configuration is integrated in the following applications:
    a.. CA Classification
    b.. LO Material Master
    c.. PP Bill of Material
    d.. PP Routings
    e.. PP-PI Master Recipes
    f.. SD Sales
    g.. SD Conditions
    h.. MM Purchasing
    i.. CO Costing
    j.. PP Material Requirements Planning (MRP)
    k.. PP Production Orders
    You can configure the following objects:
    a.. Materials
    b.. Standard networks in the Project System.
    c.. PM General maintenance task lists
    d.. Model service specifications
    Features
    You do not need to create a separate material for each variant of a product in your
    company. You can use one configurable material to cover all variants. You create a
    super BOM and a super routing for this material, containing all the components and
    operations for producing all variants of the product.
    To define the features of a configurable material, you use characteristics. To
    enable you to use characteristics to configure a material, you assign the material
    to a class of class type 300. Possible characteristics of a car, for example, are
    model, country, color, and engine. The customer can choose from among different
    options for each characteristic (values).
    The only limitations are combinations of features that are not possible for either
    technical or marketing reasons. You cannot combine all types of car engine with all
    types of transmission, for example, or certain types of upholstery are only
    available for more expensive models. In Variant Configuration, you use dependencies
    to control this. This prevents combinations of options that are not allowed.
    Dependencies also select exactly the right BOM components and operations to produce
    a variant.
    Each configurable object must have a configuration profile. The configuration
    profile for a material controls the configuration process in the sales order.
    You can make the price of a variant dependent on the characteristic values assigned
    (Pricing). You can use variant conditions to define surcharges and discounts for a
    variant.
    For variants that are required frequently, you can create material variants, which
    can be produced without a sales order and kept in stock. When you receive a sales
    order, you can check whether the variant required is in stock, so that you can
    deliver immediately.
    Pl go thr below links:
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/LOVC/LOVC.pdf
    http://sap-img.com/sap-sd/steps-for-sd-variant-configuration.htm
    Please Reward If Really Helpful,
    Thanks and Regards,
    Sateesh.Kandula

  • Is there a BAPI or function module for price condition?

    Hi experts,
      I just want to create price condition info record to purchase order.
      we create price condition through tcode MEK1/MEK2/MEK3.
      it is more different from tcode ME11. it doesn't need to input purchase group, tax code etc.
      but I can't find the BAPI or function module for this tcode.
      does anyone know it?
      thanks in advance.
      looking for your reply.
    jack

    Please check this answered link:
    Re: Bapi_prices_conditions does not delete old condition properly
    Re: bapi for condition recaords
    Edited by: Afshad Irani on Jun 13, 2010 3:38 PM

  • Stock of batch by characteristics for variant configuration

    sirs..
    can i check stock of batches by characteristics for variant configuration?

    Have you loked at the batch cockpit? BMBC?
    Here you can select batches by characteristic values  and then show stock.
    Craig

  • How Forecast Release and Consumption for Variant Configuration

    Hi experts,
    we are planning in our project how to Forecast Release and Consumption for Variant Configuration
    can you explain me
    Regards,
    babu

    Hi Sivaramakrishna,
    We tried the same but what is complicating is having "market" attribute of customer in R/3 and planning forecast in DP at the "market" level. There is no customer as such in DP. THere is only market. We could release forecast at market leve using "consumption group". But I am trying to figure out how to have the sales orders consume forecast at the location, product and market level in SNP.
    Today we have our sales orders to consume forecast in SNP at location-product level. we are trying to take this to "location-product-market" level in SNP.
    I think we need to use some settings for characteristic based or variable consumption I think...but not clear.
    Any help is appreciated.
    Thanks for taking time to reply.

  • BAPI for variant configuration

    Hi all,
    I need a BAPI which loads Variant configuration information in sales order. I beleive BAPI_SALESORDER_CREATEFROMDAT2 can be used for this purpose, but I need help in finding the required structures and the fields that need to be used for this purpose. Can any one provide me the information ASAP?
    Regards,
    Asha.

    Please use FM BAPISDORDER_GETDETAILEDLIST to understand what structures need to be filled for VC.
    Example code:
      ls_view-header     = 'X'.
      ls_view-item       = 'X'.
      ls_view-sdschedule = 'X'.
      ls_view-configure  = 'X'.
      ls_view-text       = 'X'.
      call function 'BAPISDORDER_GETDETAILEDLIST'
           exporting
                i_bapi_view           = ls_view
           tables
                sales_documents       = lt_docin
                order_headers_out     = lt_hdrout
                order_items_out       = lt_itmout
                order_schedules_out   = lt_schout
              order_partners_out    = lt_prtout
                order_textheaders_out = lt_hdtxt
                order_textlines_out   = lt_txtli
                order_cfgs_cucfgs_out = lt_cucfgout
                order_cfgs_cuvals_out = lt_cuvalout
                extensionout          = lt_parex.

  • BAPI for Creating Sales Order For Variant Configuration Materials

    Dear Gurus,
    Before posting this thread, we have referred many SDN threads, OSS notes and other sites for any sort of help..but no success..All threads and other referrals are not much of help as they are kind of incomplete( Perhaps, we are unable to understand them..no offense).
    Few checked threads on this subjects are:
    http://scn.sap.com/thread/34590
    http://scn.sap.com/thread/851070
    http://scn.sap.com/community/abap/blog/2014/04/23/update-vc-variant-configuration-data-using-standard-bapi-in-sales-order
    http://scn.sap.com/community/abap/blog/2014/07/15/creating-orders-with-variant-configured-items-using-bapisalesordercreatefromdat2
    http://scn.sap.com/community/abap/blog/2014/04/23/update-vc-variant-configuration-data-using-standard-bapi-in-sales-order
    http://scn.sap.com/thread/120144
    OSS: 549563
    Well, we're using the BAPI (BAPI_SALESORDER_CREATEFROMDAT2) which creates the sales order successfully but without the characteristic values in line items.
    We're passing data to the following parameters - ORDER_CFGS_REF, ORDER_CFGS_INST, ORDER_CFGS_VALUE to create the variant config but not able to see it getting created.
    Pls find attached BAPI coding document for your reference.
    If you could throw any light on this issue will be of great help for us.
    Thank You in Advance!!!
    Reg,
    Jagan-SD.

    Jagan nath
    Try below.
    you would need miimum of 3 segments to pass variant config data using this bapi
    ORDER_CFGS_REF for each configurable item
    POSEX = ITEM #
    CONFIG_id , root_id - Start with 1 and increment it for each configurable line item
    ORDER_CFGS_INST
    CONFIG_ID - from above
    INST_ID - Start with 1 and increment it for each configurable line item
    OBJ_TYPE = "MARA'
    CLASS_TYPE = '300'
    OBJ_KEY = material #
    ORDER_CFGS_VALUE
    CONFIG_ID for the item, INST_ID for the item
    charc for characteristic value
    VALUE for characteristic value
    Reference thread
    How to Fill Configuration Data in BAPI BAPI_SALESORDER_CREATEFROMDAT2
    Hope it will solve your issue.
    Thanks
    Ritesh

  • Bapi for creation of quotation for variant configuration

    Hi all,
    I have done a BAPI to create a quotation with variant configuration.
    I am not getting the right field in the structure of the bapi item to upload the required quantity of the variant material.
    The value for the quantity is getting as 0.
    Can you please help to upload the quantity in the variant item.
    any ideas?
    Thanks and Regards,
    Kiran.

    i am not clear what youn are looking for.
    Say material X is KMAT,
    Material Y you have created as a variant of X by entering the conf material X in MRP3 view and setting the char values
    Material Z you have created as a variant of X by entering the conf material X in MRP3 view and setting the char values different than Y
    Now Y and Z are material variants of X, now tell me exactly what you are looking for?

  • Stock Report for Variant configuration

    Hi Experts,
    Request your help to get the following information.
    We have a material which are packed in to multiple packing modes. Inorder to ease the selection of packing mode in sales order, we are thinking of introducing variant configuration. I.e all the packed materials will be created as variants in SAP and the sales order will be created for the configurable material. When the proper characteristic is selected the material will be automatically replaced by the variant.
    But the requirement is to see the stocks of all the varaints along with the configurable materials as the header. For eg. Material A is having variants A1, A2 & A3. The sales quantites are 25, 30 and 35 respectively.
    In any of the standard report, can I see the sales of these along with the total sales of config mtl A as 90
    Please guide.
    Thanks & Regards
    Prathib

    Hi Prathib,
    On my last project, we define material code with the same code at the beginning like you do A1 A2 A3 (for variants) and AC for example for configurable material. Then for stock report you can use MB52, in material field just write A* it will show you stock from material start with code A. But make sure you define material type and material group for selection wisely. It works for me. Now depends on how well you define your structure.
    Regards,
    Arman

  • Error message while creating configurable material for variant configuration.

    Dear All,
    I want to create configurable material for the purpose of variant configuration. When trying to create configurable material using mm 01 or mm k1, it is displaying an error message that internal number assignment is not possible for the material type configurable materials as well in using external number also. Can anyone specify the steps to be done in creating the configurable material. Thank you all.
    Regards
    Akula Sivaji Kumar Madhu Kiran

    If you want to set these material type to another group (Which has a internal number and external number range), then you can do it.
    In MMNR, Click on the Edit Group.
    Then select the material type and click select element.
    Then mark a tick option in another group and then press Element/Group.
    Then you can see the material type will come under this group.
    Now save your entry, and create a material with this material type.

Maybe you are looking for

  • How to select data for nested object (Object based on another objects)

    Hi, I have written the following code, but I am not able to fetch data as I fetch from normal table, Plz help. Following is the sample code - CREATE TYPE A_OBJ IS OBJECT ( A_NAME VARCHAR2 (100), A_DESC VARCHAR2 (100) CREATE TYPE A_TAB IS TABLE OF A_O

  • Install from USB external HD

    Hi all, I'm installing Snow Leopard from a USB hard disk because the CD drive in my machine is dead. The install runs for about 10 minutes then gives me an error that states the CD is dirty. This is impossible because I'm installing from an external

  • Window 10 build 10041 does not work with Intel 82579V Gigabit Ethernet on ASUS motherboard

           I originally posted this question here: answers.microsoft.com/en-us/insider/forum/insider_wintp-insider_update/window-10-build-10041-does-not-work-with-intel/6729892f-83aa-4822-b20a-ea84f4fd06c7 and was asked to post it on this forum... I upda

  • Capturing data acquisition frames reliably at 100 hz using serial, how?

    Hi All, I am completing development of a 14 channel, 10 bit resolution, pic based data acquisition circuit. It transmits frames of 41 bytes (currently) at 100hz using serial. The embedded code functions satisfactorily. I can see data ok using hyperte

  • File attachments and Acrobat Reader

    I have prepared a PDF form that needs an associated Word document to be filled in as well. At the moment, I have done this by providing a hyperlink button on the PDF form and this works fine. However, it requires that both the PDF form and the Word f