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_SALESORDER_CREATEFROMDAT2

Former Member
0 Likes
1,304

Hi all,

I create a sales order through the BAPI_SALESORDER_CREATEFROMDAT2 and I want to determine commitment item externally. I put my commitment item in the field  order_items_in-cmmt_item, but it doesn`t transfer to the created sales order item. There are no any FM-derivation rules.

I debug the process through FM_ASS_INPUT_PUT_SD where  i_vbapkom-fipos is succesfully moved to  gf_fmobjects-fipos, and then through  FM_ASS_INPUT_GET_SD where gf_fmobjects-fipos is moved to c_cobl-fipos (and  gf_fmobjects cleared then)


But in the beginning of the FORM  cobl_fuellen the strusture cobl is cleared and so CI is not transfered.

Please, help me, where is the problem?

Best regards,

Roman

6 REPLIES 6
Read only

Former Member
0 Likes
1,184

Any ideas?

Read only

andrea_olivieri
Contributor
0 Likes
1,184

Hi Roman,

create your own implementation of BAdI  BADI_SD_SALES_ITEM.

The method IF_EX_BADI_SD_SALES_ITEM~ITEM_MAINTAIN_COM should be the right one.

KR

Andrea

Read only

0 Likes
1,184

Thank you for reply!

The method IF_EX_BADI_SD_SALES_ITEM~ITEM_MAINTAIN_COM is not useful in my case because i can`t influence on the cobl structure.

The method IF_EX_BADI_SD_SALES_ITEM~ITEM_COBL_COM_I works fine either the method BADI_FMDERIVE~FILL_CUSTOMER_FIELDS which I use finally.

However i still wonder why the BAPI_SALESORDER_CREATEFROMDAT2 don`t transfer commitment item to the sales order item without any BAdI`s.

regards, Roman

Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
1,184

I would search for SAP notes and, if none found, open an incident with SAP.

Read only

0 Likes
1,184

Please, let know if you get the answer. Thank you in advence!

Best regards, Roman.

Read only

0 Likes
1,184

Roman, I was suggesting that you search the notes and open an incident. Sorry if the verbiage was not clear. When someone says "I would" they usually mean "if I were in your place, this is what I would do".