on 08-08-2012 5:22 PM
Hi Experts,
How can I retrieve details of historical versions of RFx?
For eg. if I change the submission dead line for a published RFx, in BBP_PD under Versions there is a new version created which is the active version with new submission deadline and the immediate previous version has old submission deadline.
The original GUID of the RFx is always assigned to the active version.
So how can we fetch the details of historical versions of RFx?
Thank you,
Anubhav
Hi Anubhav,
By fetching the historical versions of Rfx you mean through code?
If you want to see all the versions via code
then in FM BBP_PD_BID_GETDETAIL there is a table e_versions that will get filled with all the versions in of the document.
Regards,
Naveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Naveen,
Thanks for the help, I was looking how to get the details of changed version or get the difference between active and immediate previous hsitory version. Hers how we can do this...
DATA lr_version TYPE REF TO /sapsrm/cl_pdo_do_version.
DATA lt_differ TYPE /sapsrm/t_pdo_diff_fields.
CREATE OBJECT lr_version
EXPORTING
iv_object_type = 'BUS2200'
iv_header_guid = 'Pass the GUID of RFx'.
TRY.
CALL METHOD lr_version->/sapsrm/if_pdo_do_version~get_all_diff
EXPORTING
iv_guid_a = 'GUID of latest historical version'
iv_guid_b = 'GUID of previos historical version'
iv_comp_method = 'BIE' <--This is optional
IMPORTING
et_diff_fields = lt_differ
* eo_meta_data_provider =
* CHANGING
* co_message_handler =
.
CATCH /sapsrm/cx_pdo_abort .
CATCH /sapsrm/cx_pdo_error .
ENDTRY.
Thanks,
Anubhav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.