Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8808

Re: How to use M_BEST_EKO

$
0
0

Hi Luis Franco,

 

http://help.sap.com/saphelp_40b/helpdata/EN/7b/6dec6eb435d1118b3f0060b03ca329/content.htm

 

M_BEST_EKO


Definition

With this authorization object, it is possible to restrict the maintenance of  via the purchasing organization.

Defined fields

The authorization object comprises two fields:

  • the purchasing organization, and
  • the activity.

The various authorizations for this object thus stipulate for which purchasing organizations and via which activity  may be processed.

Possible activities are, for instance, "display", "create", "change" and so on.

Example

User A may create, change and display documents for all purchasing organizations.

Relevant authorization: purchasing organization '*', activities '1-3'.

On the other hand, user B may only display documents for one particular purchasing organization.

Relevant authorization: purchasing organization '1234', activity '3'.

 

 

See this standard report BBPRP01

 


select a~kostl a~sakto a~wempf a~ablad
          b~werks b~matkl b~txz01 b~ematn b~loekz b~knttp b~lgort
          b~menge b~meins b~netpr b~peinh b~bprme b~matnr b~konnr
          b~ktpnr b~infnr b~labnr b~ebelp
          c~ekgrp c~lifnr c~bedat c~ebeln c~bsart c~waers c~aedat
          c~ernam c~ekorg
          d~name1
          into (wa_itab_mmdata-kostl, wa_itab_mmdata-sakto,
                wa_itab_mmdata-wempf, wa_itab_mmdata-ablad,
                wa_itab_mmdata-werks, wa_itab_mmdata-matkl,
                wa_itab_mmdata-txz01, wa_itab_mmdata-ematn,
                wa_itab_mmdata-loekz, wa_itab_mmdata-knttp,
                wa_itab_mmdata-lgort, wa_itab_mmdata-menge,
                wa_itab_mmdata-meins, wa_itab_mmdata-netpr,
                wa_itab_mmdata-peinh, wa_itab_mmdata-bprme,
                wa_itab_mmdata-matnr, wa_itab_mmdata-konnr,
                wa_itab_mmdata-ktpnr, wa_itab_mmdata-infnr,
                wa_itab_mmdata-labnr, wa_itab_mmdata-ebelp,
                wa_itab_mmdata-ekgrp, wa_itab_mmdata-lifnr,
                wa_itab_mmdata-bedat, wa_itab_mmdata-ebeln,
                wa_itab_mmdata-bsart, wa_itab_mmdata-waers,
                wa_itab_mmdata-aedat, wa_itab_mmdata-ernam,
                wa_itab_mmdata-ekorg, wa_itab_mmdata-vend_name)
          from ( ( ekkn as a inner join ekpo as b
                                    on  a~ebelp = b~ebelp
                                    and a~ebeln = b~ebeln )
                              inner join ekko as c
                                    on b~ebeln = c~ebeln )
                              inner join lfa1 as d
                                    on c~lifnr = d~lifnr
                    where a~kostl in s_kostl
                    and   a~ps_psp_pnr in s_projn
                    and   a~aufnr in s_aufnr
                    and   a~anln1 in s_anln1
                    and   a~anln2 in s_anln2
                    and   a~vbeln in s_vbeln
                    and   a~vbelp in s_vbelp
                    and   a~veten in s_veten
                    and   a~nplnr in s_nplnr
                    and   b~matkl in s_matkl
                    and   b~werks in s_werks
                    and   b~txz01 in s_txz01
                    and   c~ekgrp in s_ekgrp
                    and   c~lifnr in s_lifnr
                    and   c~bedat in s_bedat.


        authority-check object 'M_BEST_EKO'
                        id 'ACTVT' field '03'
                        id 'EKORG' field wa_itab_mmdata-ekorg.


Viewing all articles
Browse latest Browse all 8808

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>