Transfer of Requirements for Return Orders
Hi,
Please I need help on TOR management with Return Orders in SD.
I've already red all the threads realted to TOR and ATP but I couldn't find a solution. As we know TOR is dependent on the following data: reqts type, reqts class, checking group and schedule line category.
The reqts type and class are determined in the strategy group (material master - MRP3).
Now if I switch on Transfer of Requirements for Returns, at Schedule Line level and Reqts Class level, the result is that I can see requirements related to Returns in the availability check overview of Sales Orders (ATP count) but if I check in the requirements list (i.e. transaction MD04) these requirements related to Returns are not recorded. Why?
And also another point please: requirements generated from Return Orders, into ATP count are considered as normal Sales Orders (negative sign, reducing ATP quantity, when it should be the contrary because a goods receipt is expected).
Can you help me please on these 2 points (perhaps something related with Sales Document Category)?
Thank you very much
Kind Regards
AP
I practically did a sample order / returns order to see your requirements and these are my observations
a)
If you create a standard sales order, then the availability check registers a minus sign with stock required in Rec./reqd qty field.
Once you save the sales order, this is not seen again as the total quantity is reduced by sales order quantity.
It was indicating a minus sign when you created a returns order because you checked the Transfer of requirements and availability check indicators in schedule line category.
It was simulating a requirement as you checked the indicators in schedule line category.
If you create returns order with standard DN (i.e. Transfer of requirements and availability check indicators are not checked), then you would not see any requirement for stock i.e. you don't see any new entry in availability overview screen.
b)
You are not seeing returned quantities in MD04 because of Movement types. This has nothing to do with Transfer of requirements.
Schedule line DN uses movement type 651.
Using movement type 651, you post returns from a customer with returns delivery to blocked stock returns.
The blocked stock returns are are neither valuated nor part of "unrestricted-use" stock.
Hence you are not seeing the returned stock in your available stock.
If you click the magnifying glass on total stock i.e. top line of your stock/requirements list (transaction MD04), you could see the returned quantity in 'Returns field'.
If you want to post returns from a customer with returns delivery directly to the valuated stock, you could use the following movement types in schedule line category.
653 Returns from customer to unrestricted-use stock
655 Returns from customer to stock in quality inspection
With these movement types, you could see returned quantities in stock/requirements list.
Similar Messages
-
BADI for return order creation in CRM
Hi group,
I have an requirement. In CRM ,Return order should be created from UBB service contract when change process takes place(Contract termination), ie throgh actions in the UBB service contract. these steps are configured through Actions.
The requirement is, I need to enhance the BADI implemention(COPY_DOCUMENT) by creating a function module. this function module should provide the necessary data for Return Order creation. Is there any function module to create a Return order in CRM or how to proceed? Appreciate if any suggestions
Regards,
SankarHi,
You can use BAPI_SALESORDER_CREATEFROMDAT2 .
In import TESTRUN = X
Description
This parameter is a test switch.
If you activate the switch, the system does not save the document.
Value range
Space = Document should be saved
X = Document should not be saved
Default
Space -
Recalculation of quantity in free goods for return order wrf to invoice
Hello everyone,
I want to recalculate quantity of free goods category in a return order created with reference to an invoice, if the quantity in the High Level Item Category has changed.
For example, a customer bought 100 boxes of product "A " and received 10 of these for free. Then he wants to return 60 boxes. When I create a return order with reference to the invoice and change these quantity from 100 to 60, free goods item category still shows 10 boxes instead of 6.
Recalculation must be take place acording to the pricing date determination in order to apply free goods in a valid date.
Customized features reviewing:
1. There's not Item Category Proposal for Target Sales Doc type of the Return order, but item category of source bill type has one an is set to Pricing Type "D".
2. High Level Item category of free goods category is relevant for billing and is set to M "Delivery - related invoices-no zero qtys (in main bath items)"
3. Free goods category assigment has NORM as item Category Group, FREE ussage, High Level Item category is determinated for return order document type and Item category by default is the free goods category.
I will appreciate your support to solve this issue.
Best Regards,
Andrea FigueroaHello,
Thank you for your response.
My Discount Type of Free Goods determination is set to:
Calculation Rule: "2 - Unit reference"
Free Goods Category: "1 - Inclusive rebate (with item generation)"
Free Goods delivery control: "C - Delivery of main item is part. delivered, only with main item"
However, whatever the calculation rule is, if I change the quantity in the main item, subitem does not work.
I read about SAP Note 573598 that describes perfectly my problem, but is valid in 4.6 to 4.7 version and I have ERP version.
Thank for your help,
Andrea Figueroa -
How to write a requirement for sales order outbound iDOC
i need to write the requirement for sales order IDOC
Please helpHi
From the sales order screen itself you can create the delivery from the menu
Sales order -> deliver/y
or from VL01N , enter shipping point and Order number, create and save
Reward points if useful
Regards
Anji -
Conditions record for returns order with order type "RE" Modification
Hi,
How can I gay out the EDI1 conditons row ( Customer expected price ) for returns order, so that the customer price is not considered.
Current Scenerion: when we create a returns order "RE" with reference to standard order "OR" it pulls out the price details from the standard order, but then in the conditions tab the EDI1 ( customer expected price ) is still active which allows the user to enter the new price. When the user enters the new price, the price for that line item is getting updated with this new customer expected price.
Can any one help me out on how to gray put that row, so that the user is not allowed to enter a new price during rreturns.
Thanks in Advance!!Hi
This will be updated automatically when generate planned orders thru MRP. (MD02)
regards
Srinivas -
Import License Check for Return Orders
Hello,
We are currently testing compliance for return orders in sales.
We would like to check the import license for these orders.
For this we have defined a separate legal regulation and assigned the combination country of plant (= legal unit) and country of departure to it.
When we process the return order the GTS system can not retrieve the correct country of departure.
to check available import licenses.
Does this has something to do with the incorrect determination of the partner function for returns.
I suppose that we need a function for inbound movements : goods supplier, vendor ?
Thanks for your support
Regrds
FrankHi,
What Iam going to tell is not advisable but if you want you can do this.
1)Go to T.code:OVAH
2) Select the message :229
3) Select Application : V4
After selecting the above message and application----towards on the Right hand side "Change the Message category from Waring to Error".
After doing the above setting--when ever the user tries to give more quantity in Return order when referenced from Invoice---""System will give error message" and does not allow to give more Quantity when referenced from the Invoiced quantity.
Regards
SK -
Hi,
Can anyone help me on an user exit for return orders pricing.i have to do the pricing based on some logic .but im unable to find the table in which material/customer exists (except KNMT table) such that i can find entry for shipment and go head and find the avg price.
can suggestion also is welcomeHi,
following is the code that can be helpful.
use the following code in the MV45AFZZ include program and trigger the following code in a include program USEREXIT_PRICING_PREPARE_TKOMP.
hope it helps.
CHECK vbak-auart EQ 'ZRE'.
*CHECK vbak-vkorg EQ '1300'.
T Y P E D E C L A R A T I O N S *
TYPES : BEGIN OF ty_s_retorders,
kunag TYPE vbrk-kunag, " Customer Number
vbeln TYPE vbrp-vbeln, " Billing Doucuement
matnr TYPE vbrp-matnr, " Material Number
vgpos TYPE vbrp-vgpos, " Item Number
fkimg TYPE vbrp-fkimg, " Item Quantity
netwr TYPE vbrp-netwr, " Net price of the Item
erdat TYPE vbrk-erdat, " Date of cretaion of the record
value TYPE vbrp-netwr, " Net value of the Item
END OF ty_s_retorders,
ty_t_retorders TYPE STANDARD TABLE OF ty_s_retorders.
V A R I A B L E S *
DATA : lv_quant TYPE vbrp-fkimg, " Total quantity
lv_value TYPE vbrp-netwr, " Total value of the materials
lv_avgpr TYPE vbrp-netwr, " Averge Price of the material
lv_dat TYPE i, " variable to hold the year value
lv_date TYPE vbrk-erdat. " Creation date of the docuement
I N T E R N A L T A B L E S *
DATA : gt_retorders TYPE ty_t_retorders.
G L O B A L D A T A D E C L A R A T I O N S *
DATA : gs_output TYPE ty_s_retorders.
CONSTANTS : lc_zpr0(4) TYPE c VALUE 'ZPR0' .
Get date value which is 12 months ago.
lv_dat = sy-datum+0(4) - 1.
lv_date = sy-datum.
lv_date(4) = lv_dat.
Select data
SELECT vbrk~kunag " Customer Number
vbrp~vbeln " Billing Doucuement
vbrp~matnr " Material Number
vbrp~vgpos " Item Number
vbrp~fkimg " Item Quantity
vbrp~netwr " Net price of the Item
vbrk~erdat " Date of cretaion of the record
INTO TABLE gt_retorders
FROM vbrp JOIN vbrk
ON vbrkvbeln = vbrpvbeln
WHERE vbrk~erdat BETWEEN lv_date AND sy-datum
AND kunag EQ vbak-kunnr
AND matnr EQ vbap-matnr.
CLEAR: lv_quant,
lv_value.
loop the internal table and get the total of quantity and value
LOOP AT gt_retorders INTO gs_output.
gs_output-value = gs_output-fkimg * gs_output-netwr.
lv_quant = lv_quant + gs_output-fkimg.
lv_value = lv_value + gs_output-value.
ENDLOOP.
calculate the average pricing value
CLEAR lv_avgpr .
lv_avgpr = lv_value / lv_quant.
CLEAR xkomv.
READ TABLE xkomv INTO xkomv WITH KEY kposn = vbap-posnr
kschl = lc_zpr0 .
IF sy-subrc EQ 0.
xkomv-kbetr = lv_avgpr .
MODIFY TABLE xkomv[] FROM xkomv TRANSPORTING kbetr .
ENDIF. -
Amount on Goods receipt for return orders is wrong with movement type 653
Hi All, I am sorry if it is a simple question because i am an abap'er.
My requirement is to create return sales order (with ref.to Billing document) and deliver and PGI for the return orders. This should go to sales order stock. Accounting document should be generated for material document and the amount should be picked up from condition type (if man.cond. type exist) else from material master.
1) Created a sales order (Bought in item cat) - Create PO (Non stock) - Receive goods (MIGO) - Create Delivery (VL01N) - PGI (Movement type 601 and special stock indic. 'E') - Create billing document (F2 type from VF01)
So far it is good. The account document is created (PGI - cost of goods) with correct amount as desired
The next scenario is if the material is returned? This is where we are having issues
Created sales order with ref.to billing doc. (S.O: RE. Item.Cat. Return Bought in (YRBI)... this is pretty much same as bought in except few things which are YRBI - Delivered - PGI (Goods returns. unrestricted) Movement type 653 - Problem comes here.
a) If i put special stock indic 'E' in 'Return bought in item.cat - There is no accounting document generated for 653 movement type.
b) if i maintain space instead of 'E' in return bought in item.cat - there is an accounting document but the manual cost is not copied to accounting document and it is picking up from material master which we dont want and The stock is not showing up in sales order.
I did my research (forum, OSS, google, and in help.sap.com) before posting here but no help.
I have checked account assignment categories for 'A' - (some post explained this) I tried changing values but no help.
I even tried changing the schedule line category to DN but no help.
I dont know what i forgot to change or check but i have tried everything what i know and from help from different sources ... still couldnt get it.
Original requirement is to make the return stock as sales order stock and this can also be returned to vendor. If there is a manual cost in return sales order, the PGI accounting document should be created with this condition value else from material master.
My pricing settings are good.
It would be really helpful if any one guide me to configure the process or atleast if anyone tells me what am i missing... .Have a look at any of the following notes:-
1) Note 171989 - Sales-order-related productn: Custmr exit COPCP002
2) Note 520000 - FAQ: Valuated special stocks
3) Note 557582 - User exit and valuated sales order stock
4) Note 580228 - Incorrect prices for materials procured externally
5) Note 983193 - Docu:Externally procurd material in valtd sales order stock
thanks
G. Lakshmipathi -
Plan Material Requirements for Detached Order Assemblies in ETO
Hi all,
I need to plan requirements for a material used in engineering-to-order production. It's written in SAP Library ( http://help.sap.com/saphelp_erp2005vp/helpdata/en/f6/089036e1e4b603e10000009b38f889/frameset.htm ) that I can plan independent requirements and assign them to the sales order. It's right, but I have two different sales orders and I need to assign a quantity to one and another one to the other: the system assign the whole quantity only to an order apart from the dates I have planned the independent requirements.
Have anyone a hint?
Thanks.You're posting in the Portuguese B1 space.
You might want to post in the English one: SAP Business One Application -
Cost Price for Returns order adopting cost from preceding billing doc
Hi Forum Experts,
Our Returns Order (SO) currently obtains cost price (VPRS) based on material moving average price.
However, what we really need is to copy the cost price from the preceding Billing Document.
I've explored using VOFM and created a routine under (Formulas --> Condition Value) as per below.
I found that while the debugger steps through this code, the value of the cost gets copied from the preceding document.
However, immediately after the code finishes execution, the value gets resetted back to the material moving average price again.
What can I do do let the system keep the copied cost price from the preceding document instead?
FORM FRM_KONDI_WERT_998.
DATA: lv_kbetr TYPE kbetr,
ls_vbfa TYPE vbfa,
lv_knumv TYPE knumv.
IF SY-TCODE = 'VA01' OR SY-TCODE = 'VA02' OR
SY-TCODE = 'VA21' OR SY-TCODE = 'VA22'.
IF xkomv-kschl EQ 'VPRS'.
Get billing doc and position
SELECT SINGLE vbelv posnv
INTO corresponding fields of ls_vbfa
FROM vbfa
WHERE vbeln EQ komp-aubel "returns order number
AND posnn EQ komp-aupos "returns order item
AND vbtyp_n EQ 'H' "returns order
AND vbtyp_v EQ 'M'. "invoice
IF sy-subrc EQ 0.
Get billing doc conditions key
SELECT SINGLE knumv
INTO lv_knumv
FROM vbrk
WHERE vbeln EQ ls_vbfa-vbelv.
IF sy-subrc EQ 0.
Get moving average price from billing doc conditions
SELECT SINGLE kbetr
INTO lv_kbetr
FROM konv
WHERE knumv EQ lv_knumv
AND kposn EQ ls_vbfa-posnv
AND kschl EQ 'VPRS'.
IF sy-subrc EQ 0.
Recalculate condition values
xkomv-kbetr = lv_kbetr.
xkomv-kwert = lv_kbetr.
xkwert = xkomv-kwert.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDFORM.
Regards,
EdricHi,
If you bring the Freight condition after PBXX and include in the net value, your problem will be solved. so it will be 120 in MIGO, MIRO, Dellivery and VPRS in billing.
We have the same situation and its working fine for us.
Thanks
Krishna. -
BAPI_SALESORDER_CREATEFROMDAT2 for Return Orders and Credit Orders
Dear experts,
I've been searching the SDN forums for information about the usage of BAPIs to create Sales Orders, Return Orders and Credit Memos. Unfortunately it seems hard to get consistent answers around the usage of BAPI_SALESORDER_CREATEFROMDAT2.
Is it, or is it not possible, to use BAPI_SALESORDER_CREATEFROMDAT2 to create Return Orders and Credit Memos with reference to other documents? Can someone please let me know if they have successfully implemented this scenario?
Many thanks and best regards,
Anna EnglundWhen you see the Code inside the BAPI BAPI_SALESORDER_CREATEFROMDAT2
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'*
see it is only used for Sales Order(since BUS2032 is for sales order).
you need to create or copy the BAPI BAPI_SALESORDER_CREATEFROMDAT2 to custom Function.
then change the Business Object to BUS2094 (it is for Credit memo) . Reference i tried it didn't work that time. you check it once with the new Custom FM. -
Billing date for return orders
Hi,
when creating return order (RE), without reference to any SD document, the billing date is default as current date.
But, when I create the return order, with reference to a billing document, the billing date is scheduled, based on the lead times etc..
I want to have it default as current date, with reference or not.. where/how is this configured?
Thanks,Check in VOV8 for your return order type where there is a field to propose billing date.
thanks
G. Lakshmipathi -
BADI requirement for Purchase Order
Hello,
I have to find a BADI for Purchase order which will satisfy requirement stated below.
When processing on PO will be done for Goods received and/or Final delivery and/or Final invoice , I need to trigger an Idoc from BADI which will inform another client that flags stated above are set against that PO.
Which BADI can be used to find information of these flag are set on PO as soon as it is processed and which in trun help me to trigger this idoc?
Regards,
Madhuratry with MB_DOCUMENT_BADI
this BADi will get trig for all goods movement transaction.
better u go for user exits, insteed of BADi -
Consumptin Account Required for Production Order
While i am creating production order in CO01, it is showing the following error.
Consumption account cannot be determined
Transaction : GBB
Valuation / acct modification : /AUF
Material / valuation class : (Finished Product) /7920
Why should we assign consumption account for valuation class 7920. Where i am doing mistake.I had faced similar error y'day.. message that say's 'consumption account' is really misleading.. but, i think system is checking this account assignment upfront while creating the order. basically GBB/AUF assignment is required for 101 of FG/SFG material after production..
so, just assign a p&l account to VC 7920 and create the order it would be good..
Regards,
Sayujya
Edited by: Sayujya Patil on Jul 1, 2011 3:06 PM -
Seeburger help required for Purchase Order,Dispatch Advice,Supplier Invoice
Dear All,
I wanted to do the Seeburger implementation.
I wanted to convert the EDIFACT to XML struture and XML struture to EDIFACT using the seeburger adpater for --
Purchase Order , Dispatch Advice and Supplier Invoice.
Points:
1. How will vendor will send and receive data to PI. (means how to use Seeburger spoke and how to give unique Ids in Seeburger AS2 adapter)
2. How to do Edifact to XML conversion and XML to Edifact conversion using Mapping Designer
3. How to configure modules in Seeburger AS2 adapter
RegardsHI,
For Seeburger implementation you should take licance for BIC MD and Adapters(AS2,SFTP).
1)You will receive the data from the vendor ,you need to configure the AS2 Sender Adapter and you need configure the Party with AS2ID(Global Indentfier).
2)For Conversion for the EDIFACT to XML you need to generate the the BIC mapping In BIC MD.once generate the map you can loaded the map into XI server.you need to configure the mapping detials in module(Classifer,BIC,Spliter......).
Steps to genrate the BIC MAP:
Steps :-
1) Right click on Data type and Export structure (msg_....xml).
2) Run u201CCreateXMLmessageu201D, (source file msg_....xml, target file XML_....xml).
3) Import XMLu2026.xml to your Project XML Message.
4) Run u201CCreateMappingXMLToEdiu201D source file (msg_...xml),target file (X2E_....xml)
if you are converting XML to Edi format.
5) Run u201CCreateMappingEdiToXMLu201D source file (msg_....xml),target file (E2X_....xml) if you are converting Edi to XML format.
6) Import X2E/E2X_.....xml to your project mappings
3) you need to open firwall from the vendor and your system..
AS2 Sender Adapter:
Transpoert protocl:HTTP
Message Protocol:AS2
Authincation Requered(Check box)
Message subject:
Asynchorns MDM Settings:
Server Certifacte:
Private key:
HTTP TimeOut:
MDM retry interval:
MDM retry Count:
Proxy Server:
Proxy prot:
Proxy User and Password.
For more information end to end :above menation rajesh weblog.
regards,
Ramesh
Maybe you are looking for
-
How do I set up an used iphone to an exsisting AT&T account
-
Time Delay Express VI default to show as icon?
I am really only intrested in the Time Delay "express vi" This is the only express vi I ever use and it drives me nuts everytime I drop it in and this HUGE box takes up space for nothing. I would really love to have just the one VI able to default to
-
Can't get to links on web pages
I can't get to links on web pages , shrink or enlarge the web page or show the other web pages that are open?The back arrow does work
-
Hi all, if I use a box or a grid with my text in smartform, letters are too close to box/grid lines. How can I set a space in my layout? Thank you Massimo
-
I have a situation please suggest some transactional solution.
hi, I have two databases one is entry database (DB1) Where entery is done, other database is reporting database (D2). we are trying to transfer data using stored procedure from db1 to db2. the sp will be scheduled to run after every 20 to 30 sec