Skip to Content
0
Former Member
Jul 14, 2008 at 02:28 PM

BAPI_SALESORDER_CREATEFROMDAT2 - Trying to update customer enhancements

63 Views

I am trying to create a sales order including customer enhamcement fields by calling the BAPI BAPI_SALESORDER_CREATEFROMDAT2.

I am getting the following dump: The statement

"MOVE src TO dst"

requires the operands "dst" and "src" to be comvertible.

I am fillilng the extensionin table as follows:

h_extensionin-structure = 'BAPE_VBAP'.

h_extensionin-valuepart1+10(6) = dtl_count.

h_extensionin-valuepart1+146(20) = i7_orders-logproid.

APPEND h_extensionin TO t_extensionin.

CLEAR h_extensionin.

h_extensionin-structure = 'BAPE_VBAPX'.

h_extensionin-valuepart1+10(6) = dtl_count.

h_extensionin-valuepart1+23(1) = 'X'.

APPEND h_extensionin TO t_extensionin.

CLEAR h_extensionin.

The structure BAPE_VBAP is defined as follows:

VBELN

POSNR

.APPEND ZABAPE_VBAP

.INCLUDE ZZBAPEVBAP

KOSTL

FONDS

FISTL

FKBER

GRANT_NBR

ZZSCLQTY

ZZSCLQTY_EDI

ZZSCLQTY_G

ZZHUEPOS

ZZMATFLG

ZZPTUP

ZZRTUP

ZZCTUP

ZZGTUP

ZZNTUP

ZZBFLGOK

ZZPFLGOK

ZZCUST_I

ZZCSR

ZZMKWMENG

ZZCCOUNT

.INCLUDE

ZZORIDATE

ZZCLOSESHORT

ZZRUECKMELDETEXT

Any ideas why this is not working would be greatly appreciated.