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

error while creating BAPI.

Former Member
0 Likes
652

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,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
376

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

2 REPLIES 2
Read only

Former Member
0 Likes
377

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

Read only

former_member404244
Active Contributor
0 Likes
376

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