Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Changes in ´Additional tab B´ must only visible to one client

Former Member
0 Kudos

Hello SAP Programmers,

When i create addtional custom fields on ´Additional tab B´, these custom fields must only visible to one client(i am logged in as client 400).

Is there any way please suggest me.

Thanks & Regards,

NarsiReddy Cheruku

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Narsireddy,

1. Specify

In PBO you make the below condition. Find the screen fieldsof the two fields you want to hide , otherwise make a fields into a group and try to use the below code in PBO.

  IF sy-mandt <> '400'.

    LOOP AT SCREEN.

      IF screen-name = 'X '.  

        screen-invisible = 1.

        screen-active     = 0.

        MODIFY SCREEN.

      ENDIF.

      IF screen-name = 'Y '.  

        screen-invisible = 1.

        screen-active     = 0.

        MODIFY SCREEN.

      ENDIF.

    ENDLOOP.

  ENDIF.

Thanks & Regards,

S.Rajendranath Raparthi

3 REPLIES 3

madhu_vadlamani
Active Contributor
0 Kudos

Hi Narsireddy,

Try to use screen fields and see. I am not sure. get the client name in a condition and try.

Regards,

Madhu.

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

In the PBO for your screen, in a module write something as that

  IF sy-mandt <> '400'.

    LOOP AT SCREEN.

      IF screen-group1 = 'Z01'.  

        screen-invisible = 1.

        MODIFY SCREEN.

      ENDIF.

    ENDLOOP.

  ENDIF.

Set the fields and so on to a group1 (or other, and write it in your IF/ENDIF)

I hope this helps you

Regards

Eduardo

Former Member
0 Kudos

Hi Narsireddy,

1. Specify

In PBO you make the below condition. Find the screen fieldsof the two fields you want to hide , otherwise make a fields into a group and try to use the below code in PBO.

  IF sy-mandt <> '400'.

    LOOP AT SCREEN.

      IF screen-name = 'X '.  

        screen-invisible = 1.

        screen-active     = 0.

        MODIFY SCREEN.

      ENDIF.

      IF screen-name = 'Y '.  

        screen-invisible = 1.

        screen-active     = 0.

        MODIFY SCREEN.

      ENDIF.

    ENDLOOP.

  ENDIF.

Thanks & Regards,

S.Rajendranath Raparthi