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

Problem in transaction variant when going back to initial screen

Former Member
0 Likes
1,555

Hello,

I've created a transaction variant zb21 for the mb21 transaction. When I create a role for the new created t.code 'zb21' and test it everything is okay until the user select back button, there's an authorization error the that the user does not have authorization on the mb21 t.code.

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,115

Coud be caused by the "LEAVE TO TRANSACTION sy-tcode" in the original coding, (FORM beleg_anzeigen INCLUDE MM07RFB0)

So either you  change standard behavior, or give standard transaction authorization.

For reference, read Note 601472 - Authorization check with variant transactions, to find how to change the code.

- using LEAVE TO CURRENT TRANSACTION ABAP (Use Implicit Ehn)

- creating a wrapper report which uses FM RS_HDSYS_CALL_TC_VARIANT and adapt your transaction to call this report

Regards,

Raymond

Coud be caused by the "LEAVE TO TRANSACTION sy-tcode" in the original coding, (FORM beleg_anzeigen INCLUDE MM07RFB0)

So either you  change standard behavior, or give standard transaction authorization.

For reference, read Note 601472 - Authorization check with variant transactions, to find how to change the code.

- using LEAVE TO CURRENT TRANSACTION ABAP (Use Implicit Ehn)

- creating a wrapper report which uses FM RS_HDSYS_CALL_TC_VARIANT and adapt your transaction to call this report

Regards,

Raymond

6 REPLIES 6
Read only

Former Member
0 Likes
1,115

Hi

back button in a copied standard transaction (instead an exit) could still call the authorisation check of the standard one.

Can you give the authorisation missing?

Let me know

a

Read only

0 Likes
1,115

Hi Andrea,

I haven't copy the standard transaction, I've created a transaction variant and defaulted it to the standard transaction.

Read only

satyabrata_sahoo3
Contributor
0 Likes
1,115

Create similar auth. objects as of MB21 for your ZB21 in SU24 and assign in the roles.

Similar thread:

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

-Satya

Read only

Former Member
0 Likes
1,115

Hi,

After having the authorisation error, go to tcode /NSU53, and assign the role for the user which you see in /NSU53. Hope this will solve your problem.

Thanks-

Makarand

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,116

Coud be caused by the "LEAVE TO TRANSACTION sy-tcode" in the original coding, (FORM beleg_anzeigen INCLUDE MM07RFB0)

So either you  change standard behavior, or give standard transaction authorization.

For reference, read Note 601472 - Authorization check with variant transactions, to find how to change the code.

- using LEAVE TO CURRENT TRANSACTION ABAP (Use Implicit Ehn)

- creating a wrapper report which uses FM RS_HDSYS_CALL_TC_VARIANT and adapt your transaction to call this report

Regards,

Raymond

Read only

0 Likes
1,115

Hi Raymond,

We used the workaround of creating a wrapper report and using FM RS_HDSYS_CALL_TC_VARIANT function module.

The note was already implemented on our system.