cancel
Showing results for 
Search instead for 
Did you mean: 

An issue with WBS element

Former Member
0 Kudos

Dear Friends,

We have a requirement wherein WBS element under account assignment tab should not be changed at Sales order level after creating subsequent delivery and Billing(like profit center field which get disabled after delivery is created).

Another requirement is System should disable WBS element field except the Sales order creator who can change the WBS element if there is a requirement.

Please suggest can it be achieved through standard or any userexit/enhancement is required.

with regards,

S.Dayananda Murthy

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dayananda ,

In standard SAP it is not  possible, you can achive this by custom logic in MV45AFZZ -

   FORM USEREXIT_FIELD_MODIFICATION.

logic:

1 . first  check if login UDER ID is not eqaul to  VBAK-ERNAM ( SO created by ) ,

2. if both id are not same , then check  if any subsequent document exist in VBFA  (delivery, billing , ) for SO ,

3.if subsequent document exist in vbfa , then disable the WBS field by using below logic

   IF SCREEN-NAME = 'VBAP-PS_PSP_PNR'.
            SCREEN-INPUT = '0'. ( it disable the WBS field at item level)

            MODIFY SCREEN.
          ENDIF.
        ENDIF.

thanks

Former Member
0 Kudos

Hi Ahammad,

Thanks for your reply. I will check with my ABAP'er.

I have a small query here. How do I fetch information about current Login User ID which can be checked with VBAK-ERNAM as mentioned in your reply.

Please suggest.

with regards,

S.Dayananda Murthy

Former Member
0 Kudos

hello,

check  SY-UNAME  (sytem will store login userd id in given field when login in to SAP) with VBAK-ERNAM.

like  .. if SY-UNAME is not equal to VBAK-ERNAM.

thanks

Answers (1)

Answers (1)

0 Kudos

Hi Dayananda,

I dont think this is possible via standard SAP as in change mode (VA02) you will always have the option to change the WBS element in account assignment tab. Please see if a similar thread helps :http://scn.sap.com/thread/1365469.

Thanks

Govind