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: 

userexit value assign

Former Member
0 Kudos

Hi,

How to assign value in screen filed?

Ex:If i enter some material in va02, i want to display quantity as 100 in target quantity field , automatically.

How can i do this?

points guaranteed

kaki

7 REPLIES 7

abdul_hakim
Active Contributor
0 Kudos

Hi

Use SET PARAMETER/GET PARAMETER technique for this..

Abdul

0 Kudos

Hi Hakim,

Can u give me any small example ?

kaki

Former Member
0 Kudos

Hi Kaki,

1.

set parameter id 'ABC' field 'myvalue'.

where 'ABC' is the parameter id of the screen field

place cursor on the screen field

(F1-->Technical Info)

2. But in VA02, quantity field,

it does not have any parameter id.

3. possibly, the user-exit must be providding

the facility -- check out.

regards,

amit m.

0 Kudos

Hi AMIT,

I want to pass G_EQUNR into 'RIWOL-EQUNR' in VA02.In debugging iam getting value in G_EQUNR.But in VA02 iam not able to get this value.What might be the reason?

You can see 'RIWOL-EQUNR' in <b>extras->technical objects->equipment</b>

DATA: G_QMNUM LIKE VBAK-QMNUM.

DATA: G_EQUNR LIKE QMIH-EQUNR.

DATA: REPID(11) VALUE <b>'RIWOL-EQUNR'</b>.

SELECT SINGLE QMNUM INTO G_QMNUM FROM

VBAK WHERE VBELN = VBAK-VBELN.

SELECT SINGLE EQUNR INTO G_EQUNR FROM

QMIH WHERE QMNUM = G_QMNUM.

SET PARAMETER ID 'REPID' FIELD <b>G_EQUNR.</b>

kaki

0 Kudos

Hi again,

1. what is the name of ur user-exit?

2. simple SET PARAMETER ID won't work here.

regards,

amit m.

0 Kudos

Hi amit

Iam using

USEREXIT_MOVE_FIELD_TO_VBKD in MV45AFZZ include

any solution pls...

kaki

0 Kudos

Hi kaki,

1. FORM USEREXIT_MOVE_FIELD_TO_VBAP.

Use this FORM for line-item records.

vbap-zmeng = 10.

2. the field is ZMENG.

3. USEREXIT_MOVE_FIELD_TO_VBKD

This is used for header level (and not item level)

regards,

amit m.