Application Development 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: 

BAPI Error

former_member329522
Participant
0 Kudos

Im using the BAPI_MATPHYSINV_CHANGECOUNT, in the SE37, it works, but in my program, it doesn´t work. I use the same data...

Thanks all!

1 ACCEPTED SOLUTION

0 Kudos

HI,

Try and declare variable of the type expected by the function module and pass the data instead of hardcoding the data to the FM if you are doing so in this case.

Regards,

Sesh

6 REPLIES 6

0 Kudos

HI,

Try and declare variable of the type expected by the function module and pass the data instead of hardcoding the data to the FM if you are doing so in this case.

Regards,

Sesh

former_member329522
Participant
0 Kudos

I´m using an internal table with the FM structure, but the data isn´t save.

0 Kudos

Does it return any error message? If not and nothing is updated in database perhaps you should call 'commit work' after that bapi....

Message was edited by: Tomasz Kozerski

0 Kudos

It is returning an error message, it says that the data is not modified... But in the se37 test´s the message ís that all was ok...

0 Kudos

Is there anything more in that error message?

Make sure you are passing data to that BAPI in an appropriate format (SE37 may convert some fields to internal format). There can be dozens of reasons it does not update anything, without complete error message (or debugging) it is not easy to guess.

Former Member
0 Kudos

HI Julio,

One suggestion. Execute your program and the BAPI is SE37 in different sessin (parallel) in <b>debug mode.</b>

Check if all the structures are getting populated correctly in both.

Hope this helps.

Manish