cancel
Showing results for 
Search instead for 
Did you mean: 

Make "Shop on behalf" available in BBPSC03

henning_abel
Participant
0 Kudos

Hi SRM-gurus!

I'm on SRM 5.0, in classic scenario.

we'd like to make the field shop on behalf appear in BBPSC03. Now it is only available in BBPSC01, but we don't want to give that transaction to every user.

In PPOMA_BBP attribute REQUISITIONER is maintainted and the function "shop on behalf" works correctly in BBPSC01.

Do we have to create a Badi like described in thread "Activate shop on behalf field in BBPSC02 "

METHOD if_ex_bbp_sc_modify_ui~sc_modify_screen.

is_scr_itmchoice-default_scr = 'X'. " General options

ENDMETHOD.

Is this the correct method and do we also have to change BBPSC01-->SAPLBBP_SC_UI_ITS 100 as described in the above mentioned tread?

Thanks a lot for your help.

Kind regards,

Henning

Accepted Solutions (0)

Answers (2)

Answers (2)

dean_hinson2
Active Contributor
0 Kudos

Hello Abel,

Final got the reply to work...

DO NOT DELETE the code in the HTML template. We had some contractors modify our templates before we knew that BBP_UI_CONTROL_BADI was available. Seems they didn't know either.

Here's a sample piece from our implementation of the BADI that might help you outu2026


*-----------------------------------------------------------------------------*
* Since Purchasing Services is not implemented at this time, Hide Button      *
*-----------------------------------------------------------------------------*
IF FLT_VAL = 'BUS2121'.

    IF IV_FIELDNAME = 'TXT_ITMOVR_I-TEXT'
    OR IV_FIELDNAME = 'GT_SCR_ITMOVR_I-ITM_TYPE'.
      cv_invisible   = '1'.
      cv_input_ready = '0'.
    ENDIF.

    IF IV_FIELDNAME = 'GS_SCR_SPEC_I-SERVICE_FLAG'
    OR IV_FIELDNAME = 'GS_SCR_BASIC_I-SERVICE_FLAG'.
      cv_invisible   = '1'.
      cv_input_ready = '0'.
    ENDIF.

ENDIF.

Please let us know if this works for you.

Regards, Dean.

henning_abel
Participant
0 Kudos

Hi Dean,

thanks.

I found another way to realize that. In SE51 Program SAPLBBP_SC_UI_ITS 100 --> Layout ---> Doubleclick on "Shop an behalf of" and all fields right of it.

There I changed everywhere the first field in group from REQ to blank.

Then after activating the program, the field "Shop on behalf of" was also available in BBPSC03.

Thanks for your help.

Regards,

Henning

Former Member
0 Kudos

Hello

the BBPSC01-->SAPLBBP_SC_UI_ITS 100 should be modified:

`if (TEXT-SHOP_ON_BEHALF_OF.visible)`

......

`TR()` `Lines()`

`end`

I would suggest to delete the outer if condition.

Best Regards,

Daniel

henning_abel
Participant
0 Kudos

Hello Daniel,

thanks a lot for your hint.

I deleted the outer if-condition and the field "shop on behalf of" is now available. But there's not description left of it like "shop on behalf of" and when clicking on "..." search help I'll get a time out after some seconds.

Perhaps you have an idea here.

Thanks a lot.

Best regards,

Henning