cancel
Showing results for 
Search instead for 
Did you mean: 

Capture Total_Value of the Purchase Order at Runtime

renubhandari
Explorer
0 Kudos

Hi All,

Kindly suggest how to capture PO header values at runtime, when GUID of the PO is not updated in BBP_PD ??

Requirement is like we need to compare PO header old TOTAL_VALUE with recently changed TOTAL_VALUE at a time of changing Ordered PO.

Thanks in Advance.

Regards,

Renu

Accepted Solutions (1)

Accepted Solutions (1)

laurent_burtaire
Active Contributor
0 Kudos

Hello,

if you had switch version control on for PO, you can use BBP_PD_PO_GETDETAIL function module to get its table E_VERSION.

Then, check if a difference exists between documents concerned for TOTAL_VALUE field at PO header level

Regards.

Laurent.

renubhandari
Explorer
0 Kudos

Thanks for the quick Response Laurent,

But our requirement is to capture TOTAL_VALUE at runtime (means when we are editing PO), in that case changed value will get store in buffer.

So we need to capture changed value from the buffer, but i am facing issue to get value from the buffer.

Regards,

Renu

laurent_burtaire
Active Contributor
0 Kudos

Hello Renu,

do not understand: when you are in change mode, do you modify the PO?

If yes, BBP_DOC_CHANGE_BADI BAdI is triggered...

Regards.

Laurent.

renubhandari
Explorer
0 Kudos

Hello Laurent,

Yes BBP_DOC_CHANGE_BADI BADi will trigger while modifying PO.

And we will get item level changed value in IT_ITEM, but we can not get TOTAL_VALUE from header level(IS_HEADER).

Regards,

Renu

laurent_burtaire
Active Contributor
0 Kudos

Hello,

by default, importing parameter I_WITHOUT_HEADER_TOTALS is set.

You have to unset it.

Regards.

Laurent

renubhandari
Explorer
0 Kudos

Issue solved.

Thanks Laurent.

Answers (0)