06-16-2006 1:54 PM
Hello
I'm programming a user exit for XQQM. Append Structure ZAQMEL. The field in VIQMEL (ZAQMEL) are working well.
Two of these fields are, say, viqmel-a and viqmel-b.
I defined a structure zzstr with a field c (zzstr-c).
In a PAI Module I have:
zzstr-c = viqmel-a * viqmel-b.
the value of zzstr-c is correct until the PBO (break-point) but on the dynpro I see always 0 (should be, for instance, 2 * 3 = 6)
Does somebody tell me the reason?
Thanks a lot.
Regards,
Tommaso
06-16-2006 1:57 PM
I think some where it is getting cleared in that case.
Regards
vijay
06-16-2006 2:04 PM
Thanks for the answer.
Some more details:
I wrote only a few lines of code: I'm sure, that I'm not clearing the structure.
I think the error should be somewhere else.
Wrong user-exit? What do you mean?
I programmed a dynpro in a function group. I see it in QM02, a set break-point everywhere I my code is called. The structure is defined in a Z-Top-Include.
The values in debugging are correct. The error is only at the end, on my dynpro.
Regards,
Tommaso
Message was edited by: Tommaso Cereghetti
06-16-2006 2:21 PM
Check the name of the field in the dynpro, is it zzstr-c?.
Regards
Sridhar
06-16-2006 2:33 PM
Hi,
In the Function Exit U have to assign values to different structure <b>viqmel to e_viqmel</b>
That is goto
EXIT_SAPMIWO0_009
code in this function exit
*--- Restore VIQMEL from global data
move viqmel to e_viqmel.
MOVE I_VIQMEL TO E_VIQMEL.
INCLUDE ZXQQMU08.
double click on include ZXQQMU08
and move the values form <b>viqmel to e_viqmel</b>
in this way ur value will be retained otherwise it will be lost.
example.
e_viqmel-zz_mprn = viqmel-zz_mprn.
e_viqmel-zz_effectiv_date = viqmel-zz_effectiv_date.
Reward Points if the Problem is Solved.
06-16-2006 2:41 PM
hi,
as said before the structure viqmel is working well
the problem is with an additional structure defined in the top-include of the function group
thanks
regards
tommaso
06-16-2006 2:45 PM
Hi Tomasso,
YOu should not append the additional structure in the top include of the function group.
YOu should instead do it in se11 .
YOu should append the zstructure to VIQMEL.
Regards,
ravi
06-16-2006 2:47 PM
Hi,
if u have defined the structure in this <b>ZXQQMTOP</b> then it should work .
Even i have used the same and it working.
I dont know why it is not working for u.
even check for <b>zzstr-c = viqmel-a * viqmel-b.</b>
where & how . and values for viqmel-a * viqmel-b when it executed.
check this <b>zzstr</b> in where used list.
Message was edited by: Manoj Gupta
06-16-2006 3:20 PM
I found the "error".
I wrote:
DATA:
zzqm_str_xqqm01 TYPE zzqm_str_xqqm01.
And this does not work.
Then I replaced the code with the following:
DATA:
w_zzqm_str_xqqm01 TYPE zzqm_str_xqqm01.
And know is working!
Has someone an explanetion?
Regards,
Tommaso
06-16-2006 3:48 PM
Are u displaying a field from structure zzqm_str_xqqm01 in the screen, If yes, What is the name of the field that's in the screen? if the name begins with w_zzqm_str_xqqm01 and you've defined zzqm_str_xqqm01 then the data is not transfered from PBO to screen.
Regards
Sridahr
06-16-2006 6:32 PM
Tommaso,
those are the user exits:
FUNCTION EXIT_SAPLCORU_S_001
FUNCTION EXIT_SAPLIBER_001.
FUNCTION EXIT_SAPLIQS0_002.
FUNCTION EXIT_SAPLIQS0_003.
FUNCTION EXIT_SAPLIQS0_004.
FUNCTION EXIT_SAPLIQS0_005.
FUNCTION EXIT_SAPLIQS0_006.
FUNCTION EXIT_SAPLIQS0_007.
FUNCTION EXIT_SAPLIQS0_008.
FUNCTION EXIT_SAPLIQS0_009.
FUNCTION EXIT_SAPLIQS0_010.
FUNCTION EXIT_SAPLIQS0_011.
FUNCTION EXIT_SAPLIQS0_012.
FUNCTION EXIT_SAPLIQS0_013.
FUNCTION EXIT_SAPLIQS0_014.
FUNCTION EXIT_SAPLIQS0_015.
FUNCTION EXIT_SAPLIQS0_016.
FUNCTION EXIT_SAPLIQS0_018.
function exit_sapliqs0_019.
FUNCTION EXIT_SAPLIQS0_020.
FUNCTION EXIT_SAPLQAUT_001.
Actually, I do not know for which screen you try to use it nor which of the modules is calle from where nor what you want to accomplish.
Note: you can only acces or modify data defined in the user exit funstion module interface. Read only Import parameters, read and write Change and table parameters, write only export parameters is possible.
So if it still does not work, give more details: Transaction, module/function group and screen number. And the complete name of the user exit. I have serious doubts that your user-defined structure is accessed at all. Even if the structure fields have the same name as the screen fields they may be stored at completely different locations - so changing one of them will not influence the other at all.
If you do not find your data defined in the exits interface you may have good chances for a dynamic assign, like i.e. ASSIGN '(SAPMF05A)BSEG-BSCHL' to <fs>.
In this case, say BSEG-BSCHL is the screen field in program SAPMF05A. A user exit called from there can manipulate the data directly using <fs>.
Feel free to ask more.
Regards,
Clemens
06-16-2006 2:01 PM
You are coding in a wrong user exit.
Find the correct user exit.,
Before you start coding, change the value in debugging.
and see if it is reflected in screen.
Regards,
Ravi
06-16-2006 2:47 PM
Hi,
check your Assignment zstructure value to dynpro
field
Regards,
Amole
09-07-2006 9:10 AM
Hi every body,
i'm programming the same screen exit, to display User subscreen for notification header. (user exit QQMA0001)
i added my own fields in QMEL table as include structure, i crete the screen 100 as empty screen.
the problem is that fields dont appear on the screen.
Please help
A+
Ihsen
08-01-2007 3:51 PM
In this same screen exit I have a problem too.
I use an auxiliar structure and an auxiliar table to store the data of developed screen. (this is working ok)
But when i access qm02 and change the the supplier nummer only the auxiliar table is updated.
as was said here i look in the LXQQMU08 on the include ZXQQMU08, and the value change correctley.
So i have an OK in this checkpoint and in the screen, but in the QM11 neither in the VIQMEL(using SE16) this value changed..
I couldnt find where the system updates VIQMEL(structure) with the previous stored number(present in VIQMEL-Database vision). can anyone help me with this???
thanks