Skip to Content
0

How to call a standard transaction with a variant?

Jan 27, 2017 at 09:41 AM

463

avatar image
Former Member

I have a report where i need to call a standard transaction(IW59) on clicking a button. The thing is I need to call the transaction such that the initial screen fields are pre-filled according to a variant NO_POWER. Is it possible? And if yes, how to do it?

The transaction IW59 should open up and the fields should be pre-filled according to the variant NO_POWER.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Raymond Giuseppi
Jan 27, 2017 at 10:00 AM
1

Look at the transaction definition, this is a report transaction, call the report behind the transaction with the variant. Of course you should also check authorization to transaction with AUTHORITY_CHECK_TCODE.

If you actually require to call the transaction (there is a desperate need to set sy-tcode?) then export your selection/variant in memory and get it back in some available enhancement in the INITIALIZATION block of the report, there are also static enhancement points available. (for variant use FM RS_SUPPORT_SELECTIONS)

Please note that some FMs (e.g. in FG IWO1) and classes already call this report, perform some where-used search.

Regards,
Raymond

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Yes I called the report behind the transaction using submit and it worked. Thanks mate.

0
Raghu Govindarajan Jan 27, 2017 at 03:24 PM
1

You can create a variant transaction in SE91 and call that instead. This has been asked many times in the past, if you Google "ABAP Call Transaction with variant" you will get plenty of help, such as - CALL TRANSACTION with variant

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Feb 09, 2017 at 05:15 AM
0

Firstly SHDO t-code , where u will create your transaction variant

Secondly, SE93 where you will attach the transaction code.That's all!

Remember to call the screen variants too while attachments.

Share
10 |10000 characters needed characters left characters exceeded