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

call z transaction using report data.

Former Member
0 Likes
1,471

hi experts,

i have a problem. i create a module pool screen for employee details, fields on screen is :

company code : -- parameter id zcmp

employee code :----


parameter id zemp

and i have some button in application toolbar like save, display, delete etc.

then i build a interactive report of employee list,

when i click on employee code in interactive report set the parameter ids and call the transaction zh03 with skip first screen.

but no data display. because data display only by display button.

so how can do this.???/

hi experts,

i have a problem. i create a module pool screen for employee details, fields on screen is :

company code : -- parameter id zcmp

employee code :----


parameter id zemp

and i have some button in application toolbar like save, display, delete etc.

then i build a interactive report of employee list,

when i click on employee code in interactive report set the parameter ids and call the transaction zh03 with skip first screen.

but no data display. because data display only by display button.

so how can do this.???/

7 REPLIES 7
Read only

Former Member
0 Likes
1,202

- from the interactive report export the FCODE of the Display button of that other report.

- IN your transaction program import this FCODE. and your PBO will do the rest of the things.

Read only

0 Likes
1,202

hi soumya,

can you give any examples.

like this.

Read only

Former Member
0 Likes
1,202

Hi,

I am not able to get a complete picture of what you want. Though, as far as I have understood, check if you have read the internal table contents into the work area properly.



FORM user_command USING r_ucomm LIKE sy-ucomm
      rs_selfield TYPE slis_selfield.
  READ TABLE t_materialdetails INTO wa_materialdetails INDEX
  rs_selfield-tabindex.
  SET PARAMETER ID 'MAT' FIELD wa_materialdetails-matnr.
  CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
ENDFORM.                    "USER_COMMAND

Read only

Former Member
0 Likes
1,202

Hi NSTomar,

Copy the screen to some different screen no.

Then for this copied screen, in PBO, add code for displaying. this screen will be used only for interactive report purpose. Add PF status as per your requirement.

Let me know if you need more explanation.

Thanks & Regards,

Anil Salekar

Read only

Former Member
0 Likes
1,202

Hello Frn'

call trancation have a addtion BDC TAB ....pass the ok_code (sy-ucomm value) in BDC_TAB tablle and call the transaction

CALL TRANSACTION ta { [AND SKIP FIRST SCREEN]

| [USING bdc_tab [bdc_options]] }.

Thanks and Regards

Priyank

Read only

Former Member
0 Likes
1,202

Hello NSTomer,


data:
  w_emp like zemp.

get cursor field fs_emp-empno value w_emp.
set parameter id 'EM' field w_emp.
call transaction 'ZH03' and skip first screen.
commit work.
wait up to 10 seconds.

fs_emp should be work-area or field-string of employee details.

Please try out with the above given code, hope it helps you solve your issue.

Thanks and Regards,

Zahack

Read only

Former Member
0 Likes
1,202

solved help with priyank dixit