on 03-27-2011 5:12 PM
Hi all,
I am new into SRM.. I have been asked to develop a form by cloning an existing standard form..
Using bbp_output_change_sf badi you can trigger the form by passing the object type but the scenario is such that depending on the object type and process type the new form should be triggered.
The parameter iv_object_type passes the object type but how could i pass the process type ?
In the badi I noticed an import parameter is_event that has a field called transction_type that carries the process type but this field never got populated when i checked using debugger.
Please help as to how i can trigger the form based on the object_type and the process_type.
Thanx in advance.
With the import parameter IV_GUID of the BADI method, you can get the header information, including process_type information, by calling BBP_PROCDOC_GETDETAIL.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanx a lot Jay Yang.. The issue is been resolved.. Well I have another question.. In the portal, if u return an item after confirmation u need to give the reason for the rejection/return..
Can u tell me which field of what structure carries this to the form.. I found a field called reason_code in the structure bbp_pds_conf_header_d but it didnt help..
Since the user is returning with respect to the line item, I guess it should be at the line item structure... But i guess there no such field...
Please Help..
Thanx again Jay Yang.. Well is there any possibility that you could get the items that were confirmed..
Let me eleborate..
Suppose in the PO u order an item for 10 nos and 5 gets confirmed and u return 2..
Well in my case it is that i need to fill up a field Qty returned / Qty confirmed..
I was able to get the number of items from the PO by passing the the passing the parameter to the FM "bbp_pd_conf_getdetaill"
but i dont know how to get the number of items been confirmed..
The quantity field in the line item structure gives me the number of items returned..
Can u tell me how to get the number of items been confirmed....
From the PO GUID and bbp_procdoc_getdetail for it, get the following table parameters:
*" E_HEADER_REL STRUCTURE BBP_PDS_HREL OPTIONAL
*" E_ITMLIM_REL STRUCTURE BBP_PDS_ILREL OPTIONAL
You will find your confirmations in these tables. Then with the corresponding confirmation GUIDs, call bbp_pd_conf_getdetail for each of them. Check the E_STATUS table parameter to determine if they are confirmed or returned.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.