01-15-2007 8:48 PM
Hi,
I am using the following code to clear structure CAUFVD in the top include LIWOLTOP of the main program SAPLIWOL.
FIELD-SYMBOLS: <fs_caufvd> TYPE any .
CONSTANTS: c_caufvd(25) TYPE c VALUE '(SAPLIWOL)CAUFVD'.
ASSIGN (c_caufvd) TO <fs_caufvd>.
clear: <fs_caufvd>.
However I get a short-dump: 'GETWA_NOT_ASSIGNED' (Field symbol has not yet been assigned').
Could you please help with this issue.
Thanks.
01-15-2007 9:01 PM
Hi,
Try this.
FIELD-SYMBOLS: <fs_caufvd> TYPE any .
DATA: wa_struc(100) TYPE c,
wa_caufvd TYPE caufvd.
wa_struct = '(SAPLIWOL)CAUFVD'.
ASSIGN (wa_caufvd) TO <fs_caufvd>.
wa_caufvd = <fs_caufvd>.
clear wa_caufvd.
<fs_caufvd> = wa_caufvd
UNASSIGN <fs_caufvd>.
Regards,
Ferry Lianto
01-15-2007 8:58 PM
01-15-2007 9:06 PM
Hi,
Yes, SAPLIWOL is in the call stack. My problem is this. I am using a bapi IQS4_CREATE_NOTIFICATION to create a notification. There is a call to the function module IWOL_ADD_NOTIF_TO_DDB_INT within this bapi and the issue is that the previous value of structure CAUFVD is being retained within this function module. I am trying to clear this value using the code indicated above.
My call stack is indicated below:
<b>SAPLIWOL FUNCTION IWOL_ADD_NOTIF_TO_DDB_INT</b>
SAPLIQS0 FORM ZUORDNEN_ORDER_F01
SAPLIQS4 FORM CREATE_NOTIFCATION_HEADER_F10
SAPLIQS4 FUNCTION IQS4_CREATE_NOTIFICATION
ZCL_20_BC_QM_NOTIF============CP METHOD CREATE_NOTIF
Thanks.
01-15-2007 9:12 PM
01-15-2007 9:15 PM
01-15-2007 9:26 PM
01-16-2007 9:35 PM
Thank you Rich for your valuable advice. I was having certain other issues while using field symbols and finally resorted to a leave to transaction call to clear all the variables after returning from the bapi.
01-15-2007 9:01 PM
Hi,
Try this.
FIELD-SYMBOLS: <fs_caufvd> TYPE any .
DATA: wa_struc(100) TYPE c,
wa_caufvd TYPE caufvd.
wa_struct = '(SAPLIWOL)CAUFVD'.
ASSIGN (wa_caufvd) TO <fs_caufvd>.
wa_caufvd = <fs_caufvd>.
clear wa_caufvd.
<fs_caufvd> = wa_caufvd
UNASSIGN <fs_caufvd>.
Regards,
Ferry Lianto
01-16-2007 9:33 PM
Hi,
Thanks for the code snippet. This did work for me. However, I was having other issues while calling the bapi from my custom transaction and therefore resorted to a leave to transaction call to resolve the issue of certain variables not being cleared.
Regards,
Tessy