cancel
Showing results for 
Search instead for 
Did you mean: 

BADI- BBP_DOC_CHANGE_BADI

Former Member
0 Kudos

Hello All,

We are in extended classic scenario

We have requirement where, we need to modify the vendor contact details (Email, phone, fax) while creating the PO.

PO will get created automatically, after shopping cart approval.

These contact details are from shopping cart.

To meet this requirement I am using the BADI BBP_DOC_CHANGE_BADI (PO_CHANGE method).

I am just reading the shopping cart details and mapping it to the PO vendor (partner function 19 in the header).

But these fields not updating while creating the PO, I can see in the debugging mode these fields are modifying in the ET_PARNER table.

If I give try to change these fields in the PO (From the process purchase order) I can see these fields are mapping properly.

Can anyone give me pointer, is there any thing which I missing here.

Thank in Advance .

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Vijay,

I suppose you are reading SC details in chnaging the partner function 19 details in the PO_Change. However you can directly chnage the PO details in PO_Change by getting details from details of PO from function details BBP_PD_PO_GETDETAIL and change the details accordingly.

hope this solve your issue.

cheers

Iftekhar Alam

Former Member
0 Kudos

Hello All,

We have a business requirement where, we need to modify the vendor contact details (Email, phone, fax) while creating the PO.

After shopping cart approved completely, then the PO will get created automatically.

To meet this requirement I am using the BADI BBP_DOC_CHANGE_BADI (PO_CHANGE method).

I am just mapping it to the PO vendor (partner function 19 in the header).

But these fields not updating while creating the PO, I can see in the debugging mode these fields are available in the ET_PARNER table, but where as in the PO these fields are showing from Vendor master table only.

Currently what we have commented, couple of the lines of standard SAP code as this is suggested by SAP to meet the requirement

After commenting what we have noticed is, we are able to change the vendor contact details through the Process Purchaser order transaction.

But our requirement is that, we need to assign these contact details from the BADI BBP_DOC_CHANGE_BADI (PO_CHANGE method).

From the BADI fields are picking properly, but where as updating in the PO, its not able override if something data is already there.

Seeking your help on this,

Thank you,

Former Member
0 Kudos

Example:

CASE 1: In the process purchase order transaction PO vendor data is already there

When I go to change mode, and order the PO, these PO vendor details wont get updated, even though from the BADI BBP_DOC_CHANGE_BADI (PO_CHANGE method)

It's getting assigned to ET_PARTNER.

Case2 : if I order the PO, with the empty PO Vendor contact details its getting picked from the BADI BBP_DOC_CHANGE_BADI (PO_CHANGE method) what ever fields I have assigned it in the BADI , and getting the updated in the PO .From the second case its clear that , from the BADI fields are picking properly , but where as updating in the PO , its not able override if something data is already there.

After Ordering the PO , PO vendor contact details are updated .

Seeking your help on this

Thank you

Former Member
0 Kudos

Probably it has something to do with the address number - clear that and that might solve it. Somewhere it overrides everything you change with the details from that address number (table ADRC). If that doesn't work play a bit with the pers_no or partner_no (stay away from the partner_guid as that is only for your current po).

Regards,

Robin

Answers (1)

Answers (1)

former_member183819
Active Contributor
0 Kudos

Hi

The vendor master data needs to be changed whenever the situation arises..Your requirement is a strange requirement.Best practice change the required data in vendor master since PO is a formal document that we are going to send it to vendor.Mostly vendor details must be fixed rather than dynamic. correct me i were wrong...

regards

Muthu

Former Member
0 Kudos

Hi Mutu ,

Thanks for your reply, but thatu2019s how the business requirement which we have got from our client.

Since they are thinking that , the data which will be there in vendor master tables may not be updated data , so they are giving a chance to requestor / buyer (who will be first level approver) to update those fields .but default values which we are populating from the vendor master tables only .

Thank you,