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

Using a variable not in the Export,Import, table Parameters in USER EXIT

Former Member
0 Likes
1,090

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

6 REPLIES 6
Read only

Former Member
0 Likes
940

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

Read only

0 Likes
940

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

Read only

0 Likes
940

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.

Read only

Former Member
0 Likes
940

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....

Read only

uwe_schieferstein
Active Contributor
0 Likes
940

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

Read only

Former Member
0 Likes
940

Hi All,

Thank you for the reply.. This helped

Regards,

Asha