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

Interactive report output help needed..

Former Member
0 Likes
788

Dear,

I have the below requirement......

I am display the report output with REUSE_ALV_GRID_DISPLAY. In my output I have 10 columns and notification number is one column from 10 columns.

My requirement is that, when user will click on notification number, I am calling a custom transaction code.In that Tcode notification number field is present. So user want, the notification number which he/she clicked on report output,that should display on notification number field of custom transaction code.

My problem is, i am getting my clicked notification number from report output.But without changing in custom transaction code, is it possible to display the notification number in the notification number field of that custom transaction code ????

I think, its not possible that without writing code in that custom transaction code program,we can not display. But if you have any suggestion that it can possible, then please let me know asap ....

Thanks and Regards,

Ajit

3 REPLIES 3
Read only

andrs_sarcevic
Contributor
0 Likes
727

I see two options:

1) Via Parameter ID: the Data Element of your notification number field must have a Parameter ID defined. Then, from your program you can set it before calling the custom transaction:


SET PARAMETER ID '<PARAMETER ID NAME>' FIELD lv_notification_number.

2) If the custom transaction is a report, you can use SUBMIT instead of CALL TRANSACTION:


SUBMIT your_custom_program WITH p_notnbr EQ lv_notification_number

AND RETURN.

In both options, you do not have to modify your custom program that's being called from your report. Option 1 will have you modify the data element, provided it's a custom one, but that won't have a negative effect on the code itself.

Regards,

Andres.

Read only

0 Likes
727

Dear Andres,

Thanks for the replay.But issue is....

That calling transaction code is a module pool program.

Regards,

Ajit

Read only

0 Likes
727

Hi Ajit,

Adding to what Andreas suggested above, i think it would be wise to use parameter ID.

From the calling program, set the parameter ID as he indicated. You may also need to create a parameter ID for the notification number in the table TPARA.

Also, declare the type of the number in the module pool screen of the type of notification number. In case it is not getting populated, then explicitly use GET PARAMETER ID statement to read the value and assign it to the screen field in the PBO of your module pool screen.

Please confirm if this doesn't work.

Thanks,

Anupam