cancel
Showing results for 
Search instead for 
Did you mean: 

Sales order creation with Subcontractring position type 'L'

puceniczmatias
Explorer
0 Kudos

Hi gurus,

We are using the BAPI_SALESORDER_CREATEFROMDAT2 in order to create a sale order with schdule type subcontracting.

The BAPI create a new sales order with the BOM explosion fine.

But when we see the purchase requisition (type L) created in Sales Order schedule, we coiuldn't see the material list exploted.

It's seems like when the Purchase Requisition, the BOM is missing.

Could you please help us with that issue?

Thanks!

Accepted Solutions (0)

Answers (2)

Answers (2)

beyhan_meyrali
Active Contributor
0 Kudos

Hi Mathias,

My suggestion is to trigger it from your function/program that calls the Bapi. Not from VA01.

Regards

beyhan_meyrali
Active Contributor
0 Kudos

Hi Matias,

If you do the same thing from gui and if everything works fine, that means you are missing some data in bapi. And to understand what is wrong, it is best to put a break point in bapi and save data as test case for bapi. Once you do that you can open bapi in se37 and load saved test data to try different combinations.

Hope that helps.

puceniczmatias
Explorer
0 Kudos

Hi Beyhan,

Thank you so much for your response!!

In the enjoy transaction VA01 everything it's ok. I'm try with this, but the VA01 don't stop in BAPI_SALESORDER_CREATEFROMDAT2 .

I will continue searching.

Thanks a lot.