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_REQUIREMENTS_CREATE

rahul2000
Contributor
0 Kudos

Dear All,

I am using this BAPI to create planned independents requirement.

All works fine but for a couple of materials.

For this materials the BAPI returns message saying that Material does not exist in plant 2000 even though it does.

If I do the same thing manually through SE37,it works fine.From SE37 there is no return message and the material gets uploaded successfully in MD61.

I am passing the following parameters to the BAPI.Plz let me know what might be the problem.

CALL FUNCTION 'BAPI_REQUIREMENTS_CREATE'

EXPORTING

REQUIREMENTS_ITEM = BAPISITEMR

  • REQUIREMENT_PARAM =

DO_COMMIT = 'X'

  • UPDATE_MODE = 'X'

  • REFER_TYPE = ' '

  • PROFILID = ' '

  • IMPORTING

  • MATERIAL =

  • PLANT =

  • REQUIREMENTSTYPE =

  • VERSION =

  • REQMTSPLANNUMBER =

  • MRP_AREA =

  • MATERIAL_EVG =

TABLES

REQUIREMENTS_SCHEDULE_IN = IT_BAPISSHDIN

  • REQUIREMENTS_CHAR_IN =

RETURN = IT_RETURN.

Regards,

Rahul.

3 REPLIES 3

rahul2000
Contributor
0 Kudos

Dunno why this happens for some materials

0 Kudos

Hi Rahul,

Presently I'm facing the same issue, please help me to solve it.


0 Kudos

Hi Siva,

Why don't you create a new Thread for this.

put a break point on message no and try to find out on which case it trigger and how that is by passed in se37 .