Skip to Content
author's profile photo Former Member
Former Member

how to check whether PO item is changed or not in BBP_DOC_CHECK_BADI

Hi Experts,

I am working in SRM 5.0. My requirement is not to allow changes in PO if GR is fully done for particular item. I am able to check it and show error message. But I am not able to check wheter SRM PO item is changed or not. So even if, it is not changed its showing message .

I can check SRM PO item values and R/3 PO item values field by field, but i m looking for a FM or FLAG which shows that SRM PO item is changed in BAdI.

Can you please guide me how to check whether PO Item is changed or not?

Points assured!

Machindra Jogdand

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2008 at 08:12 PM

    Hi Jogdand,

    See if importing parameter VALUE (IV_CV_UPDATED_ACTIVE_DOC ) works for you. This parameter is in BAdI BBP_DOC_CHECK_BADI.

    Let me know if it works for you, please.

    Regards,

    Henrique

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2008 at 05:04 AM

    Hi Jogdand ,

    You can get the PO total value change form the PO business Object BUS2201 attribute POTotalValueIncreased .

    Below code sample decribes how to get the BO attribute values

    1. INCLUDE <swfcntn01>.

    2. Create an instance of the BO by calling the macro and passing the three parameter.

    swf_create_object <po bor object> <BUS2201> <po_guid>

    3. Get the PO attribute by calling macro

    swf_get_property <po BOR object> < 'POTotalValueIncreased' > < lv_pototalvalueincreased>

    OR

    You can query the table BBP_PDHGP and get the original Value of the PO and call the FM BBP_PD_PO_GETDETAIL to get the new Value of the PO. Check the difference and if there is any difference then the PO value is changed.

    I hope this will be very useful.

    Regards,

    Surender

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.