2007 Feb 12 4:59 AM
Hi all,
while i was creating sales order using the BAPI_SALESORDER_CREATEFROMDAT1 it is giving some error,
version 0 is not defined for the fiscal year ****.
I have given the fallowing parameters as input
ORDER_HEADER_IN
DOC_TYPE OR
SALES_ORG 1000
DISTR_CHAN 10
DIVISION 00
ORDER_PATNERS
PARTN_ROLE SP
PARTN_NUMB 1000
ORDER_ITEMSIN
MATERIAL M-13
I need to create sample sales order . Please help me how to create sales order with an example( for test purpose).
Regards
Deviprasad.
Devi,
Are you doing Commit after the BAPI is executed.
Please see the below text maintained in the BAPI documentation:
The BAPI does not have a database commit. This means that the
relevant application must leave the commit, in order that can be
carried out on on the database. The BAPI BAPI_TRANSACTION_COMMIT is
available for this.
Thanks
2007 Feb 12 5:04 AM
Hi Deviprasad,
BAPI_SALESORDER_CREATEFROMDAT1 is obsolete as of 4.6C. Try using BAPI_SALESORDER_CREATEFROMDAT2.
Regards
Gareth
2007 Feb 12 5:17 AM
I have tested with the BAPI_SALESORDER_CREATEFROMDAT2
then
return message is ( type s, message-> sales_header_in has been processed succesful)
but the problem is, In export parameters there is no sales order number existing. i need this sales document number.
Please help me.
Regards,
Deviprasad
2007 Feb 12 5:19 AM
Hi
Should be in ORDER_KEYS-DOC_NUMBER and the export parameter SALESDOCUMENT.
Regards
Gareth
2007 Feb 12 5:21 AM
Devi,
Are you doing Commit after the BAPI is executed.
Please see the below text maintained in the BAPI documentation:
The BAPI does not have a database commit. This means that the
relevant application must leave the commit, in order that can be
carried out on on the database. The BAPI BAPI_TRANSACTION_COMMIT is
available for this.
Thanks
2011 Jul 08 10:34 AM
2007 Feb 12 5:11 AM
Hi Prasad,
Try using BAPI_SALESORDER_CREATEFROMDAT2.
While creating sales order using FM: BAPI_SALESORDER_CREATEFROMDAT2, please make sure ORDER_ITEMS_IN, ORDER_ITEMS_INX, ORDER_SCHEDULES_IN, ORDER_SCHEDULES_INX.
Pricing Conditions will not be mandatory to create a sales order via BAPI.
As you were saying, you can create a sales order but not with items. Do populate the internal tables that i have specified above.
Also try to pass the item number internally, this will help you in identifying the schedule lines.
Regards,
Priyanka.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |