cancel
Showing results for 
Search instead for 
Did you mean: 

Deactivate Buttons

Former Member
0 Kudos

Hello,

I would like to deactivate Confirmation button from check status screen. Please suggest me how this functionality can be achieved.

Regards,

Chary

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

Incase I understand your question correctly, you are talking about Purchase oders Confirmations, then follow this steps.

In transaction SE80, select the Internet Service - BBPCF02

and look for HTML template named - SAPLBBP_CF 2310.

There you need to comment out the code relevant to the and then publish the service as well.

Hope this will help.

Pls reward suitable points.

Regards

- Atul

Former Member
0 Kudos

Hi Atul,

Thanks for your reply. But I would like to deactivate only in Check status screen. I am not able to locate this button in the template specified. Please let me know how to find out this. Need to deactivate create invoice also from that screen.

Regards,

Chary

Former Member
0 Kudos

Chary,

Try using CUf badi in which based on the csreen you can control the fileds.

I meen that go to that Badi and check which screen is that and change the filed attributes like bellow.

CASE ws_fields-fieldname.

WHEN 'REQ_NUMBER'.

CLEAR ws_fields-xinput.

CLEAR ws_fields-xdisplay.

WHEN 'ICC_BR_STEUC'.

IF item-be_co_code(2) NE 'BR'.

CLEAR ws_fields-xinput.

CLEAR ws_fields-xdisplay.

ENDIF.

WHEN 'ICC_BR_MATUSE'.

IF item-be_co_code(2) NE 'BR'.

CLEAR ws_fields-xinput.

CLEAR ws_fields-xdisplay.

ENDIF.

WHEN 'ICC_BR_MATORG'.

IF item-be_co_code(2) NE 'BR'.

Former Member
0 Kudos

Hi

What i understood from your requirement is that you want to disable the Confirmation button, which gets enabled, in bbpsc04(Check status) shopping cart HTML template. (actually 2 buttons gets enabled, other one is Invoice button).

If that is right, here are the steps to do that.

Use Transaction SE80 and select Internet service from lef-hand side.

Put the Internet service name as -> BBPSEARCH

You need to first go the relevant HTML Template in the Internet service - BBPSEARCH

The HTML Template in thsi case is 4001.

Inside this template, (Lines 851-852)

Please comment the following lines by removing the existing lines and put this code.

<!-- `if(cur_column=="AUTO_CONF") -->

<!-- ``C_AUTO_CONF="X"``end` -->

<!-- `if(cur_column=="AUTO_INV")``C_AUTO_INV="X"``end` -->

Similarly comment the lines from 868 -901

*---- here are lines code

*--- start

`if(C_SUBLIST_ACTION == "X")`

<!-- EXP.IT.: COLUMN ITEM: action -

-


-->



`if (SUBLIST-ITM_TYPE[n].value != "HIER")`
`if (C_AUTO_CONF == "X")`
`if(gs_search_field-status_mixed != "11")`

`if(SUBLIST-AUTO_CONF[n] == "X")`

!`mimeURL(~service=|title=`#CREATE_AUTO_CONF`|alt=`#CREATE_AUTO_CONF`|name=images/icon/transport.gi...

`else`

`#CREATE_AUTO_CONF_NULL`

`end`

 

`end`

`end`

`end`

`if (SUBLIST-ITM_TYPE[n].value != "HIER")`

`if (C_AUTO_INV == "X")`

`if(gs_search_field-status_mixed != "10")`

<!-- ICON: Auto IV -

-


-->

`if(SUBLIST-AUTO_INV[n] == "X")`

!`mimeURL(service=|title=`#CREATE_AUTO_INV`|alt=`#CREATE_AUTO_INV`|name=images/icon/confirminvc.gif|language=|src=`mimeURL(service=|border=0!</a>

`else`

`#CREATE_AUTO_INV_NULL`

`end`

 

`end`

`end`

`end`

*--- end

I hope, this will solve your problem. This will hide both the buttons - ( Confirmation and Invoice) from appearing in the SC Check Status transaction.

Pls reward maximum points.

Regards

- Atul

Former Member
0 Kudos

Hi Srikanth,

Thanks for your reply.

I would like to implement the BADI to achieve this functionality. Please let me know some more input details like.BADI name, method, structure etc.

Regards,

Chary

Former Member
0 Kudos

Hi

Either you can implement BADI Definitions

<b>BBP_CUF_BADI

or

BBP_CUF_BADI_2</b>

This will depend on your system version.

Hope this will help.

Regards

- Atul

Former Member
0 Kudos

Hi

Have you tried this ?

Any updates.

Regards

- Atul