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

SAP query

Former Member
0 Likes
542

Hi , all

I have a question for the query. Is it possible using a interface parameter for report-to-report interface? I mean when I double click on one the data record of query, I want to transfer the key information of this record to the query or report or transaction as parameters. Is it possible? If yes, could you tell me how?

Thanks and Regards

Saravana

3 REPLIES 3
Read only

Former Member
0 Likes
521

Hi,

IT is possible using SET/GET parameters.

SET PARAMETER ID IS TO STORE THE PARTICULAR FIELD VALUE IN GLOBAL MEMORY CALLED AS SAP MEMORY FOR A PARTICAULAR TIME AND RESTORE IT THROUGH GET PARAMETER ID

e.g.

SET PARAMETER ID 'ABC' FIELD '0'.

If however its in a variable

SET PARAMETER ID 'ABC' FIELD variableName.

Read only

Former Member
0 Likes
521

yes, we can do it two way one using call transaction and at line selection.best way use call transaction.

Read only

Former Member
0 Likes
521

Hi Saravana,

It is possible.Use SET PARAMETER ID statement fo that.

refer this code :

form user_command using p_ucomm type sy-ucomm

p_selfield type slis_selfield.

case p_ucomm.

WHEN '&IC1'.

<b>SET PARAMETER ID 'MAT' FIELD P_SELFIELD-VALUE.</b>

CALL TRANSACTION 'MM01' AND SKIP FIRST SCREEN.

endcase.

P_SELFIELD-VALUE is the value on which u double click.

This value will diecty go to MM01.

endform. " ZF_USER_COMMAND

Reward points if helpful,

Regards,

Hemant