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

trasaction

Former Member
0 Likes
1,058

can you assian a matchcode object to a parameter? if so how

can you assian a matchcode object to a parameter? if so how

7 REPLIES 7
Read only

Former Member
0 Likes
1,034

hi,

Yes u can assign a matchcode to parameter.

parameter p_value like ekko-ebeln matchcode (matchcode ID).

Read only

Former Member
0 Likes
1,034

just specify the parameter with a type where the Search Help is assigned in the DB table:

i.e.

PARAMETERS:

P_MATNR TYPE MARA-MATNR.

Thats it. You have the standard collective search help.

<b>Rewards point for helpful answer.</b>

Regards,

Abhay.

Read only

Former Member
0 Likes
1,034

parameter p MATCHCODE OBJECT mobj .

Read only

Former Member
0 Likes
1,034

Hi,

Yes,U can.

PARAMETERS MATNR like MARA-MATNR MATCHCODE OBJECT ZMATNR.

Steps To Create Matchcode Object:

Step1 : Go to Se11 and Select Search Help and Enter One Name and Click Create.

Step2 : Enter your Table name in 'Selection Method' Field.

Step3 : Enter the field Name and tick the Flags Imp and Exp and Type 1 and 2 in Lpos,

Spos fields.

Step4 : Save & Activate it.

Regards,

Padmam.

Read only

Former Member
0 Likes
1,034

What is the use of "GET CURSOR" command in reports

Read only

0 Likes
1,034

Hi,

At PAI you can read the current cursor position.

GET CURSOR FIELD .

if you only want to determine the row of the table control. SY´-SUBRC allows you to check if the cursor is placed in a row of a table control.

Regards,

Padmam.

Read only

0 Likes
1,034

Hi,

GetCursor

If the hidden information is not sufficient to uniquely identify the selected line, the command GET CURSOR is used. The GET CURSOR command returns the name of the field at the cursor position in a field specified after the addition field, and the value of the selected field in a field specified after value

refer this demo code and click on the any one field value of the output ..

it wil take u to secondary list -

tables pa0001.

data: cursorfield(20).

data: begin of itab occurs 0.

include structure pa0001.

data end of itab.

start-of-selection.

select * from pa0001 up to 2 rows into table itab.

loop at itab.

write:/ itab-pernr.

endloop.

AT LINE-SELECTION.

GET CURSOR FIELD CURSORFIELD.

case cursorfield.

when 'ITAB-PERNR' .

read table itab with key pernr = itab-pernr.

write:/ itab-plans.

endcase.

Regards