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: 

how to pass value

Former Member
0 Kudos

Hi experts,

Iam trying to pass the value(E2006Y) into va02->extras->technical object->equipmnet column.

Why this code is not working?Iam using MV45AFZZ include.

following 2 codes are not working.

code1.

RIWOL-EQUNR = 'E2006Y'.

code2.

data: lc_EQUNR like RIWOL-EQUNR.

lc_EQUNR = 'E2006Y'.

Set parameter id 'EQN' field lc_EQUNR.

Can any one give me the solution.

cheers

kaki

9 REPLIES 9

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Just because you are <b>SET</b>ting it doesn't mean that when the field is filled by the program, that it is <b>GET</b>ing the parameter id and filling the field accordingly. Are you again trying this in the user exit? If so, I'm not sure where you would try to fill this field.

Regards,

Rich Heilman

0 Kudos

I'm really not sure how you would fill RIWOL-EQUNR from the user exit.

Regards,

Rich Heilman

0 Kudos

Yes Rich.

Iam using same userexit.I want to pass the value in va02->extras->technical objects->equipmnet column.

How to use SET & GET parameters to get this value?OR

Is there any way to fill this column.

Could you please give me the solution.

kaki

0 Kudos

I really don't think you can use the SET/GET PARAMETER to achieve you goal. As I said, if you SET it, the program which is filling the field, must GET it, and filled the field from the value from the PARAMETER ID. If it is not doing this, then there is no way to use the SET/GET PARAMETER.

Regards,

Rich Heilman

0 Kudos

Hi Rich,

Can we use with SAP memory & ABAP memory?

kaki

0 Kudos

Again, I don't think that will work either. You need to fill it the same way you did with the PO date. But this time, I don't think that there is a delivery user exit for you to do this in.

Regards,

Rich Heilman

0 Kudos

within VA02 go into debug and set a watchpoint on this field. At least you should identify where the set/get occurs. If there is then an exit after this you may be able to use it to override the current value.

0 Kudos

Hi Neil,

How to set watchpoint in VA02? Can you explain step by step?

Thanks

kaki

0 Kudos

1. /nva02

2. /h

3. enter

4. click watchpoint button

5. click create watchpoint button

6. enter name of field in popup

I tried to do this and it didn't work for the field you are talking about. Maybe it's my site or the version I'm working on but the variable may be held in a program other than SAPMV45A. If so try and find out what it is and you can then enter that program name in the popup - try f1 while viewing the field maybe??