‎2012 Aug 04 9:04 AM
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
‎2012 Aug 04 9:27 AM
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
‎2012 Aug 04 9:27 AM
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
‎2012 Aug 04 9:37 AM
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
‎2012 Aug 04 9:44 AM
‎2012 Aug 04 9:46 AM
thanks a lot for PO the Parameter Id is 'BES'.
Issue is solved .
Thanks
Rihan
‎2013 Nov 28 9:38 AM