‎2007 Feb 02 5:14 PM
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
‎2007 Feb 02 5:20 PM
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
‎2007 Feb 02 5:20 PM
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
‎2007 Feb 03 8:09 AM
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