Skip to Content
-2

Pass Parameter to a an already opened transaction using call transaction from ALV Report.

Hi ,

I have developed a report which will take values from 'VA01' tcode using 'SET PARAMETER ID' and creates a report.

Now when the user double clicks on any line of the ALV report,the values from that line should be passed to the same va01 transaction.

Basically my report will have material numbers and that double clicked material number should be made available to the Item overview tab of VA01.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    May 08, 2017 at 12:40 PM

    Thanks to @Moshe Naveh who found this question for me....

    User exit USEREXIT_CUST_MATERIAL_READ in MV45AFZB is triggered when the material number changes. You can do a call screen in there to a custom screen where you can insert your own code including the ALV. I have used this technique to populate fields in the item tab myself.

    Sorry in the delay but I couldn't find this again.....

    Rich

    Add comment
    10|10000 characters needed characters exceeded

  • May 02, 2017 at 04:30 PM
    -3

    To explain better.

    My scenario is - In va01 transaction when i create an order

    • 1)I enter material/item in the item overview tab.
    • 2)I go to the Deals over ride column and press F4, this shows me the deals that are available for the selected item (custom).
    • 3)Then I open a ztcode and that opens up an ALV with list of items that qualifies the deal (custom)
    • 4)Now When I double click on any line of the item that is double clicked , it should be placed in va01 item overview tab in the next line.-- How will i achieve this??

    Thanks,

    Add comment
    10|10000 characters needed characters exceeded

  • May 03, 2017 at 05:08 AM

    Hi,

    Have you tried call transaction statement?

    CALL TRANSACTION 'VA01' AND SKIP FIRST SCREEN.

    You can find example code in sap archives.

    Regards,

    Mangesh Parihar

    Add comment
    10|10000 characters needed characters exceeded

  • May 03, 2017 at 09:13 AM

    Use the "batch input" capability of CALL TRANSACTION ... USING bdcdata.

    This way you can fill screen fields and navigate between screens automatically.

    Please refer to the ABAP documentation for more information + SCN forum archived threads.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Sandra /Richard, Thanks.

      Yes this is my POC of whether and how my logic will work.

      So now what i have achieved is , in the user exit i am having a pop up screen which will be invoked when one of the columns in the item overview tab is clicked(F4). --> No issues , this works fine.

      Next i use this FM 'ABAP4_CALL_TRANSACTION' to call my alv( which is attached to the tcode) with the parameters in the va01 screen.

      Works perfect.

      I have to accept the fact that clicking on any line in alv will not place the contents in my va01 item lines.

      Thanks again.