2013 Nov 27 6:24 AM
Hi all,
I was facing an issue with BAPI for creating Sales order.
Iam using BAPI_SALESORDER_CUSTOMERDATA2, passing all parameters correctly but if the material is Config then Sales order is not created.
for other materials i can able to get SO no.
there are no return parameters with error Header and Items are successfully .
i debug the BAPI some where it is crearing VBAK internally .
Please suggest me what i can do .
2013 Nov 27 6:35 AM
2013 Nov 27 7:18 AM
2013 Nov 27 6:50 AM
hi
as send this name bapi is not in SAP BAPI_SALESORDER_CUSTOMERDATA2........
2013 Nov 27 7:14 AM
Hi,
I guess you are using the BAPI : BAPI_SALESORDER_CREATEFROMDAT2
If this is the case check the below parameters in the BAPI and needs to be pass for the config materials.
If you have configurable items, you must enter the configuration data in the ORDER_CFGS_REF, ORDER_CFGS_INST, ORDER_CFGS_PART_OF and ORDER_CFGS_VALUE tables.
Thanks,
Kiran
2013 Nov 27 7:19 AM
Hi Kiran,
I have passed everything but no success .
In return parameters Header is success and items is success but no sales order generated.
Please can you have any example ?please share with me
2013 Nov 27 7:43 AM
Hi,
can you check the Return parameter, what messages you are getting. is the import parameter sales document number is filling?
By the way, I think you are using the call function 'BAPI_TRANSACTION_COMMIT'.
Thanks,
Kiran
2013 Nov 27 9:27 AM
Hi Kiran,
Thanks for reply..
Sales document is not filling and in return parametrs is like
Header is successfully processed...
Item1 is successfully processed....
Item2 is successfully processed....
Item3 is successfully processed....
(Blank) haave saved successfully .
in blank we usually get SO no and in import parameters we have SO no .
even iam using COMMIT .
2013 Nov 27 9:33 AM
Surndra you are not passing testrun as 'X' right..? Please share your sample code
2013 Nov 27 9:40 AM
So, the sales order is creating without any errors. it's not updating in DB. re-check how you are handling the commit work. please provide the more information on handling the BAPI.
You can find further information in the OSS. The note 93091 contains general information on the BAPIs in SD.
Thanks,
Kiran.
2013 Nov 27 11:35 AM
Hi Kiran,
BAPI is working if the material is not config material ,
issues is only if the material is configurable .
2013 Nov 27 11:36 AM
Hi Nabheet,
Thanks for reply .
Whar is test run?,Issue is only if the material is configurable .
2013 Nov 27 11:58 AM
An importing parameter in the BAPI...Please paste your sample code here.