Inclusive Free Goods without Item Generation

Can anbody explain 'Inclusive Free Goods without Item Generation' with an example.
Thanks in advance
Sunit

hi,
Prerequisites
In the free goods master record in the Free goods category field, select free goods category 3 (inclusive free goods without item generation).
Features
In free goods master data maintenance, this new free goods type is dealt with in the same way as the inclusive free goods procedure described above.
In order processing, you can not create order sub-items.
For pricing in the main item, you need to create a discount. The standard system provides pricing procedure RVAA01 and condition type NRAB.
Condition type NRAB is set up as follows:
It does not determine a discount from a condition record. It uses condition basis formula 029 in the pricing procedure to determine a discount from the free goods factor.
The condition receives the new pricing requirement 059 in the pricing procedure. This requirement checks whether free goods have already been determined.
The condition type receives condition category f. This condition category ensures that the condition is redetermined every time the quantity is changed, since this can also mean a change to the free goods quantity.
regards
sadhu kishore

Similar Messages

  • How to realize the scenario of Inclusive Free Goods without Item Generation

    I include the condition type NRAB in my pricing procedure, but it shows me that this condition ignored(requirement 059 not fulfilled).
    why?

    Hi,
    Prerequisites
    In the free goods master record in the Free goods category field, select free goods category 3 (inclusive free goods without item generation).
    Follow the foll. procedure:
    In free goods master data maintenance, this new free goods type is dealt with in the same way as the inclusive free goods procedure described above.
    In order processing, you can not create order sub-items.
    For pricing in the main item, you need to create a discount. The standard system provides pricing procedure RVAA01 and condition type NRAB.
    Condition type NRAV is set up as follows:
    It does not determine a discount from a condition record. It uses condition basis formula 029 in the pricing procedure to determine a discount from the free goods factor.
    The condition receives the new pricing requirement 059 in the pricing procedure. This requirement checks whether free goods have already been determined.
    The condition type receives condition category f. This condition category ensures that the condition is redetermined every time the quantity is changed, since this can also mean a change to the free goods quantity.
    regards,
    Siddharth.

  • Inclusive free goods sale without item generation

    Dear All,
    I have done successfully free goods sale exclusive with item generation but facing problems with inclusive & inclusive without item generation, in VBN1  for NA00 I have maintained following.
    material code - Min Qty - 5 - from - 10 PC - are free goods 1 PC- calc rule - 1
    for inclusive and exclusive both in VA01 showing extra lines for freee goods (sale as exclusive)
    I have searched at http://help.sap.com/saphelp_470/helpdata/en/06/629ee9fb9c11d199ee0000e8a5bd28/content.htm
    here it is mentioned that -"In the free goods master record in the Free goods category field, select free goods category 3 (inclusive free goods without item generation)."
    But I have not seeing any field in VBN1 t code where I can maintained free goods category as 3. Can anyone revert how I can maintained this free goods category for inclusive free goods without item generation.
    regards,
    sp shukla

    In VBN2 Maintain (scroll right to get all field)
    - calc. rule (Calculation type for determining free goods quantity) as 2(Unit reference).
    FYI, Others are 1 - Pro rata & 3     - Whole units
    - free goods category 3 - Inclusive rebate (w/o item generation; only for sales).
    And coorespondingly maintain Free Goods delivery control.
    Regards
    JP

  • Free goods determination-Without Item generation

    Hi,
    I have read the below link,
    Inclusive Free Goods without Item Generation - Basic Functions and Master Data in SD Processing (SD-BF) - SAP Library
    I am using ECC 6.0 EHP 5,we dont have dont have condition type NRAV.
    Kindly advise me any patch have to be made for it or i have to create the condition type by my own.
    Pradeep

    Hi Pradeep,
    Please refer to the SPRO path to see whether you are able to locate the condition type: Please note that the Usage is : N for the free goods.
    Please check and revert.
    Regards

  • Free Goods sub item split in two line items

    Sir,
    I give free good along with  sale item ,but i want free goods quantity split in two lines ,so how I do  that?
    Please help .

    Hi,
    Free goods has the following limitations:
    - Free goods can only be supported on a 1:1 ratio. This means that an order item can lead to a free goods item. Agreements in the following form are not supported: u2018With material 1, material 2 and material 3 are free of chargeu2018 or u2018If material 1 and material 2 are ordered at the same time, then material 3 is free of chargeu2018.
    - Free goods are not supported in combinations with material structures (for example, product selection, BOM, variants with BOM explosion).
    - Free goods are only supported for sales orders with document category C (for example, not quotations).
    - Free goods are not supported for deliveries without reference to a sales order.
    - Free goods cannot be used in make-to-order production, third-party order processing and scheduling agreements.
    - If you defined a free goods for variants in a generic article (only SAP Retail), you can only process the variants in the purchase order and goods receipt individually (as single articles). In other words, you cannot process them using the generic article matrix.
    Not all Sales Order can be used for free goods determination.  You have to check the SD document category if it does not work.  Only category 'C' are supported.  Check transaction VOV8.
    Assume that you want to configure an inclusive FREE goods routine.  Customers must order a minumum quantity of 5 before any free goods can be assign.  For every quantity of 3, the customer will be given 1 free goods.
    WC07 - Maintain Number Range Intervals
    e.g.
    No   From number       To number
    01    0000010000         0000099999
    IMG -> Sales and Distribution -> Basic Functions -> Free Goods ->
    Maintain Access Sequences
    New Entries
    Acsq
    NA00
    Save
    Maintain Condition Types
    New Entries
    Ctyp   Name             AcSq
    FREE  Free Goods    NA00
    Save
    Maintain Pricing Procedures
    Procedures
    New Entries
    Procedure   Description
    FREE           Free Goods
    Select Procedure FREE then click Control data
    Step   Cntr   Ctyp
    10       10      FREE
    V/N6 - Activate Free Goods Determination
    Assign Order Type OR with Document Procedure A with Procedure FREE
    VBN1 - Create free goods determination
    e.g.  FREE inclusive
    Material  Min qty   From   are free good   Calc Rule   Free Goods
                           5           3                1                      1                1
    In this example, if you create a Sales Order for a quantity of 10, SAP will prompt you 7 as the customer order qty and 3 will be free.  Customer only pay for the 7 quantity
    Hopefully this will help to resolve the answer.
    Thanks & regards,
    Pankaj Mahajan
    Edited by: PM on Apr 13, 2010 10:28 AM

  • Inclusive Free Goods Determination ?

    Hi,
       Can someone dend me the config. steps for inclusive free goods determination .
    Regrds,
    Binayak

    dear B B
    please gothough this
    FREE GOODS:
         It can be configure in SAP by following two methods
    A)     Manually          B)     Automatically
    A) Manually:     
    By specifying higher level item category for a line item, we can determine free goods as a free of charge items during sale order processing.
    B) Automatically:     
    System proposes free of goods items automatically in the sale order. In automatic free goods configuration system follows two methods
         a) Exclusive          b) Inclusive
    Exclusive:
    System configures free goods in exclusive option by free goods quantity is going to be excluded in order quantity ex: 10 items, line item is free, then system configures free goods as a “ten plus one”.
    Inclusive:
    System configures free goods in inclusive option by free goods quantity is going to be included in order quantity ex: for 10 items, one item is free, and then system configures free goods as “Nine plus one”
    Note: In exclusive method, other items can be given as a free of charge items for order item
    Configuration steps:
    Inclusive:
    SAP follows condition techniques to configure free goods automatically
    Maintain pricing procedure:
    IMG  SD  Basic functions  Free goods   Condition technique for free goods  maintain pricing procedure
    Choose standard pricing procedure “NA0001”-   free goods (SD) and click on copy as button and re-name it.
    Condition type – NA00; access sequence -- NA00
    Step 2:     Activate free goods determination:
    IMG  SD  Basic functions  Free goods   Condition technique for free goods  Activate free goods determination
    Go to new entries and specify our sales area, specify document PP- as A, customer PP as ‘one’ and assign free goods procedure ex: NA0001.
    Step 3:     control free goods pricing:
    Control pricing for free goods item category
    Choose item category “TAN” and specify the pricing as a “X” (pricing standard)
    Choose item category “TANN” and specify the pricing as “B” (100% discount)
    Step 4:  Maintain condition type for 100 % discount:
         Choose condition type R100 – (100% discount)
    Step 5: Maintain pricing procedure for pricing:
    Choose our PP from position button , select it and click on control data icon and include condition type “R100” between steps of discounts & specify requirement = 5 and specify item no: 28 as a 100% discount in alternative formula for condition base value (AltcBV)
    The requirement = 55 can be assign to condition type R100. If the user wants to look both
    Revenues and sales deductions for the free item since the product that we are going to give as a free of charge item can be sold separately in same sales order the  item category of free goods (TANN) has the pricing value as a “B” then the system calculate value of free goods as 100 % discounts . As we discussed above the same material (that is going to be given as a free of charge item). Some times the same item is going to be given as a normal item, then system calculate price for normal item, system item ( free of charge item ) so here to perform this calculation we have to assign requirement = 55  for condition type “R100”
    Alternative Condition Base Value   = (100% discount)
    Condition type R100 should be taken as “0” value the formula 28 calculate condition type R100 values as a “0”
    Set Transfer of cost to maintain (copy and control)
    IMG  SD  Basic functions  Free goods   Control free goods pricing  Set transfer of cost to maintain (copy control)
    Copy control is a concept by which the system copies the data from source document to target document.
    Choose billing type as F2 and delivery document type “LF”,
    Select it & click on item icon & choose item category TAN, click on details icon and
    Click on display-change icon and choose item category “TAN” again select it & click on details icon and check cumulate cost.
    Cumulate cost controls whether the cost value (VPRS) is to be copied from relevant for sub-item into main items sub-item cost are not relevant for billing. Save & exit
    Maintain copying control:
    IMG  SD  Basic functions  Free goods Control free goods pricing  Maintain copy control
    We maintain copying control at item level category for free goods. In this field, we can control whether the free goods should also be transferred when we copy from one document to another document.
    Choose source document type as   a “QT” & target document type as a “OR” &
    Select it & click on item control button under dialogue structure
    Choose AGN item category from position button & click on display or change button, again click on AGN & click on details icon and
    Checks re-explode structure/ free goods (this indicator controls whether the free goods are coped from source document to target documents or determined again.)
    Save and exit.
    Maintain condition records for free goods:
    Logistics  SD  Master data   Conditions   Free goods—VBN1 (create)
    --Specify condition type NA00 & specify sales org. distribution channel, customer number, valid     periods and
    --Chose option as inclusive.
    --Specify the material number and
    --Specify the minimum order quantity,
    --Specify the quantity from which the free goods should be applied
    --Specify the unit of measure and
    --Specify free goods (are free goods) as a one.
    Calculation procedure:
    We can specify the routines for calculation procedure as a ‘A’-   (1- pro- rata- proportionate)
    A) Pro-rata:
    Ex: if the customer places order for 100 cases of material “A”, that customer receives “20” cases of same material is free. That is the business can say that buy 100 and get 20.
    If customer orders for 162 cases, then the system automatically calculate 32 cases as a free of cost.  162 *20/100 = 32.
    “B”- Unit of reference:          
    When customer order for 100 cases of material A , then the customer receives additional 20 cases of A as a free of goods items that is the business can sign  that buy 100 and get 20 free, by inventing 20 free for every full of 100 cases.
    If the customer places order for 162, then system automatically grants only 20 cases.
    Formula:     100*20/100 = 20
    “C”- Whole Units:     
    When customer places order for 100 cases of material of A, then customer receives additional 20 cases of material A that is business can say that buy 100 and get 20 free of charge items.
    If customer order for increment of 100 that is ex: for 152 items, he get only 20 . If place the order 200 items, the he gets 40 that inclusive.
    Condition records for exclusive:
    --Specify the discount type NA001 &
    --Click on exclusive option and
    --specify the sales organization, distribution channel, customer number, validity periods and materials, minimum quantity, order quantity, unit of measure, and calculation procedure, free goods and
    --Specify additional material free goods (if other goods are going to be given as free of charge item) save it and exit.
    --Go to VA01 and raise the sales order for inclusive and exclusive and see the free goods effects
    Condition Type: ‘NRAB’ free goods; requiremet-55; AltCBV-29(only for inclusive)
    When the customer doesn’t want physically fee goods and the free goods price should be deducted from total price ten we can use condition type NRAB, which hides free goods line item in the sales document
    Settings:
    Pricing for inclusive free goods w/o item generation
    --Choose our pricing procedure
    -- Include condition type ‘NRAB’ with requirement – ‘59’ and alternative formula for condition base value- ‘29’ between discount condition steps.
    --Go to VBN1, maintain condition record for free goods with Inclusive method and make sure that ‘free goods’ category should be ‘3’( inclusive rebate w/o item generation)
    --save it
    --Go to VA01, raise the sales order and check ‘NRAB’ condition type effect.
    Requirement 59:     
    We have to assign requirement 59 to the condition type NRAB. If the customer buys 100 cases of product “A” then we receives 10 cases of product free.
    If the user would not like the additional like items in the sales order for free goods rather than he discount of 10 cases be represented in the same line item as the other 90 cases. If the free goods discount should not applied as credit for return that doesn’t make reference previous discounts.
    Alt formula for condition base value-29:     
    The condition type NRAB is to be assigned with 29 formulas to support inclusive free goods agreements where the user would have to apply the discount to the order item rather than having a sub-item generated for the free quality. Ex: the customer having a free sub-item generated by the system to represent the 10 free cases. The user could like to have a discount applied to the 100 cases like item equal to the value of the 10 cases.
    Note: Free goods can only be configuring on only document type “C” that means. We can’t configure free goods inquiries in quotations.
    rewards pls
    siva

  • Inclusive Free Goods Return with Reference

    Hi Gurus!
    Could you help me with my question below
    We are tring to create a sales order return with reference to a billing document. This billing document has two items where one is a standard item and the other is a inclusive free goods item.
    Example:
    1            AAA

    Hi
    When you have creating the sales order  with reference to billing document the items will be copied into the return order without any changes
    You can check the controls in the copy control VTAF
    Regards
    Damu

  • Sales Orders line item quantity getting Zero after free good line item

    Hi experts,
    i am creating sales order using BAPI  BAPI_SALESORDER_CREATEFROMDAT2   sales order having some free goods material  and line item after free goods line item having quantity zero.
    for example A B are  materials, A having free goods a1.  when SO  having 3 line items 10 for A ,line item  20 for a1 and line item 30 for B . But line item 30 having quantity zero.
    find code below and advice .
    lwa_ord_head_in-doc_type       = 'ZSO'.
        lwa_ord_head_in-sales_org      = '1000'.
        lwa_ord_head_in-distr_chan     = '10'.
        lwa_ord_head_in-division       = '10'.
        lwa_ord_head_in-req_date_h     = lwa_rof_s-date_del.
    *Order Header Update
        lwa_ord_head_inx-doc_type       = 'X'.
        lwa_ord_head_inx-sales_org      = 'X'.
        lwa_ord_head_inx-distr_chan     = 'X'.
        lwa_ord_head_inx-division       = 'X'.
        lwa_ord_head_inx-req_date_h     = 'X'.
        lwa_ord_partners-partn_role  =  'AG'.
        lwa_ord_partners-partn_numb  =  lwa_rof_s-lease.
        APPEND lwa_ord_partners TO lt_ord_partners.
        IF lwa_rof_s-del_addr IS INITIAL.
          lwa_ord_partners-partn_role  =  'WE'.
          lwa_ord_partners-partn_numb  =  lwa_rof_s-lease.
          APPEND lwa_ord_partners TO lt_ord_partners.
        ELSE.
          lwa_ord_partners-partn_role  =  'WE'.
          lwa_ord_partners-partn_numb  =  lwa_rof_s-lease.
          APPEND lwa_ord_partners TO lt_ord_partners.
        ENDIF.
        lt_rof_it_t = lwa_rof_s-zsd_rof_it_t.
        LOOP AT  lt_rof_it_t INTO lwa_rof_it_s.
          lwa_ord_items_in-material = lwa_rof_it_s-matnr.
          lwa_ord_items_in-plant = lwa_rof_s-plant.
          lwa_ord_items_in-target_qty = lwa_rof_it_s-qty.
          lwa_ord_items_in-comp_quant = lwa_rof_it_s-qty. "added on 12/29
         lwa_ord_items_in-target_qu = 'EA'.
         lwa_ord_items_in-t_unit_iso = 'EA'.
          APPEND lwa_ord_items_in TO lt_ord_items_in.
          lwa_ord_items_inx-material = 'X'.
          lwa_ord_items_inx-plant = 'X'.
          lwa_ord_items_inx-target_qty = 'X'.
          lwa_ord_items_inx-comp_quant = 'X'.
         lwa_ord_items_inx-target_qu = 'X'.
         lwa_ord_items_inx-t_unit_iso = 'X'.
          lwa_ord_items_inx-updateflag = 'I'. "'U'
          APPEND lwa_ord_items_inx TO lt_ord_items_inx.
         ** Schedule Line Information
          lwa_schedule_lines-itm_number = '000010'.
         lwa_schedule_lines-sched_line = '0003'.
          lwa_schedule_lines-sched_line = 'X'.
          lwa_schedule_lines-req_date   = lwa_rof_s-date_del.
          lwa_schedule_lines-date_type  = '1'.
          lwa_schedule_lines-req_qty    = lwa_rof_it_s-qty.
          APPEND lwa_schedule_lines TO lt_schedule_lines.
         lwa_schedule_lines_x-itm_number = '000010'.
         lwa_schedule_lines_x-sched_line = '0003'.
          lwa_schedule_lines_x-updateflag = 'I'.
          lwa_schedule_lines_x-sched_line = 'X'.
          lwa_schedule_lines_x-req_date   = 'X'.
          lwa_schedule_lines_x-date_type  = 'X'.
          lwa_schedule_lines_x-req_qty    = 'X'.
          APPEND lwa_schedule_lines_x TO lt_schedule_lines_x.
        ENDLOOP.
        CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
          EXPORTING
      SALESDOCUMENTIN               =
            order_header_in               = lwa_ord_head_in
            order_header_inx              = lwa_ord_head_inx
      SENDER                        =
      BINARY_RELATIONSHIPTYPE       =
      INT_NUMBER_ASSIGNMENT         =
      BEHAVE_WHEN_ERROR             =
      LOGIC_SWITCH                  =
      TESTRUN                       =
      CONVERT                       = ' '
       IMPORTING
         salesdocument                 = lwa_saledocu
       TABLES
         return                        = lt_return
         order_items_in                = lt_ord_items_in
         order_items_inx               = lt_ord_items_inx
         order_partners                = lt_ord_partners
         order_schedules_in            = lt_schedule_lines
         order_schedules_inx           = lt_schedule_lines_x
      ORDER_CONDITIONS_IN           =
      ORDER_CONDITIONS_INX          =
      ORDER_CFGS_REF                =
      ORDER_CFGS_INST               =
      ORDER_CFGS_PART_OF            =
      ORDER_CFGS_VALUE              =
      ORDER_CFGS_BLOB               =
      ORDER_CFGS_VK                 =
      ORDER_CFGS_REFINST            =
      ORDER_CCARD                   =
      ORDER_TEXT                    =
      ORDER_KEYS                    =
      EXTENSIONIN                   =
      PARTNERADDRESSES              =
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' .

    Hi experts,
    I am still waiting for your response......
    Thanks in advance
    Deepanker

  • Free goods sub item not geting generated in credit memo.

    Dear All,
    Example;
    Sales order for free goods    10+1
    Delivery                                   10+1
    Invoice                                     10+1
    Customer has not accepted the goods by some reason.
    We have ceated credit memo request  10+1
    Return Delivery                                     10+1
    Credit memo with reference to return delivery   ;Only 10 qunatity are copying in the billing document.Free goods quantity is not getting copied.Please guide what could be the reason.
    Sap std says credit memo should be reference to credit memo request bu out client requrement is ,it should be on return delivery based.we have done all settings but free goods qty is not geting copied.
    Regards,
    deepti

    Hi
    KIndly check the copy control configuration in the VTFL
                                                                                    Target Bill. Type  RE                    From Delivery Type LR                    
                        Credit for Returns                       Returns Delivery                                                                               
    Copying requirements   003  Header/dlv.-related                                   
    Determ.export data                                                                
    Allocation number                                                                 
    Reference number                                                                  
    Copy item number                                                                               
    Copying requirements   004  Deliv-related item          Billing quantity     B
    Data VBRK/VBRP         000                              Pos./neg. quantity   +
                                                             Pricing type         G
                                                             PricingExchRate type  
                                                             Cumulate cost         
                                                             Price source                                                                               
    REgards
    Damu

  • Free Goods line item in Billing Doc.

    Hello SAP GURUS,
    I am working on ECC.6. I am processing the sales order and delivery for FREE GOODS every thing is fine but I not able to see the relavent free good item in the billing document.Can some one help me How to get the same.
    Thanks & Regards.
    AKHI

    Hi Akhi,
    Please go to VOV7 transaction then select the free item itemcategory then go in to the details of the item category here you check Billing relevance field
    If the field is block item will not come in the invice
    If you put A- Delivery-related billing document , item will come in the billing document.
    I hope it will help you,
    Regards,
    Murali.

  • Use FM SD_SALESDOCUMENT_CREATE for creating free goods line items

    Dear Experts,
    I have created a program for uploading Sales Order details using FM "SD_SALESDOCUMENT_CREATE".
    The program successfully creates Sales Orders.
    Now the problem is with the materials which is a free goods item.
    i.e. if I enter a material say 'XYZ' which has a 20% free goods then if I enter quantity as 10 then it has to create 2 line items where in 1st line item will have 8 as qty. with value and 2nd line item will have 2 as qty with no value.
    It successfully happens when I create Sales Order using tcode VA01.
    *&      Form  CREATE_SALES_ORDER
    FORM create_sales_order.
      head_flg = 'T'.
      LOOP AT t_socreate02 INTO w_socreate02.
        CLEAR : vbeln, spart, bstnk, bstdk,
                w_itemin, w_iteminx, w_partnr.
        MOVE : w_socreate02-vbeln TO vbeln,
               w_socreate02-spart TO spart,
               w_socreate02-bstnk TO bstnk,
               w_socreate02-bstdk TO bstdk.
        AT NEW vbeln.
          CLEAR : w_sdhead, w_sdheadx.
    **Transferring Header Details
          MOVE : 'ZODF'   TO w_sdhead-doc_type,   "Default
                 'L001'   TO w_sdhead-sales_org,  "Default
                 '01'     TO w_sdhead-distr_chan, "Default
                 spart    TO w_sdhead-division,
                 bstdk    TO w_sdhead-purch_date,
                 sy-datum TO w_sdhead-req_date_h,
                 bstnk    TO w_sdhead-purch_no_c.
          MOVE : 'I' TO w_sdheadx-updateflag,
                 'X' TO w_sdheadx-doc_type,
                 'X' TO w_sdheadx-sales_org,
                 'X' TO w_sdheadx-distr_chan,
                 'X' TO w_sdheadx-division,
                 'X' TO w_sdheadx-purch_date,
                 'X' TO w_sdheadx-req_date_h,
                 'X' TO w_sdheadx-purch_no_c.
        ENDAT.
    **Transferring Item Details
        MOVE : w_socreate02-posnr TO w_itemin-itm_number,
               w_socreate02-matnr TO w_itemin-material,
               w_socreate02-zmeng TO w_itemin-target_qty.
        APPEND w_itemin TO t_itemin.
        MOVE : w_socreate02-posnr TO w_iteminx-itm_number,
               'I'                TO w_iteminx-updateflag,
               'X'                TO w_iteminx-material,
               'X'                TO w_iteminx-target_qty.
        APPEND w_iteminx TO t_iteminx.
    **Transferring Partner Function Details
        CLEAR : w_partnr.
        MOVE : 'AG'                    TO w_partnr-partn_role, "Sold-to-Party
               w_socreate02-sold_party TO w_partnr-partn_numb.
        APPEND w_partnr TO t_partnr.
        CLEAR : w_partnr.
        MOVE : 'WE'                    TO w_partnr-partn_role, "Ship-to-Party
               w_socreate02-ship_party TO w_partnr-partn_numb.
        APPEND w_partnr TO t_partnr.
    **Transferring Schedule Line Details
    *Schedule Line 1
        CLEAR : w_schedulesin, w_schedulesinx.
        MOVE : w_socreate02-posnr   TO w_schedulesin-itm_number,
               '0001'               TO w_schedulesin-sched_line,
               w_socreate02-edatu01 TO w_schedulesin-req_date,
               w_socreate02-edatu01 TO w_schedulesin-dlv_date,
               w_socreate02-wmeng01 TO w_schedulesin-req_qty.
        APPEND w_schedulesin TO t_schedulesin.
        MOVE : w_socreate02-posnr   TO w_schedulesinx-itm_number,
               '0001'               TO w_schedulesinx-sched_line,
               'I'                  TO w_schedulesinx-updateflag,
               'X'                  TO w_schedulesinx-req_date,
               'X'                  TO w_schedulesinx-dlv_date,
               'X'                  TO w_schedulesinx-req_qty.
        APPEND w_schedulesinx TO t_schedulesinx.
    *Schedule Line 2
        IF NOT w_socreate02-wmeng02 IS INITIAL.
          CLEAR : w_schedulesin, w_schedulesinx.
          MOVE : w_socreate02-posnr   TO w_schedulesin-itm_number,
                 '0002'               TO w_schedulesin-sched_line,
                 w_socreate02-edatu02 TO w_schedulesin-req_date,
                 w_socreate02-edatu02 TO w_schedulesin-dlv_date,
                 w_socreate02-wmeng02 TO w_schedulesin-req_qty.
          APPEND w_schedulesin TO t_schedulesin.
          MOVE : w_socreate02-posnr   TO w_schedulesinx-itm_number,
                 '0002'               TO w_schedulesinx-sched_line,
                 'I'                  TO w_schedulesinx-updateflag,
                 'X'                  TO w_schedulesinx-req_date,
                 'X'                  TO w_schedulesinx-dlv_date,
                 'X'                  TO w_schedulesinx-req_qty.
          APPEND w_schedulesinx TO t_schedulesinx.
        ENDIF.
    *Schedule Line 3
        IF NOT w_socreate02-wmeng03 IS INITIAL.
          CLEAR : w_schedulesin, w_schedulesinx.
          MOVE : w_socreate02-posnr   TO w_schedulesin-itm_number,
                 '0003'               TO w_schedulesin-sched_line,
                 w_socreate02-edatu03 TO w_schedulesin-req_date,
                 w_socreate02-edatu03 TO w_schedulesin-dlv_date,
                 w_socreate02-wmeng03 TO w_schedulesin-req_qty.
          APPEND w_schedulesin TO t_schedulesin.
          MOVE : w_socreate02-posnr   TO w_schedulesinx-itm_number,
                 '0003'               TO w_schedulesinx-sched_line,
                 'I'                  TO w_schedulesinx-updateflag,
                 'X'                  TO w_schedulesinx-req_date,
                 'X'                  TO w_schedulesinx-dlv_date,
                 'X'                  TO w_schedulesinx-req_qty.
          APPEND w_schedulesinx TO t_schedulesinx.
        ENDIF.
    *Schedule Line 4
        IF NOT w_socreate02-wmeng04 IS INITIAL.
          CLEAR : w_schedulesin, w_schedulesinx.
          MOVE : w_socreate02-posnr   TO w_schedulesin-itm_number,
                 '0004'               TO w_schedulesin-sched_line,
                 w_socreate02-edatu04 TO w_schedulesin-req_date,
                 w_socreate02-edatu04 TO w_schedulesin-dlv_date,
                 w_socreate02-wmeng04 TO w_schedulesin-req_qty.
          APPEND w_schedulesin TO t_schedulesin.
          MOVE : w_socreate02-posnr   TO w_schedulesinx-itm_number,
                 '0004'               TO w_schedulesinx-sched_line,
                 'I'                  TO w_schedulesinx-updateflag,
                 'X'                  TO w_schedulesinx-req_date,
                 'X'                  TO w_schedulesinx-dlv_date,
                 'X'                  TO w_schedulesinx-req_qty.
          APPEND w_schedulesinx TO t_schedulesinx.
        ENDIF.
    *Schedule Line 5
        IF NOT w_socreate02-wmeng05 IS INITIAL.
          CLEAR : w_schedulesin, w_schedulesinx.
          MOVE : w_socreate02-posnr   TO w_schedulesin-itm_number,
                 '0005'               TO w_schedulesin-sched_line,
                 w_socreate02-edatu05 TO w_schedulesin-req_date,
                 w_socreate02-edatu05 TO w_schedulesin-dlv_date,
                 w_socreate02-wmeng05 TO w_schedulesin-req_qty.
          APPEND w_schedulesin TO t_schedulesin.
          MOVE : w_socreate02-posnr   TO w_schedulesinx-itm_number,
                 '0005'               TO w_schedulesinx-sched_line,
                 'I'                  TO w_schedulesinx-updateflag,
                 'X'                  TO w_schedulesinx-req_date,
                 'X'                  TO w_schedulesinx-dlv_date,
                 'X'                  TO w_schedulesinx-req_qty.
          APPEND w_schedulesinx TO t_schedulesinx.
        ENDIF.
        AT END OF vbeln.
          PERFORM bapi_salesorder.
          CLEAR : t_itemin[], t_iteminx[], t_partnr[],
                  t_schedulesin[], t_schedulesinx[],
                  sdno, head_flg.
        ENDAT.
      ENDLOOP.
    ENDFORM.                    " CREATE_SALES_ORDER
    *&      Form  BAPI_SALESORDER
    FORM bapi_salesorder.
      CALL FUNCTION 'DIALOG_SET_NO_DIALOG'.
      CALL FUNCTION 'SD_SALESDOCUMENT_CREATE'
        EXPORTING
          sales_header_in       = w_sdhead
          sales_header_inx      = w_sdheadx
          testrun               = p_test
          status_buffer_refresh = 'X'
        IMPORTING
          salesdocument_ex      = sdno
        TABLES
          return                = t_return
          sales_items_in        = t_itemin
          sales_items_inx       = t_iteminx
          sales_partners        = t_partnr
          sales_schedules_in    = t_schedulesin
          sales_schedules_inx   = t_schedulesinx.
      IF p_test <> 'X'.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
      ENDIF.
      IF head_flg = 'T' AND p_test = 'X'.
        WRITE :/40 '** E X E C U T E D - I N - T E S T - M O D E **' COLOR 2.
      ELSEIF head_flg = 'T' AND p_test = ' '.
        WRITE :/40 '** E X E C U T E D - I N - U P D A T E - M O D E **' COLOR 2.
      ENDIF.
      IF head_flg = 'T'.
        SKIP 1.
        ULINE /2(139).
        WRITE :/2 sy-vline,
                3 'Dummy SalesOrder No.' COLOR 1,
               23 sy-vline,
               24 'Generated SalesOrder No.' COLOR 1,
               48 sy-vline,
               49  'Return Message' COLOR 1,
              140 sy-vline.
        ULINE /2(139).
      ENDIF.
      IF sdno IS INITIAL.
        DELETE t_return WHERE type <> 'E'.
        IF NOT t_return[] IS INITIAL.
          LOOP AT t_return INTO w_return WHERE type = 'E'.
            WRITE :/2 sy-vline,
                    5 w_socreate02-vbeln,
                   23 sy-vline,
                   28 sdno,
                   48 sy-vline,
                   49 w_return-message COLOR 6 INVERSE,
                  140 sy-vline.
          ENDLOOP.
        ELSE.
          WRITE :/2 sy-vline,
                  5 w_socreate02-vbeln,
                 23 sy-vline,
                 28 sdno,
                 48 sy-vline,
                 49 'Sales Order can be processed SUCCESSFULLY' COLOR 7 INVERSE,
                140 sy-vline.
        ENDIF.
      ELSE.
        WRITE :/2 sy-vline,
                5 w_socreate02-vbeln,
               23 sy-vline,
               28 sdno,
               48 sy-vline,
               49 'Sales Order created SUCCESSFULLY !!' COLOR 5 INVERSE,
              140 sy-vline.
      ENDIF.
      ULINE /2(139).
    ENDFORM.                    " BAPI_SALESORDER

    No reply so closed the thread.

  • Free goods+ discounted item

    Hello all,
    Could you help in configuring the scenario wherein :
    <b>.</b> we give a shirt free on purchase of two shirts and a discounted price of 30% on the pants.
    i.e. 1 item free on purchase of 2 and the 3rd item at discounted rate.
    If not clear please let me know.
    Karthik.

    Hi Karthik
    you can create free goods with exclusive type where you can give 1 Shirt free on 2 Shirts and then about the 30% discount in pants you can use VK 11 and  for a particular condition type you can give 30 % discount.
    so when the order is created and when you enter the material Shirt it will automatically give 1 free shirt for every two Qty, and for Pant you maintain a discount in VK11 for particular condition type so in pricing it will give you 30 % discount.
    hope this helps
    Cheers

  • Free Goods Without Sales Order

    Dear Gents
    We have a scenario where goods are issued for free without a sales order,it's not considered sales,they just give some materials out from the stock as gifts&issue it on a cost center , there is no sales order,invoice,etc..is it normal then that the accounting entry passed would be Dr Cost Of Goods Sold Cr Inventory or what should be the correct scenario , Thanks.

    Dear Expert,
    When Goods are Given as gifts or Samples it becomes an expense for the company. So in my view it has to be shown as an expense.
    The Accounting Entry would be :
    Advertising A/c ....Dr
            To Purchases A/c ....Cr
    Regards,
    Shankar K B

  • Free goods price discount when free goods are not required  by customer

    Hi
    In a promotional activity for purchase of 10 items 2 free goods (which are different) have been determined, which is exclusive. 
    The customer wishes not to take the free goods and asks for a discount equivalent to the value of free goods, please advise on steps to be undertaken in this scenario.

    Why dont u use "Pricing For Inclusive Free Goods Without Item Generation"
    To do this, you can use the standard condition type NRAB. It is set up as follows:
    It does not determine the discount from the condition record. It uses condition basis formula 029 in the pricing procedure to determine a discount from the free goods factor.
    The condition receives the new pricing requirement 059 in the pricing procedure. This requirement checks whether free goods have already been determined.
    The condition type receives condition category f. This condition category ensures that the condition is redetermined every time the quantity is changed, since this can also mean a change to the free goods quantity.
    Hope this helps & Rewrad if does
    Rgds

  • Free Goods (Tax not charged to customer)

    Hi to all Gurus
    I m using inclusive free good and for this i am using R100 and NRAB the problem i m facing is this in case of compnay in which we are working tax on free is beared by the company not the customer.Now when i include  the Taxes amount to R100 Discount value the Tax total figure is passed on to Net Value field for  that item and it also effect the total net value by the tax amount because the tax is coming with - in net value(NETWR) and + in tax field (MWSBP). But the GL enteries are working fine this problem is only effecting the Net Value Field which is used for Standard Reports
    I have also tried all the condition routines i.e 2 ,4 ,55 ,28,59,29
    Kindly all of u through any solution to my problem

    Why dont u use "Pricing For Inclusive Free Goods Without Item Generation"
    To do this, you can use the standard condition type NRAB. It is set up as follows:
    It does not determine the discount from the condition record. It uses condition basis formula 029 in the pricing procedure to determine a discount from the free goods factor.
    The condition receives the new pricing requirement 059 in the pricing procedure. This requirement checks whether free goods have already been determined.
    The condition type receives condition category f. This condition category ensures that the condition is redetermined every time the quantity is changed, since this can also mean a change to the free goods quantity.
    Hope this helps & Rewrad if does
    Rgds

Maybe you are looking for