on 09-10-2012 1:23 PM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.