‎2008 Oct 30 10:36 AM
Hi all,
During the Invoice Creation, I need to add an entry in the VBFS table, so that it will be displayed in the system log. In the FM 'RV_INVOICE_CREATE', the structure corresponding to it is XVBFS. There is a user-exit CALL CUSTOMER-FUNCTION '002', in this FM 'RV_INVOICE_CREATE'. But the import, export or Table Parameters does not have XVBFS.
How can I use XVBFS inside the User exit?..
Please help.
Regards,
Asha
‎2008 Oct 30 10:39 AM
Hi
It is not possible to use. You can try one thing export the data into some memory id and Import it in user-exit.
Regards
Aditya
‎2008 Oct 30 10:42 AM
Hi Adithya,
Thanks for the Reply, RV_INVOICE_CREATE, is a Standard one.. So I cannot use export in the FM to get it in User Exit
Thanks,
Asha
‎2008 Oct 30 10:45 AM
There is an alternative. You can use this sample piece of code in the user exit.
field-symbols <fs_vbfs> type table of vbfs.
Assign ('(SAPLV60A)xvbfs[]') to <fs_vbfs>.Append your entry to <fs_vbfs> which in turn will be appended to xvbfs.
‎2008 Oct 30 10:45 AM
Hi,
I dont know whether this will help u...
write this in user exit...to access variables/tables of main program..
FIELD-SYMBOLS: <komv>.
ASSIGN ('(SAPLMEPO)TKOMV[]') TO <komv>.
where.. SAPLMEPO is the main program...and TKOMV[] is a internal table in SAPLMEPO.
regards
Sukriti....
‎2008 Oct 30 10:50 AM
Hello Asha
The technique to overcome the user-exit restrictions is described in:
[SAP User Exits and the People Who Love Them|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/208811b0-00b2-2910-c5ac-dd2c7c50c8e8]
Regards
Uwe
‎2008 Nov 03 8:36 AM