‎2007 May 11 6:23 AM
Hi all,
I have a reuirement to cretae a BAPI FM with the logic of a report to be the source code.
But in the report I have the selection screen components as select-options.
for eg
SELECT-OPTIONS : ebeln FOR ekko-ebeln,
ebelp FOR ekpo-ebelp.
How do I map this select-option fields to the import parameters of the BAPI as they are like internal tables.
Pls help with your ideas.
Thanks,
stock
‎2007 May 11 6:39 AM
Hi,
We have the Structures, look at these structures structure RANGE_C8, this will have the LOW and HIGH are character length 8. If you need a bigger field than that then use RANGE_C9, if you press F4 for RANGE_C* then you will find all the Range predefined structures
Regards
Sudheer
‎2007 May 11 6:30 AM
Hi
Check some structures like <b>WSELKUNNR</b> which is of internal table for select-options .check in Se11.
so declare your import parameter type wselkunnr.
Reward points if useful
Regards
Anji
‎2007 May 11 6:40 AM
Hi,
I could get the structure for other fields, but I need for EBELN, EBELP and LBLNI fields.
How do i get one or if needed where can I create a new type structure for this individual fields?
Thanks,
stock
‎2007 May 11 6:39 AM
Hi,
We have the Structures, look at these structures structure RANGE_C8, this will have the LOW and HIGH are character length 8. If you need a bigger field than that then use RANGE_C9, if you press F4 for RANGE_C* then you will find all the Range predefined structures
Regards
Sudheer
‎2007 May 11 6:45 AM
Hi,
For EBELN, you can use RANGE_C10 structure, look at that strucutre, so based on the length you can use these Range Structures
Regards
Sudheer
‎2007 May 11 7:45 AM
Hi,
I am creating a BAPI and read that the structure used in the import has to be user defined.
So I am trying to create a user defined structure by using "TYPES".
I am declaring the "TYPES" in the Function group top include, created for the BAPI and giving the import statement in the BAPI as "i_ebeln type T_EBELN" but it gives me error like " The TYPE T_EBELN is not found"
I have declared the types in the FN grp and am getting the error, where else do i have to declare the " types"to avoid the error.
Pls help with your ideas.
Thanks,
Stock