on 05-08-2006 5:00 AM
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 =
.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.