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: 

Double click on table control

Former Member
0 Kudos

Hi Experts,

I am having a table control.In that there is a field called Production Order.When I am double clicking on that field it is taking me to the transaction CO03.

But the problem is it is going to the transaction CO03 without the value of production order.The piece of code which i am using is given below.

WHEN 'CO03'.

DATA : fname(40),

fvalue(40).

CLEAR :fname,

fvalue.

GET CURSOR FIELD fname value fvalue.

IF fname = 'WA_OVERVIEW-AUFNR'.

CALL TRANSACTION 'CO03'and skip first screen.

ENDIF.

Please help me out hoe to get the value of the production order in the CO03 transaction.Help will be appreciated.

Regards

Sourabh

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

First

WHEN 'CO03'.

DATA : fname(40),

fvalue(40).

CLEAR :fname,

fvalue.

GET CURSOR FIELD fname value fvalue.

IF fname = 'WA_OVERVIEW-AUFNR'.

<b>*---Here set the parameter with the fvalue.

set parameter id anr fvalue.</b>

CALL TRANSACTION 'CO03'and skip first screen.

ENDIF.

Thanks and Regards,

Bharat Kumar Reddy.V

5 REPLIES 5

Former Member
0 Kudos

Hi,

First

WHEN 'CO03'.

DATA : fname(40),

fvalue(40).

CLEAR :fname,

fvalue.

GET CURSOR FIELD fname value fvalue.

IF fname = 'WA_OVERVIEW-AUFNR'.

<b>*---Here set the parameter with the fvalue.

set parameter id anr fvalue.</b>

CALL TRANSACTION 'CO03'and skip first screen.

ENDIF.

Thanks and Regards,

Bharat Kumar Reddy.V

0 Kudos

Hi Bharat,

I have tried this but it is not working. What does <b>anr</b> stands for in set parameter id <b>anr</b> fvalue

0 Kudos

Hi Sourabh,

It is the parameter id, which is available for most of the data elements. It stores the field value in it till it is further changed.

You can check F1 help...

SET PARAMETER ID pid FIELD dobj.

Effect:

This statement sets the content of the SPA/GPA parameter specified in pid to the content of the data object dobj. For pid, a flat character-type field is expected that can contain a maximum of 20 characters, which cannot be exclusively blank characters. pid is case-sensitive. For dobj, a flat, (as of release 6.10 character-type) field is expected, whose binary content is transferred in an unconverted format.

Thanks and Regards,

Bharat Kumar Reddy.V

0 Kudos

correct syntax for set parameter id

SET PARAMETER ID 'ANR' FIELD rs_selfield .

where rs_selfield is a variable holding the value to be passed to order field.

ANR is the parameter id of the order no. field which you can see from the data element of the field.

place the curosor on order no. field in CO03 and hit f1, then hit f9. double click on dataelement (AUFNR) , choose futher characteristics tab , here you will se the parameter id ANR

Regards

Raja

0 Kudos

Thanks a lot Durairaj.

The problem is solved.

Regards

Sourabh