‎2005 Nov 14 1:55 PM
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.
‎2005 Nov 14 1:57 PM
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
‎2005 Nov 14 1:58 PM
Hi
the structures you fill are internal table? OR simple flat structure?
bye
enzo
‎2005 Nov 14 1:59 PM
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
‎2005 Nov 14 2:00 PM
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
‎2005 Nov 14 2:00 PM
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 !!!)
‎2005 Nov 14 2:04 PM
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.
‎2005 Nov 14 2:01 PM
‎2005 Nov 14 2:06 PM
in some exit-functions is a parameter <b>f_change</b>,
which must be switched to 'X'.
pls check your exit
Andreas
‎2005 Nov 14 2:02 PM
‎2005 Nov 14 2:06 PM
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.
‎2005 Nov 14 2:14 PM
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.