Skip to Content

How to call a standard transaction with a variant?

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Jan 27, 2017 at 10:00 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 27, 2017 at 03:24 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 09, 2017 at 05:15 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded