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

ABAP SAMPLE FOR USER-EXIT IN R3 USING CALL FUNCTION

ALinetzky
Participant
0 Likes
1,286

HI, Is posible any sample code for use the call function in Include for User-Exit.

1) INCLUDE ZXRSAU01.

2) CASE I_DATASOURCE.

WHEN '2LIS_13_VDITM'.

CALL FUNCTION 'Z2LIS_13_VDITM' ?

Sample code please how define parameters.

3) FUNCTION Z2LIS_13_VDITM

CODE SAMPLE PLEASE FOR RETURN TO POINT 2.

3 REPLIES 3
Read only

matt
Active Contributor
0 Likes
1,029

Have you tried searching for code samples?

Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
1,029

Rather confused by this question... "Code sample" to define FM parameters? This is done on a screen in SE37, not by coding.

"Code sample... for return" Um... There is no "GOTO" command in ABAP. You'd have to call this is in a loop or a cycle, I guess. Although it's not clear what this algorithm is trying to achieve.

There are plenty of samples in ABAP Help. F1 key or ABAPDOCU transaction. Or just Google "ABAP keyword documentation".

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,029

I can only assume that those parameters are a subset of those received by the exit FM (EXIT_SAPLRSAP_001, did you perform a where-used search, are there already some called FM) at least changed table parameter C_T_DATA should be used, before of after maping to actual datasource structure.

It looks like some 'local' rule to modularize this exit development, one FM per datasource, alas not a class/method?