AFS Return sales orders BAPI
Hi ,
Please help me in the issue . I want a bapi for return sales orders specific to AFS as i am not able to use the normal returns orders bapi BAPI_CUSTOMERRETURN_CREATE. Can anyone please let me know how to proceed for the same.
Thanks in advance,
Hi...
try by using FM " BAPI_SALESDOCUMENT_CREATE".
Regards,
Lokeswari.
Similar Messages
-
Hi,
I'm passing following values in BAPI_SALESORDER_CREATEFROMDAT2 bapi for Return sales Order
it_header-ref_doc = '0090000047'. " Invice Billing Number
it_header-REFDOC_CAT = 'M'. " M for Invoice
it_header-ORD_REASON = '101'. " 101 stand for Poor Quility
headerx-ref_doc = 'X'.
headerx-REFDOC_CAT = 'X'.
headerx-ORD_REASON = 'X'.
But it showing below msg why.
Error V1 Message No = 761
'Unpermitted combination of business object BUS2032 and sales doc. category H'
anything missing or Wrong ?the error is coming because the BAPI BAPI_SALESORDER_CREATEFROMDAT2 is meant for only Sales orders(i.e for BUS2032) since in the code it is hardcoded .
call function 'SD_SALESDOCUMENT_CREATE'
exporting
salesdocument = salesdocumentin
sales_header_in = order_header_in
sales_header_inx = order_header_inx
sender = sender
binary_relationshiptype = binary_relationshiptype
int_number_assignment = int_number_assignment
behave_when_error = behave_when_error
logic_switch = logic_switch
business_object = 'BUS2032' "<----hardcoded
testrun = testrun
if you want to avoid the error. copy the BAPI to ZBAPI and change the Business object to Return order's business object.
For Return order BUS2102 . so replace that with BUS2102.
Edited by: Vijay Babu Dudla on Oct 15, 2008 10:22 AM -
Hi,
what BAPI that can be used for Return Sales Order? BAPI SALES_ORDER_CREATEFROMDAT2 cant work, I get return message as error : 'Unpermitted combination of business object BUS2032 and sales document type category H'.
thanks alots.
AliaHi Alia,
Go to transaction BAPI, and in the tree go to :
Sales and Distribution -> Sales -> SalesOrder
You will have a list of all the BAPI for the Sales Order. If you want a list of Sales Order, maybe you need the GetList BAPI : BAPI_SALESORDER_GETLIST
Rgd
Frédéric -
BAPI for Creation of return sales order
Folks:
I have to create return sales order through BAPI from Billing document. I am using BAPI "'BAPI_SALESORDER_CREATEFROMDAT2" and giving billing document as reference document and sales order is created and billing document data is but the document flow is not updated. I mean to say that billing document and in original sales order the return order is not reflected in document flow. Can somebody tell me which BAPI i can use to create return sales order and it updates document flow as well.
Thanks!!!!Hi,
CALL FUNCTION 'BAPI_CUSTOMERRETURN_CREATE'
EXPORTING
return_header_in = wa_return_header_in
return_header_inx = wa_return_header_inx
testrun = p_testrun
IMPORTING
salesdocument = wf_salesdocument
TABLES
return = it_return
return_items_in = it_return_items_in
return_items_inx = it_return_items_inx
return_partners = it_return_partners
return_schedules_in = it_return_schedules_in
return_schedules_inx = it_return_schedules_inx
return_text = it_return_text.
wf_exp_vbeln = wf_salesdocument.
Hope this helps you,
Regards,
Abhijit G. Borkar -
When I create Return Sales Order through BDC sales order doesnu2019t create.
Deal Guru,
When I create Return Sales Order through BDC sales order doesnu2019t create.
It shows created sales document number but when I display this document I am getting message Document is not in database.
After executing my BDC, message received in SAP in box : SAPSQL_ARRAY_INSERT_DUPREC
I am receiving following message in SAP inbox for following issue.
But when I create Return Sales Order through VA01, it is working. Please give me some idea.
Detail Message
Update was terminated
System ID.... PRO
Client....... 900
User..... DEVELOPER2
Transaction.. VA01
Update key... 4961DBF46A6B09D2E10080020A02281C
Generated.... 05.01.2009, 16:03:40
Completed.... 05.01.2009, 16:03:40
Error Info... 00 671: ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC
Regards
MakarandHi Rory
Try this link:
BAPI can't to create SO,But used bapi data with manual can?
Regards
Neha -
Hi, I met some issue needs your help!
I use BAPI to create return sales order, Return an error message "Unpermitted combination of
business object bus2032 and sales doc.category H".
Can anyone suggest me any solution for this problem?
Thanks is advance,
RoryHi Rory
Try this link:
BAPI can't to create SO,But used bapi data with manual can?
Regards
Neha -
Urgent: How to copy multiple sales order items into a return sales order?
Dear developers,
I have a requirement to copy multiple sales order items into a single return sales order. For example, generated return sales order have 2 items, item 10 is created with reference to sales item 2610/10 and item 20 is created with reference to sales item 2611/20. What's more, when it happens, copy control should be taken care of. I know it is possible to create this kind of order by transaction. But how to do it in coding?
In current SAP release, there is only BAPI for creating with reference on 1:1 relationship which means copy one document to another but what I need is N:1 copy.
Any suggestion is high appreciated!!
BR,
Tony.Hi ,
If you are creating sales order by using bapi then after calling bapi you can check import parameter <i><b>SALESDOCUMENT</b></i> in the bapi function module .If this parameter is not initial then sales order is created in this case you can create return order. If this import parameter is initial then sales order is not created and you cannot use return bapi function module.
Bapi is simple method than BDC.
In above case it is required to call BAPI_TRANSACTION_COMMIT after every successful sales order creation.
One more important point is you have to clear import parameter <i><b>SALESDOCUMENT</b></i> before calling sales order creation function module.
Thanks,
shyla -
Hi,
I have to create return order for sales order. I am trying to create through bapi BAPI_SALESORDER_CREATEFROMDAT2. But i am getting eroor like "Unpermitted combination of business object BUS2032 and sales doc. category H".
If i create normal sales order it is creating sales order through this bapi.
In my case i have to create return sales order with reference to sales order. If any body is using this kind of sernario please send me with parameters..
Thanks in advance,
praveenHi Praveen,
The BAPI_SALESORDER_CREATEFROMDAT2 is orginally not designed for creating return sales orders.
Way around: create BIM processing or copy FM and remove the check (which is risky, since integrity is no longer guaranteed).
Regards,
Frank Umans -
How to change pricing Conditions in Sales order in change sales order bapi
Hi Experts,
How to change pricing Conditions in Sales order in change sales order bapi.
I have used the 2 function modules bapi-changesalesorder and sd salesdocument change, But it is creating the new record , instead of changing the existing one, Could please assist regarding the same
Thanks in Advance .
NLNHI NLN
I have just tried on my system and managed to overwrite the existing price by passing the following parameters.
<b>Import Paramters:</b>
SALESDOCUMENT - Sales Document Number
ORDER_HEADER_INX - UPDATEFLAG as <b>'U'</b>.
LOGIC_SWITCH - Import Structure - Pass 'X' to LOGIC_SWITCH-COND_HANDL.
<b>Tables:</b>
CONDITIONS_IN - ITM_NUMBER,
COND_COUNT, -> Condition counter same as KONV-ZAEHK generally it is <b>'01'</b>
COND_TYPE,
COND_VALUE,
CURRENCY.
CONDITIONS_INX - ITM_NUMBER,
COND_COUNT,
COND_TYPE,
UPDATEFLAG as <b>'U'</b>,
CURRENCY.
Hope i have clarified your query.
Kind Regards
Eswar -
ATP Check against customer stock for return Sale order
Hi Friends,
Pl.help in this.
1. Is it possible to configure ATP check against Customer stock in a Sale order/Return order/any other way? ( Actuallly, client wants to take back empty cylinders through return sale order by ATP check against the customer stock)
Regards,
ManiHi Mani ,
Are you taking cylinder as returable packing item or not?
ex- For soft drinks or beverages industry it pretty common , they use thel returnable package material type and more over why you want use return sales order for this?
Note- Just plz explain scenario to MM and PP People also as availability check with all combination
Hope it is helpful to you,
Regards
Venkat -
Returns sale order stock from returns to quality error
Dear All,
For FG Material we have activated Inspection Type '06' - Returns from Customer Inspection and Inspection Plan with Usage 'Goods Issue 06' also created.
We create return sale order material comes in returns and we need Inspection lot with '06'. so in MB1B using mvt type 457 trying to move stocks from returns to quality but system is not allowing to transfer stock it gives error Change Inspection stock in QM only.
kindly give your suggestion for this error.
Regards,
sakthivelFor FG Material we have activated Inspection Type '06' - Returns from Customer Inspection and Inspection Plan with Usage 'Goods Issue 06' also created.
SAP has returns set up to create 06 inspection lots. These are not stock relevant. In this case the inventory goes into the return stock category and another move must be done to move the material to unrestricted or blocked as needed it will not allow to move to QI
If the material should go into QI stock and be under QI control, then config must be changed to use the 05 inspection type instead of 06.
We create return sale order material comes in returns and we need Inspection lot with '06'. so in MB1B using mvt type 457 trying to move stocks from returns to quality but system is not allowing to transfer stock it gives error Change Inspection stock in QM only.
In SPRO SD schedule line category for returns(DN) change movement type to 655 and make relevant settings for QM movement types.
Check below relevant thread for more information
sales return
Cheers
KK -
Deletion of Returns Sales Order
Hi Guru's
I have created one return sales order with reference to one invoice and after that with reference to that returns sales order i have created credit invoice.
Now my query is that can i delete the returns sales order?
If yes please let me know the detailed process...
Regards,
BhadraYes, we can cancel-Credit memo.
Check Cancell.billing type field in Cancellation section of your Billing Doc type (tcode VOFA) for your Credit memo.
Coming on to your requirement.
That means you need to cancel credit memo succeeding to this return order.
In doc flow overview for your return order, check what are the succeeding doc attached to it.
Cancel or reverse all the subsequent doc to the return order.
Use VF02 and in menu bar look of Cancel option and select and process.
Then try to put reasons for rejects (if reference of this return order is needed in future) or delete Return order (if by mistake its created). I would suggest former as you have subsequent Billing doc to it.
Regards
JP -
Billing document should not be cancelled after creating return sales order
Hi All,
Billing document should not be cancelled after creating return sales order with reference to billing document. Please suggest configuration settings on the same.
Sudheer.Hi,
In SAP, when the sub-sequent document is existing , we can not cancel the preceeding document. Therefore if you want to cancel the billing document you need to calcel the documents which are created with reference to that.
Check and confirm.
Regards,
Ravi Duggirala -
How to Restrict Return Sales Order with reference to a cancelled invoice
SAP Standard is allowing to create Return Sales Order with reference to a cancelled invoice which practically should not be allowed.
Has any body worked on this problem and what could be the possible solutions so that return sales orders can not be created against a cancelled invoice.
Kindly share your possible solutions.Hi Standard Process will not allow to create a Sales Order With Cancelled invoice,
Kindly go through at Copy Controls
T.CODE:VTAF
in that some body might have maintained between S1 invoice to RE Sales Document.
Remove the settings then u will be not able to create Sales Order w.r.t to Cancelled Document.
Rewards if Usefull
B.Shyam Sunder
SAP SD Consultant -
Can we create Return Sales Order with Ref to Delivery
Dear Friends,
Can we create a Return sales order (RE) with reference to Delivery (LF)?
If yes,how?
If not,why?
Regards,
ShrikantHi there,
As per the standard process we donot refer RE with LF. 1 reason may be coz for returns order, we need to copy pricing either from OR or F2. Coz in LF pricing is not copied from OR. If you check the copy control from OR to LF in VTLA, at item level, you will not have any control for pricing type.
In most of the cases we refer returns to F2 sothat it will be easy to raise a credit memo to refund the customer. This is also because not all items in the order are delivered & invoiced (in partial delivery scenarios when all items are not confirmed)
Regards,
Sivanand
Maybe you are looking for
-
How do you clear system and application logs in a server?
Hello all, How do you clear system and application logs in a server? thanks, mike
-
Lync Online vs Exchange 2013 On Premise
We have Lync 2013 Online and Exchange 2013 SP1/Outlook 2013 SP1 on premise. All work well with RPC over HTTP. We are trying to get MAPI over HTTP (Outlook 2013 SP1 / Exchange 2013 SP1). But it seems that the MAPI over HTTP no longer respects the I
-
How to deactivate a stolen Mac book
A Mac book was stolen and is it deactivated by serial number?
-
Adaptive Agent won't install for TP1
ZCM 11, TP1 I'm using a clean Windows XP SP2 Pro machine. It's not patched or fully updated. I tried using the 300 MB agent complete dot net install (I ASSUME that's the one that has the .net 3.5.1 that's required) I get a DOS box that pops up and th
-
Report which shows Transaction code for each company
Hi Experts There is a requirement for a report which must display the following Parameters Tcode : S_ALR_87013340 User Tcode Description Profit Center Profit Group MEND S_ALR_87013340 XXXXXXXXX