Application Development and Automation 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: 
Read only

reports

Former Member
0 Likes
573

Hi all,

i got a code like this

select EKKOEBELN EKKOBUKRS EKKO~BSTYP "n603595

EKKOLIFNR EKKOEKORG EKKO~EKGRP "n603595

EKPOEBELP EKPOMATNR EKPO~MENGE "n603595

EKPOMEINS EKPOBPRME EKPO~NETPR "n603595

EKPOPEINH EKPOWEBRE EKPO~WEPOS "n603595

EKPOREPOS EKKOWAERS EKPO~WEUNB "n603595

EKPOELIKZ ekporetpo "n603595

  • Item category PO and flag for service-based IV "n725824

ekpopstyp ekpolebre "n725824

ekpo~ktmng "n603595

into corresponding fields of table ibs "n603595

from ekko inner join ekpo "n603595

on ekkomandt = ekpomandt "n603595

and ekkoebeln = ekpoebeln "n603595

"n603595

WHERE ekko~lifnr IN lifnr "n603595

AND ekko~ekorg IN ekorg "n603595

AND ekko~ekgrp IN ekgrp "n603595

AND ekpo~matnr IN matnr "n603595

AND ekpo~ebeln IN ebeln "n603595

AND ekpo~ebelp IN ebelp . "n603595

SORT ibs BY ebeln ebelp lifnr.

  • Eliminate entries without authority for the purchase organization

LOOP AT ibs.

IF NOT cl_mmim_auth=>check( i_object = 'M_BEST_EKO'

I_VALUE1 = IBS-EKORG ) IS INITIAL.

DELETE ibs.

ENDIF.

ENDLOOP.

I want to know what does

LOOP AT ibs.

IF NOT cl_mmim_auth=>check( i_object = 'M_BEST_EKO'

I_VALUE1 = IBS-EKORG ) IS INITIAL.

DELETE ibs.

ENDIF.

ENDLOOP.

do.............

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
534

Alex

That method is check if the user has authorization to view the data of a specific Purchasing organization. If NOT that row is being deleted from the internal table.

Regards,

Ravi

Note - Please mark all the helpful answers

5 REPLIES 5
Read only

Former Member
0 Likes
535

Alex

That method is check if the user has authorization to view the data of a specific Purchasing organization. If NOT that row is being deleted from the internal table.

Regards,

Ravi

Note - Please mark all the helpful answers

Read only

Former Member
0 Likes
534

Hi Alex

This is to exclude entries for which the user doesnt have authorization for Purchase Organization in Purchase Order.

<b>M_BEST_EKO Purchasing Organization in Purchase Order</b>

Kind Regards

Eswar

Read only

Former Member
0 Likes
534

hi ,

Class cl_mmim_auth having static variables i_object I_VALUE1 . it is checking the value of these varibales if not delting the Tuple fron IBs.

For more details while debugging double click on class to view its contents

*Please mark use full Answers

Read only

Former Member
0 Likes
534

hi alex,

This block of code checks whether the user has authorization to view the data or not...

just go through this for more info on authorization...

http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/authorit.htm

regards,

~Sri.

Read only

Former Member
0 Likes
534

Check the Authorization Object, check the user's purchase org is permited.