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 field doubt

Former Member
0 Likes
695

Hi Experts!

I am using BAPI_SALESORDER_CREATEFROMDAT2 bapi to create sales orders and trying to fullfill with this a field called "Customer Material Number" in transaction VA02.

Unfortunatelly I didn't get it with Table parameter called ORDER_ITEMS_IN, field CUST_MAT22.

Any suggestions?

Thansk!

Michel Khouri

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
646

Hi,

Use the field CUST_MAT35 instead of CUST_MAT22 for customer material..

Thanks,

Naren

4 REPLIES 4
Read only

Former Member
0 Likes
646

Hi

U have to use extension structure (EXTENSIONIN)

In the table parameter of the BAPI you can see EXTENSIONIN structurated as BAPIPAREX.

U need to do the following steps before using it:

By SE11:

- Extend the structure BAPE_VBAP and BAPE_VBAPX in order to insert the new fields

- Extend the structure VBAPKOM and VBAPKOMX (if it's necessary) in order to insert the new fields

In your report

- Transfer the value to EXTENSIONIN:

BAPE_VBAP-POSNR = <POSNR>.

BAPE_VBAP-NEW FIELD = .......

EXTENSIONIN-STRUCTURE = 'BAPE_VBAP'.

EXTENSIONIN+30 = BAPE_VBAP.

APPEND EXTENSIONIN.

BAPE_VBAPX-POSNR = <POSNR>.

BAPE_VBAPX-NEW FIELD = 'X'.

EXTENSIONIN-STRUCTURE = 'BAPE_VBAPX'.

EXTENSIONIN+30 = BAPE_VBAPX.

APPEND EXTENSIONIN.

Max

Read only

0 Likes
646

Hi Max!

What do you mean with "extension structure"?

Read only

Former Member
0 Likes
647

Hi,

Use the field CUST_MAT35 instead of CUST_MAT22 for customer material..

Thanks,

Naren

Read only

0 Likes
646

Thank you very much!