Error in generating invoice for a free goods order

here's the scenario: i took the pricing procedure of my standard order and basically changed PROO from R to S for statistical. rest is the same. gave the new pricing procedure a name starting with Z, then created a document procedure, then created a new order type for free goods sale and assigned everything the way it should be. i still need the taxes because customer will be billed for taxes, just not the base price. everything works fine till i get to billing and try releasing that to accounting, i get this error: Tax code O1 does not appear in any G/L account item. the FICO teams tells me it's because i put PROO as statistical and the system doesn't know where to get the tax from for the invoice. my pricing procedure is as follows:
10     0     PR00     Bag Price                     X          2               ERL
20     0     ZSED     Special Excise Duty     10     10     X          10               ZSD
30     0     ZMWS     Sales Tax     10     10     X          10               MWS
40     0          Net Value     20     30     X
45     0     BO02     Material Rebate     40             X                         ERB     ERU
50     0          Discount     45       
60     0     ZPFR     Freight                     X
980     0     WGST     WHT GST 1%     10                       164
985     0     WCOD     WHT 3.5%     65                       164
990     0                                                                  A
any suggestions on what to do and what might be wrong? thanks!

Hi Prasun,
I think you could try including mara table in your view and join on matnr.
Also refer all the quantity fields of MARA.
I think to find the reference quantity field it needs to know the material whose quantity field is to be referenced.
Regards,
Sunmit.

