cancel
Showing results for 
Search instead for 
Did you mean: 

BAdi to be used to update ECC PO

Former Member
0 Kudos

Hi,

We are using SRM5.0 classic Scenario, I have tried ME_PROCESS_PO_CUST,BBP_INBOUND_PO_BADI, ECS_PO_BACK BAdis but was not able to replicate/ perform modification to the data passed to the ECC PO.even simple changes to volume field or any other fields are not occuring.

Request you to guide me.

In ME_PROCESS_PO_CUST badi I have written following code under PROCESS_ITEM

ls_mepoitem = im_item->get_data( ).

ls_mepoitem-txz01 = 'Reached'.

im_item->set_data( ls_mepoitem ).

Even this is not working.Pls Guide me.

Thanks,

SV

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member195032
Active Contributor
0 Kudos

Hi Swarim,

These BADI will not help in your case as number 2 and 3 below are for Extended classic scenario,please see documentation for these BADI's.

BADI no 1 will be used only if you are using backend R/3 system as posting happens for SRM PO by different route.

1.ME_PROCESS_PO_CUST,

2.BBP_INBOUND_PO_BADI,

3.ECS_PO_BACK

Changing data in SRM system can be one of option and you can explore that using BADI BBP_DOC_CHANGE_BADI,please see documentation for this BADI.

There is another BADI available BBP_ECS_PO_OUT_BADI,which is only used for Extended classic scenario,please see documentaion for this BADI as well.

There is another BADI on SRM side which kicks in before moving data into backend system.

BBP_CREATE_BE_PO_NEW....there are two method in this BADI

1.FILL_PO_INTERFACE- Interface for Purchase Order Creation BAPI_PO_CREATE

2.FILL_PO_INTERFACE1-Interface for Purchase Order Creation BAPI_PO_CREATE1

so use appropriate method based on R/3 release,see documentation for details.

Regards,Nishant

Former Member
0 Kudos

Hi Nishant,

Thanks for your guidance. I can not use BBP_CREATE_PO_NEW BAdi because the field which I want to update is not available in any of these methods' Structures.

Hence I need to pass these values in some unused field say X and then at the ECC end I need to fetch this value from this field X and assign to the desired field Y.

Please suggest some BAdi and its method at ECC end which can be used.

former_member195032
Active Contributor
0 Kudos

Swarim Vyas ,

Can you tell me which field you are looking to change in SRM PO?

Nishant

Former Member
0 Kudos

Nishant,

'Priority' field in SRM. and EBAN-PRIO_URG/EKPO-PRIO_URG (urgency field in ECC)

Thanks

former_member195032
Active Contributor
0 Kudos

I can suggest you to use enhancement framework on ECC side and use BAPI

BAPI_PO_CREATE1 and use subroutine PERFORM move_data_in and manipuate data

as per your need.

You can see a standard SAP enhancement implemntation from SAP at the same place.

ENHANCEMENT 1 /NFM/MM_SAPL2012. "active version

  • /NFM/ processing - C5007732

  • docu: pre_processing (renumber items)

call function '/NFM/2012_PO_PREPROCESSING'

I hope,this method can solve your issue.

Regards,nishant

Former Member
0 Kudos

Hi Nishant,

I implemented ME_PROCESS_PO_CUST yesterday, it is behaving strangely. I tried implementing Enhancement SAPL2012 - EXIT_SAPL2012_001 it is still not updating the field.

former_member195032
Active Contributor
0 Kudos

Actually posting happen through BAPI so these exits will not work . I am talking about enhancement framework using which you can modify SAP standard BAPI and fulfill your need.

I am asking open BAPI_PO_CREATE1 and modify that using new SAP concept of Enhancement framework in one of subroutine previously mentioned.

Ask some developer,he might help.

Regards,Nishant

Former Member
0 Kudos

Hi Nishant,

Thanks for all your responses. I went through one of the posts and found a solution... I used ME_BAPI_PO_CUST implementation's INBOUND method of Enhancement Spot ES_BADI_ME_BAPI.

Thanks once again.

Former Member
0 Kudos

Hi Swarim,

Can you please guide how you achieved this?

I have a requirement to pass PRIO_URG value from SRM Shopping cart to ECC PO.

Thanks,

Pratham