cancel
Showing results for 
Search instead for 
Did you mean: 

Deactivate trash can icon for attachments

Former Member
0 Kudos

Hi,

I am trying to deactivate the trash can icon during the approval of invoices. I have found where I can deactivate the icon, that is in SE80 > Internet Service > BBP_PDH_TEXT 100.

I have commented out the line:

`if ( (GV_MODE_TEXT=="E") || (GV_MODE_TEXT=="C") )`

`if (GV_INTERNAL_ATTACH_MODE=="X")`

`if (GS_ATTACH-INTERNAL_IND[j])`

`TD(align="center")`

<a href="javascript:deleteAttachment('`GS_ATTACH-GUID[j]`')"><img src="`mimeURL(~service="bbpglobal", ~language="", ~name="images/icon/trash.gif")`"

alt="`BBP_TEXT_GLOBAL-DELETE_TXT.label`" title="`BBP_TEXT_GLOBAL-DELETE_TXT.label`" border=0></a>

`else`

`TD(align="center")`

`end`

`else`

`TD(align="center")`

<!-- <a href="javascript:deleteAttachment('`GS_ATTACH-GUID[j]`')"><img src="`mimeURL(~service="bbpglobal", ~language="", ~name="images/icon/trash.gif")`"

alt="`BBP_TEXT_GLOBAL-DELETE_TXT.label`" title="`BBP_TEXT_GLOBAL-DELETE_TXT.label`" border=0></a> -->

`end`

`end`

However this only achieves that when I add an attachment when I create the invoice, I can't then delete it because the icon's gone. Does anyone know of a way where I can only remove icon during invoice change and not during invoice create?

BTW, can you guys please be really specific as I am not actually a developer (my skills in coding are very limited as you can see)

Thanks,

Paula.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Paula,

You can keep only 1 condition in the template GV_MODE_TEXT=="C" i.e. CREATE mode.Hope this will keep the icon only for the create mode.

If this doesnt help,then may be you wil have to mdofiy the std code ..Include LBBP_PDH_TEXTF11 and Form modify_screen_tc--Here you can set your condition based on the field "gv_mode"...I.e. only for create mode you can have the attachment icon.

Regards,

Disha.

Pls reward points for helpful answers.

Former Member
0 Kudos

Thanks Disha. I have made changes in template however it doesn't seem to restrict me to the condition GV_MODE_TEXT=="C".

Former Member
0 Kudos

Hi,

What changes have you made in the template??Also did you see the std code which i mentioned???

BR,

Disha.

Former Member
0 Kudos

Hi Paula,

You can also try this..Add a seperate condition in the Template for the EDIT mode.There for EDIT mode you can use the ICON "TRASHNULL.GIF"(delete icon in disabled mode)...Try this.i think it should work...

Regards,

Disha.

Pls reward points for helpful answers

Former Member
0 Kudos

Hi Disha,

I have already tried doing that. It seems that even when I am creating an invoice it falls in the condition IF GV_MODE_TEXT==E.

I did see the bit about changing the code in modify_screen. I am a bit reluctant in changing that because I am not a developer and we have none at the moment. We might try that later on.

Thanks,

Paula.