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

Re: Running FMBBC via FM by a user who does not have authorization

$
0
0

Hello Liji,

 

In SU24, you can able to get the below objects to maintain in the authorization matrix

SU24.png

while Posting / Approving you can default the document type in the object F_FMBU_DOC

 

Another work around in the new zprogram

 

The steps for performing debugging are listed as follows:

Step 1 - Insert debug division

Within Function module 'AUTH_CHECK_TCODE' insert a break-point the ABAP code line 'if sy-subrc = 0.', straight after the call 'AUTH_CHECK_TCODE' id 'TCODE' field tcode command.

Step 2 - Executing your chosen SAP transaction code

Proper care has to be taken to ensure that while executing the tcode, SAP should go into debugging mode and stop at your break point. If it doesn't type /h into the command line field, this is the place where you enter transactions, and press enter, then try executing your transaction code again. If it stops at a point which is not where you inserted the breakpoint in step 1 keep pressing F8 until it gets to it!

Step 3 – Changing SY-SUBRC Value:

In case you are unauthorized to perform this transaction, When the code reaches the 'if sy-subrc = 0' statement, sy-subrc should have a value not equal to 0. change this to 0 using the usual method relevant to your system (i.e. by clicking on the change pencil icon, change value and press enter). Press 8, when the value is changed for continuing the SAP program on its way.

 

Regards,

Sanju M S


Viewing all articles
Browse latest Browse all 2878

Trending Articles



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