Similar Messages

  • Tax Code for NR00 Free Goods

    Hello,
    I have configured discount-in-kind free goods using the standard NR00 condition type.  With the necessary configuration and condition records in place I am attempting to test my setup by creating a purchase order.
    The discount-in-kind calculation is working correctly, creating item 11 containing the free goods quantity (set up as exclusive).
    However, I am receiving the error:  In case of ERS, please enter Tax Code.  Due to our business process the user is not able to enter this manually, it must be automatically populated.
    We have a tax condition type on in our main calculation schema which is correctly determining the tax code for the item 10.  However, this is not getting copied down when item 11 is created, and since it is a free good, there is no condition tab which is used to determine the tax code.
    Am I missing something or is there additional set up to populate the tax code for the free good?  Our taxes are somewhat complex as we operate cross boarder (one material may be not taxable in one country, and taxed at different rates in another one).
    Thanks in advance,
    Matt

    Hi,
    ERS indicator is based on Vendor Master if you are creating PO for that vendor for all items it will ask for Tax code
    Since tax code is mandatory to for ERS to run in backgeorund
    Now if you are using one line item as free goods you need to create some dummay tax code with ZERO tax
    Hope its clear
    Thanks
    Diwakar

  • Error while generating Invoice

    Hi All,
    We are getting an error while generating Invoice from VF03. The error is Form of address key is not defined
    What I had done is, I had assigned a new PRINT program in output type ZD00 by removing the old one & in quality we were getting the output but when it went to production, its giving the error "Form of address key is not defined.
    Please help as this help is coming in Production.
    Regards
    Abhii

    Hi,
    Check the address window in the form. Mostly the key combination used to fetch the address may not be  available in the production thats why it is rasie such error.
    Please close the thread,if solved
    Regards,
    Aditya

  • Error in generating SID for 0Requid (187.98)

    Hi All,
    We have transported requests into the Quality and when iam trying to run the infopackage for master data through flat file, it pops up this erro msg which says "Error in generating SID for 0REQUID (187.98)".
    This is the case with all master data infopackages.
    Also in the quality system, when i change the path for flat file assignment in infopackage and click on save, it pops up for a request. As far as i know it should not ask for a requst in Quality system
    Please guide me to resolve this as soon as possible.
    Regards,
    Neil

    0Requid :187.98
    what was this request ID...
    go to RSRQ and give the request ID and execute...it gives the load monitor...
    chk the load to which it belongs to either master or transaction...
    if it belongs to master...then try to find the object to which it was loaded...and schedule the change run for the same object....
    rgds,

  • InterCompany Billing issue for the Free Goods?

    Hi All,
    I created the info record (MM) for the free goods determination in the STO with Condition Type NR00. When I am creating STO  for the stock transfer from one company code to other, the free goods are determing automaticaly, but  while doing the Intercompany billing system is considering the price for the free goods also.
    Please suggest How to configure to determine the free goods while doing the Intercompany Billing ?
    Regards,
    C S Javali

    Hi Javail
    Any have all free goods so you can create the po indicator with free goods in receiving  plant.
    after delivery from supplying plant, you have to do the GRN in receiving plant.
    so supplying pant value of goods zero ( P101 CONDITION TYPE). in this you have to specify if any other charges like transport etc. then do the billing.
    Laxman

  • Good morning . i have iphone 4s is not working in israel !!!! i need to open for sim free, good morning . i have iphone 4s is not working in israel !!!! i need to open for sim free

    good morning . i have iphone 4s is not working in israel !!!! i need to open for sim free, good morning . i have iphone 4s is not working in israel !!!! i need to open for sim free

    the only ones who can sim unlock a phone is the ones who sim locked it in the first place
    and that is the phone Carrier not apple

  • How to enable multiple entries for bundling free goods in vbn1?

    Hi SAP Gurus,
    How can I enable bundling of free goods in SAP using vbn1?
    In creating an entry, I place the material number, qty and other required fields then assign the material number of the item that I want to bundle with the 1st product. My problem is that I can only assign 1 material number to a product.
    Scenario:
    Mat. No. 1 is the main item, then I assign matNo.2 to be budled with matNo.1. I also wanted to assign matNo.3 to be bundled with matNo.1. But unfortunately, When I place another entry using matNo.1. Error says that it is currently being processed. It seems I can only assign a single free goods. How can I set this to multiple?
    Thanks in advance!

    Hi Colleague,
    No. This function is not provided in the R/3 System. Only one record is taken into account during the free goods determination with the existence of several valid condition records. This record is the one with the largest minimum quantity. For this record the system only generates one free goods subitem.   
    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: #eWith material 1, material 2 and material 3 are free of charge#e or #eIf material 1 and material 2 are ordered at the same time, then material 3 is free of charge#e.                        
    You can refer FAQ note 549963 which clarifies this point.
    I hope it can be helpful.
    Regards
    Ruy Castro

  • 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

  • Error when posting invoice for Asset purchase order

    Hi,
    we are getting the errore message account determination for asset posting with keys not defined in chart of accounts,when posting an invoice for asset purchase order.
    Can any one see why this error is coming and what will be the solution.
    Nagesh

    Hi Prabhakar,
    Here is the reply,
    we have 10 line items,in which 3 items are freight related and other 7 items are related to goods reciept.
    i am trying to enter invoice for 3 line items at a time with two relevant to goods reciept and other related to non goods receipt(freight related).
    accounting entries generated after the GR are as follows,
    asset under construction account,and GR/IR account.
    Let me know the details is sufficient or not.

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

  • Error in Excise Invoice for Export

    Dear All,
    I am making excise invoice for Export. I have different series group for export and domestic.
    When I make a excise invoice from billing document for export which has different billing document type than domestic, the excise duty ( 16%, 2% and 1% ) are coming right in J1IIN. But as soon as I click the utilization button the 1% ( SECess ) gets flushed off and also tehe 2% figure changes .
    Can u pls. guide me why this is happening. This is happeningonly in Export.
    Pls. help urgent as the billing is stuck and i am closure of the month.
    Regards
    Sriram.S.

    ALREADY SUGGESTED - REPRODUCED BELOW
    Dear Sriram
    If all the exports are under LoU, then Go to IMG -- Logistics-General --> Tax on Goods Movements --> India --> Business Transactions --> Outgoing Excise Invoices --> Maintain Default Excise Groups and Series Groups.
    Here for the combination of your sales area, shipping point, plant, excise group and series groups (for exports), maintain "U" +under the tab "Exports".+ Now retry.
    thanks
    G. Lakshmipathi
    ps:- please spell the name correctly

  • Error in generating quota for unpaid leaves

    hello gurus,
    I have 3 Absence Quotas - (1) Annual Leave    (2) Long Service Leave     (3) Sick Leave
    I have attached the same reduction rule for all 3 abs quotas
    I generated Leave without pay for a day in the month of May 2011.
    When generating quotas for May 2011 for Annual & Sick Leave its generating for 30 days but for Long Service Leave its generating for 31 days
    Any idea how the quota generation goes wrong only for Long Service Leave ??
    pls help!!
    rgds,

    0Requid :187.98
    what was this request ID...
    go to RSRQ and give the request ID and execute...it gives the load monitor...
    chk the load to which it belongs to either master or transaction...
    if it belongs to master...then try to find the object to which it was loaded...and schedule the change run for the same object....
    rgds,

  • Can system produce one single invoice for bulk of sales orders?

    Hie all...
    I have a few questions with regards to sales orders per Billing.
    1) Can the system cater for creation of only ONE Invoice for about 8,000 sales orders in one click of VF04?
    2) Is there a limit of sales order to be created in ONE Invoice? If there is, how much is the maximum limit?
    3) If can, will there be any performance issue to the system? Waht are the impact that we should be aware of?
    I've tested billing for lesser sales orders (execute VF04 for 5,427 s/orders only). However, the system still produce 2 Invoices and yet still has remaining 407 sales orders not processed.
    i have read the discussion about Billing line item here Re: Maximum no of lines in the Invoice but the issue is still uncleared to me.
    TQVM!
    Haryati haron

    Hie all.
    My appology for the above post. I have double check the bill and found the split analysis as mentioned by G.
    As this is my first time encounter the split scenario, would appreciate if anybody would share the knowledge on how to tackle my issue here. I found tHE split analysis as follows:
    Split due to different header data
                                                                                    Fld Name                        0300001429           0300001430
                                                                                    Country of Destination          MY                   SG
    Region (State, Province, Count  SL                   SG
    Country of Sales Tax ID Number  MY                   SG
    Reference Document Number       0300001429           0300001430
    Payment Reference               0300001429           0300001430      
    1) All sales order's Sold-to-Party hardcoded to onely one customer - e.g 10919 but different Ship-to-Party
    2) I assume that Country of Destn, Region and Country of Sls Tax Id data is taken from Customer master data but why does it takes Ship-to-Party customer master data? Can i change it to take Sod-to-party Master data?
    3) I believe i need to change the Origin sls tax no from A (Ship-to-Part) to C (Sold-to-Party) but can anybody pls help pointing out the tcode or menu path to do so? (TQ!).
    4)  believe also should point #4 above be resolved, Ref Doc No. and Payment Ref No. will not be an issue anymore.
    Appreciate any feedback.
    TQVM!
    3)

  • Error in doing LSMW for uploading in Sale order

    Dear Sir,
    While doing test run for LSMW for uploading 15 Sale order , first order saved with no error and from second order the following error is displayed.
    Exchange rate of 1 in INR 2  for date 25.05.2009 3 could not be determined.
    Kindly do the needfull.

    Sir,
    If we manually enter, order getting saved for all the sale order.
    Why it is not possible while doing LSMW. 
    Please clarify.
    Regards
    Sethuraman

  • Credit memo generate in case of free goods

    Dear Friends
    one material price is rs450/- and with 5+1 when customer place order 5 pc that time system delivery 6 bec 1 is free. when customer return 1pc then what will be the credit memo pricing for each material.
    Thanking you
    Arun

    Dear Friends
    I am just clearly adding question with exact requirement.
    material per pc 450/- and scheme is 5+1
    order qty 5   Price is 450*5=2250
    dlv qty 6
    now client generate credit memo request for one pc in sap it is coming Rs450/- pc
    but client requrement is not this
                               2250/6=Rs. 375/- that mean they will give rs 375/- per pc not Rs 450/- per pc. for that what should i do customisation for credit memo request pricing.
    regards
    arun

Maybe you are looking for

  • PHP and Apache

    I have installed XAMPP for Mac OSX so that I can work on PHP and mySQL projects at home. It has installed correctly and http://localhost connects me to the server and the XAMPP pages. I am using Eclipse for my web pages and these files are in Users/M

  • Refer to a column in a secondary list in a customized DispForm.aspx page

    I would like to know if there is an XMl statement that will allow me to pull a column from a separate list. I have two lists; List1 has just one item in it that holds the default values for all the columns, including Enhanced Rich Text columns. List2

  • Filled out pdf form, did not save, cannot locate

    filled out pdf form, did not save, cannot locate

  • My iphone 5s turned off and will not power back on

    Last night my phone was working and charging when I went to sleep. This morning when I woke up the screen is black and I can not get the phone to turn back on. Has anyone else had this experience? Any suggestions on what to do?

  • Problem in downloading DNL_CUST_PROD1 and DNL_CUST_PAYPL

    Hi everybody, We are facing a problem here on downloading customizing objects - DNL_CUST_PROD1 and DNL_CUST_PAYPL. These two objects are in RUNNING status in R3AM1 transaction in the CRM server. No error or no queue has also been generated for these