05-09-2007 11:36 AM
hi,
actually i am calling ME23n transaction.
when i click it is going on that transaction
but that field is not coming in purchase order field.
i don't know how to assign
i am sending my code.
CASE r_ucomm.
WHEN '&IC1'.
read table t_ekpo index rs_selfield-tabindex.
if sy-subrc = 0.
Concatenat0e 'I got it' t_ekpo-ebeln into var separated by space.
MESSAGE var TYPE 'I'.
*IF rs_selfield-fieldname = 'EBELN'.
READ TABLE t_ekpo INDEX rs_selfield-tabindex.
SET PARAMETER ID 'SAN' FIELD t_ekko-ebeln.
Sxecute transaction ME23N, and skip initial data entry screen
CALL TRANSACTION 'ME23N' using t_ekpo ."AND SKIP FIRST SCREEN.
CALL FUNCTION 'ABAP4_CALL_TRANSACTION'
EXPORTING
tcode = 'ME23N'.
05-09-2007 11:39 AM
HI
SET PARAMETER ID<b> 'BES'</b> FIELD t_ekko-ebeln.
BES not SAN..
you can chek in the dataelement od purchase order for parameter ID
reward if correct
regards,
nazeer
05-09-2007 11:41 AM
Hi
write like this and use: use the paramter ID BES instead of SAN. Where from you got it? check the data element of EBELN.
CASE r_ucomm.
WHEN '&IC1'.
IF rs_selfield-fieldname = 'EBELN'.
Read data table, using index of row user clicked on
READ TABLE t_ekpo INDEX rs_selfield-tabindex.
Set parameter ID for transaction screen field
SET PARAMETER ID 'BES' FIELD t_ekko-ebeln.
CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
ENDIF.
Reward points if useful
Regards
Anji
Message was edited by:
Anji Reddy Vangala
05-09-2007 11:42 AM
Hi
The ID parameter is BES:
*SET PARAMETER ID 'SAN' FIELD t_ekko-ebeln.
<b>SET PARAMETER ID 'BES' FIELD t_ekko-ebeln.</b>
Max
05-09-2007 12:23 PM
Hi Max,
i am not getting still.
Then please tell me where i am rong.