on 08-02-2011 3:01 PM
Hi ,
We need to determine purchasing group based on plant in SC item details tab.
Which badi we can use for the same.?
Regards,
Nilesh
Problem resolved,
We can get any item data field in badi input parameters itself.
Just enhance structure by that field at 2 palces and 1 implicite enhancement to pass it to badi.
Structures : BBPS_RESP_ITEM_DATA_BADI
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nilesh,
Sorry for the late response.
You are right, i enhanced following two structures
And enhanced following program to populate the values in one of this structure.
LBBP_OMF03
Structure BBPS_RESP_ITEM_DATA_BADI is being used by BADI BBP_PGRP_FIND.
By adding two new fields in this structure Plant and Item GUID and populating the values in program LBBP_OMF03; i managed to set default Purchasing group based on plant.
When user changes the plant at the line item level; the re determination of Purchasing group from plant was done in BBP_DOC_CHANGE BADI.
Regards,
Ashish Shah
Hello,
Check badi BBP_PGRP_ASSIGN_BADI, which is the responsible for assigning purchasing group depending on your own criteria.
Regards,
Ricardo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Jay & Ricardo ,
But as per BBP_PGRP_ASSIGN_BADI documentation this BADI will be trigered at the end , i.e. when user clicked on order, when follow on documents are created.
We need this shoud be triggred when user changes plant on item details tab.
And PGRP drop down should have values only which is allowed from z table as per plant selected or changed.
Please correct , If anything wrong.
Thanks again.
Nilesh
Try to implement the logic for BADI BBP_DOC_CHANGE_BADI / BBP_SC_CHANGE method.
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.