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

not save parameters

Former Member
0 Likes
1,235

i made this:

if sy-subrc = 0.

*zcustsaledata-zpost_code1 = i_kna1-pstlz.

i_knvv-vkbur = zcustsaledata-zsales_office .

i_knvv-vkgrp = zcustsaledata-zsales_group .

i_knb1-pernr = zcustsaledata-zpersonnel_num.

endif.

and the parametrs do not save

any idea.

11 REPLIES 11
Read only

FredericGirod
Active Contributor
0 Likes
1,187

Hi Yehiel,

please provide us all the code, we didn't know where you have put this code, and it's really important.

Rgd

Frédéric

Read only

Former Member
0 Likes
1,187

Hi

the structures you fill are internal table? OR simple flat structure?

bye

enzo

Read only

Former Member
0 Likes
1,187

this is include in user exit.

i need to update this strucre , in debug i see that the field get the data but hus not update it

Read only

Former Member
0 Likes
1,187

Yehiel,

If these(i_knw, i_knw, i_knb1) are <b> intenal tables</b>, then Use <b>Modify</b> statement to save the modifications.

Thanks

Kam

Message was edited by: Kam

Read only

Former Member
0 Likes
1,187

It's not very clear what parameters you want to save...

Do you want to save the parameters as an entry in zcustsaledata entry...then I think the assignment has to be reverse way....If I get your requirement.

Then you have to make INSERT/MODIFY statement(don't know whether this helps !!!)

Read only

0 Likes
1,187

If this is the code with in UE and if i_knvv,i_knb1 are simple structures then the statements you used will suffice, but if those are internal tables then you have to use insert/modify statements. for modify you can use sy-tabix for index.

Read only

Former Member
0 Likes
1,187

ther are "structre"

Read only

0 Likes
1,187

in some exit-functions is a parameter <b>f_change</b>,

which must be switched to 'X'.

pls check your exit

Andreas

Read only

Former Member
0 Likes
1,187

sorry i confuse you

Read only

Former Member
0 Likes
1,187

Hello Yehiel,

You're saying that this code is within the include for a user-exit. the naming convention for the structures I_KNW etc., suggests that they are the importing parameters for that User-Exit Function Module.

why don't you make the change to the Exporting parameters of that function modules ? It will then be reflected properly in the main program.

Regards,

Anand Mandalika.

Read only

0 Likes
1,187

Hello,

I'm just taking a guess that the user-exit that you're using may be EXIT_SAPMF02D_001. In this case, As I have mentioned in my post above, the structures I_KNVV and I_KNB1 are the importing parameters. Any change that you make here will not be appropriate.

What are you trying to do with this user exit ?

Since you're getting the values from the importing parameters, you would typically want to save them into some other variables to update a Z-table.

In this case, you need to use -

zcustsaledata-zsales_office = i_knvv-vkbur.
zcustsaledata-zsales_group = i_knvv-vkgrp.
zcustsaledata-zpersonnel_num = i_knb1-pernr.

Hope that helps...

Regards,

Anand Mandalika.