Sales return BAPI error

Hi all,
I have been given with a task like creating function module for sales return  For that i am using standard BAPI  BAPI_SALESORDER_CREATEFROMDAT1 .To this BAPI i am passing all necessary inputs with doc_type as RE.When i execute this Function module ,its showing Following error
EV1                  761Unpermitted combination of business object BUS2032 and sales doc. category H
This BAPI is working for Sales order creation ,But for Sales return not working .what would be the problem?please help me out.
with regards
naresh bammidi

Unpermitted combination of business object BUS2032 and sales doc. category H
The business object for returns is BUS2102. TheBAPI you mentioned has a hard coded value of BUS2032 which is not for a return sale order. Have a look into the bapi function available in SWO1 for BUS2102, its BAPI_CUSTOMERRETURN_CREATE. Please try with that.
Kesav

Similar Messages

  • Error during sales return Delivery

    Dear Friends,
    I am Getting error while doing sales return processing in VL01n - Goods Issue.
    Error Message - Status of Inspection Lot 0600000002 / Partial Lot does not allow Goods issue.
    I have already done the settings in config, Assign Inspection Lot Origin to Delivery Type
    Also material code has been activated with the inspection type 06.
    What could be the reason for the error for goods issue for sales return?
    Regards,
    Anil

    Dear Anil,
          According to me - you have an QM activated so the stock sits in the QM stock when you create a return order. so before delivery QM has to verify the returned stock and has to transfer the stock to returnable stock / into unrestricted stock. SO consult with you QM Module person and do the return delivery.
    regards,
    Sudhir

  • Sales Return Inspection lot status Error

    Dear Friends,
    I am Getting error while doing sales return processing in VL01n - Goods Issue.
    Error Message - Status of Inspection Lot 0600000002 / Partial Lot does not allow Goods issue.
    I have already done the settings in config, Assign Inspection Lot Origin to Delivery Type
    Also material code has been activated with the inspection type 06.
    What could be the reason for the error for goods issue for sales return?
    Regards,
    Anil

    Hi Vinay,
    Thanks for reply.
    I have already cleared the inspection lots with Usage decision.
    Error message number is VL171 during delivery.
    Regards,
    Anil

  • QM-SD: Sales Return Inspection lot status Error

    Hello Expert,
    I want to post Goods receipt in a Returns delivery with QM activated in the material but the following message is displayed:
    Status of inspection lot 060000000001 / partial lot 000000 does not allow good issue
    Message no. VL171
    The inspection type is 06 (Inspection for Returns from Customer).
    The movement type is the 651.
    I thought that the inspection lot was created when you post the Good receipt, not when you create the delivery, and the stock material would be Qual. Inspection. So, then I should run QA11 click on Accepted in the UD to transfer the stock to Unrestricted use.
    Summarizing, the inspection lot is being created when I create the delivery. I can post GR only after running QA11. But then another inspection lot is created and the stock is posted in Returns. I think that the standard should not work like this.
    Please let me know what could be the reason for the error for goods issue for sales return?
    Thanks in advance.
    Pablo
    Sales Return Inspection lot status Error

    Dear Nunez
    1) 06 inspection lot gets created when you create a delivery not when you do the GR.
    2) for 651 movement type only 06 inspection lot will be created and this lot will not be stock specefic. You cannot do stock posting for this lot
    3) if you need an inspection lot while doing the GR of the delivery then kindly do the following
    1) make use of movement type 653 instead of 651
    2) activate 05 inspection in the material master. (deactivate 06)
    3) for delivery type LR ( the delivery type you are using for the return ) maintain 05 inspection type in the config
    SPRO > QM> Quality Inspection> Inspection Lot Creation>Inspection at Shipping>Assign Inspection Lot Origin to Delivery Type>LR 05inspection type.
    Now create the return sales order and then do PGR. inspection 05 will be created. you can do the stock posting in this lot
    regards
    gajesh

  • SD-QM: Sales Return Inspection lot status Error

    Hello Expert,
    I want to post Goods receipt in a Returns delivery with QM activated in the material but the following message is displayed:
    Status of inspection lot 060000000001 / partial lot 000000 does not allow good issue
    Message no. VL171
    The inspection type is 06 (Inspection for Returns from Customer).
    The movement type is the 651.
    I thought that the inspection lot was created when you post the Good receipt, not when you create the delivery, and the stock material would be Qual. Inspection. So, then I should run QA11 click on Accepted in the UD to transfer the stock to Unrestricted use.
    Summarizing, the inspection lot is being created when I create the delivery. I can post GR only after running QA11. But then another inspection lot is created and the stock is posted in Returns. I think that the standard should not work like this.
    Please let me know what could be the reason for the error for goods issue for sales return?
    Thanks in advance.
    Pablo
    Sales Return Inspection lot status Error

    Dear Nunez
    1) 06 inspection lot gets created when you create a delivery not when you do the GR.
    2) for 651 movement type only 06 inspection lot will be created and this lot will not be stock specefic. You cannot do stock posting for this lot
    3) if you need an inspection lot while doing the GR of the delivery then kindly do the following
    1) make use of movement type 653 instead of 651
    2) activate 05 inspection in the material master. (deactivate 06)
    3) for delivery type LR ( the delivery type you are using for the return ) maintain 05 inspection type in the config
    SPRO > QM> Quality Inspection> Inspection Lot Creation>Inspection at Shipping>Assign Inspection Lot Origin to Delivery Type>LR 05inspection type.
    Now create the return sales order and then do PGR. inspection 05 will be created. you can do the stock posting in this lot
    regards
    gajesh

  • PGR error in sales return delivery in MTO scenario

    Hello all,
    I am working on sales return scenario and creating delivery against the sales return order VL01N. Return sales order is created against the delivery which is created against the MTO sales order.
    So I am getting an error in VLO1N at the time of PGR that sales order stock does not exist.
    Kindly help.
    Mimiri

    Hi
    Remove the requirement type from the sales order OVerview in the Procurement tab.
    in IMG---Define Procedure For Each Schedule Line Category
    remove the check boxes for your returns schedule line category DN
    regards
    Prashanth

  • Document termination error for sales return delivery

    Dear all,
    I got this error while doing PGR, for sales return.
    Acthually the material is with serial number,
    error description
    Update was terminated
    System ID.... DPT
    Client....... 900
    User..... SDUSER
    Transaction.. VL02N
    Update key... 4E371CE1527FF187A5B9001A64D1FE3E
    Generated.... 12.05.2010, 18:38:55
    Completed.... 12.05.2010, 18:38:56
    Error Info... Update program: I/O error Error; function Update, RC= 4, key
    pls help

    Check this thread which may be of helpful to you
    [Update termination error while doing PGR|Update termination error while doing PGR;
    G. Lakshmipathi

  • Create Sales Return Order by BAPI,in pricing manual conditions don't appear

    Dear All,
    While creating Sales Return Order by using BAPI function module, in pricing manual header conditions are not appearing.
    I tried following FMs for creating Sales Return Order. Sales Return Order created but manual header conditions are not appearing.
    1.      BAPI_CUSTOMERRETURN_CREATE
    2.      BAPI_SALESORDER_CREATEFROMDAT2
    3.      SD_SALESDOCUMENT_CREATE
    If we create through transaction code u2018VA01u2019 with reference document, manual header conditions are appearing in pricing perfectly.
    SAP version is SAP ECC 6.0.
    Makarand

    Hi there,
    Is your return referenced from the F2 invoice or from the riginal order?
    If it is from F2 then in VTAF & if it is from OR then in VTAA --> at the item level --> pricing type select the option G copy pricing element unchanged & redetermine taxes or C copy pricing elements & redetermine others. Choose the required option. This is when the same pricing procedure is used in OR & RE order types.
    Regards,
    Sivanand

  • BAPI error for mvmt types 201 and 202

    Hi all,
      I'm using a bapi BAPI_GOODSMVT_CREATE for the movement type 201 and 202 with the gm_code = '03' for the transaction mb11- Goods movement. But it returns an error u201D Account 400000 requires an assignment to a CO object u201D...I'm unable to resolve this one....I have attached the code below. Please help me in fixing this issue...
    if sy-subrc = 0.
      loop at it_mchb into wa_mchb.
        if wa_mchb-clabs gt 0.
          clear wa_header.
          wa_header-pstng_date = sy-datum.          " fill header data
          wa_header-doc_date   = sy-datum.
          wa_code-gm_code      = '03'.              "fill code data
          clear wa_item.
          wa_item-material     = wa_mchb-matnr.     " fillitem data
          wa_item-plant        = wa_mchb-werks.
          wa_item-stge_loc     = wa_mchb-lgort.
          wa_item-batch        = wa_mchb-charg.
          wa_item-entry_qnt    = wa_mchb-clabs.
          wa_item-move_type    = '201'.
                       wa_item-entry_uom    = wa_mchb-meins.
          append wa_item to it_item.
        elseif wa_mchb-clabs lt 0.
          clear wa_header.
          wa_header-pstng_date = sy-datum.          " fill header data
          wa_header-doc_date   = sy-datum.
          wa_code-gm_code      = '03'.              "fill code data
          clear wa_item.
          wa_item-material     = wa_mchb-matnr.     " fillitem data
          wa_item-plant        = wa_mchb-werks.
          wa_item-stge_loc     = wa_mchb-lgort.
          wa_item-batch        = wa_mchb-charg.
          wa_item-entry_qnt    = wa_mchb-clabs.
          wa_item-move_type    = '202'.
                       wa_item-entry_uom    = wa_mchb-meins.
          append wa_item to it_item.
        endif.
      endloop.
      clear lv_lin.
      describe table it_item lines lv_lin.
      if lv_lin = 0.
        write : / 'No records found'.
      endif.
      call function 'BAPI_GOODSMVT_CREATE'
        exporting
          goodsmvt_header  = wa_header
          goodsmvt_code    = wa_code
        importing
          materialdocument = lv_matdoc
        tables
          goodsmvt_item    = it_item
          return           = it_return.
      if it_return is initial.        " if record created successfully
        call function 'BAPI_TRANSACTION_COMMIT'. " commit work
        write : / lv_matdoc, 'IS CREATED SUCCESSFULLY' color 5.
        loop at it_item into wa_item.
          write : / 'Mat :', wa_item-material,'bat :', wa_item-batch.
        endloop.
      else.                           " if record is not created successfylly
        loop at it_return into wa_return.
          write : / wa_return-message color 6.
        endloop.
        uline.
      endif.
    else.
      write : / 'No Records found' color 7.
    endif. " gt_s035 is not initial
    Edited by: Arunmozhi_06 on May 30, 2011 12:48 PM

    Hi,
       Did you passing the leading 0's in the cost center field?
    and check the below coding..
    * Structures for BAPI
      data: gm_header  type bapi2017_gm_head_01.
      data: gm_code    type bapi2017_gm_code.
      data: gm_headret type bapi2017_gm_head_ret.
      data: gm_item    type table of
                       bapi2017_gm_item_create with header line.
      data: gm_return  type bapiret2 occurs 0.
      data: gm_retmtd  type bapi2017_gm_head_ret-mat_doc.
      clear: gm_return, gm_retmtd. refresh gm_return.
      perform show_status using 'Scrapping(551) Material'.
    * Setup BAPI header data.
      gm_header-pstng_date = sy-datum.
      gm_header-doc_date   = sy-datum.
      gm_code-gm_code      = '06'.                              " MB11
    * Write 551 movement to table
      clear gm_item.
      move '551'        to gm_item-move_type     .
      move xresb-matnr  to gm_item-material.
      move p_bdmng      to gm_item-entry_qnt.
      move xresb-meins  to gm_item-entry_uom.
      move xresb-werks  to gm_item-plant.
      move xresb-lgort  to gm_item-stge_loc.
      move p_grund      to gm_item-move_reas.
    * Determine cost center per plant
      case xresb-werks.
        when '0004'.
          move '0000041430' to gm_item-costcenter."pass leading zero's in the cost center field
        when '0006'.
          move '0000041630' to gm_item-costcenter.
        when '0007'.
          move '0000041731' to gm_item-costcenter.
        when '0008'.
          move '0000041830' to gm_item-costcenter.
      endcase.
      append gm_item.
    * Call goods movement BAPI
      call function 'BAPI_GOODSMVT_CREATE'
           EXPORTING
                goodsmvt_header  = gm_header
                goodsmvt_code    = gm_code
           IMPORTING
                goodsmvt_headret = gm_headret
                materialdocument = gm_retmtd
           TABLES
                goodsmvt_item    = gm_item
                return           = gm_return.
    Maybe there is some config missing for your cost center, or maybe something missing in your code. check above.
    Regards,
    Dhina,..
    Edited by: Dhina DMD on May 31, 2011 8:02 AM

  • Customer sales return - excise inv creation issue

    Dear expert,
            We are testing the "Customer sales Return" scenario for one of our client. Our process is,
    1. Create sales return order (VA01) with ref or without reference
    2. Create return delivery (VL01N)
    3. Perform Post goods Receipt (VL02N)
    4. Create Credit Note (VF01) - Here in this case we are differ. We are creating the "Credit Note" with reference to return delivery not with ref to sales return order
                   Since we planned to create the credit note with reference to "Return delivery", we have defined the CIN related customizing as "Assign Billing Types to Delivery Types".
               Then we tried to create the excise Invoice using Transaction J1IIN. But we are getting the error message as
                                  Billing document 3134000001 does not exist
                                  Message no. 8I422
    Kindly give your suggestion to overcome this issue.
    Warm Regards,
    Nag

    Dear Experts,
             Thanks for your quick response.
    Yes, already we maintained the billing relevance field in item category maintained as "A" & Copy contorl in VTFL also. Due to this we can able to create the "credit Note" in Transaction VF01. But during excise Invoice creation only we are facing the above mentioned issue.
    Feedback for the response from SDL:-
                     Yes, we came to know that, for customer sales return process we need to raise a JV only not the excise invoice creation in J1IIN. But we are in the assumption that, this scenario is applicable of we are creating the "Credit Note" with reference to return sales order.
                 But in our case, we are creating the "Credit Note" with reference to "Return delivery". Since delivery is involved in the process we are in the assumption that we can able to create the excise invoice using J1IIN after maintaining the configuration in the "Assign Billing Types to Delivery Types" area.
    Please give your valuable feedback on this.
    Warm Regards,
    Nag

  • Sales returns with free goods

    Hi All,
    We are trying create sales returns with Invoice. But system is not copying the free goods item. I have checked relevant item category determination and Copy controls, everything is looking fine for me.
    Please let know if any other settings are required.
    I am getting below meeage.
    Item category for item 000021 cannot be determined
    Item 000021 is not copied from the refer
    document.
    Thanks.

    Hi radha
    Say you have created a creditmemo with G2 document type and you are getting a item category of G2N , so check the item category TANN is available or not with G2 doctype and item category G2N  in VOV4 .Check in copy control wheather the item category is available or not in VTLA  . I suppose it is not there that is the reason you were getting error.
    Maintain item category data at copy control VTLA then your problem will be solved
    Regards
    Srinath

  • Goods Issue for a Return Outbound Delivery for both Sales Returns

    Hi gurus..
    tell me the approch for the following development....
    custom transaction to perform a Goods Issue for a Return Outbound Delivery for both Sales Returns and Consignment Returns (Pickups) process within a lean warehouse in SAP.
    it is vry urgnt
    thnks

    I seem to have found the information I required here:
    http://wiki.sdn.sap.com/wiki/display/Snippets/Simulating+the+Sales+Cycle+with+BAPI's
    I'm going to keep this post active because I'd still like answers to my questions and any advice that you might be willing to share in regards to what I am trying to do.
    Edited by: Mikael Nensén on May 18, 2011 3:52 PM

  • Sales Order BAPI Extension

    Hi,
        We would like to pass custom fields data to Custom screens in VA01 Standard Sales Order. For that we are extending standard BAPI BAPI_SALESORDER_CREATEFROMDAT2 using EXTENSION parameter. We have appended custom structures to VBAKKOZ. VBAKKOZX, BAPE_VBAK,BAPE_VBAKX and able to pass information from portal upto 480 characters using
    valuepart1 and valuepart2.
    But when we are trying to extend it further, standard sales order BAPI
    BAPI_SALESORDER_CREATEFROMDAT2 is going to dump at :
             CALL METHOD cl_abap_container_utilities=>fill_container_c
                            EXPORTING
                               im_value     = da_bape_vbap
                            IMPORTING
                               ex_container =
    ch_parex+lenstruc(da_length_bape_vbap)
                            EXCEPTIONS
                               illegal_parameter_type = 1
                               OTHERS                 = 2.
    We need to extend it up to 900 chars.
    Any help on this will be greatly apprecited.
    Thanks
    Kalyan

    I found shortly after posting my message that the notes had not been correctly applied as the Notes Assistant ended with an error, and the error that resulted in this failure had not been corrected.  The basis folks failed to inform me that this error had occured in applying the notes.  I discovered it through testing.  Had you applied the notes and run into the same error?
    When we subsequently corrected for this, the issue with lenstruc went away and everything appears to be OK.  The real problem was that due to the error in the Notes Assistant the updated version of LVBAKTOP with the definition of lenstruc did not get activated.  It was left in a state where it needed an SSCR key to be applied manually, which should all have been handled automatically with SNOTE.
    Once this was done and the source was activated, the original error went away.  The two notes seem to have solved the original Unicode issue as well.
    We still have this update in the development area only since the CRM enhancements that caused the original problem with an append to the VBAK structure are also still in development.   We will be testing those changes together before moving everything up.  If there are any further issues that come up, I'll let you know.
    What I am wondering is if you had a similar problem applying the above notes, since the problem went away for us when the notes to handle the Unicode conversion were properly applied.
    Brian
    Edited by: Brian Sammond on Jul 24, 2008 10:55 AM

  • HUM vs. sales return

    Dear All,
    We did the following process:
    1. SO for materialA
    2. Delivery refering to the SO
    3. Pack materialA with mat_pack, based on configuration delivery item was created for mat_pack automatically.
    4. Picking (WM picking for materialA and normal picking for mat_pack)
    5. PGI (mvt 601 for materialA, mvt 621 V for mat_pack)
    6. Return sales order (RE) refering to the original SO
    7. Packing, but no automatic item determination > the packaging material was not generated
    So, mat_pack got to return. pack. special stock to customer (special stock "V").
    I checked SAP help:
    - I can create SO (order type AT) > delivery (type: LR) will be created for packaging material with item category LAN
    - no information in SAP online help or in SCM660 how sales return for HUs should be done (I haven't found anything).
    - I tried to assign item category LAN for delivery type LR for VERP items in SPRO > LE > Shipping > Deliveries > Delivery Item Category Determination - the problem is that the delivery item category LAN ( document category J ) and delivery type LR are not allowed to be linked (error message: VLCU001)
    My questions:
    - I cannot assign LAN to LR (error message). SAP can: if it creates the delivery for AT sales order type. (SAP creates LR-type delivery with LAN del. item category for packmat with SO of AT type). Why does it work so?
    - What is the standard sales return process with handling unit + returnable packaging)? I would prefer to pack the return item and get the packing item on the delivery - and reduce special stock "V" by posting GR.
    Thanks,
    Csaba
    Edited by: Csaba Szommer on Oct 27, 2008 5:20 PM
    Edited by: Csaba Szommer on Oct 27, 2008 5:23 PM
    Problem solved by one of my colleague:
    1. sales order item category TAL was copied > ZEL > "returns" indicator checked
    2. delivery item category TAL was copied > ZEL > document type "T"
    3. delivery type LR > Item requirement: 202, Default order type: DL
    4. delivery item category determination: LR VERP PACK ___ ZEL
    Edited by: Csaba Szommer on Nov 7, 2008 4:13 PM

    Normally the Sales Return Order is created with reference to the billing document of the original sales order. You can get the billing document number from the table VBRP (field VBELN).
    VBRP-AUBEL = VBAK-VBELN = VBAP-VBELN
    VBRP-AUPOS = VBAP-AUPOS
    The Sales Return Order can be fetched from the table VBAP (field VBELN)
    VBRP-VBELN = VBAP-VGBEL
    VBRP-POSNR = VBAP-VGPOS
    Hope this helps.
    Regards,
    Manoj

  • BAPI_SALESORDER_SIMULATE does not return multiple errors

    Hi,
      We are using BAPI_SALESORDER_SIMULTE, but it does not return multiple errors in the MESSAGETABLE even if all the materials entered in the ITEMS_IN table are wrong or have some ATP issues. It returns the first material that has problem and doesnot find errors with the remaining.
    Can anyone tell why this is happeining. Is there a setting in customizing to get the BAPI to return all possible errors.
    Thanks in advance

    Hello Pulin
    This is a typical behaviour of BAPI. Due to the fact that they validate all incoming data very scrupulous they stop processing at the very first error.
    I would assume that a "SIMULATE" BAPI should show all errors (because that's why we simulate, isn't it?) but apparently this is not the case.
    Regards
      Uwe

Maybe you are looking for

  • Loading native libraries

    Hi, The other day a came across an UnsatisfiedLinkError with the message "... already loaded in another classloader". I saw the JNI specification states a native library is only permitted to be loaded by a single classloader. My question is why is th

  • Programs crashing in Lion

    For the past two weeks I have experienced a number of program crashes with Lion.  They all are due to bad some type of kernel error and the latest program to continually crash is iTunes which has now crashed 5 times this morning.   I have done everyt

  • TimesTen 7.0.5 end of life

    Hello, what is the end of life date for supporting TimesTen 7.0.5 ?

  • Publisher - PDF - Printing Issues

    Hi - I am using MS Publisher then converting to pdf. My client is taking the pdf to her printer but the document is printing with a white border which is uneven. Is there any way to prevent this border or to "bleed" all the way to the edge of the doc

  • Bar-code printing in smartforms

    Hi All, how to done or step by step procedure of bar-code printing in smartforms.....guide me please. Thanks, Regards, Vishal Bhagwat.