Application Development 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: 

some querry

Former Member
0 Kudos

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'.

4 REPLIES 4

former_member588853
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

Hi Max,

i am not getting still.

Then please tell me where i am rong.