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

Similar Messages

  • 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

  • Freight should not get reversed during credit memo

    Hi Experts,
           I Have a purchase order with planned delivery costs for e.g. say freight of some value and Goods receipt is posted and invoice is posted with freight. But our customer needs that when they perform the credit memo freight should not be reversed. How to perform this
    Regards
    Badri

    HI Badri
    can create credit memo without freight cost
    1) in MIRO choose Cedit memo
    2) in indicator choose only  goods/service items
    (if want to rasise credit memo for both material cost and freight need to choose goods/service items + planned delivery cost)
    3) then both material cost and freight cost will display, here need to deselect freight cost.
    4) now post. credit memo would have posted for only material cost.
    Regards
    karan

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

  • 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

  • Sub-items not supported for selected item(s) error in LSMW

    Hi gurus,
    Am working on BOM's data load via LSMW. Most of the item are stock items (L) but some of the items i am loading are Text items (T). Because of the customizing done in OS13 (that can't be changed apparently), the LSMW executed in foreground gives the message "Sub-items not supported for selected item(s)" (only as information, green message) and the dataload IS STOPPED.
    Is there a way to :
    -> change OS13 (allow sub-items for text items) : When i try i have an error message.
    -> or to force LSMW program no to go on the sub items screens (this way the program does not stop and the BOM is created)
    Thanks in advance for your answers,
    Olivier

    Found the solution my self all relations between dataload file and sub-items structure had to be suppressed in LSMW.

  • Item Cost Not Getting During AR Credit Memo......

    Hello Experts..............
              How can I get the Item Cost during after Ar Credit Memo. i'm unable to get it. Pleasev help me. I'm in urgency......
    Thanks & Regards,

    Dear Sir.......
                Sorry Thanga Raj Sir its not like that.
                              My Situation is something different. My scenario is as under:-
    1) I am purchasing old gold(Item Old gold) of 100 gms from A(My customer) @ 1450/-.
    We want the purchase a/c debited with 145000 and credited to customer with 145000/-
    At the same time quantity of OLD Gold item to be increated with 100 gms quantity and value 145000 with cost of 1450/-
    2) But we found that the journal entry of debiting purchase and credititng party come ok, but the item quantity  increased with out updating the item cost
    3) Once i get the item cost update, then i need to process the old gold and make refined gold as special production.
    Hope now the concept is more clear & Request to help.
    Thanks in advance.
    Rahul

  • Withholding Tax all Condtion table not appearing in Rebate Credit memo

    Hi
    I am finding issue in rebate credit memo.
    Issue: In Acces sequence I have table 397 and extended 397 with additional fields.
    In normel credit memo I am able to find all these table in sales order Pricing Analysis tab.
    But in rebate credit memo, I am not able to find all table. Credit memo is showing 397 table but not showing ztable.
    Please check below screen shot for details
    1. 397 and 988 are identical and its appearing in rebate credit memo.
    I created 988 just to verify if any thing wrong in ztable generation or any thing missing to map.
    987 is extended table with addtional field sales doc. Type, Item category and its not appearing in Rebate credit memo.
    2. Rebate credit memo showing 988 and 397 table
    3. Normel credit memo showing all three table
    Question : How to get all three table in Rebate Credit memo?
    If 988 is appearing than why 987 is not populating.
    Both are Ztable and created together.
    I tried many combination but extended ztable not coming in rebate credit memo
    Regards
    Neeraj

    Hi JP,
    Thanks
    Routine 923 created as per SAP note 178824. And I am finding this issue only for rebate credit memo request.
    This condtion type (withholding tax ) is not part of rebate condtion. It is part of standard pricing procedure same like MWST.
    In Normel credit Memo (CR) all access assigned to this access sequnce is visible in sales order pricing analysis.
    But rebate credit memo request (B3) not showing all access (as in above screen shot). It shows only 2 access out of 3 access.
    One more addition
    If I am maintaining condtion record for visible access in rebate Credt memo request i.e. country / Tax relevant classifcation.
    SAP disble it in rebate credit memo request order.
    But normel Tax (MWST) is appearing in rebate credim memo request.
    I am not sure if this is due to standard sap.
    For Thailand we require withholding tax for Rebate credit memo.
    Please advice if any one can give some input on this.
    Regads
    Neeraj

  • Item category for free goods that does not require extra free goods

    Hi all,
    I have created 3 item categories (ZM1J, ZM0J and ZMFJ)
    ZM1J is standard item for sales
    ZM0J is free goods
    ZMFJ is also free goods
    I have setup VBN1 for free goods "buy 10 get 1 free" and my order is including these 3 item categories
    ZM1J 10 EA and ZM0J 1 EA. These 2 lines are correct as I need.
    Then I give other free goods which is ZMFJ 10 EA and system is asking me to give free goods 1 EA but I don't want to give free goods for ZMFJ. I will deliver only 21 EA (10 for sales and 11 for free)
    What config it should do for this case?
    Another question, ZM0J is selected by default. How to manually change it to ZMFJ in sales order?  This is because some case, I still need to use ZM0J.
    Please advise. Thank you very much.
    Best Regards,
    Darin

    Hi,
    Item category is determined by the four combination
    Sales order + item category group + usage + item category at higher level.
    Now you are using free goods determination procedure.
    So that does not depend upon item category determination.
    You have to define the item category determination so that proper delivery and proper pricing happens.
    Now if you are giving 10more free item for which you have maintain free goods determination master data.
    Then system will automatically give one more free goods for that material.
    but if you giving some other material as a free goods then please let me know.
    Give your requirement that in which way you want to process your ZMFJ then we can give you better suggestion.
    To define alternative item category go to
    IMG u2013 SD u2013 Sales u2013 Sales documents u2013 sales document item u2013 assign item category.
    Over here you can assign alternative item category for your combination.
    If you assign over here then you can change manually in the sales order.
    Regards
    Raj.

  • Free goods determination is not working

    We are on CRM 7.0.
    I'm trying to configure Free goods determination in CRM sales order TSA. We have
    done all the relevant customizing under CRM -> Basic Functions -> Free Goods.
    Free Goods Procedure: 0NA001
    Condition Type: 0NA0
    Access Seq.: 0NA0
    Table: SAP010
    We have created the condition master data under transaction /SAPCND/GCM
    with the following parameters:
    Application: PRT
    Maintenance Grp: PRT_FGOODS
    When we create a sales order which uses the free goods procedure 0NA001 the system doesn't determine the right product. I would expect a sub item being added automatically under the main item which is part of the offer but nothing happens. Is that the correct expectation?
    As part of the configuration settings, we use TAN item category for main item and I have configured item category TANN for sub-item with item usage "FREE" (not sure this is the right setting).
    I have debugged the process and in FM FGD_DETERMINE_FREE_GOODS_MULTI, IPC does not return any results or any error messages.
    Has anybody gone through the same issues/pain? What point am I missing?
    Thanks for input.

    karens09 wrote:
    What is wrong? 
    Hello,
    You are attempting to call outside your Plan coverage.
    The Unlimited World Plan does not include calls to cellphones in Norway - just landlines.
    Full coverage details of the Plan are here:
    Unlimited calls to landlines and cellphones in
    Canada
    China
    Guam
    Hong Kong S.A.R., China
    Puerto Rico
    Singapore
    Thailand
    United States
    Unlimited calls to landlines only
    Argentina
    Australia
    Austria
    Belgium
    Chile
    Croatia
    Czech Republic
    Denmark
    Estonia
    Finland
    France
    Germany
    Greece
    Hungary
    Ireland
    Israel
    Italy
    Japan
    Korea, South
    Luxembourg
    Malaysia
    Netherlands
    New Zealand
    Norway
    Poland
    Portugal
    Russia (Moscow and St.Petersburg only)
    Slovakia
    Spain
    Sweden
    Switzerland
    Taiwan
    United Kingdom
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

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

  • SO-Free goods found but not apply

    HI everybody,
    Please help me solve this problem:
    I've finished free goods and tested OK 2 months ago. It doesn't work when I come back and check again.
    I have configed and define master data VBN1, I use free goods analysis to check, system found condition record and display "Condition record has been specified", but when I click on that condition record "The condition record for use N can not be displayed".  And no have any subsequent item under Main Item (system even don't warning when I input quantity smaller minimum quantity of free goods as in the past).
    More Infor: I just use Exclusive for Free goods with the very simple way. And I still can input manually free goods by inputting higher level item no.
    I have researched every topic and check config again and again but it doesn't seem to work. Please suggest me any way to continue.
    Many thanks for your help.

    Use Tcode VBN2.
    Provide your Free Goods condition type - Discount type in VBN2 and click on Condition Information button.
    This would take you to display condition record screen.
    Don't provide/maintain any data in selection parameter & Execute.
    But kee validity period/date in check.
    If any condition record is maintain, then you will be able to see the result in List for Condition Type screen.
    You can also follow Table KONDN - Conditions: Free goods - Data section to check whether you have any data maintained.
    KONDN-KSCHL
    Discount type
    - Free Goods condition type
    Say, NA00 - Free Goods SD
    Regards
    JP

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

  • 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

Maybe you are looking for

  • Lag/Pause believed to be caused by RAID [SOLVED]

    I have installed arch about 4 months back and ever since been experience and Lag/Freezing issue which occurs anywhere from 1-30 seconds at a time. I have been looking for solutions and fixing issues I have found with my system in order to find a solu

  • .cr2 + iPhoto '08 = failure

    My canon rebel XT (350D)'s .cr2 files aren't working with my macbook's iPhoto '08. This is a new problem -- I've previously imported .cr2 files from the same camera, using the same memory card. The problem isn't with the memory card, it's not corrupt

  • Help for Muse

    Where I find a pdf file about Muse: Adober Muse Help. Why, said to me . For understandind al part of this software exemple in french « pied de page rémanent »

  • TS1702 Can't I play the game apps on my computer too?

    My son wants to play his Mine Craft app on my computer. How do we do this?

  • Aperture 3.3.1 suddenly won't launch

    My 2009 iMac 21.5" had to be replaced after the hard disk and logic board both suddenly failed. Luckily I had backed up my data recently. I started by migrating data and apps from my 2007 Macbook. Then I updated the Aperture library from the vault on