Application Development and Automation 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: 
Read only

BAPI issue while creating SO with Config materials

Former Member
0 Likes
1,351

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 .

12 REPLIES 12
Read only

former_member195698
Active Contributor
0 Likes
1,314

can u try passing config information to the BAPI...

Read only

0 Likes
1,314

Hi Abhishek,

All parameters are passed but no success.

Read only

Former Member
0 Likes
1,314

hi

as send this name bapi is not in SAP BAPI_SALESORDER_CUSTOMERDATA2........

Read only

Former Member
0 Likes
1,314

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

Read only

0 Likes
1,314

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

Read only

0 Likes
1,314

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

Read only

0 Likes
1,314

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 .

Read only

0 Likes
1,314

Surndra you are not passing testrun as 'X'  right..? Please share your sample code

Read only

0 Likes
1,314

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.

Read only

0 Likes
1,314

Hi Kiran,

BAPI is working if the material is not config material ,

issues is only if the material is configurable .

Read only

0 Likes
1,314

Hi Nabheet,

Thanks for reply .

Whar is test run?,Issue is only if the material is configurable .

Read only

0 Likes
1,314

An importing parameter in the BAPI...Please paste your sample code here.