cancel
Showing results for 
Search instead for 
Did you mean: 

updating notes for approval text in shopping cart

Former Member
0 Kudos

Hi,

I need update notes for approval(long text) on some conditions i get from approval badi.

I have used BBP_PD_SC_UPDATE and BBP_PD_SC_SAVE it is giving uncaught exception.If any body knows the solution please let me know.

regards,

sobhan

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member195032
Active Contributor
0 Kudos

Hi Sobhan,

Please call FM BBP_PD_SC_GETDETAIL in the BADI which you are using.

Internal Table E_LONGTEXT contains the value for note for approval.

TDLINE -> Note for Approval.

TDID -> NOTM

You will get Object ID field in Approval BADI.

I hope you are using BADI BBP_WFL_APPROV_BADI for approval.

regards,nishant

please reward if this helps

Former Member
0 Kudos

Hi Nishant,

I have done in the same way but it is giving uncaught exception.

regards,

sobhan

former_member195032
Active Contributor
0 Kudos

the commitment update (BBP_PD_COMMITMENT_POST) is made when PO is saved & changed in BBP_PROCDOC_SAVE.

The same logic could apply for your SC.

regards,nishant

Try this,I hope this will work.Just Add FM 'BBP_PD_SC_RESET_BUFFER' after code .

<b>Pseudo Code</b>

CALL FUNCTION 'BBP_PD_SC_SAVE'

EXPORTING

iv_header_guid = <wa_sc_items>-header

iv_keep_old_changer = gc_yes.

<b>CALL FUNCTION 'BBP_PD_SC_RESET_BUFFER'.</b>

This should solve issue.

Incase you are not clear ,SEE CODING in FM BBP_PD_SC_STATUS_CHANGE_WF,It will solve your issues.

regards,Nishant

<b>Please reward points if this helps</b>

null

Former Member
0 Kudos

Hi Nishant,

Thanks for your reply.when click directly the order butoon it is updating the Notes for approval with the text but if i press the Approval preview and then Order that time it is not updating the Notes for approval.I think i need to update the buffer values.

regards,

sobhan

former_member195032
Active Contributor
0 Kudos

Whenever you are using some SAP given FM ,do use and where used list and see how they have implemented that as it always helps.

I did that for above FM & found that content mentioned above.

BBP_PD_SC_UPDATE

and BBP_PD_SC_SAVE

If you do it for above mentioned FM,it will give you very good leads.

regards,nishant

please reward if this helps