‎2008 Jul 04 11:11 AM
hi all
i don't know weather it right forum for BAPI , but writing under this .
my requirement is like , as we give range in SELECT-OPTIONS,
like wise i want to give range in BAPI at INPUT level .
i.e. say i want to get details of Vendors , i will write a BAPI and i will give VENDOR code range to get information of all vendor with in that range.
please guide me in this .
‎2008 Jul 04 11:45 AM
Hi!
You could use this bapi fm: BAPI_VENDOR_GETDETAIL
I could imagine it like this:
1. You have to create an FM, with the RA_LIFNR range.
2.
SELECT * FROM lfa1 INTO TABLE gt_lfa1
WHERE lifnr IN ra_lifnr.
LOOP AT gt_lfa1 INTO gs_lfa1.
CALL FUNCTION 'BAPI_VENDOR_GETDETAIL'
with the parameters
collect data into an output table
ENDLOOP.
3. Give back the output table to the caller program
Regards
Tamá
‎2008 Jul 04 12:07 PM
hi
thanx for reply , my requirment is not to use std. bapi
as u given example of VENODR details BAPI.
like in this BAPI_VENDOR_GETDETAIL i can give only one 1 vendor code at one time ,
similar like this i will create another BAPI which will take RANGE of vendor code.
why i can't do like u told is , we r doing SAP-java integration and in this BAPI is directly called by java program and INPUT is given at that movement ,
so i cannot written SELECT query before calling BAPI .
what i can only do is pass the value to BAPI ,
here how i will pass the range , this is the question.