Application Development 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: 

BAPI_SALESORDER_CREATEFROMDAT2 - Trying to update customer enhancements

Former Member
0 Kudos

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.

3 REPLIES 3

vinod_vemuru2
Active Contributor
0 Kudos

Hi,

It seems there is problem with this move statement. Check whether these two structures are type compatible or not.

If not then u have to meve field by field or MOVE CORROSPONDING(Not suggested to use this).

Also after getting the dump just press debug button in tool bar and see where the control is going.

Check that part of code.

Thanks,

Vinod.

Former Member
0 Kudos

Hi,

Have you made the same structure addition to the master tables?

If not please add them in that too.

Regards,

Subramanian

0 Kudos

Yes the same customer extensions exist in VBAP.