cancel
Showing results for 
Search instead for 
Did you mean: 

Sales Office and Sales Division

former_member207873
Participant
0 Kudos

Hi Experts,

Is there any common table which connects sales office with sales division.

BR.

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member212148
Participant
0 Kudos

Dear,

If you want relation between Sales Office and sales area.

Table is KNVV.

Thanks,

Ranjit K.

former_member184065
Active Contributor
0 Kudos

Dear,

In SD ,we have relation b/w sales office to sales area not pacifically to division.Please check " table-TVKBZ " .

Kindly ,let me know if you need any further help on this.

Thanks,

Naren

former_member207873
Participant
0 Kudos

Then if we use Authorization object V_VBKA_VKO, how the check is being carried out.

BR.

Former Member
0 Kudos

Hi,

Check this link may be useful to you.

http://scn.sap.com/thread/706673

Regards,

Pankaj

former_member184065
Active Contributor
0 Kudos

Dear,

Please have a look into below threads .

http://scn.sap.com/thread/3268727

http://scn.sap.com/thread/2138741

Thanks,

Naren

suman_sardar2
Active Contributor
0 Kudos

Hi,

I think you mean V_VBAK_VKO auth object.

This is actually Sales Document: Authorization for Sales Areas therefore it will give you option for Sales area which includes (Sales Org + Dist Chnl + Division).

I think you want to restrict it by Division along with a check Sales Office.

Please let me know what is your exact requirement.

Thanks,

Suman$

Former Member
0 Kudos

Hi,

Can you tell me what is your exact requirement?So that I can suggest you accordingly.

Regards,

Pankaj

former_member207873
Participant
0 Kudos

I need to have an authority check on sales office and sales division. Both are select options (Multiple selections) and they are not mandatory fields as well.

moazzam_ali
Active Contributor
0 Kudos

Both are select options (Multiple selections) and they are not mandatory fields as well.

Does it mean you want to restrict them in some Z transaction or in VA01,VA02? I will suggest you to create an authorization object by taking VBAK-VKBUR and VBAP-SPART fields. Add authority check logic in MV45AFZZ in user exits mentioned in there. Use move field to VBAK for sales office and move field to VBAP for sales division ot item division

If I have understood you wrong then be clear sales division. Is it header division or item divion?

Thank$

former_member207873
Participant
0 Kudos

It is Custom Report

moazzam_ali
Active Contributor
0 Kudos

For this you can select sales office from TVKBT and Divison from TSPA. If you are not able to do this in one object then you can use two objects for both fields separately.

I have used Sales District field for this purpose in customized reports and logic will be like this

SELECT bzirk INTO input FROM T171
      WHERE bzirk IN s_bzirk.

    AUTHORITY-CHECK OBJECT 'ZBZIRK'
      ID 'ACTVT'   FIELD '01' " read access
      ID 'BZIRK' FIELD input. " actual value
    IF sy-subrc NE 0.

      MESSAGE text-002  TYPE 'E'.
      EXIT.
    ENDIF.
  ENDSELECT.

Thank$