cancel
Showing results for 
Search instead for 
Did you mean: 

Transfer PO Conditions to R/3 in Extended Scenario (SRM 5.0)

Former Member
0 Kudos
49

Hi all,

We are using SRM 5.0 Extended Scenario.

For controlling reasons we would like to transfer the whole conditions scheme (PO) from SRM to R/3 as well, so you could see the price calculation with rebates etc. in the R/3 position as well.

I have done some steps based on forum suggestions but still i have some doubts.

1. I have implemented the badi BBP_DRIVER_DETERMINE.

2. I have copied the function module B46B_DPO_TRANSFER into

ZB46B_DPO_TRANSFER

3. In that ZB46B_DPO_TRANSFER function module I have added the following

coding also.

DATA: BEGIN OF wa_pocondheader.

INCLUDE STRUCTURE bbp_bapimepocond.

DATA: change_id TYPE c,

END OF wa_pocondheader.

DATA: lt_bapi_pocondheader LIKE TABLE OF wa_pocondheader.

DATA: wa_bapi_pocond LIKE wa_pocondheader.

DATA: lt_bapi_pocond LIKE TABLE OF wa_bapi_pocond.

4. I have modified the following code in my ZB46B_DPO_TRANSFER

function module

CALL FUNCTION 'BBP_PO_INBOUND' DESTINATION lv_destination

EXPORTING

poheader = ls_bapi_poheader

poaddrvendor = ls_bapi_poaddrvendor

no_messaging = c_on

poheader_ext = ls_bapi_poheader_ext

IMPORTING

expheader = es_expheader

TABLES

return = lt_bapi_return

poitem = lt_bapi_poitem

poaddrdelivery = lt_bapi_poaddrdelivery

poschedule = lt_bapi_poschedule

poaccount = lt_bapi_poaccount

polimits = lt_bapi_polimits

poservices = lt_bapi_poservices

posrvaccessvalues = lt_bapi_posrvaccessvalues

poservicestext = lt_bapi_poservices_text

potextheader = lt_bapi_poheader_text

potextitem = lt_bapi_poitem_text

poitem_ext = lt_bapi_poitem_ext

popartner = lt_bapi_popartner

customer_fields = lt_bapi_customer_fields

pocondheader = lt_bapi_pocondheader

pocond = lt_bapi_pocond

EXCEPTIONS

communication_failure = 1 MESSAGE lv_msg_text

system_failure = 2 MESSAGE lv_msg_text

OTHERS = 3.

I need some advise how to fill in my SRM conditions correctly into the new table (lt_bapi_pocondheader, lt_bapi_pocond) in my ZB46B_DPO_TRANSFER function module so that R/3 is able to generate the conditions within my PO positions.

So Please suggest how to do this.

Note: If anybody is having code for this please share that will be very helpful for me.

Thanks and Regards,

Natchiappan.M

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Natchiappan.M,

Have you found any solution of how to read condition types and fill.

Actually i have the same requirement so please let me know if you found some solution for the same.

Thanks in advance.

Regards,

Hemant

Former Member
0 Kudos

Any suggestions are welcome.

Regards,

Natchiappan.M