cancel
Showing results for 
Search instead for 
Did you mean: 

EML Statement – MODIFY ENTITIES not working

jeet_th
Discoverer
0 Kudos

Hi,

In standard sales order app I am trying to default Plant at item level, I have written below EML code to hardcode Plant at line item level. With below code its not working.

MODIFY ENTITIES OF i_salesordertp
ENTITY SalesOrder
CREATE BY \_item
FIELDS ( Product
RequestedQuantity
Plant
SalesOrderItemCategory )
WITH VALUE #( ( SalesOrder = <ls_create3>-%cid
%target = VALUE #( ( %cid = <ls_create3>-%cid
“Product = ls_product
RequestedQuantity = ‘1’
“RequestedQuantityUnit = ‘EA’
Plant = ‘STG’
SalesOrderItemCategory = ‘TAN’ ) ) ) )

“response parameters
MAPPED DATA(ls_mapped1)
FAILED DATA(ls_failed1) ##NEEDED
REPORTED DATA(ls_reported1).

Can you please suggest me with correct code.

Thanks & Regards,

Jeet

View Entire Topic
inesmartins
Participant
0 Kudos

Hello, 

Did you found the solution??
I'm getting Failed: Not Found, but the Sales Order exist.

Thanks,
Ines Martins