cancel
Showing results for 
Search instead for 
Did you mean: 

Pricing condition upload using 'BBP_PD_CTR_UPDATE'

Former Member
0 Kudos

Hi Experts,

currently i am uploading Contract items through following FM's

BBP_PD_CTR_GETDETAIL

BBP_PD_CTR_UPDATE

BBP_PD_CTR_SAVE

Contract items are uploading successfully !!!

But now I want to upload multiple pricing conditions for items which i am uploading through FM  BBP_PD_CTR_UPDATE

Can anyone please help me to achieve this? I already tried it through tab IT_CONDITIONS in FM BBP_PD_CTR_UPDATE

but its not updating conditions for particular item. Any suggestions?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello,

Are you trying to update as below code ? 

LOOP AT it_items ASSIGNING <fs_item>.
LOOP AT <fs_item>-item ASSIGNING <fs_item_u>.
CALL FUNCTION 'GUID_CREATE'
IMPORTING
ev_guid_16 = lv_guid.
ls_conditions-guid = lv_guid.
ls_conditions-cond_type =
'01CT'.
ls_conditions-p_guid = <fs_item_u>-guid.
ls_conditions-cond_rate = <fs_item_u>-price.
ls_conditions-cond_unit = <fs_item_u>-
unit.
ls_conditions-cond_curr = <fs_item_u>-
currency.
ls_conditions-cond_prc_unit = <fs_item_u>-price_unit.
ls_conditions-date_from = sy-datum.
ls_conditions-date_to =
'99991231'.
ls_conditions-time_from =
'000000'.
ls_conditions-time_to =
'235959'.
ls_conditions-cond_tab =
'SAP016'.
APPEND ls_conditions TO et_conditions.
ENDLOOP.
ENDLOOP

.

Thanks,

Neelima

Former Member
0 Kudos

No ..

I am not using this method..

i am updating manually.. is it preferable to use above one?

thanks for reply!!

Former Member
0 Kudos

Hello,

Check also this link similar issue.

http://scn.sap.com/thread/2068794

Regards,

Neelima

Former Member
0 Kudos

Hi Neelima,

Thanks for your help !!!

act i want to upload scales too, for cond type 01RP (discount) but not able to upload in it_condition table because of nested structure of internal table; as its contain scale table in it,

Regards.

Puru.

Former Member
0 Kudos

Hi ,

It does work, we have used the FM BBP_PD_CTR_UPDATE to update the pricing conditions. After doing that we call BBP_PD_CTR_SAVE and do a commit work after looking at the int_messages of the FM BBP_PD_CTR_UPDATE.

Regards,

Naveen

Former Member
0 Kudos

Are you analyzing the messages returned from BBP_PD_CTR_UPDATE?

You can also try adding conditions manually on the Portal/NWBC and check if everything goes successfully.

Thanks,

Sushil.

Former Member
0 Kudos

yes

haven't received any message through E_MESSAGES table..