Create PO using Idoc with free goods

Hi guys,
i'am currently working on a projekt i need to create a purchase order containing free goods.
We've already tested the PORDCR/PORDCR1 message and Idoc types PORDCR101/102 with BAPI's
IDOC_INPUT_PORDCR1  - w/ self-defined process code (via we42)
BAPI_IDOC_INPUT1        - w/ standard process code (BAPI)
Nothing worked. Got lots of errors in we05 transaction (mostly status 51)
Important:
We need to give the Idoc the free gods flag so we didnt need to set the net_price.
Thanks for your help guys,
Daniel

Use Order PORDCR102, with your extension say ZPORDCR102.
Create one control table and assign Function module to that table.
Set this new Ztable with all required data like free goods.
Then create new idoc, this new idoc will take message PORDCR102 and extension will pick new table and add free goods flag while creating PO.
Hope this helps

Similar Messages

  • BAPI_SalesOrder_CreateFromDat2 fails for items with free goods

    Hi all, I have a very weird problem when I am trying to create a sales order using SAP .net connector with the BAPI function BAPI_SalesOrder_CreateFromDat2().  The problem happens through the following scenario:
    1 - Item X has a free good rule on it that states "If user buys 5 Cartoons of Item X he will take 1 pack of Item Y free of charge" while Item Z has no rules like this
    2 - using BAPI and .net connector, an order is needed to be created with following details:
            a - Item X with quantity 6 Cartoons.
            b- Item Z with quantity 3 Cartoons
    3 - If BAPI_SalesOrder_CreateFromDat2() assigns these details to Order_Items_In with the same order (a then b),  SAP will return an error for Item z that states "No item category available (Table T184 ZKE NORM  KEN)."; while if the function tries to create the order with details in reverse order (b then a ), the order will be created successfully.
    I have done the following steps:
    1 - Tried the same order in SAP GUI but it succeeded. (So no problem in Item Category Determination)
    2 - Tries the same order with the suspicious order in the BAPI function Test inside SAP GUI (using tcode BAPI or SE37) but the function had not return any errors also.
    3 - Tried to send Item Category in code when calling the bapi function (Forced the code to KEN), but the same message appeared as SAP insist on redetermining the Item Category and return this meaningless message.
    thanks

    Hi Mohamed Abd Elbaset,
    I am facing the same issue while creating the Sales order through "BAPI_SALESORDER_CREATEFROMDAT2" All is going well in normal cases but when I process the contract with FREE GOODS line items for which free goods condition record is maintained it fails
    to create the Sales order. Is there any special treatment for this Free goods case..
    Regards,

  • How to combine BOMs with Free Goods?

    Dear all.
    I am currently working on setting up a retail store in SAP ERP (6.0). Our client requires from us creating a functionality that would allow to create sets and add free goods to a certain set. For example: if you buy a set consisting of a hammer and a drill at a regular price, you get a pair of gloves free of charge.
    We used BOMs to create the sets and attempted to combine them with Free Goods, which prooved impossible -- FGs don't work with BOMs. We also tried to use Bonus Buys, but these seem to be working only with SAP Retail, which is not available to us.
    Do you know any way around this problem?
    Grzegorz

    Shantanu
    It sounds pretty helpful, however, what we just found out it is impossible to give away free goods according to the local tax standards - so we have to give them away for a fraction of the price rather than free of charge. This forced us to create a separate logic to deduce different item categories in a sales order and different prices according to that.
    Thanks anyway.
    Grzegorz

  • Invoice split with Free Goods !

    Hi All,
    I am having a invoice split when i am generating a sales order with free goods.
    Item category i am using is TAN & TANN
    Sales order -> Delivery -> Invoice (it is splitting to 2 deliveries) and 2 items are getting billed separately, i want in one invoice.
    Need help Please.
    Thanks & Rgds
    Naveen

    Delivery split can occur when the following are different:
    1. ship-to-party
    2. shpping point
    3. route
    4. incoterms
    5. transportation zone
    etc
    Delivery split happens based on not only on different shipping points,but it depends on your business logic which supports thru order to delivery copy controll.
    at item category level.if you do not have different shipping points for multiple line items ,but if you have for example business logic of say "any line items with 10 tons and above gross weight' can be split into multiple deliveries.
    Regards
    AK

  • Requesting all to help me how to create lsmw using idoc method

    hi
    thanx for ur answer
    requesting every body in the forum to help me how to create lsmw using idoc method.
    regards,
    balaji

    Hi Balaji,
    LSMW using IDOC is similar to using flat file method. Here you are getting data from IDOC container and mapping data with Idoc segments insted of flatfile column.
    Hope this is what you are looking for. If helpful then don’t forget to reward me for that
    Darshan

  • Hi Using IDOCs with LSM Workbench????

    Hello,
    I wanted to use IDOCs as one of the methods with the LSM Workbench. I am going to load the data from flat file to a transaction in CRM.  I am just curious to know that how do I go forward with it.  The first step of LSM Workbench is asking Message Type, Basic Type, Enhancement and structure assignment for EDIDC40.  I have used other methods such as Direct input and Batch input.  I have not used IDOCs with LSMW.  Is it possible that you can give me the steps what we have to follow in order to set up the IDOCs and then use it with LSMW.
    I will really appreciate if you can give me the steps or give a link which shows steps of LSMW with IDOCs..
    Thanks much.
    Warren

    hi warren,
       first u have to configure the partner profile in lsmw
    lsmw->settings->idoc inbound processing.
    then u have to choose the basic type message type all those stuffs.if u have any enhacement u can use it or else leave it blank.
    lsmw->settings->idoc inbound processing.
    partner profile..
    File port              IDOC_TEST 
    tRFC port                        
    Partn.type             KU        
    Partn.number           106                                                                               
    Message type         ORDERS        Purchase order / or
      Basic type           ORDERS05      Purchasing/Sales  
      enhancement blank                                                 
        tick it. Enable structure relation for EDIDC40 
    steps are:
    Maintain object attributes                     
    Maintain source structures                     
    Maintain source fields                         
    Maintain structure relations                   
    Maintain field mapping and conversion rules    
    Maintain fixed values, translations, user-define
    Specify files                                  
    Assign files                                   
    Read data                                      
    Display read data                              
    Convert data                                   
    Display converted data                         
    Start IDoc creation                            
    Start IDoc processing                          
    Create IDoc overview                           
    Start IDoc post-processing                     
    please don't forget to reward points....
    regards,
    murali.

  • Problem creating basic views while creating materials using idocs?

    hello,
    I am facing an issue while creating materials using idocs. The problem is that the basic view does not get created whereas other views are present. The function module used is idoc_input_matma01 and the basic idoc type is MATMAS03.
    Looking for help. Thank you

    Hi Madhu,
    Actually i recieve an idoc from PI containing data required for cretion of the material via an idoc. This idoc is then processed to create the required material.
    The material gets created with appropiate data in various tables(mara, makt) but when we view material in mm03 we cant see the basic data views.

  • VPRS with Free Goods and Batch Determination

    Dear Experts,
    I have a problem on the products billing with Free Goods.
    I will explain this, before the implementation of Batch Management (with batch split) the billing document show the condition VPRS on the main item (TAN) and the free goods item (TANN).
    Now, when the Batch Management was up, the condition VPRS disappeared on the TANN item, I checked the order and it does shows the VPRS conditions. When i check the conditions on the billing document it shows me the following message when i check the VPRS condition
    Condition ignored (requirement 004 not fulfilled)
    Then I tried to debug the price determination and i realized that only on the TANN position the field komp-evrwr (price determination on the item category) is not 'X'.
    Aditionally i can mention thar the batch split item category is defined as YG05.
    Actually i only managed to show the cumulated VPRS cost on the main item.
    Please someone say to me if this correct or there is a way to put the VPRS on the free goods item.
    Javier Sandoval Vera
    Ecuador

    Dear Javier Sandoval Vera,
    As per the standard pricing Routine 4-Cost system may calculate the cost only for the pricing related materials,here TANN item is not relavent for pricing so system is giving that message.
    If you want consider non priced item also in the cost calculation then you can develop new routine as per your requirement with the help of ABAPer. (by copyingh the existing routine 4 then do the changes accordingly).
    Or
    You can maintain R100 -100% discount condition type in your pricing procedure,maintain settings as manual condition.
    Now maintained the price relevant check for free item also then give the 100% -discount by entering R100 condition type manually with 100% discount for that specific item to make the item price as zero.
    Now sytem will calculate the VPRS value without fail.
    I hope this will help you,
    Regards,
    Murali.

  • VPRS with Free Goods and Batch Management

    Dear Experts,
    I have a problem on the products billing with Free Goods.
    I will explain this, before the implementation of Batch Management (with batch split) the billing document show the condition VPRS on the main item (TAN) and the free goods item (TANN).
    Now, when the Batch Management was up, the condition VPRS disappeared on the TANN item, I checked the order and it does shows the VPRS conditions. When i check the conditions on the billing document it shows me the following message when i check the VPRS condition
    Condition ignored (requirement 004 not fulfilled)
    Then I tried to debug the price determination and i realized that only on the TANN position the field komp-evrwr (price determination on the item category) is not 'X'.
    Aditionally i can mention thar the batch split item category is defined as YG05.
    Actually i only managed to show the cumulated VPRS cost on the main item.
    Please someone say to me if this correct or there is a way to put the VPRS on the free goods item.
    Javier Sandoval Vera
    Ecuador

    Hi Javier,
    what do you do with the VPRS in your calculation- system ?
    If you need i, you delete the requirement 004 in your calculation -system.
    on the other hand, you can change TANN to komp-evrwr (price determination on the item category) is  'X'. Then you have to add an 100% rabate for TANN and the resukt will be free good.
    Hans

  • Bom with free goods

    hi
    am not tht experience in sap as well not tht expert as u guys but i was just wondering while practicing sap tht can v do bom with free goods as even my faculty who is a reall timmer couldnt solve this probs
    i did tried every possible way tried item category determinatino n all but couldnt
    it would b great if u solve this n email me back witht the solution
    can mail me the solution on
    [email protected]
    thnks a lott

    well exactly true i just wanted to see tht this forum really works n it does with some great experts neways mr ram very much thankful to u n basically i been trying this for 4 months but couldnt ya can do it 1 way u can do it manually in the sales order by changing the item category to tann at item level
    try this 1 n ya mr ram do u work in us
    if so thn b in touch
    bye irfan
    [email protected]

  • Creating TO using L_TO_CREATE_DN with SLED or Expiry Date????

    Hi Team,
    I am writing a Ztcode program for the TO creation using function module L_TO_CREATE_DN function module. But my requirement needs VFDAT (Expiry Date ) to be saved for the Trading Order which we create using tcode LT03, Were SLED, Shelf Expiry Date is required during creation with screen.
    Can anybody help how to create TO using FM with expiry date...
    Thanks in adavance, Help is as soon as possible would be grateful.
    Regards,
    Gaurav Patwari
    919967053678
    Edited by: GauravPa on Jun 13, 2011 1:47 PM

    please check the wm status in the inbound delivery, by this error message looks like plant+sloc is not wm managed ?also if possible Please share the screenshot of the putaway tab of delivery

  • How can I create Droplets using Actions with several Stops?

    My Droplets (using Actions but with several Stops) work very nicely when using a single image source. However when using multiple images thing start to go crazy.
    At the first stop on the first image a pop-up emerges asking me to continue to the next image or stop. If I select stop I can continue with the Action for this first image and complete the Action on that first photo.
    If I select continue it halts the action on that photo at the first stop then opens the 2nd image and repeats the action to the first stop on the next photo then the pop-up appears again and the cycle repeats.
    How can I create Droplets using Actions with several Stops?

    I don't believe this is possible when starting from Java. I think you need to start with a WSDL to get this to work. I am curious as to why having multiple WSDLs is an issue, would you care to eloborate.
    Thanks

  • Create sales order with free goods

    Hi friends,
    I want to create a new sales orer, whcih has some free goods,
    I am new to this client, how can I know which materails are free goods,
    please let me know in few steps, thank you.
    thanks
    madhu.
    <REMOVED>
    Message was edited by:
            Yathish K

    Thats means, I can create a std sales order and just by changing the item category to TANN, this item will become free item, how about payment terms, will they change automatically, How about fixed value date ..
    what does fixed value date means ??
    thank u
    madhu
    <REMOVED>
    Message was edited by:
            Yathish K

  • Create New Access Sequence for Free Goods

    Hi Guru,
    please help me, I need to do a new Access Sequence for Free Goods, different from standard SAP. (Vendor/Material/Purch. organization)
    The new sequence of access for "Vendor/Plant/Material", I have already created, but at the time that the use in condition, being created PO not shoot the discount goods. (despite having loaded a record condition with MBN1)
    Please help me, to create a condition of discount goods that shots for "Vendor/Plant/Material".
    Tank you
    Miki

    Thank you for your interest,
    but unfortunately I have already made this assignment Field.
    Please help me, there must be a way to run the discount goods.
    Tank you
    Miki

  • Kits with Free Goods

    Can anybody help me please
    I need to customize free good and kits together , now im have a kit  with item category group LUMF and each material has a price  that is ok but besides of this  , if i have a promotion that has a  kit and this kit has a free goos this information has to see in the sales order  for example
    Mi promotion is :
                           with charge      without charge
    Pens               15                      5
    Notebooks                                 20
    Some body buy me 10 kits  so im going to give 150 pens with charge  50 free good
    and 200 notebooks free 
    who can i customize for tho se this example in sap
    Thanks for ypu help

    Hi,
    As per my knowldge standerd sap will not work in ur case i hope u can devlop az programme.
    see this examples.
    Free Goods Determination in Sales Order
    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.
    4.6x
    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.
    Best regards,
    Y.VENKATASWAMY.

Maybe you are looking for

  • Hiding a Folder in Portal Catalog??

    Hi All, I have created a folder in the Portal Catalog and under which i have created various portal objects. there are few more users who are also actively developing portal objects. what i require is i want to hide my folder such that other users ca

  • Re: Day 1 and not happy

    You View ????????????????????????????/ I have had no indication of this either by post email or an actual old fashioned phone call (remember those) whats happening BT ???????? WE ARE YOUR CUSTOMERS  its good to talk

  • PS CS4 Error: Could not build preview because of a disk error

    I have been using this version of Photoshop without any problems for about two years, and then I upgraded to OS X Lion last week and now I get a disk error when I try to save a file.  The message says "Photoshop could not build preview because of a d

  • ATP check according to batch reservations?

    Hi, I would like to know whether it's possible to check availability including the reservations - meaning the reservations created for a specific batch. For instance I am going to destruct a specific amount of a specific batch, say 1000 of batch X, f

  • FM to collect data from InfoProviders

    Hi, What is the FM to collect data from InfoProviders and write back to the Planning buffer? Thanks. Have a great day.