2012 Oct 08 12:51 PM
Hi Experts,
I am working on a ABAP report from where I have to call the Tcode and pass the values to one of the fields in that Tcode.
I am not using BDC.
Regards,
Akhilesh Bhagat.
Hi Experts,
I am working on a ABAP report from where I have to call the Tcode and pass the values to one of the fields in that Tcode.
I am not using BDC.
Regards,
Akhilesh Bhagat.
2012 Oct 08 12:54 PM
2012 Oct 08 1:02 PM
Hi,
1)At first
write like this
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
* I_INTERFACE_CHECK = ' '
* I_BYPASSING_BUFFER = ' '
* I_BUFFER_ACTIVE = ' '
i_callback_program = sy-repid
* I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
...............
2)then within a perform do like this
FORM user_command USING r_ucomm TYPE sy-ucomm
rs_selfield TYPE slis_selfield.
READ TABLE IT_FINAL INTO WA_FINAL
INDEX RS_SELFIELD-TABINDEX.
IF SY-SUBRC = 0.
SET PARAMETER ID 'ANR' FIELD WA_FINAL-AUFNR.
CALL TRANSACTION 'CO03' AND SKIP FIRST SCREEN.
ENDIF.
ENDFORM.
Thanks
Gourav.
2012 Oct 08 2:15 PM
Hi Akhilesh,
Try this
http://help.sap.com/abapdocu_70/en/ABAPCALL_TRANSACTION.htm
Hope this helps.
You just need to pass the parameters by using
SET Parameter ID
after this call transaction and skip first screen.
Rgds,
Sandeep Katoch
2012 Oct 09 11:26 AM
Hi Akilesh,
Make use of this SET PARAMETER ID.
SET PARAMETER ID <PARAMETER ID>. FIELD '<FILED-VALUE>'
CALL TRANSACTION '<TRANSACTION CODE>' and skip first screen.
You can find parameter id of particular filed trough F1 help.
Regards,
K.Rajesh
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |