Skip to Content
author's profile photo Former Member
Former Member

call Z transaction from report

Hi SDN's

I need to call a Z Transaction from a report and come back to the report once i press back of the Z Tcode.

Can any body guide me in knowing which is the best way that can be followed. Is that an Classic Report or ALV or OO ALV? I am comfortable with ALV, but not with OO ALV(being interactive). So can some one give a sample code if possible?

And also how do is pass the parameters from the report to the transaction.

Thanks & Regards

Pratyusha

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2007 at 02:31 AM

    You can call any transaction using below syntax:

    CALL TRANSACTION tcod [AND SKIP FIRST SCREEN] [USING itab].

    For more info, refer below link:

    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9da935c111d1829f0000e829fbfe/frameset.htm

    Check this link for sample coding for BDC Call Transaction:

    http://www.erpgenie.com/abap/bdc.htm

    You can call from any type of report.

    Thanks,

    Santosh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2007 at 02:26 AM

    Hi Pratyu,

    You can use call transaction 'tcode'.

    Pls reward if found useful.

    Thanks

    Shyam

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2007 at 03:13 AM

    Hi,

    Check this link for a very good documentation on OO ALV..

    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVALV/BCSRVALV.pdf

    Thanks,

    Naren

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thnk U all for the information,

      one last doubt.

      i use the set parameter id in the report before calling the transaction. and use the statemetn get parameter in the PBO of the custom tcode screen. but once i save the tcode it shud clear off the parameter ID.

      so tht i go back to the list and again select a new list item and go the tcode with the new parameter.

      And not only that when i run the transaction individually i get the parameter by default. how do i avoid this and how do i differentiate the tcode when it being called from the report or individually?

      Regards

      Pratyu

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2007 at 04:11 AM

    Hi pratyu usha ,

    am unable to intrepret what exactly u are looking for but

    if u are looking to clear the field value once saved u can refresh the fields/list before the next value pops-up, in the sense u can free or clear itab/ddic structure.

    hope this helps,

    all the best,

    sampath

    *mark helpful answers

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2007 at 02:08 AM

    solved

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.