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

Field-symbol assignment

Former Member
0 Likes
1,076

Hi,

In pricing formula routine I am modifying XKOMV table but once it comes out of pricing routine, old values are getting assigned to XKOMV.

PERFORM (frm_kondi_wert) IN PROGRAM saplv61a IF FOUND.

"Call to Pricing routine

xkomv = rettkomv.

"Old value re-assigned

So inside my pricing routine I am trying to modify rettkomv which in program SAPLV61A->LV61AA55 using field-symbol but field-symbol is not getting assigned.

DATA: wa_rettkomv(18) TYPE c VALUE '(SAPLV61A)RETTKOMV'.

FIELD-SYMBOLS: <fs_rettkomv> LIKE xkomv.

ASSIGN (wa_rettkomv) TO <fs_rettkomv>.

Could you please tell me where I am going wrong.

Thanks in advance.

Regards,

Balaji Viswanath.

Hi,

In pricing formula routine I am modifying XKOMV table but once it comes out of pricing routine, old values are getting assigned to XKOMV.

PERFORM (frm_kondi_wert) IN PROGRAM saplv61a IF FOUND.

"Call to Pricing routine

xkomv = rettkomv.

"Old value re-assigned

So inside my pricing routine I am trying to modify rettkomv which in program SAPLV61A->LV61AA55 using field-symbol but field-symbol is not getting assigned.

DATA: wa_rettkomv(18) TYPE c VALUE '(SAPLV61A)RETTKOMV'.

FIELD-SYMBOLS: <fs_rettkomv> LIKE xkomv.

ASSIGN (wa_rettkomv) TO <fs_rettkomv>.

Could you please tell me where I am going wrong.

Thanks in advance.

Regards,

Balaji Viswanath.

4 REPLIES 4
Read only

Former Member
0 Likes
815

Put a break-point then in debug see if (SAPLV61A)RETTKOMV can be seen. If not then it is not on the stack list.

Read only

Former Member
0 Likes
815

In the routine definition, use the keyword "CHANGING" instead of using "USING".

Read only

Former Member
0 Likes
815

HI,

Declare FIELD-SYMBOLS: <fs_rettkomv> type any.

And remove the brakets ,...

ASSIGN wa_rettkomv TO <fs_rettkomv>.

try this it may work.

Thanks!

Brunda

Read only

Former Member
0 Likes
815

Hi all,

I solved the issues by assigning "new_pricing = c_a" in FORM userexit_new_pricing_vbkd CHANGING new_pricing of MV45AFZB include.

Regards,

Balaji Viswanath.