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: 

call transaction for ME53n

Former Member
0 Kudos

Hello Expert:

I am working in the 4.6C system.

now i wanna call transaction Me53N when double click the item in alv tree.

program can get entering ME53N main screen, but the PR number is not crrect again the number of item.

how should i do , your answer will be very appreciated

Kevin

12 REPLIES 12

Former Member
0 Kudos

Hi,

Check wether on the double click the correct values is getting picked up. and passed to transaction.

0 Kudos

yes, it is right.

must i run bdc to change the PR number?

Former Member
0 Kudos

can u show the call transaction statement u've written

кu03B1ятu03B9к

0 Kudos
  • get the item line

CALL METHOD tree1->get_selected_item

IMPORTING

e_selected_node = prf_nkey

e_fieldname = prf_fname

EXCEPTIONS

no_item_selection = 1

cntl_system_error = 2

failed = 3

OTHERS = 4

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

  • get parament node

CALL METHOD tree1->get_parent

EXPORTING

i_node_key = prf_nkey

IMPORTING

E_PARENT_NODE_KEY = ldf_parent_nodekey

.

read table gdt_node_key into lds_node_key

with key node_key = ldf_parent_nodekey.

if sy-subrc = 0.

CALL TRANSACTION 'ME53N'.

endif.

0 Kudos

anyone could tell me why?

SET PARAMETER ID 'PRNO' FIELD lds_node_key-banfn.

CALL TRANSACTION 'ME53N'.

the PR nunber is lds_node_key-banfn, but the screen of ME53N display another number.

why?

0 Kudos

Hello

SET PARAMETER ID 'BAN' FIELD lds_node_key-banfn.

instead

SET PARAMETER ID 'PRNO' FIELD lds_node_key-banfn.

0 Kudos

use CALL TRANSACTION <tcode> USING <bdc_tab>.

pass ur values to bdc_tab

кu03B1ятu03B9к

0 Kudos

Hello Dzed Maroz

it works, but i don't know what's the meaning of 'BAN'.

thanks

later points will be award.

Kevin

0 Kudos

open the transaction, then in status of the transaction (i think its in environment menu) or in the popup which display's screen details u can see the associated parameter id.

кu03B1ятu03B9к

0 Kudos

Hello

BAN - it is parameter ID for purchase requisition number.

0 Kudos

Hi,

BAN is the parameter ID for PR number which is nothing but some memory buffer to store the previously opened PR value.

How to check?

Go to ME53N, Click F1 on PR number, Tech information. Here u can see the parameter ID.

Thanks,

Vinod.

Edited by: Vinod Reddy Vemuru on Mar 11, 2009 6:21 PM

0 Kudos

Hi,

'BAN' is the parameter id which is assigned for the particular field and its value resides in SAP memory.

you can use the statements GET/SET parameter id 'BAN' field 'fieldname'.

this will set the value fieldname whereever the parameter appears which has the parameter ID as 'BAN'.

to know the parameter ID for any field,

press F1 help on the input/output field and then on click on technical settings button, you will get a popup, in that you will get the parameter ID,