Skip to Content
0
Aug 01, 2023 at 06:36 AM

EML Statement – MODIFY ENTITIES not working

137 Views

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