‎2006 Sep 18 10:43 AM
Hi All,
We are trying to create a BAPI. I am getting the following errors during "Adding API methods" for the function module.
1) The reference structure LFA1 of parameter LIFNR does not begin with BAPI.
2) The ref. structure VEN parameter ITAB does not begin with BAPI.
3) BAPI function does not have any return parameter.
Warning Message:
The input help for field &2-&3 are not defined.
Please suggest the appropriate solution.
Thanks,
‎2006 Sep 18 10:53 AM
Hi
Check for eg: BAPI <b>BAPI_REQUISITION_CREATE</b>
w.r.t how the Import,Export and Tables are defined for this BAPI.
Import deals with what we are passing to the FM, and Export deals with that of what is returned by FM. And in Tables, you have along with other tables (if any) RETURN like <b>BAPIRETURN</b> which holds the return messages from the FM.
Regards,
Raj
‎2006 Sep 18 10:53 AM
Hi
Check for eg: BAPI <b>BAPI_REQUISITION_CREATE</b>
w.r.t how the Import,Export and Tables are defined for this BAPI.
Import deals with what we are passing to the FM, and Export deals with that of what is returned by FM. And in Tables, you have along with other tables (if any) RETURN like <b>BAPIRETURN</b> which holds the return messages from the FM.
Regards,
Raj
‎2006 Sep 18 11:04 AM
Hi Mridul,
when u r creating the bapi first of all u have to define strucures of ur own in SE11,then u have to give the parameters in import,export and tables.Also u have to use structure bapiret2 to capture return messages in the tables parameter.
example- i have created a structure for two fields as zstruct.and the fields r zfield1 and zfield2.
now in import paramaters u have to give like this
Field1 like zstruct-zfield1.
for tables paramater u have to define like this.
Return like BAPIRET2.
TRy like above
Regards,
nagaraj