cancel
Showing results for 
Search instead for 
Did you mean: 

MM: do I have to use bdc, when I already called the function?

Former Member
0 Kudos

I'm doing a bapi for requisition create. after calling the function and identified the tables, what's next? Supposed to be it would generate a PR # but it didn't. Please guide me.

IMPORT:

SKIP_ITEMS_WITH_ERROR TYPE BAPIMMPARA-SELECTION Skip Faulty Items

AUTOMATIC_SOURCE TYPE BAPIMMPARA-SELECTION 'X' Automatic source determination

EXPORT:

NUMBER TYPE BAPIEBANC-PREQ_NO Purchase requisition number

CODES:

CALL FUNCTION 'BAPI_REQUISITION_CREATE'

  • EXPORTING

  • SKIP_ITEMS_WITH_ERROR =

  • AUTOMATIC_SOURCE = 'X'

  • IMPORTING

  • NUMBER =

TABLES

requisition_items = lt_items

REQUISITION_ACCOUNT_ASSIGNMENT = lt_aac

REQUISITION_ITEM_TEXT = lt_item_text

  • REQUISITION_LIMITS =

  • REQUISITION_CONTRACT_LIMITS =

  • REQUISITION_SERVICES =

  • REQUISITION_SRV_ACCASS_VALUES =

RETURN = lt_return

  • REQUISITION_SERVICES_TEXT =

  • REQUISITION_ADDRDELIVERY =

  • EXTENSIONIN =

.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

You are missing commit work after calling bapi. Its important to call commit work after calling BAPI.

Most of the BAPI do not comiit work themself, they need explicit commit work.

Cheers,

Nilesh

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

What is the error that you are getting? You can look at the details of the error in the LT_RETURN table. If that does not have a error, and has the Requistion number it has created, then COMMIT is missing.

Call the function BAPU_TRANSACTION_COMMIT after the function call.

Regards,

Ravi

Note : Pleas mark the helpful answers

Former Member
0 Kudos

Hi !

Most of the BAPIs need a COMMIT WORK to start their work !

If not already done, you can try that.

Are all obligatory fields set ?

Do do get any errors ?

Finally you could check the OSS for the BAPI 'BAPI_REQUISITION_CREATE'. Maybe there are some known errors.

Regards

Rainer

Some points would be fine if that hepled a bit