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

ABAP : Problem in event calling

Former Member
0 Likes
910

Dear friend ,

I have developed a report , in which when I am clicking on Purchase Requisition number

then I am jumping to the tcode ME53N but it is not showing me the same PR ,

some different PR is shown , but I want on which PR I just click then I should

jump to the me53n with the same PR number .

some code is here .

FORM USER_COMMAND_PR USING R_UCOMM LIKE SY-UCOMM

RS_SELFIELD TYPE SLIS_SELFIELD.

CASE rs_selfield-fieldname.

WHEN 'BANFN'.

     CALL TRANSACTION 'ME53N' AND SKIP FIRST SCREEN.

     SKIP.

  ENDCASE.

ENDFORM.

how can I do this .

Rihan

1 ACCEPTED SOLUTION
Read only

former_member585060
Active Contributor
0 Likes
881

Hi,

     Use SET PARAMETER-ID before CALL TRANSACTION.

CASE rs_selfield-fieldname.

WHEN 'BANFN'.

    SET PARAMETER ID 'BAN' FIELD rs_selfield-value.

     CALL TRANSACTION 'ME53N' AND SKIP FIRST SCREEN.

     SKIP.

  ENDCASE.

ENDFORM.

Thanks & Regards

Bala Krishna

5 REPLIES 5
Read only

former_member585060
Active Contributor
0 Likes
882

Hi,

     Use SET PARAMETER-ID before CALL TRANSACTION.

CASE rs_selfield-fieldname.

WHEN 'BANFN'.

    SET PARAMETER ID 'BAN' FIELD rs_selfield-value.

     CALL TRANSACTION 'ME53N' AND SKIP FIRST SCREEN.

     SKIP.

  ENDCASE.

ENDFORM.

Thanks & Regards

Bala Krishna

Read only

0 Likes
881

Thanks a lot ,

but in case of Purchase Order what I have to set Please suggest .

FORM USER_COMMAND_PO USING R_UCOMM LIKE SY-UCOMM

RS_SELFIELD TYPE SLIS_SELFIELD.

CASE rs_selfield-fieldname.

WHEN 'EBELN'.

     CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.

     SKIP.

  ENDCASE.

ENDFORM.

rihan

Read only

0 Likes
881

hello rihan ,

SET PARAMETER ID 'BES' FIELD rs_selfield-value.

CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.

Read only

0 Likes
881

thanks a lot for PO the Parameter Id is 'BES'.

Issue is solved .

Thanks

Rihan

Read only

0 Likes
881

hi sir,

your answer is helpfull

regards,

uday