cancel
Showing results for 
Search instead for 
Did you mean: 

EML Statement – MODIFY ENTITIES not working

08-01-2023 8:36 AM
jeet_th Discoverer
2100 views 3 comments
0 Likes
SAP Managed Tags
Subscribe

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

0 Likes

Accepted Solutions (0)

Answers (2)

Answers (2)

inesmartins
Participant
0 Likes

Hello, 

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

Thanks,
Ines Martins

Renzo
Product and Topic Expert
Product and Topic Expert
0 Likes

I am pretty sure the SalesOrder = <ls_create3>-%cid does not exist and you get a FAILED NOT FOUND for it. If requests FAIL the response should always explain the root cause (if the RAP contract is followed by the provider).

jeet_th
Discoverer
0 Likes

Hi Renzo,

Thanks for your quick response. I am getting value in SalesOrder = <ls_create3>-%cid and its getting failed.

Regards,

Jeet