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

to call a standered function module.

Former Member
0 Likes
374

Hi abap experts..

I am xi consultant, In my scenario i need to create <b>Remote Function module</b>

( suppose FM1) which will call another function (for ex. a BAPI ,or any function module).

The issue is that :- the BAPI take 1 input parameter and return a output of tabular format.

now how i will pass the input first through FM1 and than pass the input to the called BAPI.

the final output of tabular format return by FM1

input ->FM1->BAPI-> output->FM1->

Note: FM1 is any imaginary name.

can any body share me some codes in forum... or

mail me at : ashutosh.rawat83@gmail.com

Thanks and Regards,

Ashutosh.r

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
353

Hi,

Check this example

-


Go to SE37..

Give the function module name FM1

Press create..Give the function group and description..

Give the import parameters, table parameters with the same type of the BAPI or any function moduel that you are going to call..

FUNCTION FM1.

***IMPORTING IM1 TYPE MATNR

***TABLES T_DETAILS STRUCTURE BAPI....

CALL FUNCTION 'BAPI....'

EXPORTING

IM1 = IM1

TABLES

T_DETAILS = T_DETAILS.

ENDFUNCTION.

Thanks,

Naren

2 REPLIES 2
Read only

Former Member
0 Likes
354

Hi,

Check this example

-


Go to SE37..

Give the function module name FM1

Press create..Give the function group and description..

Give the import parameters, table parameters with the same type of the BAPI or any function moduel that you are going to call..

FUNCTION FM1.

***IMPORTING IM1 TYPE MATNR

***TABLES T_DETAILS STRUCTURE BAPI....

CALL FUNCTION 'BAPI....'

EXPORTING

IM1 = IM1

TABLES

T_DETAILS = T_DETAILS.

ENDFUNCTION.

Thanks,

Naren

Read only

Former Member
0 Likes
353

hi all,

when i implemented the above code compilation error : <b>"." expected after T_DETAILS</b>

is coming.if i make some modifications like using - : importing T_DETAILS :ERROR is

there is " wrong use of import.

can anyone help me...

Thanks & Regards,

Ashutosh.r