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

BAPI Function Module

Former Member
0 Likes
1,186

Hi,

I am using BAPI IBAPI_ALM_ORDER_COMP_READ inside an include program. When I execute this BAPI individually in SE37 it is returning required values. But when it is called inside the program, it is not giving output.

What might be the reason?

Please help.

11 REPLIES 11
Read only

former_member156446
Active Contributor
0 Likes
1,144

check the padded zeros for the values you are passing into the BAPI

Read only

Former Member
0 Likes
1,144

Hi,

You can debug the code by putting a break-point at the BAPI call and checking the parameters that you are paasing ...

thanks,

Rimpa

Read only

0 Likes
1,144

I tried checking in debug mode where I am passing the correct parameters only.

Even there is zeroes or not, the FM is returning values in SE37.

Read only

0 Likes
1,144

>

> Even there is zeroes or not, the FM is returning values in SE37.

in se37 things would be taken care by SAP.. not in abap editor

Read only

0 Likes
1,144

Hi If I remove the preceding zeroes, it is giving error messages in ET_MESSAGES

Read only

0 Likes
1,144

using converexitalpha*input/output functions is a general practice... which u need to add padded zeros, that is when SAP understands its an Orders number..

Read only

Former Member
0 Likes
1,144

Hi Vinraj,

Did you check the table ET_MESSAGES defined under table section of BAPI IBAPI_ALM_ORDER_COMP_READ.

It should be giving you the information about the status right.

Are you getting any exception when you run through the program.

Also cross check the fiels type and value format you are passing is appropriate.

Hope this helps you.

Thanks and Regards,

Ranjith Nambiar

Read only

0 Likes
1,144

Hi,

The ET_MESSAGES is returning zero values.

The type is same

Read only

Former Member
0 Likes
1,144

Hi,

have you checked the passing parameters or tables to the BAPI. u have to declare the the export or tables as of same type. otherwise u will not get expected results.

suppose,

if export parameters in BAPI, MATNR is type MATNR, then u have to declare ur export parameter as MATNR...like this tables also..check ur inputs...

thnks

yerukala setty

Read only

Former Member
0 Likes
1,144

closed

Read only

0 Likes
1,144

Hi,

I am facing the same issue. Please let me know how you have solved this issue.

Thanks for your help.

Regards,

Janani