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

Double click on table control

Former Member
0 Likes
832

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
Read only

Former Member
0 Likes
774

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

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

5 REPLIES 5
Read only

Former Member
0 Likes
775

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

Read only

0 Likes
774

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

Read only

0 Likes
774

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

Read only

0 Likes
774

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

Read only

0 Likes
774

Thanks a lot Durairaj.

The problem is solved.

Regards

Sourabh