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

event

Former Member
0 Likes
498

what is the procedure for calling a sales order in reports.In Which event do we call,

Thanks in advance.

3 REPLIES 3
Read only

abdul_hakim
Active Contributor
0 Likes
475

hi

how/where do you wanna call sales order??

if you wanna call from list use the evet

AT LINE-SELECTION.

Cheers,

Abdul Hakim

Read only

ferry_lianto
Active Contributor
0 Likes
475

Hi Nagini,

You can use call transaction with hotspot at line-selection event.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
475

Hi,

When user will double click then U can call transaction VA03 AND SKIP first SCREEN.

Eg.

FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM

RS_SELFIELD TYPE SLIS_SELFIELD.

*When doube click call respective tansaction .

DATA:lw_output LIKE LINE OF t_output.

CASE R_UCOMM.

WHEN '&IC1'.

IF RS_SELFIELD-FIELDNAME = 'MATNR'.

  • Read data table, using index of row user clicked on

READ TABLE t_output INTO lw_output INDEX RS_SELFIELD-TABINDEX.

  • Set parameter ID for transaction screen field

if sy-subrc = 0.

SET PARAMETER ID 'MAT' FIELD lw_output-matnr .

CALL TRANSACTION 'MM43' AND SKIP first SCREEN.

CLEAR r_ucomm.

endif.

ENDIF.

IF RS_SELFIELD-FIELDNAME = 'AKTNR'.

clear: lw_output.

READ TABLE t_output INTO lw_output INDEX RS_SELFIELD-TABINDEX.

if sy-subrc = 0.

SET PARAMETER ID 'WAK' FIELD lw_output-AKTNR .

CALL TRANSACTION 'WAK3' AND SKIP FIRST SCREEN.

CLEAR r_ucomm.

endif.

ENDIF.

ENDCASE.

ENDFORM. "user_command