on 06-05-2009 9:46 AM
Hi,
My problem is the same as mentioned in the thread link:[]
There is a shopping cart having one line item, the cost is distributed by quantity among 1. Cost center and 2. WBS
The system allowed to save the shopping cart which inturn created a PO (with cost distributed among CC and WBS), and the PO is in Tranfer Error status. Which is valid as ERP does not allow to distribute cost of a single line item to multiple Account assignement types. Simply to say, the account assignment type is at the line Item level (Item Overview) in ERP.But it is at "Item detail" in SRM
Now how do I prevent such a shopping cart being created? Any BADI...or do I need to include the validation in ...DOC CHECK BADI. Please let me know.
thanks,
MRao.
Yes. You can use DOC_CHECK_BADI to accomplish this.
Call the below mentioned function module.
CALL FUNCTION 'BBP_PD_SC_GETDETAIL'
EXPORTING
i_guid = iv_doc_guid
IMPORTING
e_header = "strucuture for header.
TABLES
e_item = "some internal table for item
e_tax = " some internal table for tax
Now loop at each item and check if there are multiple account assignments for each item and issue an error message using the et_messages parameter.
Regards,
Zubair.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
put a validation in BADI
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
As far as my knowledge goes ERP does allow cost assignment to multiple account assignments and the account assignment category type in ERP would be 'X' instead of 'K' or 'P' .
As for the error with the PO is concerned , is the ME045 error that is coming up. If thats the error then u need to check the attributes of the account assignment category and compare them with the properties of the field status group of the GL account that is used in Shopping cart account assignment. The GL account attributes can be checked in ERP in the transaction FS00 , by the specifying the GL account and the company code.
Check the same and am sure the shopping cart would go through with the multiple account assignment for single line item.
Regards,
Kalyan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.